@extends('layouts.app') @section('title', 'Beach Reservations') @section('content')

Beach Reservations

{{-- --}}

All Beach Reservations

@if(request('search')) @endif
@forelse($reservations as $reservation) @empty @endforelse
ID Customer Reservation Date Persons Instagram Status Created Actions
{{ $reservation->id }}
{{ $reservation->full_name }}
{{ $reservation->user->email }}
{{ $reservation->formatted_date }} {{ $reservation->number_of_persons }} View Profile @php $statusColors = [ 'pending' => ['bg' => 'bg-warning', 'text' => 'text-dark'], 'approved' => ['bg' => 'bg-success', 'text' => 'text-white'], 'rejected' => ['bg' => 'bg-danger', 'text' => 'text-white'] ]; $status = $reservation->status; $colors = $statusColors[$status]; @endphp {{ ucfirst($status) }} {{ $reservation->created_at->format('M d, Y H:i') }}
@if($reservation->isPending())
@csrf
@csrf
@endif
No beach reservations found
@endsection