<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link rel="shortcut icon" href="{{ asset('assets/admin/img/ico.ico') }}" type="image/x-icon">
    <link rel="shortcut icon" href="{{ asset('assets/admin/img/ico.ico') }}" type="image/png">
    <!--GoogleFonts-->
    <link rel="preconnect" href="https://fonts.googleapis.com">
    <link rel="preconnect" href="https://fonts.gstatic.com">
    <link href="https://fonts.googleapis.com/css2?family=Nunito:wght@500&display=swap" rel="stylesheet">
    <link rel="stylesheet" href="{{ asset('assets/admin/compiled/css/app.css') }}">
    <link rel="stylesheet" href="{{ asset('assets/admin/compiled/css/app-dark.css') }}">
    <link rel="stylesheet" type="text/css" href="https://cdn.datatables.net/1.10.24/css/jquery.dataTables.min.css">
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.6.0/css/all.min.css">
    <title>{{ env('APP_NAME') }}</title>

</head>

<body>
    @include('sweetalert::alert')
    <script src="{{ asset('assets/admin/static/js/initTheme.js') }}"></script>
    <div id="app">
        <div id="sidebar">
            <div class="sidebar-wrapper active">
                <div class="sidebar-header position-relative">
                    <div class="d-flex justify-content-between align-items-center">
                        <div class="logo">
                            <a href="{{ route('admin.index') }}">
                                <img src="{{ asset('assets/site/uploads/'.$entidade->id_tce.'/img/brasao/brasao.png') }}" alt="logo" width="auto"> 
                                <label for="" style="font-size: 20px">{{$entidade->cidade}}-{{$entidade->uf}}</label></a>
                        </div>
                        <div class="theme-toggle d-flex gap-2  align-items-center mt-2">
                            <i class="fa-regular fa-2xs fa-sun"></i>
                            <div class="form-check form-switch fs-6">
                                <input class="form-check-input  me-0" type="checkbox" id="toggle-dark"
                                    style="cursor: pointer">
                                <label class="form-check-label"></label>
                            </div>
                            <i class="fa-solid fa-2xs fa-moon"></i>
                        </div>
                        <div class="sidebar-toggler  x">
                            <a href="#" class="sidebar-hide d-xl-none d-block"><i
                                    class="bi bi-x bi-middle"></i></a>
                        </div>
                    </div>
                </div>
                <div class="sidebar-menu">
                    <ul class="menu">
                        <li class="sidebar-title">Menu</li>
                        <li class="sidebar-item active">
                            <a href="{{ route('admin.index') }}" class='sidebar-link'>
                                <i class="fa-solid fa-grip"></i>
                                <span>Dashboard</span>
                            </a>
                        </li>
                        <li class="sidebar-item  has-sub">
                            <a href="#" class='sidebar-link'>
                                <i class="fa-solid fa-layer-group"></i>
                                <span>Configurações</span>
                            </a>
                            <ul class="submenu">
                                <li class="submenu-item">
                                    <a href="{{ route('entidade.index') }}" class="submenu-link">Entidade</a>
                                </li>
                                <li class="submenu-item">
                                    <a href="{{ route('usuarios.index') }}" class="submenu-link">Usuários</a>
                                </li>
                            </ul>
                        </li>
                        <li class="sidebar-item  has-sub">
                            <a href="#" class='sidebar-link'>
                                <i class="fa-solid fa-pen-to-square"></i>
                                <span>Páginas</span>
                            </a>
                            <ul class="submenu">
                                <li class="submenu-item">
                                    <a href="{{ route('paginas.index') }}" class="submenu-link">Páginas</a>
                                </li>

                            </ul>
                        </li>
                        <li class="sidebar-item  has-sub">
                            <a href="#" class='sidebar-link'>
                                <i class="fa-solid fa-pen-to-square"></i>
                                <span>Menus</span>
                            </a>
                            <ul class="submenu">
                                <li class="submenu-item">
                                    <a href="{{ route('menus.index') }}" class="submenu-link">Menus</a>
                                </li>

                            </ul>
                        </li>
                        <li class="sidebar-title">Notícias</li>
                        <li class="sidebar-item  has-sub">
                            <a href="#" class='sidebar-link'>
                                <i class="fa-solid fa-pen-to-square"></i>
                                <span>Notícias</span>
                            </a>
                            <ul class="submenu">
                                <li class="submenu-item">
                                    <a href="{{ route('noticias.index') }}" class="submenu-link">Notícias</a>
                                </li>
                                <li class="submenu-item">
                                    <a href="{{ route('comentarios.index') }}" class="submenu-link">Comentários</a>
                                </li>
                            </ul>
                        </li>
                        <li class="sidebar-title">Gestores</li>
                        <li class="sidebar-item  has-sub">
                            <a href="#" class='sidebar-link'>
                                <i class="fa-solid fa-pen-to-square"></i>
                                <span>Gestores</span>
                            </a>
                            <ul class="submenu">
                                <li class="submenu-item">
                                    <a href="{{ route('cargos.index') }}" class="submenu-link">Cargos</a>
                                </li>
                                <li class="submenu-item">
                                    <a href="{{ route('agentespoliticos.index') }}" class="submenu-link">Agentes
                                        Polítios</a>
                                </li>
                                <li class="submenu-item">
                                    <a href="{{ route('secretarios.index') }}" class="submenu-link">Secretários</a>
                                </li>
                            </ul>
                        </li>
                        <li class="sidebar-title">Elementos</li>
                        <li class="sidebar-item  has-sub">
                            <a href="#" class='sidebar-link'>
                                <i class="fa-solid fa-pen-to-square"></i>
                                <span>Elementos</span>
                            </a>
                            <ul class="submenu">
                                <li class="submenu-item">
                                    <a href="{{ route('redes.index') }}" class="submenu-link">Redes Sociais</a>
                                </li>
                                <li class="submenu-item">
                                    <a href="{{ route('slides.index') }}" class="submenu-link">Slides</a>
                                </li>
                                <li class="submenu-item">
                                    <a href="{{ route('parceiros.index') }}" class="submenu-link">Parceiros</a>
                                </li>
                                <li class="submenu-item">
                                    <a href="{{ route('secretarias.index') }}" class="submenu-link">Secretarias</a>
                                </li>
                            </ul>
                        </li>
                        <li class="sidebar-title">FAQ</li>
                        <li class="sidebar-item  has-sub">
                            <a href="#" class='sidebar-link'>
                                <i class="fa-solid fa-pen-to-square"></i>
                                <span>FAQ</span>
                            </a>
                            <ul class="submenu">
                                <li class="submenu-item">
                                    <a href="{{ route('faqcategorias.index') }}" class="submenu-link">FAQ
                                        Categorias</a>
                                </li>
                                <li class="submenu-item">
                                    <a href="{{ route('faq.index') }}" class="submenu-link">FAQ</a>
                                </li>

                            </ul>
                        </li>

                        <li class="sidebar-title">Multimídia</li>
                        <li class="sidebar-item  has-sub">
                            <a href="#" class='sidebar-link'>
                                <i class="fa-solid fa-pen-to-square"></i>
                                <span>Multimídia</span>
                            </a>
                            <ul class="submenu">
                                <li class="submenu-item">
                                    <a href="{{ route('fotoscategoria.index') }}" class="submenu-link">Fotos
                                        Categoria</a>
                                </li>
                                <li class="submenu-item">
                                    <a href="{{ route('fotosgaleria.index') }}" class="submenu-link">Fotos
                                        Galeria</a>
                                </li>
                                <li class="submenu-item">
                                    <a href="{{ route('videoscategoria.index') }}" class="submenu-link">Vídeos
                                        Categoria</a>
                                </li>
                                <li class="submenu-item">
                                    <a href="{{ route('videosgaleria.index') }}" class="submenu-link">Vídeos
                                        Galeria</a>
                                </li>
                            </ul>
                        </li>
                        <li class="sidebar-title">Gestão Transparente</li>
                        <li class="sidebar-item  has-sub">
                            <a href="#" class='sidebar-link'>
                                <i class="fa-solid fa-pen-to-square"></i>
                                <span>Transparência</span>
                            </a>
                            <ul class="submenu">
                                <li class="submenu-item">
                                    <a href="{{ route('transparencias.index') }}"
                                        class="submenu-link">Transparência</a>
                                </li>
                            </ul>
                        </li>
                        @if($entidade->tipo == '1')
                        <li class="sidebar-item  has-sub">
                            <a href="#" class='sidebar-link'>
                                <i class="fa-solid fa-pen-to-square"></i>
                                <span>Covid-19</span>
                            </a>
                            <ul class="submenu">
                                <li class="submenu-item">
                                    <a href="{{ route('covid.index') }}" class="submenu-link">Boletins</a>
                                </li>
                                <li class="submenu-item">
                                    <a href="{{ route('vacinacao.index') }}" class="submenu-link">Vacinação</a>
                                </li>
                            </ul>
                        </li>
                        @else
                        @endif
                        <li class="sidebar-item  has-sub">
                            <a href="#" class='sidebar-link'>
                                <i class="fa-solid fa-pen-to-square"></i>
                                <span>Arquivos e Documents</span>
                            </a>
                            <ul class="submenu">
                                <li class="submenu-item">
                                    <a href="{{ route('arquivostipo.index') }}" class="submenu-link">Tipos de
                                        Arquivos</a>
                                </li>
                                <li class="submenu-item">
                                    <a href="{{ route('arquivos.index') }}" class="submenu-link">Arquivos</a>
                                </li>
                            </ul>
                        </li>
                        <li class="sidebar-item  has-sub">
                            <a href="#" class='sidebar-link'>
                                <i class="fa-solid fa-pen-to-square"></i>
                                <span>e-SIC</span>
                            </a>
                            <ul class="submenu">
                                <li class="submenu-item">
                                    <a href="{{ route('esics.index') }}" class="submenu-link">Solicitações</a>
                                </li>
                            </ul>
                        </li>
                        <li class="sidebar-item  has-sub">
                            <a href="#" class='sidebar-link'>
                                <i class="fa-solid fa-pen-to-square"></i>
                                <span>Licitações</span>
                            </a>
                            <ul class="submenu">
                                <li class="submenu-item">
                                    <a href="{{ route('modalidades.index') }}" class="submenu-link">Modalidades</a>
                                </li>
                                <li class="submenu-item">
                                    <a href="{{ route('licitacoes.index') }}" class="submenu-link">Licitações</a>
                                </li>
                            </ul>
                        </li>
                        <li class="sidebar-title">Assinantes</li>
                        <li class="sidebar-item  has-sub">
                            <a href="#" class='sidebar-link'>
                                <i class="fa-solid fa-pen-to-square"></i>
                                <span>Assinantes</span>
                            </a>
                            <ul class="submenu">
                                <li class="submenu-item">
                                    <a href="{{ route('assinantes.index') }}" class="submenu-link">Assinantes</a>
                                </li>
                            </ul>
                        </li>

                        <li class="sidebar-item">
                            <a href="{{ route('logoutEntidade') }}" class='sidebar-link'>
                                <i class="fa-solid fa-circle-xmark"></i>
                                <span>Sair</span>
                            </a>
                        </li>
                    </ul>
                </div>
            </div>
        </div>
        <div id="main">
            <header class="mb-3">
                <a href="#" class="burger-btn d-block d-xl-none">
                    <i class="bi bi-justify fs-3"></i>
                </a>
            </header>
            <div class="page-heading">
                <h4>{{ $entidade->entidade }}</h4>
                <h5>{{ env('APP_NAME') }}</h5>
            </div>
            @yield('content')
            <footer>
                <div class="footer clearfix mb-0 text-muted">
                    <div class="float-start">
                        <p id="footer-text"></p>
                    </div>
                    <div class="float-end">
                        <p>Suporte:(83)99966-3000</p>
                    </div>
                </div>
            </footer>
        </div>
    </div>
    <script src="{{ asset('assets/admin/static/js/components/dark.js') }}"></script>
    <script src="{{ asset('assets/admin/extensions/perfect-scrollbar/perfect-scrollbar.min.js') }}"></script>
    <script src="{{ asset('assets/admin/compiled/js/app.js') }}"></script>
    <script src="{{ asset('assets/admin/compiled/js/jquery-3.7.0.js') }}"></script>
    <!-- Need: Apexcharts -->
    <script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
    <script src="{{ asset('assets/admin/static/js/pages/dashboard.js') }}"></script>
</body>

</html>
