@if ($bookings->count() > 0)
Booking ID

{{ $bookings->first()->branch_booking_id ?? $bookings->first()->id }}

@php $rawTable = trim($bookings->first()->table_no ?? ''); if ($rawTable !== '') { if (preg_match('/[a-zA-Z]/', $rawTable)) { $displayTable = $rawTable; } else { $displayTable = 'Table ' . $rawTable; } } else { $displayTable = 'Table ' . ($bookings->first()->table_no ?? ''); } @endphp {{ $displayTable }}
@foreach ($bookings->skip(1) as $booking)
Booking ID

{{ $booking->branch_booking_id ?? $booking->id }}

@php $rawTable1 = trim($booking->table_no ?? ''); if ($rawTable1 !== '') { if (preg_match('/[a-zA-Z]/', $rawTable1)) { $displayTable1 = $rawTable1; } else { $displayTable1 = 'Table ' . $rawTable1; } } else { $displayTable1 = 'Table ' . ($booking->table_no ?? ''); } @endphp {{ $displayTable1 }}
@endforeach
@else
No Assigned Bookings

Queue Empty

@endif