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..e3e742f 100644 --- a/resources/views/productos/create.blade.php +++ b/resources/views/productos/create.blade.php @@ -1,27 +1,22 @@ -
-
@csrf -
- +
-
-
@@ -32,52 +27,45 @@
-
-
-
-
- - +
- +
- {{-- @error('image') {{ $message }} @enderror --}}
- Cancelar + Cancelar
-
\ 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/resources/views/sales/create.blade.php b/resources/views/sales/create.blade.php index bfdacea..7a16985 100644 --- a/resources/views/sales/create.blade.php +++ b/resources/views/sales/create.blade.php @@ -1,36 +1,85 @@ @push('styles') @endpush @@ -48,11 +97,11 @@ @endif -
+
@csrf -
+
@@ -65,26 +114,24 @@
-
- Total Items: 1 +
+ Total Items: 1
-
+
- + + +
- Subtotal - $0.00 + Subtotal + $0.00
-
-
-
+
- Monto Total a Pagar - $0.00 + Monto Total a Pagar + $0.00
-
+
- @@ -146,10 +192,8 @@
- - Cancelar - -
diff --git a/resources/views/sales/index.blade.php b/resources/views/sales/index.blade.php index 53f0564..782cbd4 100644 --- a/resources/views/sales/index.blade.php +++ b/resources/views/sales/index.blade.php @@ -2,25 +2,23 @@ -
+
- +
- +
- + + +
- - + +
- @if(request()->hasAny(['search', 'client_id', 'date_from', 'date_to'])) - + @@ -61,14 +57,14 @@
-
-
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.
- +
+
+ @@ -78,49 +74,48 @@ - + @forelse($sales as $sale) - - - + - -
# Ref FechaAcciones
+
#{{ str_pad($sale->id, 5, '0', STR_PAD_LEFT) }} + {{ $sale->created_at->format('d/m/Y H:i') }} @if($sale->client) -
{{ $sale->client->name }}
-
{{ $sale->client->phone ?? '' }}
+
{{ $sale->client->name }}
+
{{ $sale->client->phone ?? '' }}
@else - Consumidor Final + Consumidor Final @endif
@php $colors = [ - 'Efectivo' => 'text-green-400 bg-green-900/20 border-green-800', - 'Transferencia' => 'text-blue-400 bg-blue-900/20 border-blue-800', - 'Tarjeta de Débito' => 'text-purple-400 bg-purple-900/20 border-purple-800', - 'Tarjeta de Crédito' => 'text-orange-400 bg-orange-900/20 border-orange-800', + 'Efectivo' => 'text-white dark:text-green-400 bg-green-600/80 dark:bg-green-900/20 border-green-800', + 'Transferencia' => 'text-white dark:text-blue-400 bg-blue-600/80 dark:bg-blue-900/20 border-blue-800', + 'Tarjeta de Débito' => 'text-white dark:text-purple-400 bg-purple-600/80 dark:bg-purple-900/20 border-purple-800', + 'Tarjeta de Crédito' => 'text-white dark:text-orange-400 bg-orange-600/80 dark:bg-orange-900/20 border-orange-800', ]; - $badgeClass = $colors[$sale->payment_method] ?? 'text-gray-400 bg-gray-800 border-gray-700'; + $badgeClass = $colors[$sale->payment_method] ?? 'bg-gray-400 dark:bg-gray-800 border-gray-700'; @endphp {{ $sale->payment_method }} + ${{ number_format($sale->total, 2) }} @@ -143,8 +138,7 @@
-
+
{{ $sales->links() }}
- \ No newline at end of file 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