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

Rezervasyon Detayı #{{ $reservation->id }}

Rezervasyon detayları ve işlem geçmişi.

@if($reservation->status === 'pending_payment' || $reservation->status === 'paid')
@csrf
@endif @if(in_array($reservation->status, ['pending_payment', 'paid', 'confirmed']))
@csrf
@endif @if($reservation->status === 'confirmed')
@csrf
@endif
Onay Kodu
{{ $reservation->confirmation_code }}
Misafir Adı
{{ $reservation->customer_name }}
E-posta
{{ $reservation->customer_email }}
@if($reservation->customer_phone)
Telefon
{{ $reservation->customer_phone }}
@endif
Tarih
{{ \Carbon\Carbon::parse($reservation->reservation_date)->format('d.m.Y') }}
Saat
{{ substr($reservation->reservation_time, 0, 5) }}
Kişi Sayısı
{{ $reservation->party_size }} kişi
Masa
{{ $reservation->table ? $reservation->table->name : 'Atanmamış' }}
Durum
@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 Edildi', 'completed' => 'Tamamlandı', ]; @endphp {{ $statusLabels[$reservation->status] }}
@if($reservation->special_requests)
Özel İstekler
{{ $reservation->special_requests }}
@endif @if($reservation->menu_notes)
Menü Tercihleri
{{ $reservation->menu_notes }}
@endif
Oluşturulma
{{ $reservation->created_at->format('d.m.Y H:i') }}
@if($reservation->notifications && $reservation->notifications->count() > 0)

Bildirim Geçmişi

@foreach($reservation->notifications as $notification)
notifications
{{ $notification->type }}
{{ $notification->created_at->format('d.m.Y H:i') }}
@endforeach
@endif
@endsection