313 lines
10 KiB
PHP
Executable File
313 lines
10 KiB
PHP
Executable File
<!DOCTYPE html>
|
|
<html lang="es">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>@yield('title', config('app.name'))</title>
|
|
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
|
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.0/font/bootstrap-icons.css">
|
|
<link href='https://cdn.jsdelivr.net/npm/fullcalendar@6.1.10/main.min.css' rel='stylesheet' />
|
|
<style>
|
|
body {
|
|
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
|
|
background: #f8f9fa;
|
|
}
|
|
|
|
/* Sidebar Styles */
|
|
.sidebar {
|
|
min-height: 100vh;
|
|
background: linear-gradient(180deg, #2c3e50 0%, #1a252f 100%);
|
|
box-shadow: 2px 0 10px rgba(0,0,0,0.1);
|
|
}
|
|
|
|
.sidebar-brand {
|
|
padding: 1rem;
|
|
border-bottom: 1px solid rgba(255,255,255,0.1);
|
|
}
|
|
|
|
.sidebar a {
|
|
color: rgba(255,255,255,0.8);
|
|
text-decoration: none;
|
|
padding: 12px 20px;
|
|
display: block;
|
|
border-radius: 8px;
|
|
margin: 4px 12px;
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.sidebar a:hover {
|
|
background: rgba(255,255,255,0.1);
|
|
color: #fff;
|
|
transform: translateX(5px);
|
|
}
|
|
|
|
.sidebar a.active {
|
|
background: #3498db;
|
|
color: #fff;
|
|
}
|
|
|
|
.sidebar a i {
|
|
width: 24px;
|
|
}
|
|
|
|
/* Card Styles */
|
|
.card {
|
|
border: none;
|
|
border-radius: 12px;
|
|
box-shadow: 0 2px 8px rgba(0,0,0,0.08);
|
|
transition: transform 0.2s ease;
|
|
}
|
|
|
|
.card:hover {
|
|
transform: translateY(-2px);
|
|
box-shadow: 0 4px 12px rgba(0,0,0,0.12);
|
|
}
|
|
|
|
.stat-card {
|
|
border-left: 4px solid;
|
|
border-radius: 8px;
|
|
}
|
|
|
|
.stat-card.primary { border-color: #3498db; }
|
|
.stat-card.success { border-color: #27ae60; }
|
|
.stat-card.warning { border-color: #f39c12; }
|
|
.stat-card.danger { border-color: #e74c3c; }
|
|
|
|
/* Calendar Styles */
|
|
.fc .fc-daygrid-day:hover {
|
|
background: #f8f9fa;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.fc-event {
|
|
cursor: pointer;
|
|
border: none;
|
|
}
|
|
|
|
.day-with-sales {
|
|
background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%) !important;
|
|
}
|
|
|
|
.day-with-expenses {
|
|
background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%) !important;
|
|
}
|
|
|
|
.day-empty {
|
|
background: #f8f9fa;
|
|
color: #6c757d;
|
|
}
|
|
|
|
/* Mobile Styles */
|
|
@media (max-width: 768px) {
|
|
.sidebar {
|
|
position: fixed;
|
|
top: 0;
|
|
left: -100%;
|
|
width: 280px;
|
|
z-index: 1050;
|
|
transition: left 0.3s ease;
|
|
}
|
|
|
|
.sidebar.show {
|
|
left: 0;
|
|
}
|
|
|
|
.sidebar-overlay {
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
background: rgba(0,0,0,0.5);
|
|
z-index: 1040;
|
|
display: none;
|
|
}
|
|
|
|
.sidebar-overlay.show {
|
|
display: block;
|
|
}
|
|
|
|
.mobile-nav-btn {
|
|
display: block !important;
|
|
}
|
|
}
|
|
|
|
.mobile-nav-btn {
|
|
display: none;
|
|
position: fixed;
|
|
bottom: 20px;
|
|
left: 20px;
|
|
z-index: 1030;
|
|
width: 56px;
|
|
height: 56px;
|
|
border-radius: 50%;
|
|
box-shadow: 0 4px 12px rgba(0,0,0,0.2);
|
|
}
|
|
|
|
/* Button Styles */
|
|
.btn {
|
|
border-radius: 8px;
|
|
font-weight: 500;
|
|
transition: all 0.2s ease;
|
|
}
|
|
|
|
.btn:hover {
|
|
transform: translateY(-1px);
|
|
}
|
|
|
|
/* Form Styles */
|
|
.form-control, .form-select {
|
|
border-radius: 8px;
|
|
border: 1px solid #e0e0e0;
|
|
padding: 10px 15px;
|
|
}
|
|
|
|
.form-control:focus, .form-select:focus {
|
|
border-color: #3498db;
|
|
box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
|
|
}
|
|
|
|
/* Badge Styles */
|
|
.badge {
|
|
padding: 6px 12px;
|
|
border-radius: 20px;
|
|
font-weight: 500;
|
|
}
|
|
|
|
/* Toast Styles */
|
|
.toast-container {
|
|
position: fixed;
|
|
top: 20px;
|
|
right: 20px;
|
|
z-index: 9999;
|
|
}
|
|
|
|
/* Table Styles */
|
|
.table th {
|
|
font-weight: 600;
|
|
color: #495057;
|
|
border-bottom: 2px solid #e9ecef;
|
|
}
|
|
|
|
.table-hover tbody tr:hover {
|
|
background: #f8f9fa;
|
|
}
|
|
</style>
|
|
@stack('styles')
|
|
</head>
|
|
<body>
|
|
@auth
|
|
<!-- Sidebar Overlay (Mobile) -->
|
|
<div class="sidebar-overlay" id="sidebarOverlay"></div>
|
|
|
|
<!-- Mobile Navigation Button -->
|
|
<button class="btn btn-primary mobile-nav-btn" id="mobileNavBtn">
|
|
<i class="bi bi-list"></i>
|
|
</button>
|
|
|
|
<div class="container-fluid">
|
|
<div class="row">
|
|
<!-- Sidebar -->
|
|
<nav class="col-md-2 d-none d-md-block sidebar py-3" id="sidebar">
|
|
<div class="sidebar-brand text-center mb-4">
|
|
<h5 class="text-white mb-1">
|
|
<i class="bi bi-cash-coin"></i> {{ config('app.name') }}
|
|
</h5>
|
|
<small class="text-white-50">{{ auth()->user()->name }}</small>
|
|
</div>
|
|
|
|
<nav>
|
|
<a href="{{ route('dashboard') }}" class="{{ request()->routeIs('dashboard') ? 'active' : '' }}">
|
|
<i class="bi bi-house-door"></i> Dashboard
|
|
</a>
|
|
<a href="{{ route('calendar') }}" class="{{ request()->routeIs('calendar*') ? 'active' : '' }}">
|
|
<i class="bi bi-calendar3"></i> Calendario
|
|
</a>
|
|
<a href="{{ route('sales.index') }}" class="{{ request()->routeIs('sales.*') ? 'active' : '' }}">
|
|
<i class="bi bi-currency-dollar"></i> Ventas
|
|
</a>
|
|
<a href="{{ route('expenses.index') }}" class="{{ request()->routeIs('expenses.*') ? 'active' : '' }}">
|
|
<i class="bi bi-receipt"></i> Gastos
|
|
</a>
|
|
<a href="{{ route('months.index') }}" class="{{ request()->routeIs('months.*') ? 'active' : '' }}">
|
|
<i class="bi bi-calendar-month"></i> Meses
|
|
</a>
|
|
<hr class="border-secondary mx-3">
|
|
<a href="{{ route('reports.monthly') }}" class="{{ request()->routeIs('reports.*') ? 'active' : '' }}">
|
|
<i class="bi bi-graph-up"></i> Reportes
|
|
</a>
|
|
<a href="{{ route('settings.index') }}" class="{{ request()->routeIs('settings.*') ? 'active' : '' }}">
|
|
<i class="bi bi-gear"></i> Configuración
|
|
</a>
|
|
<a href="{{ route('telegram.verify') }}" class="{{ request()->routeIs('telegram.*') ? 'active' : '' }}">
|
|
<i class="bi bi-telegram"></i> Telegram
|
|
</a>
|
|
<hr class="border-secondary mx-3">
|
|
<form method="POST" action="{{ route('logout') }}" class="px-3">
|
|
@csrf
|
|
<button type="submit" class="btn btn-link text-white w-100 text-start p-2">
|
|
<i class="bi bi-box-arrow-right"></i> Cerrar Sesión
|
|
</button>
|
|
</form>
|
|
</nav>
|
|
</nav>
|
|
|
|
<!-- Main content -->
|
|
<main class="col-md-10 ms-sm-auto px-4 py-4">
|
|
<!-- Mobile Header -->
|
|
<div class="d-md-none mb-4">
|
|
<div class="card">
|
|
<div class="card-body d-flex justify-content-between align-items-center">
|
|
<span class="fw-bold">{{ config('app.name') }}</span>
|
|
<button class="btn btn-outline-primary btn-sm" id="mobileNavBtn2">
|
|
<i class="bi bi-list"></i>
|
|
</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
@yield('content')
|
|
</main>
|
|
</div>
|
|
</div>
|
|
@else
|
|
@yield('content')
|
|
@endauth
|
|
|
|
<!-- Toast Container -->
|
|
<div class="toast-container">
|
|
@if(session('success'))
|
|
<div class="toast show" role="alert" aria-live="assertive" aria-atomic="true">
|
|
<div class="toast-header bg-success text-white">
|
|
<strong class="me-auto"><i class="bi bi-check-circle"></i> Éxito</strong>
|
|
<button type="button" class="btn-close btn-close-white" data-bs-dismiss="toast"></button>
|
|
</div>
|
|
<div class="toast-body">
|
|
{{ session('success') }}
|
|
</div>
|
|
</div>
|
|
@endif
|
|
|
|
@if(session('error'))
|
|
<div class="toast show" role="alert" aria-live="assertive" aria-atomic="true">
|
|
<div class="toast-header bg-danger text-white">
|
|
<strong class="me-auto"><i class="bi bi-exclamation-circle"></i> Error</strong>
|
|
<button type="button" class="btn-close btn-close-white" data-bs-dismiss="toast"></button>
|
|
</div>
|
|
<div class="toast-body">
|
|
{{ session('error') }}
|
|
</div>
|
|
</div>
|
|
@endif
|
|
</div>
|
|
|
|
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script>
|
|
<script src="https://cdn.jsdelivr.net/npm/fullcalendar@6.1.10/index.global.min.js"></script>
|
|
<script src="{{ asset('js/app.js') }}"></script>
|
|
<script>
|
|
window.APP_NAME = '{{ config('app.name') }}';
|
|
</script>
|
|
|
|
@stack('scripts')
|
|
</body>
|
|
</html> |