diff --git a/anotaciones b/anotaciones index c0f1886..ca96f0a 100644 --- a/anotaciones +++ b/anotaciones @@ -21,3 +21,5 @@ Nombre no.tel correo +yo rubi + diff --git a/resources/views/docentesCrearEditar.blade.php b/resources/views/docentesCrearEditar.blade.php index d2a44e9..277c60c 100644 --- a/resources/views/docentesCrearEditar.blade.php +++ b/resources/views/docentesCrearEditar.blade.php @@ -2,191 +2,45 @@ @section('content')
-
-
-
- -
-

- {{ isset($docente) ? 'Editar Docente' : 'Nuevo Docente' }} -

-
- +
+
+

{{ isset($docente) ? 'Editar Docente' : 'Crear Docente' }}

+
+
+
+ @csrf + @if(isset($docente)) + @method('PUT') + @endif +
+
+ +
-
- - - @if($errors->any()) -
-
- -
-
    - @foreach($errors->all() as $error) -
  • {{ $error }}
  • - @endforeach -
-
+
+ +
-
- @endif - - - - @csrf - @if(isset($docente)) - @method('PUT') - @endif - -
- -
- -
-
- -
- -
- @error('nombre') -

{{ $message }}

- @enderror -
- - -
- - -
- - -
- - -
- - -
- - -
- - -
- - -
- - -
- - Cancelar - - -
+
+ +
- -
+
+ + +
+
+ + +
+
+
+ +
+
- - @endsection - - - - diff --git a/routes/web.php b/routes/web.php index 8e7c548..916dd06 100644 --- a/routes/web.php +++ b/routes/web.php @@ -27,6 +27,7 @@ Route::resource('marca', MarcaController::class); Route::resource('docentes', DocentesController::class); Route::resource('vehiculos', TiposVeiculosController::class); + // Rutas protegidas que requieren autenticación Route::middleware(['auth'])->group(function () { Route::get('/dashboard', [HomeController::class, 'index'])->name('dashboard');