<nav class="sidebar sidebar-offcanvas" id="sidebar">
        <ul class="nav">
          <li class="nav-item">
            <a class="nav-link" href="/dashboard">
              <i class="fa fa-home text-icones"></i>
              <span class="menu-title">Dashboard</span>
            </a>
          </li>
          <!--
          <li class="nav-item">
            <a class="nav-link" data-toggle="collapse" href="#ligar_desligar" aria-expanded="false" aria-controls="ligar_desligar">
              <i class="fa fa-power-off text-icones"></i>
              <span class="menu-title"><?php echo $lang['lang_botao_titulo_ligar']; ?>/<?php echo $lang['lang_botao_titulo_desligar']; ?></span>
              <i class="menu-arrow"></i>
            </a>
            <div class="collapse" id="ligar_desligar">
              <ul class="nav flex-column sub-menu">
                <?php if($dados_stm["aplicacao"] != 'ipcamera' && $dados_stm["aplicacao"] != 'vod') { ?>
                <li class="nav-item"> <a class="nav-link text-success" href="javascript:ligar_streaming('<?php echo $login_code; ?>');"> <?php echo $lang['lang_botao_titulo_ligar']; ?></a></li>
                <?php } ?>
                <li class="nav-item"> <a class="nav-link text-danger" href="javascript:reiniciar_streaming('<?php echo $login_code; ?>');"> <?php echo $lang['lang_botao_titulo_reiniciar']; ?></a></li>
              </ul>
            </div>
          </li>
        -->
        <?php if($dados_stm["aplicacao"] != 'ipcamera') { ?>
          <li class="nav-item">
            <a class="nav-link" href="/dados-conexao">
              <i class="fa fa-rss text-icones"></i>
              <span class="menu-title"><?php echo $lang['lang_acao_stm_dados_conexao']; ?></span>
            </a>
          </li>
        <?php } ?>
          <?php if($dados_stm["aplicacao"] == 'tvstation' || $dados_stm["aplicacao"] == 'vod') { ?>
          <li class="nav-item">
            <a class="nav-link" data-toggle="collapse" href="#ondemand" aria-expanded="false" aria-controls="ondemand">
              <i class="fa fa-file-video-o text-icones"></i>
              <span class="menu-title"><?php echo $lang['lang_acao_label_ondemand']; ?></span>
              <i class="menu-arrow"></i>
            </a>
            <div class="collapse" id="ondemand">
              <ul class="nav flex-column sub-menu">
                <?php if($dados_stm["aplicacao"] == 'tvstation') { ?>
                <li class="nav-item"> <a class="nav-link" href="javascript:menu_iniciar_playlist();"> <?php echo $lang['lang_acao_ondemand_iniciar_playlist']; ?></a></li>
                <?php } ?>
                <li class="nav-item"> <a class="nav-link" href="/gerenciar-videos"> <?php echo $lang['lang_acao_ondemand_gerenciar_videos']; ?></a></li>
                <?php if($dados_stm["aplicacao"] == 'tvstation') { ?>
                <li class="nav-item"> <a class="nav-link" href="/playlists"> <?php echo $lang['lang_acao_ondemand_gerenciar_playlists']; ?></a></li>
                <li class="nav-item"> <a class="nav-link" href="/gerenciar-agendamentos"> <?php echo $lang['lang_acao_ondemand_gerenciar_agendamentos']; ?></a></li>
                <li class="nav-item"> <a class="nav-link" href="/gerenciar-playlists-comerciais"> <?php echo $lang['lang_acao_ondemand_gerenciar_comerciais']; ?></a></li>
                <?php } ?>        
                <li class="nav-item"> <a class="nav-link" href="/configuracoes-watermark"> Marca de Agua</a></li>  
		            <?php if($dados_stm["transcoder"] == 'sim') { ?>      
                <li class="nav-item"> <a class="nav-link" href="/configuracoes-transcoder"> Transcoder</a></li>  
		            <?php } ?>   
              </ul>
            </div>
          </li>
          <?php } ?>
          <?php if($dados_stm["aplicacao"] == 'tvstation' || $dados_stm["aplicacao"] == 'live') { ?>
          <li class="nav-item">
            <a class="nav-link" href="/gerenciar-agendamentos-relay">
              <i class="fa fa-rss text-icones"></i>
              <span class="menu-title"><?php echo $lang['lang_acao_ondemand_gerenciar_agendamentos']; ?> Relay</span>
            </a>
          </li>
          <?php } ?>
          <?php if($dados_stm["aplicacao"] == 'ipcamera') { ?>
          <li class="nav-item">
            <a class="nav-link" href="/gerenciar-ip-cameras">
              <i class="fa fa-video-camera text-icones"></i>
              <span class="menu-title"><?php echo $lang['lang_acao_stm_gerenciar_cameras']; ?></span>
            </a>
          </li>
          <?php } ?>
          <?php if($dados_stm["lives"] == 'sim' && $dados_stm["aplicacao"] != 'ipcamera') { ?>
          <li class="nav-item">
            <a class="nav-link" href="/gerenciar-lives">
              <i class="fa fa-youtube text-icones"></i>
              <span class="menu-title">Lives</span>
            </a>
          </li>
          <?php } ?>
          <?php if($dados_stm["aplicacao"] == 'tvstation' || $dados_stm["aplicacao"] == 'live') { ?>  
          <li class="nav-item">
            <a class="nav-link" href="/app-wowza-gocoder">
              <i class="fa fa-eercast text-icones"></i>
              <span class="menu-title">App GoCoder Live</span>
            </a>
          </li>
          <?php } ?>
          <li class="nav-item">
            <a class="nav-link" data-toggle="collapse" href="#players" aria-expanded="false" aria-controls="players">
              <i class="fa fa-play-circle-o text-icones"></i>
              <span class="menu-title"><?php echo $lang['lang_acao_stm_players']; ?></span>
              <i class="menu-arrow"></i>
            </a>
            <div class="collapse" id="players">
              <ul class="nav flex-column sub-menu">
                <?php if($dados_stm["aplicacao"] == 'tvstation' || $dados_stm["aplicacao"] == 'live') { ?>
                <li class="nav-item"> <a class="nav-link" href="/gerenciar-player"> HTML5 Responsive</a></li>
                <li class="nav-item"> <a class="nav-link" href="/gerenciar-player-celulares"> Mobile</a></li>
                <li class="nav-item"> <a class="nav-link" href="/gerenciar-player-video-chat"> Video Chat</a></li>
                <li class="nav-item"> <a class="nav-link" href="/gerenciar-player-video-ads"> Video Ads</a></li>
                <?php } ?>
                <?php if($dados_stm["aplicacao"] == 'vod') { ?>
                <li class="nav-item"> <a class="nav-link" href="/gerenciar-player-vod"> <?php echo $lang['lang_info_players_player_vod']; ?></a></li>
                <?php } ?>
                <?php if($dados_stm["aplicacao"] == 'webrtc') { ?>
                <li class="nav-item"> <a class="nav-link" href="/gerenciar-player-webrtc"> HTML5 Responsive</a></li>
                <?php } ?>
                <?php if($dados_stm["aplicacao"] == 'ipcamera') { ?>
                <li class="nav-item"> <a class="nav-link" href="/gerenciar-player-ip-camera"> IP Camera</a></li>
                <?php } ?>   
              </ul>
            </div>
          </li>
          <?php if($dados_stm["aplicacao"] == 'tvstation' || $dados_stm["aplicacao"] == 'live') { ?> 
          <li class="nav-item">
            <a class="nav-link" data-toggle="collapse" href="#apps" aria-expanded="false" aria-controls="apps">
              <i class="fa fa-android text-icones"></i>
              <span class="menu-title">Apps</span>
              <i class="menu-arrow"></i>
            </a>
            <div class="collapse" id="apps">
              <ul class="nav flex-column sub-menu">
                <li class="nav-item"> <a class="nav-link" href="/app-android"> App Android</a></li>      
                <li class="nav-item"> <a class="nav-link" href="/app-android-web"> App Android Web</a></li>  
                <li class="nav-item"> <a class="nav-link" href="/app-multi-plataforma"> App MultiPlataforma</a></li>
              </ul>
            </div>
          </li>
          <?php } ?> 
          <?php if($dados_stm["aplicacao"] == 'webrtc') { ?> 
          <li class="nav-item">
            <a class="nav-link" href="/app-android-webrtc">
              <i class="fa fa-android text-icones"></i>
              <span class="menu-title">App Android</span>
            </a>
          </li>
          <?php } ?> 
          <li class="nav-item">
            <a class="nav-link" data-toggle="collapse" href="#espectadores" aria-expanded="false" aria-controls="espectadores">
              <i class="fa fa-users text-icones"></i>
              <span class="menu-title"><?php echo $lang['lang_acao_label_espectadores']; ?></span>
              <i class="menu-arrow"></i>
            </a>
            <div class="collapse" id="espectadores">
              <ul class="nav flex-column sub-menu">
                <li class="nav-item"> <a class="nav-link" href="/espectadores-conectados"> <?php echo $lang['lang_acao_espectadores_espectadores_conectados']; ?></a></li>
                <li class="nav-item"> <a class="nav-link" href="/estatisticas"> <?php echo $lang['lang_acao_espectadores_stats']; ?></a></li>
              </ul>
            </div>
          </li>
          <?php if($dados_stm["aplicacao"] == 'tvstation' || $dados_stm["aplicacao"] == 'vod') { ?>
          <li class="nav-item">
            <a class="nav-link" data-toggle="collapse" href="#utilitarios" aria-expanded="false" aria-controls="utilitarios">
              <i class="fa fa-cogs text-icones"></i>
              <span class="menu-title"><?php echo $lang['lang_acao_label_ferramentas']; ?></span>
              <i class="menu-arrow"></i>
            </a>
            <div class="collapse" id="utilitarios">
              <ul class="nav flex-column sub-menu">
                <li class="nav-item"> <a class="nav-link" href="/utilitario-youtube"> <?php echo $lang['lang_acao_ferramentas_youtube']; ?></a></li>
                <li class="nav-item"> <a class="nav-link" href="/utilitario-conversor"> <?php echo $lang['lang_acao_ferramentas_conversor']; ?></a></li>
                <?php if($dados_stm["aplicacao"] == 'tvstation') { ?>
                <li class="nav-item"> <a class="nav-link" href="/utilitario-gravador"> <?php echo $lang['lang_acao_ferramentas_gravador']; ?></a></li>
                <?php } ?>
                <li class="nav-item"> <a class="nav-link" href="/utilitario-migrar-videos"> <?php echo $lang['lang_acao_ferramentas_migrar_videos']; ?></a></li>
                <li class="nav-item"> <a class="nav-link" href="/utilitario-renomear-videos"> <?php echo $lang['lang_acao_ferramentas_renomear_videos']; ?></a></li>
              </ul>
            </div>
          </li>
          <?php } ?>
          <li class="nav-item">
            <a class="nav-link" data-toggle="collapse" href="#solucao_problemas" aria-expanded="false" aria-controls="solucao_problemas">
              <i class="fa fa-support text-icones"></i>
              <span class="menu-title"><?php echo $lang['lang_acao_label_solucao_problemas']; ?></span>
              <i class="menu-arrow"></i>
            </a>
            <div class="collapse" id="solucao_problemas">
              <ul class="nav flex-column sub-menu">
                <li class="nav-item"> <a class="nav-link" href="javascript:sincronizar('<?php echo $login_code; ?>');"> <?php echo $lang['lang_acao_solucao_problemas_sincronizar']; ?></a></li>
              </ul>
            </div>
          </li>
          <li class="nav-item">
            <a class="nav-link" href="/configuracoes-streaming">
              <i class="fa fa-sliders text-icones"></i>
              <span class="menu-title"><?php echo $lang['lang_acao_stm_config']; ?> Streaming</span>
            </a>
          </li>
          <li class="nav-item">
            <a class="nav-link" data-toggle="collapse" href="#painel" aria-expanded="false" aria-controls="painel">
              <i class="fa fa-cog text-icones"></i>
              <span class="menu-title"><?php echo $lang['lang_acao_label_painel']; ?></span>
              <i class="menu-arrow"></i>
            </a>
            <div class="collapse" id="painel">
              <ul class="nav flex-column sub-menu">
                <li class="nav-item"> <a class="nav-link" href="/configuracoes-painel"> <?php echo $lang['lang_acao_painel_config']; ?></a></li>
                <li class="nav-item"> <a class="nav-link" href="/streaming-api"> <?php echo $lang['lang_acao_painel_api']; ?></a></li>
                <?php if($dados_revenda["stm_exibir_tutoriais"] == 'sim' || $dados_stm["codigo_cliente"] == '0') { ?>
                <li class="nav-item"> <a class="nav-link" href="/ajuda"> <?php echo $lang['lang_acao_painel_ajuda']; ?></a></li>
                <?php } ?>
                <?php if($dados_revenda["stm_exibir_tutoriais"] == 'url') { ?>
                <li class="nav-item"> <a class="nav-link" href="window.open('<?php echo $dados_revenda["url_tutoriais"]; ?>');"> <?php echo $lang['lang_acao_painel_ajuda']; ?></a></li>
                <?php } ?>
                <?php if($dados_revenda["stm_exibir_downloads"] == 'sim' || $dados_stm["codigo_cliente"] == '0') { ?>
                <li class="nav-item"> <a class="nav-link" href="/downloads"> <?php echo $lang['lang_acao_painel_downloads']; ?></a></li>
                <?php } ?>
                <li class="nav-item"> <a class="nav-link" href="/logs-painel"> <?php echo $lang['lang_acao_painel_logs']; ?></a></li>
              </ul>
            </div>
          </li>

        </ul>
      </nav>
