diff --git a/public/css/logo.png b/public/css/logo.png new file mode 100644 index 0000000..7d174d2 Binary files /dev/null and b/public/css/logo.png differ diff --git a/resources/views/capacidades.blade.php b/resources/views/capacidades.blade.php index 3e24079..4482d02 100644 --- a/resources/views/capacidades.blade.php +++ b/resources/views/capacidades.blade.php @@ -20,7 +20,6 @@ - Agregar @@ -46,10 +45,12 @@
+ class="inline" + onsubmit="return false;"> @csrf @method('DELETE') - @@ -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(); + } + }); +} @endsection diff --git a/resources/views/layouts/dashboard.blade.php b/resources/views/layouts/dashboard.blade.php index 61780cf..577c2f2 100644 --- a/resources/views/layouts/dashboard.blade.php +++ b/resources/views/layouts/dashboard.blade.php @@ -4,6 +4,8 @@ Dashboard - PrestamosTec + + @@ -33,16 +35,16 @@
-