Randevularım Randevularım Anasayfa Aracım Sorgula Randevular Profil

Geçmiş ve Gelecek Randevular

+ İşletme Seç
@if(session('success'))
{{ session('success') }}
@endif @forelse($appointments as $appointment)

{{ $appointment->garage->garageDetail->business_name ?? $appointment->garage->name }}

{{ $appointment->service ? $appointment->service->name : 'Genel Kontrol/Hizmet' }}

@php $badgeColors = [ 'pending' => 'mef:bg-amber-100 mef:text-amber-700', 'approved' => 'mef:bg-blue-100 mef:text-blue-700', 'rejected' => 'mef:bg-red-100 mef:text-red-700', 'cancelled' => 'mef:bg-slate-100 mef:text-slate-600', 'completed' => 'mef:bg-green-100 mef:text-green-700', ]; $badgeLabels = [ 'pending' => 'Bekliyor', 'approved' => 'Onaylandı', 'rejected' => 'Reddedildi', 'cancelled' => 'İptal', 'completed' => 'Tamamlandı', ]; @endphp {{ $badgeLabels[$appointment->status] }}

Tarih & Saat

{{ $appointment->appointment_date->format('d.m.Y') }} - {{ \Carbon\Carbon::parse($appointment->appointment_time)->format('H:i') }}

Araç

{{ $appointment->car->plate }} ({{ $appointment->car->brand }})

@if($appointment->notes)
Not: {{ $appointment->notes }}
@endif @if($appointment->status === 'rejected' || $appointment->status === 'cancelled') @if($appointment->cancellation_reason)
İptal/Red Nedeni: {{ $appointment->cancellation_reason }}
@endif @endif @if(in_array($appointment->status, ['pending', 'approved']))
@csrf
@endif
@empty

Henüz bir randevunuz bulunmuyor.

@endforelse