@extends('layouts.app') @section('content')
Tüm rezervasyonları görüntüleyin ve yönetin.
| Kod | Misafir | Tarih/Saat | Kişi | Masa | Durum | İşlemler |
|---|---|---|---|---|---|---|
|
{{ $reservation->confirmation_code
}}
|
{{ $reservation->customer_name }}
{{ $reservation->customer_email }}
|
{{
\Carbon\Carbon::parse($reservation->reservation_date)->format('d.m.Y') }}
{{ substr($reservation->reservation_time, 0, 5) }}
|
{{ $reservation->party_size }} kişi | {{ $reservation->table->name ?? '-' }} | @php $statusColors = [ 'pending_payment' => 'bg-yellow-100 text-yellow-800', 'paid' => 'bg-green-100 text-green-800', 'confirmed' => 'bg-blue-100 text-blue-800', 'cancelled' => 'bg-red-100 text-red-800', 'completed' => 'bg-gray-100 text-gray-800', ]; $statusLabels = [ 'pending_payment' => 'Ödeme Bekliyor', 'paid' => 'Ödendi', 'confirmed' => 'Onaylandı', 'cancelled' => 'İptal', 'completed' => 'Tamamlandı', ]; @endphp {{ $statusLabels[$reservation->status] }} | Detay @if($reservation->status === 'pending_payment') @endif @if(in_array($reservation->status, ['pending_payment', 'paid', 'confirmed'])) @endif @if($reservation->status === 'confirmed') @endif |
Rezervasyon bulunamadı.