{{ __('Agenda de Citas') }}

Programación de servicios y recepción de vehículos.

@if (session('status'))
{{ session('status') }}
@endif

{{ now()->translatedFormat('F Y') }}

@foreach(['L','M','X','J','V','S','D'] as $day)
{{ $day }}
@endforeach @php $startOfMonth = now()->startOfMonth(); $daysInMonth = now()->daysInMonth; $dayOfWeek = $startOfMonth->dayOfWeekIso; @endphp @for($i=1; $i<$dayOfWeek; $i++)
@endfor @for($i=1; $i<=$daysInMonth; $i++)
@endfor

Resumen

Pendientes {{ $appointments->where('status', 'scheduled')->count() }}
Confirmadas {{ $appointments->where('status', 'confirmed')->count() }}

Próximas Citas

{{ now()->translatedFormat('d \d\e F, Y') }}
@forelse($appointments as $appointment)
@php $statusColors = [ 'scheduled' => ['bg' => 'bg-slate-700', 'text' => 'text-slate-400', 'border' => 'border-slate-700'], 'confirmed' => ['bg' => 'bg-green-600', 'text' => 'text-green-400', 'border' => 'border-green-600'], 'completed' => ['bg' => 'bg-blue-600', 'text' => 'text-blue-400', 'border' => 'border-blue-600'], 'cancelled' => ['bg' => 'bg-red-600', 'text' => 'text-red-400', 'border' => 'border-red-600'], ]; $color = $statusColors[$appointment->status]; @endphp

{{ \Carbon\Carbon::parse($appointment->scheduled_at)->format('H:i A') }} • {{ \Carbon\Carbon::parse($appointment->scheduled_at)->format('d/m') }}

{{ $appointment->description ?? 'Servicio General' }}

Cliente: {{ $appointment->customer->name }} • {{ $appointment->vehicle->make ?? 'N/A' }} {{ $appointment->vehicle->model ?? '' }}

@csrf @method('PATCH')
@csrf @method('DELETE')
@empty

No hay citas programadas.

@endforelse