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

Bugünkü Rezervasyonlar - {{ $restaurant->name }}

{{ \Carbon\Carbon::today()->isoFormat('DD MMMM YYYY') }} tarihli rezervasyonlar

@if($reservations->count() > 0)
@foreach($reservations as $reservation)
{{ substr($reservation->reservation_time, 0, 5) }}
@php $statusColors = [ 'pending' => 'bg-yellow-100 text-yellow-800', 'confirmed' => 'bg-blue-100 text-blue-800', ]; $statusLabels = [ 'pending' => 'Bekliyor', 'confirmed' => 'Onaylandı', ]; @endphp {{ $statusLabels[$reservation->status] }}
{{ $reservation->customer_name }}
@if($reservation->customer_email)
{{ $reservation->customer_email }}
@endif
Kişi: {{ $reservation->party_size }}
@if($reservation->table)
Masa: {{ $reservation->table->name }}
@endif @if($reservation->customer_phone)
Telefon: {{ $reservation->customer_phone }}
@endif
@endforeach
@else
event_busy

Bugün Rezervasyon Yok

Bugün için planlanmış rezervasyon bulunmamaktadır.

@endif
@endsection