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
631 lines
27 KiB
PHP
Executable File
631 lines
27 KiB
PHP
Executable File
<!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>
|