@extends('layouts.app') @section('content')

Rezervasyonlar - {{ $restaurant->name }}

Tüm rezervasyonları görüntüleyin ve yönetin.

@if($reservations->count() > 0)
@foreach($reservations as $reservation) @endforeach
Kod Misafir Durum İşlemler
{{ $reservation->confirmation_code }}
{{ $reservation->customer_name }}
{{ $reservation->customer_email }}
@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')
@csrf
@endif @if(in_array($reservation->status, ['pending_payment', 'paid', 'confirmed']))
@csrf
@endif @if($reservation->status === 'confirmed')
@csrf
@endif
{{ $reservations->links() }}
@else
event_busy

Rezervasyon bulunamadı.

@endif
@endsection