342 lines
16 KiB
PHP
Executable File
342 lines
16 KiB
PHP
Executable File
<!DOCTYPE html>
|
|
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}">
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
<meta name="csrf-token" content="{{ csrf_token() }}">
|
|
|
|
<title>NetGescon - {{ $title ?? 'Dashboard Amministratore' }}</title>
|
|
|
|
<!-- Fonts -->
|
|
<link rel="preconnect" href="https://fonts.googleapis.com">
|
|
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
|
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap" rel="stylesheet">
|
|
|
|
<!-- FontAwesome -->
|
|
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
|
|
|
|
<!-- Material Design Icons (usate in tutto il modulo Gescon Import) -->
|
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@mdi/font@7.4.47/css/materialdesignicons.min.css">
|
|
|
|
<!-- NetGescon Admin CSS -->
|
|
<link rel="stylesheet" href="{{ asset('css/netgescon-admin.css') }}">
|
|
|
|
<!-- App styles/scripts (Tailwind + Alpine etc.) via Vite -->
|
|
@vite(['resources/css/app.css', 'resources/js/app.js'])
|
|
|
|
<!-- Fallback: abilita Tailwind via CDN se i build Vite non sono disponibili -->
|
|
@php($hasVite = file_exists(public_path('build/manifest.json')))
|
|
@unless($hasVite)
|
|
<script src="https://cdn.tailwindcss.com"></script>
|
|
@endunless
|
|
|
|
<!-- Page-level styles -->
|
|
@stack('styles')
|
|
@yield('module-styles')
|
|
|
|
<style>
|
|
/* Fallback essenziale per pulsanti NetGescon se il CSS globale non è caricato */
|
|
.netgescon-btn { display:inline-flex; align-items:center; gap:.35rem; padding:.4rem .65rem; border-radius:.375rem; border:1px solid #d1d5db; background:#fff; color:#111827; cursor:pointer; text-decoration:none; }
|
|
.netgescon-btn-sm { padding:.25rem .5rem; font-size:.875rem; }
|
|
.netgescon-btn-primary { background:#2563eb; border-color:#2563eb; color:#fff; }
|
|
.netgescon-btn-secondary { background:#6b7280; border-color:#6b7280; color:#fff; }
|
|
.netgescon-btn-outline-secondary { background:#fff; color:#374151; border-color:#9ca3af; }
|
|
.netgescon-btn-outline-primary { background:#fff; color:#2563eb; border-color:#2563eb; }
|
|
.netgescon-btn-outline-dark { background:#fff; color:#111827; border-color:#111827; }
|
|
.netgescon-badge { display:inline-block; padding:.2rem .5rem; border-radius:999px; background:#e5e7eb; color:#374151; font-size:.75rem; font-weight:600; }
|
|
.netgescon-badge-primary { background:#dbeafe; color:#1d4ed8; }
|
|
.netgescon-badge-success { background:#dcfce7; color:#15803d; }
|
|
.netgescon-badge-secondary { background:#e5e7eb; color:#374151; }
|
|
.netgescon-badge-danger { background:#fee2e2; color:#b91c1c; }
|
|
.netgescon-badge-info { background:#e0f2fe; color:#0369a1; }
|
|
body {
|
|
font-family: 'Inter', sans-serif;
|
|
background-color: #f8fafc;
|
|
margin: 0;
|
|
padding: 0;
|
|
height: 100vh;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.netgescon-layout {
|
|
display: flex;
|
|
flex-direction: column;
|
|
height: 100vh;
|
|
}
|
|
|
|
.netgescon-header {
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
z-index: 50;
|
|
height: 64px;
|
|
}
|
|
|
|
.netgescon-body {
|
|
display: flex;
|
|
flex: 1;
|
|
margin-top: 64px;
|
|
margin-bottom: 48px;
|
|
}
|
|
|
|
.netgescon-sidebar {
|
|
position: fixed;
|
|
left: 0;
|
|
top: 64px;
|
|
bottom: 48px;
|
|
width: 256px;
|
|
z-index: 40;
|
|
overflow-y: auto;
|
|
}
|
|
|
|
.netgescon-main {
|
|
margin-left: 256px;
|
|
flex: 1;
|
|
overflow-y: auto;
|
|
height: calc(100vh - 112px);
|
|
padding: 0;
|
|
}
|
|
|
|
.netgescon-footer {
|
|
position: fixed;
|
|
bottom: 0;
|
|
left: 0;
|
|
right: 0;
|
|
z-index: 50;
|
|
height: 48px;
|
|
}
|
|
|
|
@media (max-width: 768px) {
|
|
.netgescon-sidebar {
|
|
transform: translateX(-100%);
|
|
transition: transform 0.3s ease;
|
|
}
|
|
|
|
.netgescon-sidebar.open {
|
|
transform: translateX(0);
|
|
}
|
|
|
|
.netgescon-main {
|
|
margin-left: 0;
|
|
}
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div class="netgescon-layout">
|
|
<!-- Header superiore blu NetGescon - FISSO -->
|
|
<header class="netgescon-header bg-blue-600 text-white shadow-lg">
|
|
<div class="px-4 sm:px-6 lg:px-8 h-full">
|
|
<div class="flex items-center justify-between h-full">
|
|
<!-- Hamburger + Logo e brand NetGescon -->
|
|
<div class="flex items-center">
|
|
<!-- Hamburger menu -->
|
|
<button id="sidebar-toggle" class="mr-4 p-2 rounded-lg hover:bg-blue-500 transition-colors">
|
|
<i class="fas fa-bars text-xl"></i>
|
|
</button>
|
|
|
|
<div class="flex-shrink-0 flex items-center">
|
|
<i class="fas fa-building text-2xl mr-3 text-white"></i>
|
|
<span class="text-xl font-bold text-white">NetGescon</span>
|
|
</div>
|
|
|
|
<!-- Info Condominio attuale (temporaneamente disattivato) -->
|
|
{{-- Blocco stabilimento disattivato temporaneamente --}}
|
|
</div>
|
|
|
|
<!-- Ricerca e azioni -->
|
|
<div class="flex items-center space-x-4">
|
|
<!-- Barra di ricerca -->
|
|
<div class="relative hidden md:block">
|
|
<input type="text"
|
|
placeholder="Cerca in NetGescon..."
|
|
class="bg-blue-500 text-white placeholder-blue-200 px-4 py-2 rounded-lg border-none focus:outline-none focus:ring-2 focus:ring-blue-300 w-64">
|
|
<i class="fas fa-search absolute right-3 top-3 text-blue-200"></i>
|
|
</div>
|
|
|
|
<!-- Icone azioni -->
|
|
<div class="flex space-x-2">
|
|
<button class="p-2 hover:bg-blue-500 rounded text-white">
|
|
<i class="fas fa-calendar"></i>
|
|
</button>
|
|
<button class="p-2 hover:bg-blue-500 rounded text-white">
|
|
<i class="fas fa-envelope"></i>
|
|
</button>
|
|
<button class="p-2 hover:bg-blue-500 rounded text-white">
|
|
<i class="fas fa-file-alt"></i>
|
|
</button>
|
|
<button class="p-2 hover:bg-blue-500 rounded relative text-white">
|
|
<i class="fas fa-bell"></i>
|
|
<span class="absolute -top-1 -right-1 bg-red-500 text-xs rounded-full h-5 w-5 flex items-center justify-center text-white">1</span>
|
|
</button>
|
|
<button class="p-2 hover:bg-blue-500 rounded text-white">
|
|
<i class="fas fa-moon"></i>
|
|
</button>
|
|
<button class="p-2 hover:bg-blue-500 rounded text-white">
|
|
<i class="fas fa-question-circle"></i>
|
|
</button>
|
|
<!-- User dropdown -->
|
|
<div class="relative ml-4">
|
|
<button id="user-menu-button"
|
|
class="flex items-center space-x-2 text-white hover:bg-blue-500 px-3 py-2 rounded"
|
|
onclick="toggleUserMenu()">
|
|
<i class="fas fa-user-circle text-lg"></i>
|
|
<span class="hidden md:block">{{ Auth::user()->name ?? 'Utente' }}</span>
|
|
<i class="fas fa-chevron-down text-xs"></i>
|
|
</button>
|
|
|
|
<!-- Dropdown menu -->
|
|
<div id="user-menu" class="absolute right-0 mt-2 w-48 bg-white rounded-md shadow-lg py-1 z-50 hidden">
|
|
<a href="#" class="flex items-center px-4 py-2 text-sm text-gray-700 hover:bg-gray-100">
|
|
<i class="fas fa-user mr-2"></i>
|
|
Profilo Utente
|
|
</a>
|
|
<a href="#" class="flex items-center px-4 py-2 text-sm text-gray-700 hover:bg-gray-100">
|
|
<i class="fas fa-cog mr-2"></i>
|
|
Impostazioni
|
|
</a>
|
|
<div class="border-t border-gray-100"></div>
|
|
<form method="POST" action="{{ route('logout') }}">
|
|
@csrf
|
|
<button type="submit" class="flex items-center w-full px-4 py-2 text-sm text-gray-700 hover:bg-gray-100">
|
|
<i class="fas fa-sign-out-alt mr-2"></i>
|
|
Logout
|
|
</button>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</header>
|
|
|
|
<div class="netgescon-body">
|
|
<!-- Sidebar NetGescon - FISSO -->
|
|
<aside class="netgescon-sidebar bg-slate-800 text-white shadow-xl">
|
|
@include('components.menu.sidebar-netgescon')
|
|
</aside>
|
|
|
|
<!-- Main content area - SCROLLABILE -->
|
|
<main class="netgescon-main bg-gray-50">
|
|
<!-- Breadcrumb -->
|
|
<div class="bg-white border-b px-6 py-3 sticky top-0 z-30">
|
|
<div class="flex items-center space-x-2 text-sm text-gray-600">
|
|
<i class="fas fa-home text-blue-500"></i>
|
|
<span>Home</span>
|
|
@hasSection('breadcrumb')
|
|
<i class="fas fa-chevron-right text-xs"></i>
|
|
@yield('breadcrumb')
|
|
@endif
|
|
</div>
|
|
</div>
|
|
|
|
<!-- Page content -->
|
|
<div class="p-6">
|
|
@yield('content')
|
|
</div>
|
|
</main>
|
|
</div>
|
|
|
|
<!-- Footer NetGescon - FISSO -->
|
|
<footer class="netgescon-footer bg-gray-100 border-t px-6 py-3">
|
|
<div class="flex items-center justify-between">
|
|
<div class="flex items-center space-x-4 text-sm text-gray-600">
|
|
<span>© 2025 NetGescon v2.1.0</span>
|
|
<span class="flex items-center">
|
|
<i class="fas fa-circle text-green-500 mr-2 text-xs"></i>
|
|
Server Online
|
|
</span>
|
|
</div>
|
|
|
|
<!-- Status indicators + links + user info -->
|
|
<div class="flex items-center space-x-4">
|
|
<div class="flex items-center space-x-1">
|
|
<div class="w-3 h-3 bg-red-500 rounded-full flex items-center justify-center">
|
|
<i class="fas fa-exclamation text-white text-xs"></i>
|
|
</div>
|
|
<span class="text-xs text-gray-600">1</span>
|
|
</div>
|
|
<div class="flex items-center space-x-1">
|
|
<div class="w-3 h-3 bg-orange-500 rounded-full flex items-center justify-center">
|
|
<i class="fas fa-clock text-white text-xs"></i>
|
|
</div>
|
|
<span class="text-xs text-gray-600">0</span>
|
|
</div>
|
|
<div class="flex items-center space-x-4">
|
|
<!-- Link Supporto e Contatti nel footer principale -->
|
|
<a href="#" class="text-xs text-gray-500 hover:text-gray-700">
|
|
<i class="fas fa-headset mr-1"></i>
|
|
Supporto
|
|
</a>
|
|
<span class="text-gray-300">•</span>
|
|
<a href="#" class="text-xs text-gray-500 hover:text-gray-700">
|
|
<i class="fas fa-envelope mr-1"></i>
|
|
Contatti
|
|
</a>
|
|
</div>
|
|
<div class="flex items-center space-x-1">
|
|
<div class="w-3 h-3 bg-green-500 rounded-full flex items-center justify-center">
|
|
<i class="fas fa-check text-white text-xs"></i>
|
|
</div>
|
|
<span class="text-xs text-gray-600">V</span>
|
|
</div>
|
|
<!-- Info utente nel footer principale -->
|
|
<div class="flex items-center space-x-2">
|
|
<div class="w-6 h-6 bg-blue-500 rounded-full flex items-center justify-center text-xs font-medium text-white">
|
|
{{ substr(auth()->user()->name ?? 'UT', 0, 2) }}
|
|
</div>
|
|
<span class="text-xs text-gray-500">{{ auth()->user()->name ?? 'Utente' }} | {{ now()->format('H:i') }}</span>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</footer>
|
|
</div>
|
|
|
|
<!-- NetGescon JS -->
|
|
<script src="{{ asset('js/netgescon-admin.js') }}"></script>
|
|
|
|
<!-- Script per hamburger menu -->
|
|
<script>
|
|
document.addEventListener('DOMContentLoaded', function() {
|
|
const sidebarToggle = document.getElementById('sidebar-toggle');
|
|
const sidebar = document.querySelector('.netgescon-sidebar');
|
|
const main = document.querySelector('.netgescon-main');
|
|
|
|
if (sidebarToggle && sidebar) {
|
|
sidebarToggle.addEventListener('click', function() {
|
|
// Usa la classe
|
|
sidebar.classList.toggle('open');
|
|
if (main) {
|
|
// Su mobile rimuove il margin-left, su desktop resta invariato
|
|
main.classList.toggle('ml-0');
|
|
}
|
|
});
|
|
}
|
|
});
|
|
</script>
|
|
|
|
<!-- User menu dropdown script -->
|
|
<script>
|
|
function toggleUserMenu() {
|
|
const menu = document.getElementById('user-menu');
|
|
menu.classList.toggle('hidden');
|
|
}
|
|
|
|
// Close dropdown when clicking outside
|
|
document.addEventListener('click', function(event) {
|
|
const button = document.getElementById('user-menu-button');
|
|
const menu = document.getElementById('user-menu');
|
|
|
|
if (!button.contains(event.target) && !menu.contains(event.target)) {
|
|
menu.classList.add('hidden');
|
|
}
|
|
});
|
|
</script>
|
|
|
|
@yield('module-scripts')
|
|
@stack('scripts')
|
|
</body>
|
|
</html>
|