From 12f98c0410bf6b9f1bf05dea8d8b33f32a525069 Mon Sep 17 00:00:00 2001 From: BryamE Date: Tue, 31 Mar 2026 19:46:34 -0300 Subject: [PATCH] STYLE: - Nuevos cambios en los estilos de la pagina (Seccion clientes completa). --- resources/views/catalogo/show.blade.php | 4 +- resources/views/clients/create.blade.php | 25 +++----- resources/views/clients/edit.blade.php | 62 +++++-------------- resources/views/clients/index.blade.php | 52 ++++++++-------- resources/views/productos/create.blade.php | 18 +----- resources/views/productos/edit.blade.php | 18 ++++-- resources/views/productos/index.blade.php | 28 +++++++-- resources/views/productos/show.blade.php | 10 +-- .../views/productos/vistaUsuario.blade.php | 12 ---- routes/web.php | 3 - 10 files changed, 91 insertions(+), 141 deletions(-) delete mode 100644 resources/views/productos/vistaUsuario.blade.php diff --git a/resources/views/catalogo/show.blade.php b/resources/views/catalogo/show.blade.php index a137c90..cfc1485 100644 --- a/resources/views/catalogo/show.blade.php +++ b/resources/views/catalogo/show.blade.php @@ -85,12 +85,12 @@
- - + WhatsApp diff --git a/resources/views/clients/create.blade.php b/resources/views/clients/create.blade.php index 34bacb0..e97d183 100644 --- a/resources/views/clients/create.blade.php +++ b/resources/views/clients/create.blade.php @@ -1,45 +1,40 @@ - -
- +
@csrf - -
+
- +
- +
- +
- +
- + @error('address') {{ $message }} @enderror
-
-
- Cancelar - -
diff --git a/resources/views/clients/edit.blade.php b/resources/views/clients/edit.blade.php index bb10afb..b3137fd 100644 --- a/resources/views/clients/edit.blade.php +++ b/resources/views/clients/edit.blade.php @@ -1,75 +1,41 @@ - -
- +
@csrf - @method('PUT')
+ @method('PUT') +
+
- +
- +
- +
- +
- +
- +
- + @error('address') {{ $message }} @enderror
-
-
- - - Cancelar - - -
diff --git a/resources/views/clients/index.blade.php b/resources/views/clients/index.blade.php index d2853b0..0795f4a 100644 --- a/resources/views/clients/index.blade.php +++ b/resources/views/clients/index.blade.php @@ -2,6 +2,8 @@ + + @if(session('success'))
{{ session('success') }} @@ -13,24 +15,24 @@
-
- + + Nuevo Cliente
-
- - +
+
+ @@ -40,45 +42,43 @@ @forelse($clients as $client) - - + - - - - diff --git a/resources/views/productos/create.blade.php b/resources/views/productos/create.blade.php index 5d36a6a..fd17b63 100644 --- a/resources/views/productos/create.blade.php +++ b/resources/views/productos/create.blade.php @@ -1,27 +1,22 @@ -
-
@csrf -
- +
-
-
@@ -32,41 +27,35 @@
-
-
-
-
- - +
- +
- {{-- @error('image') {{ $message }} @enderror --}}
@@ -77,7 +66,6 @@ Guardar
-
\ No newline at end of file diff --git a/resources/views/productos/edit.blade.php b/resources/views/productos/edit.blade.php index e76918a..e79b0f5 100644 --- a/resources/views/productos/edit.blade.php +++ b/resources/views/productos/edit.blade.php @@ -1,11 +1,12 @@ -
+
@csrf @method('PUT')
+
@@ -19,7 +20,7 @@
- @@ -47,14 +48,19 @@
- + +
+ +
+ +
-
- Cancelar -
diff --git a/resources/views/productos/index.blade.php b/resources/views/productos/index.blade.php index 6e13420..6022cdc 100644 --- a/resources/views/productos/index.blade.php +++ b/resources/views/productos/index.blade.php @@ -7,7 +7,6 @@
-
@@ -34,7 +33,7 @@ - + + Nuevo Producto
@@ -75,13 +74,32 @@ {{ $product->stock_quantity }} @endif -
@empty - diff --git a/resources/views/productos/show.blade.php b/resources/views/productos/show.blade.php index 2ed4516..9858012 100644 --- a/resources/views/productos/show.blade.php +++ b/resources/views/productos/show.blade.php @@ -35,15 +35,7 @@
- Volver - Editar -
- @csrf - @method('DELETE') - - + Volver
diff --git a/resources/views/productos/vistaUsuario.blade.php b/resources/views/productos/vistaUsuario.blade.php deleted file mode 100644 index 10b5d82..0000000 --- a/resources/views/productos/vistaUsuario.blade.php +++ /dev/null @@ -1,12 +0,0 @@ - -
- Volver a catalogo -

Titulo: {{ $producto->name }}

-

- Categoria: {{ $producto->type }} -

-

- {{ $producto->content }} -

-
-
diff --git a/routes/web.php b/routes/web.php index 61e25b2..a8caadd 100644 --- a/routes/web.php +++ b/routes/web.php @@ -49,6 +49,3 @@ Route::middleware(['auth'])->group(function () { Route::patch('/{appointment}/status', 'updateStatus')->name('updateStatus'); }); }); - - -Route::get('/productos/{id}/vistaUsuario', [ProductosController::class,'vistaUsuario'])->name('productos.vistaUsuario'); \ No newline at end of file
Cliente / Email Teléfono / WhatsApp
-
{{ $client->name }}
-
+
{{ $client->name }}
+
{{ $client->email ?? 'Sin email registrado' }}
@if($client->phone)
- {{ $client->phone }} - WA + {{ $client->phone }} + WA
@else - No registrado + No registrado @endif
- + {{ $client->address ?? '-' }} - - Editar + + + - -
+ @csrf @method('DELETE') - - -
+
- Editar + + + + + + + +
+ @csrf + @method('DELETE') + +
+ No se encontraron productos.