sergiomarquez778 7 days ago
parent
commit
2872ea9f9c
  1. BIN
      public/css/logo.png
  2. 25
      resources/views/capacidades.blade.php
  3. 35
      resources/views/layouts/dashboard.blade.php

BIN
public/css/logo.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 38 KiB

25
resources/views/capacidades.blade.php

@ -20,7 +20,6 @@
<a href="{{ route('capacidades.create') }}"
class="px-4 py-2 bg-blue-500 text-white rounded-lg hover:bg-blue-600 flex items-center gap-2">
<i class="fas fa-plus"></i>
Agregar
</a>
</div>
@ -46,10 +45,12 @@
</a>
<form action="{{ route('capacidades.destroy', $capacidad->id) }}"
method="POST"
class="inline">
class="inline"
onsubmit="return false;">
@csrf
@method('DELETE')
<button type="submit"
<button type="button"
onclick="confirmarEliminacion(this)"
class="text-red-600 hover:text-red-900">
<i class="fas fa-trash"></i>
</button>
@ -76,5 +77,23 @@ setTimeout(function() {
}, 500); // Tiempo para remover el elemento después de la transición
}
}, 3000); // Tiempo en milisegundos antes de comenzar a desaparecer
function confirmarEliminacion(button) {
Swal.fire({
title: '¿Estás seguro?',
text: "Esta acción no se puede deshacer",
icon: 'warning',
showCancelButton: true,
confirmButtonColor: '#3085d6',
cancelButtonColor: '#d33',
confirmButtonText: 'Sí, eliminar',
cancelButtonText: 'Cancelar'
}).then((result) => {
if (result.isConfirmed) {
button.closest('form').onsubmit = null;
button.closest('form').submit();
}
});
}
</script>
@endsection

35
resources/views/layouts/dashboard.blade.php

