feat(cms): implement complete SysSiteCMS content management system
Initial implementation of the HomeSysPanel CMS built with Laravel 13.0. Includes complete admin panel, content management, user authentication, modular architecture for products/services/chatbot, and marketing tools. Key features: - User authentication with email verification and password reset - Role-based access control (Admin/User with granular permissions) - Content management (pages, news, FAQ, downloads, galleries, banners) - Contact management system with subjects and responses - Marketing tools (email campaigns, visitor analytics, social sharing) - Modular architecture (Products, Services, Chatbot modules) - AI Chatbot integration with OpenRouter.ai and LlamaCpp support - Visitor tracking with geolocation - SEO optimization with meta tags and Open Graph - Responsive design with Bootstrap 5 - Dark mode support - Maintenance mode - Feature request system
This commit is contained in:
Executable
+617
@@ -0,0 +1,617 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="pt-BR">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
||||
<title>SysSiteCMS - Admin - @yield('title', 'Dashboard')</title>
|
||||
|
||||
<!-- Custom fonts for this template-->
|
||||
<link href="https://fonts.googleapis.com/css?family=Nunito:200,200i,300,300i,400,400i,600,600i,700,700i,800,800i,900,900i" rel="stylesheet">
|
||||
|
||||
<!-- Custom styles for this template-->
|
||||
<link href="https://cdn.jsdelivr.net/npm/startbootstrap-sb-admin-2@4.1.4/css/sb-admin-2.min.css" rel="stylesheet">
|
||||
|
||||
<style>
|
||||
/* Estilos Polidos para o Modo Escuro (Dark Mode) */
|
||||
body.dark-mode {
|
||||
background-color: #1a1c23 !important;
|
||||
color: #ced4da;
|
||||
}
|
||||
body.dark-mode #content-wrapper,
|
||||
body.dark-mode .sticky-footer {
|
||||
background-color: #1a1c23 !important;
|
||||
}
|
||||
body.dark-mode .card {
|
||||
background-color: #24262d;
|
||||
border-color: #3a3b45;
|
||||
color: #ced4da;
|
||||
}
|
||||
body.dark-mode .card-header {
|
||||
background-color: #2d2f39;
|
||||
border-bottom-color: #3a3b45;
|
||||
color: #f8f9fc;
|
||||
}
|
||||
body.dark-mode .text-gray-800,
|
||||
body.dark-mode .h3,
|
||||
body.dark-mode .h4,
|
||||
body.dark-mode .h5,
|
||||
body.dark-mode .h6 {
|
||||
color: #f8f9fc !important;
|
||||
}
|
||||
body.dark-mode .text-gray-600 {
|
||||
color: #aab2ba !important;
|
||||
}
|
||||
body.dark-mode .bg-white {
|
||||
background-color: #24262d !important;
|
||||
}
|
||||
body.dark-mode .navbar {
|
||||
background-color: #24262d !important;
|
||||
border-bottom: 1px solid #3a3b45;
|
||||
}
|
||||
body.dark-mode .table {
|
||||
color: #ced4da;
|
||||
}
|
||||
body.dark-mode .table-bordered,
|
||||
body.dark-mode .table-bordered td,
|
||||
body.dark-mode .table-bordered th {
|
||||
border-color: #3a3b45;
|
||||
}
|
||||
body.dark-mode .table-hover tbody tr:hover {
|
||||
color: #ced4da;
|
||||
background-color: #2d2f39;
|
||||
}
|
||||
body.dark-mode .modal-content {
|
||||
background-color: #24262d;
|
||||
color: #ced4da;
|
||||
border-color: #3a3b45;
|
||||
}
|
||||
body.dark-mode .form-control {
|
||||
background-color: #1a1c23;
|
||||
border-color: #3a3b45;
|
||||
color: #ced4da;
|
||||
}
|
||||
body.dark-mode .form-control:focus {
|
||||
background-color: #1a1c23;
|
||||
border-color: #4e73df;
|
||||
color: #fff;
|
||||
}
|
||||
body.dark-mode .dropdown-menu {
|
||||
background-color: #24262d;
|
||||
border-color: #3a3b45;
|
||||
}
|
||||
body.dark-mode .dropdown-item {
|
||||
color: #ced4da;
|
||||
}
|
||||
body.dark-mode .dropdown-item:hover {
|
||||
background-color: #2d2f39;
|
||||
color: #fff;
|
||||
}
|
||||
body.dark-mode .dropdown-divider {
|
||||
border-top-color: #3a3b45;
|
||||
}
|
||||
body.dark-mode .sidebar-dark .sidebar-heading {
|
||||
color: rgba(255, 255, 255, 0.6);
|
||||
}
|
||||
body.dark-mode .bg-light {
|
||||
background-color: #2d2f39 !important;
|
||||
}
|
||||
body.dark-mode .border {
|
||||
border-color: #3a3b45 !important;
|
||||
}
|
||||
body.dark-mode hr {
|
||||
border-top-color: #3a3b45;
|
||||
}
|
||||
/* Ajuste para botões outline no dark mode */
|
||||
body.dark-mode .btn-light {
|
||||
background-color: #2d2f39;
|
||||
border-color: #3a3b45;
|
||||
color: #ced4da;
|
||||
}
|
||||
body.dark-mode .btn-light:hover {
|
||||
background-color: #3a3b45;
|
||||
color: #fff;
|
||||
}
|
||||
</style>
|
||||
|
||||
<!-- Bootstrap Icons (MIT License) -->
|
||||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/bootstrap-icons.min.css">
|
||||
|
||||
<style>
|
||||
/* SB Admin 2 overrides - replace Font Awesome arrows with CSS triangles */
|
||||
.sidebar .nav-item .nav-link[data-toggle="collapse"]::after {
|
||||
content: '' !important;
|
||||
font-family: none !important;
|
||||
display: inline-block !important;
|
||||
width: 0 !important;
|
||||
height: 0 !important;
|
||||
border-style: solid !important;
|
||||
border-width: 5px 5px 0 5px !important;
|
||||
border-color: rgba(255,255,255,0.6) transparent transparent transparent !important;
|
||||
float: right !important;
|
||||
transition: transform 0.2s ease-in-out !important;
|
||||
margin-top: 0.5rem !important;
|
||||
font-size: 0 !important;
|
||||
line-height: 0 !important;
|
||||
}
|
||||
.sidebar .nav-item .nav-link[data-toggle="collapse"][aria-expanded="true"]::after {
|
||||
transform: rotate(180deg) !important;
|
||||
}
|
||||
.sidebar .nav-item .collapse-inner::before,
|
||||
.sidebar .nav-item .collapse-inner::after {
|
||||
display: none !important;
|
||||
content: none !important;
|
||||
}
|
||||
/* Sidebar toggle button */
|
||||
#sidebarToggle::after {
|
||||
content: '' !important;
|
||||
font-family: none !important;
|
||||
display: none !important;
|
||||
}
|
||||
#sidebarToggle::before {
|
||||
content: '' !important;
|
||||
display: inline-block !important;
|
||||
width: 0 !important;
|
||||
height: 0 !important;
|
||||
border-style: solid !important;
|
||||
border-width: 8px 10px 8px 0 !important;
|
||||
border-color: transparent rgba(255,255,255,0.5) transparent transparent !important;
|
||||
}
|
||||
body.sidebar-toggled #sidebarToggle::before {
|
||||
border-width: 8px 0 8px 10px !important;
|
||||
border-color: transparent transparent transparent rgba(255,255,255,0.5) !important;
|
||||
}
|
||||
/* Remove any remaining FA pseudo-elements from SB Admin 2 */
|
||||
.sidebar .nav-item .nav-link::before {
|
||||
content: none !important;
|
||||
}
|
||||
.scroll-to-top i::before {
|
||||
content: '' !important;
|
||||
display: inline-block !important;
|
||||
width: 0 !important;
|
||||
height: 0 !important;
|
||||
border-style: solid !important;
|
||||
border-width: 0 6px 10px 6px !important;
|
||||
border-color: transparent transparent #fff transparent !important;
|
||||
}
|
||||
</style>
|
||||
|
||||
@stack('css')
|
||||
</head>
|
||||
|
||||
<body id="page-top" class="{{ (Auth::user()->preferences['theme'] ?? 'light') == 'dark' ? 'dark-mode' : '' }}">
|
||||
|
||||
<!-- Page Wrapper -->
|
||||
<div id="wrapper">
|
||||
|
||||
<!-- Sidebar -->
|
||||
<ul class="navbar-nav bg-gradient-primary sidebar sidebar-dark accordion" id="accordionSidebar">
|
||||
|
||||
<!-- Sidebar - Brand -->
|
||||
<a class="sidebar-brand d-flex align-items-center justify-content-center" href="{{ route('home') }}">
|
||||
<div class="sidebar-brand-icon rotate-n-15">
|
||||
<i class="bi bi-cpu"></i>
|
||||
</div>
|
||||
<div class="sidebar-brand-text mx-3">SysSiteCMS Admin</div>
|
||||
</a>
|
||||
|
||||
<!-- Divider -->
|
||||
<hr class="sidebar-divider my-0">
|
||||
|
||||
<!-- Nav Item - Dashboard -->
|
||||
<li class="nav-item {{ request()->routeIs('home') ? 'active' : '' }}">
|
||||
<a class="nav-link" href="{{ route('home') }}">
|
||||
<i class="bi bi-speedometer2"></i>
|
||||
<span>Dashboard</span></a>
|
||||
</li>
|
||||
|
||||
<!-- Divider -->
|
||||
<hr class="sidebar-divider">
|
||||
|
||||
@php
|
||||
$currentUser = Auth::user();
|
||||
$isAdmin = $currentUser->isAdmin();
|
||||
@endphp
|
||||
|
||||
<!-- Heading -->
|
||||
<div class="sidebar-heading">
|
||||
Gerenciamento
|
||||
</div>
|
||||
|
||||
@if($isAdmin)
|
||||
<!-- Nav Item - Usuários (Admin only) -->
|
||||
<li class="nav-item {{ request()->routeIs('admin.users.*') ? 'active' : '' }}">
|
||||
<a class="nav-link" href="{{ route('admin.users.index') }}">
|
||||
<i class="bi bi-people"></i>
|
||||
<span>Administração de Usuários</span></a>
|
||||
</li>
|
||||
<!-- Nav Item - Tipos de Usuário (Admin only) -->
|
||||
<li class="nav-item {{ request()->routeIs('admin.user-types.*') ? 'active' : '' }}">
|
||||
<a class="nav-link" href="{{ route('admin.user-types.index') }}">
|
||||
<i class="bi bi-person-badge"></i>
|
||||
<span>Tipos de Usuário</span></a>
|
||||
</li>
|
||||
@endif
|
||||
|
||||
@if($isAdmin || $currentUser->hasPermission('contacts'))
|
||||
<!-- Nav Item - Contatos -->
|
||||
<li class="nav-item {{ request()->routeIs('admin.contacts.*') ? 'active' : '' }}">
|
||||
<a class="nav-link" href="{{ route('admin.contacts.index') }}">
|
||||
<i class="bi bi-envelope"></i>
|
||||
<span>Contatos</span></a>
|
||||
</li>
|
||||
@endif
|
||||
|
||||
@if($isAdmin || $currentUser->hasPermission('subjects'))
|
||||
<!-- Nav Item - Assuntos -->
|
||||
<li class="nav-item {{ request()->routeIs('admin.subjects.*') ? 'active' : '' }}">
|
||||
<a class="nav-link" href="{{ route('admin.subjects.index') }}">
|
||||
<i class="bi bi-list"></i>
|
||||
<span>Assuntos</span></a>
|
||||
</li>
|
||||
@endif
|
||||
|
||||
@if(module_enabled('services') && ($isAdmin || $currentUser->hasPermission('services')))
|
||||
<!-- Nav Item - Serviços (Services Module) -->
|
||||
<li class="nav-item {{ request()->routeIs('admin.services.*') ? 'active' : '' }}">
|
||||
<a class="nav-link" href="{{ route('admin.services.index') }}">
|
||||
<i class="bi bi-bell"></i>
|
||||
<span>Gerenciar Serviços</span></a>
|
||||
</li>
|
||||
@endif
|
||||
|
||||
@if($isAdmin || $currentUser->hasPermission('faqs'))
|
||||
<!-- Nav Item - FAQ -->
|
||||
<li class="nav-item {{ request()->routeIs('admin.faqs.*') ? 'active' : '' }}">
|
||||
<a class="nav-link" href="{{ route('admin.faqs.index') }}">
|
||||
<i class="bi bi-question-circle"></i>
|
||||
<span>Gerenciar FAQ</span></a>
|
||||
</li>
|
||||
@endif
|
||||
|
||||
@if($isAdmin || $currentUser->hasPermission('news'))
|
||||
<!-- Nav Item - Notícias -->
|
||||
<li class="nav-item {{ request()->routeIs('admin.news.*') ? 'active' : '' }}">
|
||||
<a class="nav-link" href="{{ route('admin.news.index') }}">
|
||||
<i class="bi bi-newspaper"></i>
|
||||
<span>Gerenciar Notícias</span></a>
|
||||
</li>
|
||||
@endif
|
||||
|
||||
@if($isAdmin || $currentUser->hasPermission('downloads'))
|
||||
<!-- Nav Item - Downloads -->
|
||||
<li class="nav-item {{ request()->routeIs('admin.downloads.*') ? 'active' : '' }}">
|
||||
<a class="nav-link" href="{{ route('admin.downloads.index') }}">
|
||||
<i class="bi bi-download"></i>
|
||||
<span>Gerenciar Downloads</span></a>
|
||||
</li>
|
||||
@endif
|
||||
|
||||
@if(module_enabled('products') && ($isAdmin || $currentUser->hasPermission('products')))
|
||||
<!-- Nav Item - Produtos (Products Module) -->
|
||||
<li class="nav-item {{ request()->is('admin/produtos*') ? 'active' : '' }}">
|
||||
<a class="nav-link {{ request()->is('admin/produtos*') ? '' : 'collapsed' }}" href="#" data-toggle="collapse" data-target="#collapseProducts"
|
||||
aria-expanded="{{ request()->is('admin/produtos*') ? 'true' : 'false' }}" aria-controls="collapseProducts">
|
||||
<i class="bi bi-box-seam"></i>
|
||||
<span>Gerenciar Produtos</span>
|
||||
</a>
|
||||
<div id="collapseProducts" class="collapse {{ request()->is('admin/produtos*') ? 'show' : '' }}" aria-labelledby="headingProducts" data-parent="#accordionSidebar">
|
||||
<div class="bg-white py-2 collapse-inner rounded">
|
||||
<h6 class="collapse-header">Opções:</h6>
|
||||
<a class="collapse-inner-item px-3 text-dark text-decoration-none d-block py-1 {{ request()->routeIs('admin.products.index') ? 'font-weight-bold text-primary' : '' }}" href="{{ route('admin.products.index') }}">Lista de Produtos</a>
|
||||
<a class="collapse-inner-item px-3 text-dark text-decoration-none d-block py-1 {{ request()->routeIs('admin.categories.index') ? 'font-weight-bold text-primary' : '' }}" href="{{ route('admin.categories.index') }}">Categorias</a>
|
||||
</div>
|
||||
</div>
|
||||
</li>
|
||||
@endif
|
||||
|
||||
@if($isAdmin || $currentUser->hasPermission('galleries'))
|
||||
<!-- Nav Item - Galerias -->
|
||||
<li class="nav-item {{ request()->routeIs('admin.galleries.*') || request()->routeIs('admin.gallery-categories.*') ? 'active' : '' }}">
|
||||
<a class="nav-link {{ request()->routeIs('admin.galleries.*') || request()->routeIs('admin.gallery-categories.*') ? '' : 'collapsed' }}" href="#" data-toggle="collapse" data-target="#collapseGalleries"
|
||||
aria-expanded="{{ request()->routeIs('admin.galleries.*') || request()->routeIs('admin.gallery-categories.*') ? 'true' : 'false' }}" aria-controls="collapseGalleries">
|
||||
<i class="bi bi-images"></i>
|
||||
<span>Galerias</span>
|
||||
</a>
|
||||
<div id="collapseGalleries" class="collapse {{ request()->routeIs('admin.galleries.*') || request()->routeIs('admin.gallery-categories.*') ? 'show' : '' }}" aria-labelledby="headingGalleries" data-parent="#accordionSidebar">
|
||||
<div class="bg-white py-2 collapse-inner rounded">
|
||||
<a class="collapse-inner-item px-3 text-dark text-decoration-none d-block py-1 {{ request()->routeIs('admin.galleries.*') ? 'font-weight-bold text-primary' : '' }}" href="{{ route('admin.galleries.index') }}">Galerias de Fotos</a>
|
||||
<a class="collapse-inner-item px-3 text-dark text-decoration-none d-block py-1 {{ request()->routeIs('admin.gallery-categories.*') ? 'font-weight-bold text-primary' : '' }}" href="{{ route('admin.gallery-categories.index') }}">Categorias</a>
|
||||
</div>
|
||||
</div>
|
||||
</li>
|
||||
@endif
|
||||
|
||||
@if($isAdmin || $currentUser->hasPermission('pages'))
|
||||
<!-- Nav Item - Páginas -->
|
||||
<li class="nav-item {{ request()->routeIs('admin.pages.*') ? 'active' : '' }}">
|
||||
<a class="nav-link" href="{{ route('admin.pages.index') }}">
|
||||
<i class="bi bi-file-text"></i>
|
||||
<span>Gerenciar Páginas</span></a>
|
||||
</li>
|
||||
@endif
|
||||
|
||||
@if($isAdmin || $currentUser->hasPermission('marketing'))
|
||||
<!-- Nav Item - Marketing -->
|
||||
<li class="nav-item {{ request()->is('admin/marketing*') ? 'active' : '' }}">
|
||||
<a class="nav-link {{ request()->is('admin/marketing*') ? '' : 'collapsed' }}" href="#" data-toggle="collapse" data-target="#collapseMarketing"
|
||||
aria-expanded="{{ request()->is('admin/marketing*') ? 'true' : 'false' }}" aria-controls="collapseMarketing">
|
||||
<i class="bi bi-megaphone text-warning"></i>
|
||||
<span class="text-warning font-weight-bold">Marketing</span>
|
||||
</a>
|
||||
<div id="collapseMarketing" class="collapse {{ request()->is('admin/marketing*') ? 'show' : '' }}" aria-labelledby="headingMarketing" data-parent="#accordionSidebar">
|
||||
<div class="bg-white py-2 collapse-inner rounded">
|
||||
<h6 class="collapse-header">Ferramentas:</h6>
|
||||
<a class="collapse-inner-item px-3 text-dark text-decoration-none d-block py-1 {{ request()->routeIs('admin.marketing.index') ? 'font-weight-bold text-primary' : '' }}" href="{{ route('admin.marketing.index') }}">Dashboard</a>
|
||||
<a class="collapse-inner-item px-3 text-dark text-decoration-none d-block py-1 {{ request()->routeIs('admin.marketing.banners.*') ? 'font-weight-bold text-primary' : '' }}" href="{{ route('admin.marketing.banners.index') }}">Gerenciar Banners</a>
|
||||
@if(module_enabled('products'))
|
||||
<a class="collapse-inner-item px-3 text-dark text-decoration-none d-block py-1 {{ request()->routeIs('admin.marketing.promote.products') ? 'font-weight-bold text-primary' : '' }}" href="{{ route('admin.marketing.promote.products') }}">Promover Produtos</a>
|
||||
@endif
|
||||
@if(module_enabled('services'))
|
||||
<a class="collapse-inner-item px-3 text-dark text-decoration-none d-block py-1 {{ request()->routeIs('admin.marketing.promote.services') ? 'font-weight-bold text-primary' : '' }}" href="{{ route('admin.marketing.promote.services') }}">Promover Serviços</a>
|
||||
@endif
|
||||
<a class="collapse-inner-item px-3 text-dark text-decoration-none d-block py-1 {{ request()->routeIs('admin.marketing.email') ? 'font-weight-bold text-primary' : '' }}" href="{{ route('admin.marketing.email') }}">E-mail Marketing</a>
|
||||
<a class="collapse-inner-item px-3 text-dark text-decoration-none d-block py-1 {{ request()->routeIs('admin.marketing.analytics') ? 'font-weight-bold text-primary' : '' }}" href="{{ route('admin.marketing.analytics') }}">Análise de Visitantes</a>
|
||||
<hr class="my-1">
|
||||
<a class="collapse-inner-item px-3 text-dark text-decoration-none d-block py-1" href="https://syscrm.syspanel.com.br" target="_blank">
|
||||
<i class="bi bi-people text-primary me-1"></i> SysCRM
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</li>
|
||||
@endif
|
||||
|
||||
@if(module_enabled('chatbot') && ($isAdmin || $currentUser->hasPermission('chatbot')))
|
||||
<!-- Nav Item - Chatbot (Chatbot Module) -->
|
||||
<li class="nav-item {{ request()->routeIs('admin.chatbot.*') ? 'active' : '' }}">
|
||||
<a class="nav-link {{ request()->routeIs('admin.chatbot.*') ? '' : 'collapsed' }}" href="#" data-toggle="collapse" data-target="#collapseChatbot"
|
||||
aria-expanded="{{ request()->routeIs('admin.chatbot.*') ? 'true' : 'false' }}" aria-controls="collapseChatbot">
|
||||
<i class="bi bi-robot"></i>
|
||||
<span>Chatbot</span>
|
||||
</a>
|
||||
<div id="collapseChatbot" class="collapse {{ request()->routeIs('admin.chatbot.*') ? 'show' : '' }}" aria-labelledby="headingChatbot" data-parent="#accordionSidebar">
|
||||
<div class="bg-white py-2 collapse-inner rounded">
|
||||
<h6 class="collapse-header">Opções:</h6>
|
||||
<a class="collapse-inner-item px-3 text-dark text-decoration-none d-block py-1 {{ request()->routeIs('admin.chatbot.conversations') ? 'font-weight-bold text-primary' : '' }}" href="{{ route('admin.chatbot.conversations') }}">Conversas</a>
|
||||
<a class="collapse-inner-item px-3 text-dark text-decoration-none d-block py-1 {{ request()->routeIs('admin.chatbot.index') ? 'font-weight-bold text-primary' : '' }}" href="{{ route('admin.chatbot.index') }}">Base de Conhecimento</a>
|
||||
<a class="collapse-inner-item px-3 text-dark text-decoration-none d-block py-1 {{ request()->routeIs('admin.chatbot.rules.*') ? 'font-weight-bold text-primary' : '' }}" href="{{ route('admin.chatbot.rules.index') }}">
|
||||
<i class="bi bi-shield-lock"></i> Regras da IA
|
||||
</a>
|
||||
<a class="collapse-inner-item px-3 text-dark text-decoration-none d-block py-1 {{ request()->routeIs('admin.chatbot.settings') ? 'font-weight-bold text-primary' : '' }}" href="{{ route('admin.chatbot.settings') }}">Configurações</a>
|
||||
</div>
|
||||
</div>
|
||||
</li>
|
||||
@endif
|
||||
|
||||
@if($isAdmin || $currentUser->hasPermission('settings'))
|
||||
<!-- Nav Item - Dados da Empresa -->
|
||||
<li class="nav-item {{ request()->routeIs('admin.settings.index') ? 'active' : '' }}">
|
||||
<a class="nav-link" href="{{ route('admin.settings.index') }}">
|
||||
<i class="bi bi-building"></i>
|
||||
<span>Dados da Empresa</span></a>
|
||||
</li>
|
||||
@endif
|
||||
|
||||
<!-- Divider -->
|
||||
<hr class="sidebar-divider">
|
||||
|
||||
<!-- Heading -->
|
||||
<div class="sidebar-heading">
|
||||
Oportunidade
|
||||
</div>
|
||||
|
||||
<!-- Nav Item - ERP Syspanel -->
|
||||
<li class="nav-item {{ request()->routeIs('admin.erp.ad') ? 'active' : '' }}">
|
||||
<a class="nav-link" href="{{ route('admin.erp.ad') }}">
|
||||
<i class="bi bi-rocket text-warning"></i>
|
||||
<span class="font-weight-bold text-warning">ERP Syspanel</span>
|
||||
<span class="badge badge-danger ml-1">TOP</span>
|
||||
</a>
|
||||
</li>
|
||||
|
||||
<!-- Divider -->
|
||||
<hr class="sidebar-divider">
|
||||
|
||||
<!-- Heading -->
|
||||
<div class="sidebar-heading">
|
||||
Interface
|
||||
</div>
|
||||
|
||||
<!-- Nav Item - Pages Collapse Menu -->
|
||||
<li class="nav-item {{ request()->routeIs('profile.*') ? 'active' : '' }}">
|
||||
<a class="nav-link {{ request()->routeIs('profile.*') ? '' : 'collapsed' }}" href="#" data-toggle="collapse" data-target="#collapseTwo"
|
||||
aria-expanded="{{ request()->routeIs('profile.*') ? 'true' : 'false' }}" aria-controls="collapseTwo">
|
||||
<i class="bi bi-gear"></i>
|
||||
<span>Configurações</span>
|
||||
</a>
|
||||
<div id="collapseTwo" class="collapse {{ request()->routeIs('profile.*') ? 'show' : '' }}" aria-labelledby="headingTwo" data-parent="#accordionSidebar">
|
||||
<div class="bg-white py-2 collapse-inner rounded">
|
||||
<h6 class="collapse-header">Opções:</h6>
|
||||
<a class="collapse-inner-item px-3 text-dark text-decoration-none d-block py-1 {{ request()->routeIs('profile.edit') ? 'font-weight-bold text-primary' : '' }}" href="{{ route('profile.edit') }}">Perfil</a>
|
||||
<a class="collapse-inner-item px-3 text-dark text-decoration-none d-block py-1 {{ request()->routeIs('profile.preferences') ? 'font-weight-bold text-primary' : '' }}" href="{{ route('profile.preferences') }}">Preferências</a>
|
||||
</div>
|
||||
</div>
|
||||
</li>
|
||||
|
||||
<!-- Nav Item - Manual de Uso -->
|
||||
<li class="nav-item {{ request()->routeIs('admin.manual') ? 'active' : '' }}">
|
||||
<a class="nav-link" href="{{ route('admin.manual') }}">
|
||||
<i class="bi bi-book"></i>
|
||||
<span>Manual de Uso</span>
|
||||
</a>
|
||||
</li>
|
||||
|
||||
<!-- Divider -->
|
||||
<hr class="sidebar-divider d-none d-md-block">
|
||||
|
||||
<!-- Sidebar Toggler (Sidebar) -->
|
||||
<div class="text-center d-none d-md-inline">
|
||||
<button class="rounded-circle border-0" id="sidebarToggle"></button>
|
||||
</div>
|
||||
|
||||
</ul>
|
||||
<!-- End of Sidebar -->
|
||||
|
||||
<!-- Content Wrapper -->
|
||||
<div id="content-wrapper" class="d-flex flex-column">
|
||||
|
||||
<!-- Main Content -->
|
||||
<div id="content">
|
||||
|
||||
<!-- Topbar -->
|
||||
<nav class="navbar navbar-expand navbar-light bg-white topbar mb-4 static-top shadow">
|
||||
|
||||
<!-- Sidebar Toggle (Topbar) -->
|
||||
<button id="sidebarToggleTop" class="btn btn-link d-md-none rounded-circle me-3">
|
||||
<i class="fa fa-bars"></i>
|
||||
</button>
|
||||
|
||||
<!-- Topbar Navbar -->
|
||||
<ul class="navbar-nav ml-auto">
|
||||
|
||||
<!-- Nav Item - Alerts -->
|
||||
<li class="nav-item dropdown no-arrow mx-1">
|
||||
<a class="nav-link dropdown-toggle" href="#" id="alertsDropdown" role="button"
|
||||
data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
|
||||
<i class="bi bi-bell"></i>
|
||||
<!-- Counter - Alerts -->
|
||||
@if(Auth::user()->unreadNotifications->count() > 0)
|
||||
<span class="badge badge-danger badge-counter">{{ Auth::user()->unreadNotifications->count() }}</span>
|
||||
@endif
|
||||
</a>
|
||||
<!-- Dropdown - Alerts -->
|
||||
<div class="dropdown-list dropdown-menu dropdown-menu-right shadow animated--grow-in"
|
||||
aria-labelledby="alertsDropdown">
|
||||
<h6 class="dropdown-header">
|
||||
Centro de Notificações
|
||||
</h6>
|
||||
@forelse(Auth::user()->unreadNotifications as $notification)
|
||||
<a class="dropdown-item d-flex align-items-center" href="{{ route('admin.notifications.read', $notification->id) }}">
|
||||
<div class="mr-3">
|
||||
<div class="icon-circle bg-primary">
|
||||
<i class="bi bi-envelope text-white"></i>
|
||||
</div>
|
||||
</div>
|
||||
<div>
|
||||
<div class="small text-gray-500">{{ $notification->created_at->format('d/m/Y H:i') }}</div>
|
||||
<span class="font-weight-bold">{{ $notification->data['message'] }}</span>
|
||||
<div class="small text-muted">{{ $notification->data['name'] }} ({{ $notification->data['email'] }})</div>
|
||||
</div>
|
||||
</a>
|
||||
@empty
|
||||
<a class="dropdown-item text-center small text-gray-500" href="#">Nenhuma notificação nova</a>
|
||||
@endforelse
|
||||
|
||||
@if(Auth::user()->notifications->count() > 0)
|
||||
<a class="dropdown-item text-center small text-gray-500" href="{{ route('admin.notifications.clear') }}">Marcar todas como lidas</a>
|
||||
@endif
|
||||
</div>
|
||||
</li>
|
||||
|
||||
<div class="topbar-divider d-none d-sm-block"></div>
|
||||
|
||||
<!-- Nav Item - User Information -->
|
||||
<li class="nav-item dropdown no-arrow">
|
||||
<a class="nav-link dropdown-toggle" href="#" id="userDropdown" role="button"
|
||||
data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
|
||||
<span class="mr-2 d-none d-lg-inline text-gray-600 small">{{ Auth::user()->name }}</span>
|
||||
@if(Auth::user()->avatar)
|
||||
<img class="img-profile rounded-circle" src="{{ asset('storage/' . Auth::user()->avatar) }}">
|
||||
@else
|
||||
<img class="img-profile rounded-circle" src="https://ui-avatars.com/api/?name={{ urlencode(Auth::user()->name) }}&background=4e73df&color=fff">
|
||||
@endif
|
||||
</a>
|
||||
<!-- Dropdown - User Information -->
|
||||
<div class="dropdown-menu dropdown-menu-right shadow animated--grow-in"
|
||||
aria-labelledby="userDropdown">
|
||||
<a class="dropdown-item" href="{{ route('profile.edit') }}">
|
||||
<i class="bi bi-person me-2 text-gray-400"></i>
|
||||
Meu Perfil
|
||||
</a>
|
||||
<a class="dropdown-item" href="{{ route('profile.preferences') }}">
|
||||
<i class="bi bi-gears me-2 text-gray-400"></i>
|
||||
Preferências
|
||||
</a>
|
||||
<div class="dropdown-divider"></div>
|
||||
<a class="dropdown-item" href="{{ route('index') }}">
|
||||
<i class="bi bi-box-arrow-up-right me-2 text-gray-400"></i>
|
||||
Ver Site
|
||||
</a>
|
||||
<div class="dropdown-divider"></div>
|
||||
<a class="dropdown-item text-danger" href="{{ route('logout') }}"
|
||||
onclick="event.preventDefault(); document.getElementById('logout-form').submit();">
|
||||
<i class="bi bi-box-arrow-right me-2 text-gray-400"></i>
|
||||
Sair
|
||||
</a>
|
||||
</div>
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
|
||||
</nav>
|
||||
<!-- End of Topbar -->
|
||||
|
||||
<!-- Begin Page Content -->
|
||||
<div class="container-fluid">
|
||||
@yield('content')
|
||||
</div>
|
||||
<!-- /.container-fluid -->
|
||||
|
||||
</div>
|
||||
<!-- End of Main Content -->
|
||||
|
||||
<!-- Footer -->
|
||||
<footer class="sticky-footer bg-white">
|
||||
<div class="container my-auto">
|
||||
<div class="copyright text-center my-auto">
|
||||
<span>Copyright © {{ $company->name ?? 'Syspanel' }} {{ date('Y') }}</span>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
<!-- End of Footer -->
|
||||
|
||||
</div>
|
||||
<!-- End of Content Wrapper -->
|
||||
|
||||
</div>
|
||||
<!-- End of Page Wrapper -->
|
||||
|
||||
<!-- Scroll to Top Button-->
|
||||
<a class="scroll-to-top rounded" href="#page-top">
|
||||
<i class="bi bi-chevron-up"></i>
|
||||
</a>
|
||||
|
||||
<!-- Bootstrap core JavaScript-->
|
||||
<script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
|
||||
<script src="https://cdn.jsdelivr.net/npm/bootstrap@4.6.2/dist/js/bootstrap.bundle.min.js"></script>
|
||||
|
||||
<!-- Core plugin JavaScript-->
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery-easing/1.4.1/jquery.easing.min.js"></script>
|
||||
|
||||
<!-- Custom scripts for all pages-->
|
||||
<script src="https://cdn.jsdelivr.net/npm/startbootstrap-sb-admin-2@4.1.4/js/sb-admin-2.min.js"></script>
|
||||
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
// Password Toggle
|
||||
$(document).on('click', '.toggle-password', function() {
|
||||
const input = $(this).closest('.input-group').find('input');
|
||||
const icon = $(this).find('i');
|
||||
if (input.attr('type') === 'password') {
|
||||
input.attr('type', 'text');
|
||||
icon.removeClass('fa-eye bi-eye').addClass('fa-eye-slash bi-eye-slash');
|
||||
} else {
|
||||
input.attr('type', 'password');
|
||||
icon.removeClass('fa-eye-slash bi-eye-slash').addClass('fa-eye bi-eye');
|
||||
}
|
||||
});
|
||||
});
|
||||
</script>
|
||||
|
||||
@stack('js')
|
||||
|
||||
<form id="logout-form" action="{{ route('logout') }}" method="POST" class="d-none">
|
||||
@csrf
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
||||
Executable
+630
@@ -0,0 +1,630 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="pt-BR">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<meta name="csrf-token" content="{{ csrf_token() }}">
|
||||
|
||||
<!-- SEO Dinâmico -->
|
||||
<title>@yield('title', $company->name){{ \App\Models\Setting::get('seo_title_suffix', ' - SysSiteCMS') }}</title>
|
||||
<meta name="description" content="@yield('meta_description', \App\Models\Setting::get('seo_description_default', 'Especialistas em manutenção de computadores e notebooks.'))">
|
||||
@hasSection('meta_keywords')<meta name="keywords" content="@yield('meta_keywords')">@endif
|
||||
<link rel="canonical" href="@yield('canonical', request()->url())">
|
||||
|
||||
<!-- Open Graph / Facebook -->
|
||||
<meta property="og:type" content="website">
|
||||
<meta property="og:url" content="{{ request()->url() }}">
|
||||
<meta property="og:title" content="@yield('og_title', View::getSection('title'))">
|
||||
<meta property="og:description" content="@yield('og_description', View::getSection('meta_description'))">
|
||||
<meta property="og:image" content="@yield('og_image', \App\Models\Setting::get('seo_og_image_default'))">
|
||||
|
||||
<!-- Scripts do Head (Analytics, etc) -->
|
||||
{!! \App\Models\Setting::get('scripts_head_custom') !!}
|
||||
@if($gaId = \App\Models\Setting::get('scripts_google_analytics'))
|
||||
<!-- Google tag (gtag.js) -->
|
||||
<script async src="https://www.googletagmanager.com/gtag/js?id={{ $gaId }}"></script>
|
||||
<script>
|
||||
window.dataLayer = window.dataLayer || [];
|
||||
function gtag(){dataLayer.push(arguments);}
|
||||
gtag('js', new Date());
|
||||
gtag('config', '{{ $gaId }}');
|
||||
</script>
|
||||
@endif
|
||||
|
||||
<!-- Fonts -->
|
||||
|
||||
<!-- Bootstrap 5.3 CSS (CDN para carregamento rápido no framework) -->
|
||||
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" rel="stylesheet">
|
||||
|
||||
<!-- Bootstrap Icons -->
|
||||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/bootstrap-icons.min.css">
|
||||
|
||||
|
||||
@vite(['resources/css/app.css', 'resources/js/app.js'])
|
||||
|
||||
<style>
|
||||
:root {
|
||||
--primary-color: #0d6efd;
|
||||
--secondary-color: #6c757d;
|
||||
--dark-color: #212529;
|
||||
--light-color: #f8f9fa;
|
||||
--accent-color: #ffc107;
|
||||
}
|
||||
|
||||
body {
|
||||
font-family: 'Inter', 'Segoe UI', Roboto, sans-serif;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
min-height: 100vh;
|
||||
color: #333;
|
||||
}
|
||||
|
||||
main {
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
/* Navbar Enhancements */
|
||||
.navbar {
|
||||
transition: all 0.3s ease;
|
||||
padding: 15px 0;
|
||||
}
|
||||
|
||||
.navbar.scrolled {
|
||||
padding: 10px 0;
|
||||
background: rgba(255, 255, 255, 0.95) !important;
|
||||
backdrop-filter: blur(10px);
|
||||
}
|
||||
|
||||
.navbar-brand {
|
||||
font-weight: 800;
|
||||
letter-spacing: -0.5px;
|
||||
}
|
||||
|
||||
.nav-link {
|
||||
font-weight: 500;
|
||||
color: #444 !important;
|
||||
transition: color 0.3s ease;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.nav-link:hover, .nav-link.active {
|
||||
color: var(--primary-color) !important;
|
||||
}
|
||||
|
||||
.nav-link.active::after {
|
||||
content: '';
|
||||
position: absolute;
|
||||
bottom: 0;
|
||||
left: 1rem;
|
||||
right: 1rem;
|
||||
height: 2px;
|
||||
background: var(--primary-color);
|
||||
border-radius: 2px;
|
||||
}
|
||||
|
||||
/* Global Animations */
|
||||
@keyframes fadeInUp {
|
||||
from { opacity: 0; transform: translateY(30px); }
|
||||
to { opacity: 1; transform: translateY(0); }
|
||||
}
|
||||
|
||||
.animate-up {
|
||||
animation: fadeInUp 0.8s ease forwards;
|
||||
}
|
||||
|
||||
@keyframes pulse {
|
||||
0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(13, 110, 253, 0.4); }
|
||||
70% { transform: scale(1.05); box-shadow: 0 0 0 10px rgba(13, 110, 253, 0); }
|
||||
100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(13, 110, 253, 0); }
|
||||
}
|
||||
|
||||
.pulse-animation {
|
||||
animation: pulse 2s infinite;
|
||||
}
|
||||
|
||||
/* Footer Modernization */
|
||||
footer {
|
||||
background-color: #1a1d20;
|
||||
color: #adb5bd;
|
||||
padding: 80px 0 30px;
|
||||
border-top: 5px solid var(--primary-color);
|
||||
}
|
||||
|
||||
footer h5 {
|
||||
color: white;
|
||||
font-weight: 700;
|
||||
margin-bottom: 25px;
|
||||
}
|
||||
|
||||
footer a {
|
||||
transition: all 0.3s ease;
|
||||
}
|
||||
|
||||
footer a:hover {
|
||||
color: white !important;
|
||||
padding-left: 5px;
|
||||
}
|
||||
|
||||
.social-icons a {
|
||||
width: 40px;
|
||||
height: 40px;
|
||||
background: rgba(255,255,255,0.05);
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
border-radius: 50%;
|
||||
margin-right: 10px;
|
||||
font-size: 1.2rem;
|
||||
}
|
||||
|
||||
.social-icons a:hover {
|
||||
background: var(--primary-color);
|
||||
transform: translateY(-3px);
|
||||
padding-left: 0;
|
||||
}
|
||||
|
||||
/* Botão Flutuante do WhatsApp */
|
||||
.whatsapp-float {
|
||||
position: fixed;
|
||||
width: 60px;
|
||||
height: 60px;
|
||||
bottom: 90px;
|
||||
right: 33px;
|
||||
background-color: #25d366;
|
||||
color: #FFF;
|
||||
border-radius: 50px;
|
||||
text-align: center;
|
||||
font-size: 30px;
|
||||
box-shadow: 0 10px 25px rgba(37, 211, 102, 0.3);
|
||||
z-index: 1000;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
text-decoration: none;
|
||||
transition: all 0.3s ease;
|
||||
}
|
||||
.whatsapp-float:hover {
|
||||
background-color: #128c7e;
|
||||
color: #FFF;
|
||||
transform: scale(1.1) rotate(15deg);
|
||||
}
|
||||
.map-responsive {
|
||||
position: relative;
|
||||
width: 100%;
|
||||
padding-bottom: 56.25%;
|
||||
overflow: hidden;
|
||||
}
|
||||
.map-responsive iframe {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100% !important;
|
||||
height: 100% !important;
|
||||
border: 0;
|
||||
}
|
||||
|
||||
/* Dropdown Submenu */
|
||||
.dropdown-submenu {
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.dropdown-submenu .dropdown-menu {
|
||||
top: 0;
|
||||
left: 100%;
|
||||
margin-top: -1px;
|
||||
margin-left: 0.1rem;
|
||||
border-radius: 0 0.375rem 0.375rem 0.375rem;
|
||||
}
|
||||
|
||||
.dropdown-submenu .dropdown-menu.show {
|
||||
display: block;
|
||||
}
|
||||
|
||||
.dropdown-item.dropdown-toggle::after {
|
||||
display: inline-block;
|
||||
margin-left: 0.255em;
|
||||
vertical-align: 0.255em;
|
||||
content: "";
|
||||
border-top: 0.3em solid;
|
||||
border-right: 0.3em solid transparent;
|
||||
border-bottom: 0;
|
||||
border-left: 0.3em solid transparent;
|
||||
float: right;
|
||||
}
|
||||
|
||||
/* Mobile Submenu */
|
||||
@media (max-width: 991.98px) {
|
||||
.dropdown-submenu .dropdown-menu {
|
||||
position: static;
|
||||
margin-left: 0;
|
||||
margin-top: 0;
|
||||
padding-left: 1.5rem;
|
||||
border: none;
|
||||
background: transparent;
|
||||
box-shadow: none;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 480px) {
|
||||
.whatsapp-float {
|
||||
bottom: 85px;
|
||||
right: 20px;
|
||||
width: 54px;
|
||||
height: 54px;
|
||||
font-size: 26px;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
@stack('css')
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<!-- Navbar -->
|
||||
<nav class="navbar navbar-expand-lg navbar-light bg-white shadow-sm sticky-top">
|
||||
<div class="container">
|
||||
<!-- Logo -->
|
||||
<a class="navbar-brand d-flex align-items-center" href="{{ route('index') }}">
|
||||
<div class="bg-primary text-white rounded-circle d-flex align-items-center justify-content-center me-2" style="width: 45px; height: 45px; box-shadow: 0 4px 10px rgba(13, 110, 253, 0.3);">
|
||||
<i class="bi bi-cpu"></i>
|
||||
</div>
|
||||
<div class="d-flex flex-column">
|
||||
<span class="fw-bold fs-4 text-primary lh-1">{{ $company->name }}</span>
|
||||
<small class="text-muted fw-normal" style="font-size: 0.7rem; letter-spacing: 1px;">SISTEMAS DE GESTÃO</small>
|
||||
</div>
|
||||
</a>
|
||||
|
||||
<!-- Botão do menu para celular -->
|
||||
<button class="navbar-toggler border-0 shadow-none" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNav">
|
||||
<span class="navbar-toggler-icon"></span>
|
||||
</button>
|
||||
|
||||
<!-- Menu de links -->
|
||||
<div class="collapse navbar-collapse" id="navbarNav">
|
||||
<ul class="navbar-nav ms-auto py-3 py-lg-0 align-items-center">
|
||||
@if(in_array('index', $activePages))
|
||||
<li class="nav-item">
|
||||
<a class="nav-link px-3 {{ request()->routeIs('index') ? 'active' : '' }}" href="{{ route('index') }}">Início</a>
|
||||
</li>
|
||||
@endif
|
||||
|
||||
@if(in_array('about', $activePages))
|
||||
<li class="nav-item">
|
||||
<a class="nav-link px-3 {{ request()->routeIs('about') ? 'active' : '' }}" href="{{ route('about') }}">Sobre</a>
|
||||
</li>
|
||||
@endif
|
||||
|
||||
@if(in_array('servicos', $activePages))
|
||||
<li class="nav-item">
|
||||
<a class="nav-link px-3 {{ request()->routeIs('servicos') ? 'active' : '' }}" href="{{ route('servicos') }}">Serviços</a>
|
||||
</li>
|
||||
@endif
|
||||
|
||||
@if(in_array('servidores-linux', $activePages))
|
||||
<li class="nav-item">
|
||||
<a class="nav-link px-3 {{ request()->routeIs('servidores-linux') ? 'active' : '' }}" href="{{ route('servidores-linux') }}">Linux</a>
|
||||
</li>
|
||||
@endif
|
||||
|
||||
@if(in_array('assistentes-digitais-com-ia', $activePages))
|
||||
<li class="nav-item">
|
||||
<a class="nav-link px-3 {{ request()->routeIs('assistentes-digitais-ia') ? 'active' : '' }}" href="{{ route('assistentes-digitais-ia') }}">IA</a>
|
||||
</li>
|
||||
@endif
|
||||
|
||||
@if(in_array('erp', $activePages))
|
||||
<li class="nav-item">
|
||||
<a class="nav-link px-3 {{ request()->routeIs('erp') ? 'active' : '' }}" href="{{ route('erp') }}">ERP</a>
|
||||
</li>
|
||||
@endif
|
||||
|
||||
@if(in_array('fluxo-de-caixa-pro', $activePages))
|
||||
<li class="nav-item">
|
||||
<a class="nav-link px-3 {{ request()->routeIs('fluxo-de-caixa-pro') ? 'active' : '' }}" href="{{ route('fluxo-de-caixa-pro') }}">Fluxo Pro</a>
|
||||
</li>
|
||||
@endif
|
||||
|
||||
@if(in_array('produtos', $activePages))
|
||||
<li class="nav-item">
|
||||
<a class="nav-link px-3 {{ request()->routeIs('produtos') ? 'active' : '' }}" href="{{ route('produtos') }}">Produtos</a>
|
||||
</li>
|
||||
@endif
|
||||
|
||||
@if(\App\Models\Setting::get('news_enabled', 'on') === 'on')
|
||||
<li class="nav-item">
|
||||
<a class="nav-link px-3 {{ request()->routeIs('news.*') ? 'active' : '' }}" href="{{ route('news.index') }}">Notícias</a>
|
||||
</li>
|
||||
@endif
|
||||
|
||||
@if($activeGalleries->count() > 0)
|
||||
<li class="nav-item dropdown">
|
||||
<a class="nav-link dropdown-toggle px-3 {{ request()->routeIs('gallery.*') ? 'active' : '' }}" href="#" id="navbarGalleries" role="button" data-bs-toggle="dropdown" aria-expanded="false">
|
||||
Galerias
|
||||
</a>
|
||||
<ul class="dropdown-menu border-0 shadow-lg animate-up" aria-labelledby="navbarGalleries">
|
||||
@if(isset($activeGalleryCategories) && $activeGalleryCategories->count() > 0)
|
||||
@foreach($activeGalleryCategories as $cat)
|
||||
@if(isset($galleryCategories[$cat->name]))
|
||||
<li><a class="dropdown-item py-2" href="{{ route('gallery.category', $cat->slug) }}">{{ $cat->name }}</a></li>
|
||||
@endif
|
||||
@endforeach
|
||||
@else
|
||||
@foreach($activeGalleries as $gal)
|
||||
<li><a class="dropdown-item py-2" href="{{ route('gallery.show', $gal->slug) }}">{{ $gal->title }}</a></li>
|
||||
@endforeach
|
||||
@endif
|
||||
</ul>
|
||||
</li>
|
||||
@endif
|
||||
|
||||
@if(in_array('downloads', $activePages))
|
||||
<li class="nav-item">
|
||||
<a class="nav-link px-3 {{ request()->routeIs('downloads') ? 'active' : '' }}" href="{{ route('downloads') }}">Downloads</a>
|
||||
</li>
|
||||
@endif
|
||||
|
||||
@if(in_array('faq', $activePages))
|
||||
<li class="nav-item">
|
||||
<a class="nav-link px-3 {{ request()->routeIs('faq') ? 'active' : '' }}" href="{{ route('faq') }}">FAQ</a>
|
||||
</li>
|
||||
@endif
|
||||
|
||||
@if(in_array('contato', $activePages))
|
||||
<li class="nav-item">
|
||||
<a class="nav-link px-3 {{ request()->routeIs('contato') ? 'active' : '' }}" href="{{ route('contato') }}">Contato</a>
|
||||
</li>
|
||||
@endif
|
||||
|
||||
@foreach($customPages as $customPage)
|
||||
<li class="nav-item">
|
||||
<a class="nav-link px-3 {{ request()->routeIs('pages.show', $customPage->slug) ? 'active' : '' }}" href="{{ route('pages.show', $customPage->slug) }}">{{ $customPage->title }}</a>
|
||||
</li>
|
||||
@endforeach
|
||||
|
||||
@auth
|
||||
<li class="nav-item">
|
||||
<a class="nav-link px-3 {{ request()->routeIs('home') ? 'active' : '' }}" href="{{ route('home') }}">Dashboard</a>
|
||||
</li>
|
||||
@endauth
|
||||
|
||||
@guest
|
||||
<li class="nav-item ms-lg-3 mt-3 mt-lg-0">
|
||||
<a class="btn btn-outline-primary px-4 rounded-pill fw-bold" href="{{ route('login') }}">
|
||||
Login
|
||||
</a>
|
||||
</li>
|
||||
@else
|
||||
<li class="nav-item dropdown ms-lg-3 mt-3 mt-lg-0">
|
||||
<a id="navbarDropdown" class="nav-link dropdown-toggle btn btn-primary px-4 rounded-pill fw-bold text-white d-flex align-items-center" href="#" role="button" data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="false" v-pre>
|
||||
@if(Auth::user()->avatar)
|
||||
<img src="{{ asset('storage/' . Auth::user()->avatar) }}" class="rounded-circle me-2" style="width: 25px; height: 25px; object-fit: cover;">
|
||||
@else
|
||||
<i class="bi bi-person-circle me-2"></i>
|
||||
@endif
|
||||
{{ Auth::user()->name }}
|
||||
</a>
|
||||
|
||||
<div class="dropdown-menu dropdown-menu-end shadow-lg border-0 rounded-3 mt-2 animate-up" aria-labelledby="navbarDropdown">
|
||||
<a class="dropdown-item py-2" href="{{ route('home') }}">
|
||||
<i class="bi bi-speedometer2 me-2 text-primary"></i> Dashboard
|
||||
</a>
|
||||
<a class="dropdown-item py-2" href="{{ route('profile.edit') }}">
|
||||
<i class="bi bi-person-gear me-2 text-primary"></i> Meu Perfil
|
||||
</a>
|
||||
<div class="dropdown-divider"></div>
|
||||
<a class="dropdown-item py-2 text-danger" href="{{ route('logout') }}"
|
||||
onclick="event.preventDefault();
|
||||
document.getElementById('logout-form').submit();">
|
||||
<i class="bi bi-box-arrow-right me-2"></i> Sair
|
||||
</a>
|
||||
|
||||
<form id="logout-form" action="{{ route('logout') }}" method="POST" class="d-none">
|
||||
@csrf
|
||||
</form>
|
||||
</div>
|
||||
</li>
|
||||
@endguest
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</nav>
|
||||
|
||||
<main>
|
||||
@yield('content')
|
||||
</main>
|
||||
|
||||
<!-- Footer -->
|
||||
<footer>
|
||||
<div class="container">
|
||||
<div class="row g-4">
|
||||
<div class="col-lg-4 col-md-6">
|
||||
<div class="footer-info">
|
||||
<div class="d-flex align-items-center mb-4">
|
||||
<div class="bg-primary text-white rounded-circle d-flex align-items-center justify-content-center me-2" style="width: 40px; height: 40px;">
|
||||
<i class="bi bi-cpu"></i>
|
||||
</div>
|
||||
<h5 class="mb-0">{{ $company->name }}</h5>
|
||||
</div>
|
||||
<p class="mb-4">{{ \App\Models\Setting::get('company_slogan', 'Sua parceira em tecnologia e manutenção de informática.') }}</p>
|
||||
<div class="social-icons">
|
||||
@if($company->facebook)
|
||||
<a href="{{ $company->facebook }}" target="_blank" title="Facebook"><i class="bi bi-facebook"></i></a>
|
||||
@endif
|
||||
@if($company->instagram)
|
||||
<a href="{{ $company->instagram }}" target="_blank" title="Instagram"><i class="bi bi-instagram"></i></a>
|
||||
@endif
|
||||
@if($company->linkedin)
|
||||
<a href="{{ $company->linkedin }}" target="_blank" title="LinkedIn"><i class="bi bi-linkedin"></i></a>
|
||||
@endif
|
||||
@if($company->phone)
|
||||
<a href="https://wa.me/{{ preg_replace('/\D/', '', $company->phone) }}" target="_blank" title="WhatsApp"><i class="bi bi-whatsapp"></i></a>
|
||||
@endif
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-lg-4 col-md-6">
|
||||
<h5>Links Rápidos</h5>
|
||||
<ul class="list-unstyled">
|
||||
@if(in_array('index', $activePages))
|
||||
<li class="mb-2"><a href="{{ route('index') }}" class="text-decoration-none text-white-50">Início</a></li>
|
||||
@endif
|
||||
@if(in_array('servicos', $activePages))
|
||||
<li class="mb-2"><a href="{{ route('servicos') }}" class="text-decoration-none text-white-50">Serviços</a></li>
|
||||
@endif
|
||||
@if(in_array('contato', $activePages))
|
||||
<li class="mb-2"><a href="{{ route('contato') }}" class="text-decoration-none text-white-50">Contato</a></li>
|
||||
@endif
|
||||
@if(in_array('politica-privacidade', $activePages))
|
||||
<li class="mb-2"><a href="{{ route('politica-privacidade') }}" class="text-decoration-none text-white-50">Privacidade e Termos</a></li>
|
||||
@endif
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<div class="col-lg-4 col-md-6">
|
||||
<h5>Onde Estamos</h5>
|
||||
<ul class="list-unstyled footer-contact">
|
||||
@if($company->address)
|
||||
<li class="mb-3 d-flex align-items-start">
|
||||
<i class="bi bi-geo-alt text-primary mt-1 me-3"></i>
|
||||
<span>{{ $company->address }}</span>
|
||||
</li>
|
||||
@endif
|
||||
@if($company->phone)
|
||||
<li class="mb-3 d-flex align-items-center">
|
||||
<i class="bi bi-telephone text-primary me-3"></i>
|
||||
<span>{{ $company->phone }}</span>
|
||||
</li>
|
||||
@endif
|
||||
@if($company->email)
|
||||
<li class="mb-3 d-flex align-items-center">
|
||||
<i class="bi bi-envelope text-primary me-3"></i>
|
||||
<span>{{ $company->email }}</span>
|
||||
</li>
|
||||
@endif
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<hr class="my-5 border-secondary opacity-25">
|
||||
|
||||
<div class="row align-items-center">
|
||||
<div class="col-md-6 text-center text-md-start">
|
||||
<p class="mb-0">© {{ date('Y') }} {{ $company->name }}. Todos os direitos reservados.</p>
|
||||
</div>
|
||||
<div class="col-md-6 text-center text-md-end mt-3 mt-md-0">
|
||||
<p class="mb-0">Desenvolvido por <a href="https://syspanel.com.br" class="text-primary text-decoration-none fw-bold" target="_blank">SysPanel</a> com <a href="https://syssite.syspanel.com.br" class="text-primary text-decoration-none fw-bold" target="_blank">SysSiteCMS</a></p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
|
||||
<!-- Botão Flutuante WhatsApp -->
|
||||
@if($whatsapp_enabled && $company->phone)
|
||||
<a href="https://wa.me/{{ preg_replace('/\D/', '', $company->phone) }}" class="whatsapp-float" target="_blank" title="Fale conosco pelo WhatsApp">
|
||||
<i class="bi bi-whatsapp"></i>
|
||||
</a>
|
||||
@endif
|
||||
|
||||
<!-- Banner de Cookies LGPD -->
|
||||
<div id="cookie-banner" class="fixed-bottom p-4 animate-up" style="display: none; z-index: 9999;">
|
||||
<div class="container">
|
||||
<div class="bg-dark text-white p-4 rounded-4 shadow-lg border border-secondary border-opacity-25">
|
||||
<div class="row align-items-center">
|
||||
<div class="col-lg-8 mb-3 mb-lg-0">
|
||||
<h6 class="fw-bold mb-2"><i class="bi bi-shield-check text-primary me-2"></i> Privacidade e Cookies</h6>
|
||||
<p class="small mb-0 opacity-75">
|
||||
Utilizamos cookies para melhorar sua experiência e oferecer conteúdos personalizados, de acordo com a nossa
|
||||
<a href="{{ route('politica-privacidade') }}" class="text-primary text-decoration-none fw-bold">Política de Privacidade</a>
|
||||
e a Lei Geral de Proteção de Dados (LGPD).
|
||||
</p>
|
||||
</div>
|
||||
<div class="col-lg-4 text-lg-end">
|
||||
<button id="accept-cookies" class="btn btn-primary px-4 py-2 rounded-pill fw-bold">Aceitar Cookies</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Bootstrap 5.3 JS -->
|
||||
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.bundle.min.js"></script>
|
||||
|
||||
<script>
|
||||
document.addEventListener('DOMContentLoaded', function() {
|
||||
// Cookie Banner Logic
|
||||
const cookieBanner = document.getElementById('cookie-banner');
|
||||
const acceptBtn = document.getElementById('accept-cookies');
|
||||
|
||||
if (!localStorage.getItem('cookies_accepted')) {
|
||||
setTimeout(() => {
|
||||
cookieBanner.style.display = 'block';
|
||||
}, 1500);
|
||||
}
|
||||
|
||||
acceptBtn.addEventListener('click', function() {
|
||||
localStorage.setItem('cookies_accepted', 'true');
|
||||
cookieBanner.style.opacity = '0';
|
||||
setTimeout(() => {
|
||||
cookieBanner.style.display = 'none';
|
||||
}, 500);
|
||||
});
|
||||
// Navbar Scroll Effect
|
||||
window.addEventListener('scroll', function() {
|
||||
const navbar = document.querySelector('.navbar');
|
||||
if (window.scrollY > 50) {
|
||||
navbar.classList.add('scrolled', 'shadow');
|
||||
} else {
|
||||
navbar.classList.remove('scrolled', 'shadow');
|
||||
}
|
||||
});
|
||||
|
||||
// Password Toggle
|
||||
document.querySelectorAll('.toggle-password').forEach(button => {
|
||||
button.addEventListener('click', function() {
|
||||
const input = this.closest('.input-group').querySelector('input');
|
||||
const icon = this.querySelector('i');
|
||||
if (input.type === 'password') {
|
||||
input.type = 'text';
|
||||
icon.classList.replace('fa-eye', 'fa-eye-slash');
|
||||
} else {
|
||||
input.type = 'password';
|
||||
icon.classList.replace('fa-eye-slash', 'fa-eye');
|
||||
}
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
// Dropdown Submenu Toggle
|
||||
document.querySelectorAll('.dropdown-submenu .dropdown-toggle').forEach(function(element) {
|
||||
element.addEventListener('click', function(e) {
|
||||
e.preventDefault();
|
||||
e.stopPropagation();
|
||||
|
||||
// Close other open submenus
|
||||
document.querySelectorAll('.dropdown-submenu .dropdown-menu.show').forEach(function(menu) {
|
||||
if (menu !== element.nextElementSibling) {
|
||||
menu.classList.remove('show');
|
||||
}
|
||||
});
|
||||
|
||||
// Toggle current submenu
|
||||
element.nextElementSibling.classList.toggle('show');
|
||||
});
|
||||
});
|
||||
|
||||
// Close submenus when clicking outside
|
||||
document.addEventListener('click', function(e) {
|
||||
if (!e.target.closest('.dropdown-submenu')) {
|
||||
document.querySelectorAll('.dropdown-submenu .dropdown-menu.show').forEach(function(menu) {
|
||||
menu.classList.remove('show');
|
||||
});
|
||||
}
|
||||
});
|
||||
</script>
|
||||
@stack('js')
|
||||
|
||||
@if(module_enabled('chatbot'))
|
||||
@includeIf('chatbot::partials.chat-widget')
|
||||
@endif
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user