@forelse($groupedBookings as $reference => $bookingsForReference) @php $totalForReference = 0; @endphp @foreach($bookingsForReference as $booking) @php if ($booking->camp_package) { $totalForReference += $booking->camp_package->price; } @endphp @endforeach @empty @endforelse
Reference Child Camp Location Status Date Actions Price
Booking Reference: {{ $reference }}
{{ $booking->payment_reference }} {{ $booking->child_name }} {{ $booking->camp_package?->name ?? 'N/A' }} {{ $booking->location ?? 'N/A' }} @php $statusClass = match($booking->status) { 'pending' => 'badge bg-warning text-dark', 'confirmed' => 'badge bg-success', 'rejected' => 'badge bg-danger', default => 'badge bg-secondary', }; @endphp {{ ucfirst($booking->status) }} {{ $booking->created_at->format('M d, Y') }} R{{ number_format($booking->camp_package?->price ?? 0, 2) }}
Total for Reference {{ $reference }}: R{{ number_format($totalForReference, 2) }}
No recent bookings found.