diff --git a/public/img/error401.png b/public/img/error401.png new file mode 100644 index 0000000..d28b0ac Binary files /dev/null and b/public/img/error401.png differ diff --git a/public/img/error402.png b/public/img/error402.png new file mode 100644 index 0000000..a05f434 Binary files /dev/null and b/public/img/error402.png differ diff --git a/public/img/error403.png b/public/img/error403.png new file mode 100644 index 0000000..8a9b4d9 Binary files /dev/null and b/public/img/error403.png differ diff --git a/public/img/error404.png b/public/img/error404.png new file mode 100644 index 0000000..9dfc9d2 Binary files /dev/null and b/public/img/error404.png differ diff --git a/public/img/error419.png b/public/img/error419.png new file mode 100644 index 0000000..a099fbc Binary files /dev/null and b/public/img/error419.png differ diff --git a/public/img/error429.png b/public/img/error429.png new file mode 100644 index 0000000..0a4cdcc Binary files /dev/null and b/public/img/error429.png differ diff --git a/public/img/error500.png b/public/img/error500.png new file mode 100644 index 0000000..d4b7df8 Binary files /dev/null and b/public/img/error500.png differ diff --git a/public/img/error503.png b/public/img/error503.png new file mode 100644 index 0000000..bea1a18 Binary files /dev/null and b/public/img/error503.png differ diff --git a/resources/views/errors/401.blade.php b/resources/views/errors/401.blade.php index 5c586db..10b2d0e 100644 --- a/resources/views/errors/401.blade.php +++ b/resources/views/errors/401.blade.php @@ -1,5 +1,41 @@ -@extends('errors::minimal') +@extends('templates.general') + +@section('content') + + + + +
+ Logo oficial de S.A.R.A. +
+ + +

+ 🚪 ¡Alto ahí! No tienes permiso para entrar +

+ +

+ Parece que intentaste abrir una puerta cerrada. + Para acceder aquí necesitas iniciar sesión o contar con la autorización adecuada. +
Tranquilo, S.A.R.A. cuida muy bien sus espacios. 😉 +

+ + + + Volver al inicio + + + +
+ Imagen de acceso denegado por S.A.R.A. +
+ + +@endsection + -@section('title', __('Unauthorized')) -@section('code', '401') -@section('message', __('Unauthorized')) diff --git a/resources/views/errors/402.blade.php b/resources/views/errors/402.blade.php index 3bc23ef..2f01eba 100644 --- a/resources/views/errors/402.blade.php +++ b/resources/views/errors/402.blade.php @@ -3,3 +3,38 @@ @section('title', __('Payment Required')) @section('code', '402') @section('message', __('Payment Required')) + + +
+ + +
+ Logo oficial de S.A.R.A. +
+ + +

+ 💳 ¡Oops! No tienes saldo en S.A.R.A. +

+ +

+ Parece que tu cupo de alimentación no está disponible o requiere activación. +
Verifica tu estado en el sistema o contacta al administrador. +

+ + + + Volver al inicio + + + +
+ Estudiante sin saldo en S.A.R.A. +
+
+@endsection diff --git a/resources/views/errors/404.blade.php b/resources/views/errors/404.blade.php index 03d7309..de8eadf 100644 --- a/resources/views/errors/404.blade.php +++ b/resources/views/errors/404.blade.php @@ -1,31 +1,38 @@ @extends('templates.general') @section('content') -
+ +
+ +
- Logo oficial de S.A.R.A. + Logo oficial de S.A.R.A.
- -

¡Oops, aquí no hay comida ni página! + +

+ ❌ ¡Oops! Página no encontrada

- Buscamos por todos lados pero no pudimos encontrar lo que buscas. - Parece que hasta S.A.R.A. se quedó confundida. + Buscamos por todos lados pero no pudimos encontrar lo que buscas. + Parece que hasta S.A.R.A. se quedó confundida. +
Tal vez la página fue movida o nunca existió...

- - + + Volver al inicio - -
- Imagen cómica de S.A.R.A. confundida + +
+ Imagen cómica de S.A.R.A. confundida
diff --git a/resources/views/errors/419.blade.php b/resources/views/errors/419.blade.php index c09216e..df829e5 100644 --- a/resources/views/errors/419.blade.php +++ b/resources/views/errors/419.blade.php @@ -1,5 +1,40 @@ @extends('errors::minimal') -@section('title', __('Page Expired')) +@section('title', __('Página expirada')) @section('code', '419') -@section('message', __('Page Expired')) +@section('message', __('La sesión ha expirado')) + +
+ + +
+ Logo oficial de S.A.R.A. +
+ + +

+ ⏳ ¡Ups! La página ha expirado +

+ +

+ Parece que tu sesión se tomó un descanso más largo de lo debido. + Para seguir usando S.A.R.A., necesitas actualizar la página o volver a iniciar sesión. +
No te preocupes, todo sigue bajo control. +