@ -4,6 +4,8 @@
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Dashboard - PrestamosTec</title>
<link rel="icon" href="{{ asset('css/logo.png') }}">
<!-- Tailwind CSS desde CDN -->
<script src="https://cdn.tailwindcss.com"></script>
<!-- Alpine.js -->
@ -33,16 +35,16 @@
<body class="bg-gray-50">
<div class="min-h-screen flex">
<!-- Sidebar modernizado -->
<aside class="sidebar bg-gradient-to-b from-[#1E40AF] to-[#1E3A8A] text-white w-64 min-h-screen px-4 py-6 hidden md:block shadow-xl">
<aside class="sidebar bg-gradient-to-b from-[#1E40AF] to-[#6B5B9A] text-white w-64 min-h-screen px-4 py-6 hidden md:block shadow-xl">
<div class="flex items-center justify-center mb-12">
<span class="text-2xl font-light tracking-wider animate__animated animate__fadeIn">PrestamosTecmm</span>
<span class="text-2xl font-bold tracking-wider animate__animated animate__fadeIn">PrestamosTecmm</span>
</div>
<nav>
<ul class="space-y-4">
<!-- Inicio -->
<li>
<a href="/dashboard" class="nav-item-hover flex items-center space-x-3 px-4 py-3 rounded-lg hover:bg-white/10 backdrop-blur-sm">
<a href="/dashboard" class="nav-item-hover flex items-center space-x-3 px-4 py-3 rounded-lg hover:bg-white/10 backdrop-blur-sm {{ request()->is('dashboard') ? 'bg-white/20' : '' }}">
<i class="fas fa-home text-white/80"></i>
<span class="font-light">Inicio</span>
</a>
@ -50,7 +52,7 @@
<!-- Préstamos -->
<li>
<a href="/prestamos" class="nav-item-hover flex items-center space-x-3 px-4 py-3 rounded-lg hover:bg-white/10 backdrop-blur-sm">
<a href="/prestamos" class="nav-item-hover flex items-center space-x-3 px-4 py-3 rounded-lg hover:bg-white/10 backdrop-blur-sm {{ request()->is('prestamos') ? 'bg-white/20' : '' }}">
<i class="fas fa-book text-white/80"></i>
<span class="font-light">Préstamos</span>
</a>
@ -58,7 +60,7 @@
<!-- Usuarios -->
<li>
<a href="/usuarios" class="nav-item-hover flex items-center space-x-3 px-4 py-3 rounded-lg hover:bg-white/10 backdrop-blur-sm">
<a href="/usuarios" class="nav-item-hover flex items-center space-x-3 px-4 py-3 rounded-lg hover:bg-white/10 backdrop-blur-sm {{ request()->is('usuarios') ? 'bg-white/20' : '' }}">
<i class="fas fa-users text-white/80"></i>
<span class="font-light">Usuarios</span>
</a>
@ -87,9 +89,8 @@
class="pl-4 mt-2 space-y-1 text-sm">
<!-- Marca -->
<li>
<a href="{{ route('marca.index') }}" class="nav-item-hover flex items-center space-x-3 px-4 py-3 rounded-lg hover:bg-white/10 backdrop-blur-sm">
<a href="{{ route('marca.index') }}" class="nav-item-hover flex items-center space-x-3 px-4 py-3 rounded-lg hover:bg-white/10 backdrop-blur-sm {{ request()->is('marca*') ? 'bg-white/20' : '' }}">
<i class="fas fa-trademark text-white/80"></i>
<span class="font-light">Marca</span>
</a>
@ -97,7 +98,7 @@
<!-- Tipos -->
<li>
<a href="{{ route('vehiculos.index') }}" class="nav-item-hover flex items-center space-x-3 px-4 py-3 rounded-lg hover:bg-white/10 backdrop-blur-sm">
<a href="{{ route('vehiculos.index') }}" class="nav-item-hover flex items-center space-x-3 px-4 py-3 rounded-lg hover:bg-white/10 backdrop-blur-sm {{ request()->is('vehiculos*') ? 'bg-white/20' : '' }}">
<i class="fas fa-car text-white/80"></i>
<span class="font-light">Tipos de Vehiculos</span>
</a>
@ -105,7 +106,7 @@
<!-- Tipos de Licencia -->
<li>
<a href="{{ route('tiposLicencias.index') }}" class="nav-item-hover flex items-center space-x-3 px-4 py-3 rounded-lg hover:bg-white/10 backdrop-blur-sm"> <!-- Cambiado aquí -->
<a href="{{ route('tiposLicencias.index') }}" class="nav-item-hover flex items-center space-x-3 px-4 py-3 rounded-lg hover:bg-white/10 backdrop-blur-sm {{ request()->is('tiposLicencias*') ? 'bg-white/20' : '' }}">
<i class="fas fa-id-card text-white/80"></i>
<span class="font-light">Tipos de Licencia</span>
</a>
@ -113,16 +114,16 @@
<!-- Capacidad -->
<li>
<a href="{{ route('capacidades.index') }}" class="nav-item-hover flex items-center space-x-3 px-4 py-3 rounded-lg hover:bg-white/10 backdrop-blur-sm">
<a href="{{ route('capacidades.index') }}" class="nav-item-hover flex items-center space-x-3 px-4 py-3 rounded-lg hover:bg-white/10 backdrop-blur-sm {{ request()->is('capacidades*') ? 'bg-white/20' : '' }}">
<i class="fas fa-database text-white/80"></i>
<span class="font-light">Capacidad</span>
</a>
</li>
<li>
<a href="/configuracion/capacidad" class="flex items-center space-x-2 px-4 py-2 rounded hover:bg-blue-700">
<i class="fas fa-gas-pump"></i>
<span>Tipo de Gasolina </span>
<a href="/configuracion/capacidad" class="nav-item-hover flex items-center space-x-3 px-4 py-3 rounded-lg hover:bg-white/10 backdrop-blur-sm {{ request()->is('configuracion/capacidad') ? 'bg-white/20' : '' }}">
<i class="fas fa-gas-pump text-white/80"></i>
<span class="font-light">Tipo de Gasolina</span>
</a>
</li>
<!-- Puestos -->
@ -141,19 +142,19 @@
<ul x-show="openPuestos"
class="pl-4 mt-1 space-y-1">
<li>
<a href="{{ route('docentes.index') }}" class="nav-item-hover flex items-center space-x-3 px-4 py-3 rounded-lg hover:bg-white/10 backdrop-blur-sm">
<a href="{{ route('docentes.index') }}" class="nav-item-hover flex items-center space-x-3 px-4 py-3 rounded-lg hover:bg-white/10 backdrop-blur-sm {{ request()->is('docentes*') ? 'bg-white/20' : '' }}">
<i class="fas fa-chalkboard-teacher text-white/80"></i>
<span class="font-light">Docentes</span>
</a>
</li>
<li>
<a href="/configuracion/puestos/choferes" class="nav-item-hover flex items-center space-x-3 px-4 py-3 rounded-lg hover:bg-white/10 backdrop-blur-sm">
<a href="/configuracion/puestos/choferes" class="nav-item-hover flex items-center space-x-3 px-4 py-3 rounded-lg hover:bg-white/10 backdrop-blur-sm {{ request()->is('configuracion/puestos/choferes') ? 'bg-white/20' : '' }}">
<i class="fas fa-car text-white/80"></i>
<span class="font-light">Choferes</span>
</a>
</li>
<li>
<a href="/configuracion/puestos/admin" class="nav-item-hover flex items-center space-x-3 px-4 py-3 rounded-lg hover:bg-white/10 backdrop-blur-sm">
<a href="/configuracion/puestos/admin" class="nav-item-hover flex items-center space-x-3 px-4 py-3 rounded-lg hover:bg-white/10 backdrop-blur-sm {{ request()->is('configuracion/puestos/admin') ? 'bg-white/20' : '' }}">
<i class="fas fa-user-shield text-white/80"></i>
<span class="font-light">Administradores</span>
</a>
@ -163,7 +164,7 @@
<!-- Estatus -->
<li>
<a href="/configuracion/estatus" class="nav-item-hover flex items-center space-x-3 px-4 py-3 rounded-lg hover:bg-white/10 backdrop-blur-sm">
<a href="/configuracion/estatus" class="nav-item-hover flex items-center space-x-3 px-4 py-3 rounded-lg hover:bg-white/10 backdrop-blur-sm {{ request()->is('configuracion/estatus') ? 'bg-white/20' : '' }}">
<i class="fas fa-toggle-on text-white/80"></i>
<span class="font-light">Estatus</span>
</a>

Loading…
Cancel
Save