arreglitos esteticos

This commit is contained in:
gianella
2026-04-05 01:50:59 -03:00
parent b571d32609
commit 6abef7afd8
4 changed files with 25 additions and 7 deletions
+5 -2
View File
@@ -59,8 +59,11 @@ class ClientController extends Controller
else if ($request->input('origin') === 'taller') { else if ($request->input('origin') === 'taller') {
// Si vino de taller, volvemos a taller con el cliente nuevo // Si vino de taller, volvemos a taller con el cliente nuevo
return redirect()->route('taller.create', ['new_client_id' => $client->id]) return redirect()->route('taller.create', [
->with('success', 'Cliente creado. Ya puedes seleccionarlo.'); 'new_client_id' => $client->id,
'new_client_name' => $client->name,
'new_client_phone' => $client->phone
])->with('success', 'Cliente creado. Ya puedes seleccionarlo.');
} }
// 3. Si no, vuelvo al index de clientes // 3. Si no, vuelvo al index de clientes
+8
View File
@@ -1,4 +1,12 @@
<x-layout title="Agenda"> <x-layout title="Agenda">
<style>
:root {
--fc-border-color: #979393a4 !important;
}
html.dark {
--fc-border-color: #5c5a5b !important;
}
</style>
<div class="flex w-full justify-between items-end mb-6"> <div class="flex w-full justify-between items-end mb-6">
+5 -2
View File
@@ -92,11 +92,13 @@
</div> </div>
</form> </form>
<!-- GRILLA DE PRODUCTOS -->
<!-- GRILLA DE PRODUCTOS --> <!-- GRILLA DE PRODUCTOS -->
@if ($products->count() > 0) @if ($products->count() > 0)
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6"> <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6">
@foreach ($products as $product) @foreach ($products as $product)
<div class="group p-4 border bg-stone-200/30 dark:bg-neutral-950/30 border-neutral-200 dark:border-neutral-800 rounded-xl hover:border-lime-500 hover:dark:border-neon-lime hover:-translate-y-1 transition-all duration-300"> <!-- ACÁ ESTÁ EL PRIMER CAMBIO: Agregamos "flex flex-col h-full" -->
<div class="group flex flex-col h-full p-4 border bg-stone-200/30 dark:bg-neutral-950/30 border-neutral-200 dark:border-neutral-800 rounded-xl hover:border-lime-500 hover:dark:border-neon-lime hover:-translate-y-1 transition-all duration-300">
{{-- Imagen si existe --}} {{-- Imagen si existe --}}
@if (!empty($product->image_path)) @if (!empty($product->image_path))
@@ -108,7 +110,8 @@
</div> </div>
@endif @endif
<h2 class="text-lg font-semibold text-black dark:text-white">{{ $product->name }}</h2> <!-- ACÁ ESTÁ EL SEGUNDO CAMBIO: Agregamos "flex-1" al título -->
<h2 class="text-lg font-semibold text-black dark:text-white flex-1">{{ $product->name }}</h2>
{{-- Precio --}} {{-- Precio --}}
@if (!empty($product->price)) @if (!empty($product->price))
+7 -3
View File
@@ -27,19 +27,23 @@
<div> <div>
<label class="block text-xs font-bold text-gray-400 uppercase mb-2">Propietario</label> <label class="block text-xs font-bold text-gray-400 uppercase mb-2">Propietario</label>
<select name="client_id" class="w-full bg-neutral-900 border border-neutral-700 text-white rounded-lg p-2.5 focus:ring-neon-lime focus:border-neon-lime"> <select name="client_id" class="w-full bg-neutral-900 border border-neutral-700 text-white rounded-lg p-2.5 focus:ring-neon-lime focus:border-neon-lime">
<option value="" disabled {{ !request('new_client_id') ? 'selected' : '' }}>-- Seleccione un propietario --</option>
@foreach($clients as $client) @foreach($clients as $client)
<option value="{{ $client->id }}">{{ $client->name }}</option>
<option value="{{ $client->id }}" {{ request('new_client_id') == $client->id ? 'selected' : '' }}>
{{ $client->name }}
</option>
@endforeach @endforeach
</select> </select>
<a href="{{ route('clients.create', ['origin' => 'taller']) }}" class="text-xs text-neon-lime hover:underline mt-1 inline-block">+ Nuevo Cliente</a> <a href="{{ route('clients.create', ['origin' => 'taller']) }}" class="text-xs text-neon-lime hover:underline mt-1 inline-block">+ Nuevo Cliente</a>
</div> </div>
<div> <div>
<label class="block text-xs font-bold text-gray-400 uppercase mb-2">Teléfono Aviso</label> <label class="block text-xs font-bold text-gray-400 uppercase mb-2">Teléfono Aviso</label>
<input type="text" name="contact_phone" placeholder="Ingresar numero de telefono" class="w-full bg-neutral-900 border border-neutral-700 text-white rounded-lg p-2.5 focus:ring-neon-lime focus:border-neon-lime">
<input type="text" name="contact_phone" value="{{ request('new_client_phone') }}" placeholder="Ingresar numero de telefono" class="w-full bg-neutral-900 border border-neutral-700 text-white rounded-lg p-2.5 focus:ring-neon-lime focus:border-neon-lime">
</div> </div>
</div> </div>
</div> </div>
<!-- 2. Diagnóstico y Repuestos --> <!-- 2. Diagnóstico y Repuestos -->
<div class="border-b border-neutral-800 pb-6"> <div class="border-b border-neutral-800 pb-6">
<h3 class="text-white font-bold uppercase tracking-wider text-sm mb-4 flex items-center gap-2"> <h3 class="text-white font-bold uppercase tracking-wider text-sm mb-4 flex items-center gap-2">