+ + + + Volver al inicio + + + +
+ Imagen de S.A.R.A. esperando pacientemente +
+
+@endsection diff --git a/resources/views/errors/429.blade.php b/resources/views/errors/429.blade.php index f01b07b..44fbf90 100644 --- a/resources/views/errors/429.blade.php +++ b/resources/views/errors/429.blade.php @@ -3,3 +3,46 @@ @section('title', __('Too Many Requests')) @section('code', '429') @section('message', __('Too Many Requests')) +@extends('errors::minimal') + + +@extends('errors::minimal') + +@section('title', __('Demasiadas solicitudes')) +@section('code', '429') +@section('message', __('Demasiadas solicitudes')) + +
+ + +
+ Logo oficial de S.A.R.A. +
+ + +

+ 💤 ¡Oops! S.A.R.A. necesita un respiro +

+ +

+ Has hecho demasiadas solicitudes en muy poco tiempo. + S.A.R.A. está tomando un descanso para recuperar energías. +
Inténtalo de nuevo en unos segundos. +

+ + + + Volver al inicio + + + +
+ Imagen cómica de S.A.R.A. descansando +
+
+@endsection diff --git a/resources/views/errors/500.blade.php b/resources/views/errors/500.blade.php index d9e95d9..76c8c44 100644 --- a/resources/views/errors/500.blade.php +++ b/resources/views/errors/500.blade.php @@ -3,3 +3,44 @@ @section('title', __('Server Error')) @section('code', '500') @section('message', __('Server Error')) + +@extends('errors::minimal') + +@section('title', __('Error del servidor')) +@section('code', '500') +@section('message', __('Error interno del servidor')) + +
+ + +
+ Logo oficial de S.A.R.A. +
+ + +

+ ⚠️ ¡Ups! Algo salió mal en la cocina de S.A.R.A. +

+ +

+ Parece que se nos quemó una receta interna del sistema 🍳🔥. + No te preocupes, nuestro equipo ya está revisando el problema. +
Intenta de nuevo más tarde, S.A.R.A. estará lista para servirte. +

+ + + + Volver al inicio + + + +
+ Imagen cómica de S.A.R.A. arreglando un problema +
+
+@endsection diff --git a/resources/views/errors/503.blade.php b/resources/views/errors/503.blade.php index c5a9dde..95dc199 100644 --- a/resources/views/errors/503.blade.php +++ b/resources/views/errors/503.blade.php @@ -3,3 +3,38 @@ @section('title', __('Service Unavailable')) @section('code', '503') @section('message', __('Service Unavailable')) + +
+ + +
+ Logo oficial de S.A.R.A. +
+ + +

+ 🛠️ ¡Oops! La cocina de S.A.R.A. está en mantenimiento +

+ +

+ En este momento el servicio no está disponible. + Puede que S.A.R.A. esté recargando energía o en mantenimiento. +
Vuelve a intentarlo en unos minutos, pronto estará lista para servirte. +

+ + + + Volver al inicio + + + +
+ Imagen cómica de S.A.R.A. en mantenimiento +
+
+@endsection \ No newline at end of file diff --git a/resources/views/teachers/auditoria.blade.php b/resources/views/teachers/auditoria.blade.php new file mode 100644 index 0000000..e16e38f --- /dev/null +++ b/resources/views/teachers/auditoria.blade.php @@ -0,0 +1,66 @@ +@extends('templates.teachers') + +@section('content') +
+ + +
+

Registro de auditoría

+ +
+ + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
TimestampTipoMensajeFechaCódigo
2025-09-30 21:45:01WEBUsuario inició sesión30/09/2025 + 200 +
2025-09-30 21:47:22APIPetición no encontrada30/09/2025 + 404 +
2025-09-30 21:50:10DISPOSITIVOError al enviar datos del ESP3230/09/2025 + 500 +
+
+ + +
+ + + + + +
+
+@endsection diff --git a/resources/views/teachers/configuracion.perdil.blade.php b/resources/views/teachers/configuracion.perdil.blade.php new file mode 100644 index 0000000..e69de29 diff --git a/routes/web.php b/routes/web.php index 73d7ada..cdc703f 100644 --- a/routes/web.php +++ b/routes/web.php @@ -139,6 +139,16 @@ ///////////////////////////////////////////////////////////////////////////////////////////////////// +Route::prefix('error')->group(function () { + Route::view('/401', 'errors.401')->name('error.401'); + Route::view('/403', 'errors.403')->name('error.403'); + Route::view('/404', 'errors.404')->name('error.404'); + Route::view('/419', 'errors.419')->name('error.419'); + Route::view('/429', 'errors.429')->name('error.429'); + Route::view('/500', 'errors.500')->name('error.500'); + Route::view('/503', 'errors.503')->name('error.503'); +}); + Route::middleware(['auth'])->group(function () { Route::redirect('settings', 'settings/profile');