Seva Bookings Report

Sri Vidya Saraswathi Shani Temples - Wargal

@if($selectedBookingDate)

Report for Booking Date: {{ $selectedBookingDate }}

@endif @if($selectedCategory)

Category: {{ $selectedCategory->name }} ({{ $selectedCategory->temple->name }})

@endif @if($selectedSeva)

Seva: {{ $selectedSeva->name }}

@endif

Generated on: {{ now()->setTimezone('Asia/Kolkata')->format('d M Y, h:i A') }}

Report Summary

{{ $bookings->sum(function($booking) { return count($booking->cart_data ?? []); }) }}
Total Seva Items
{{ $bookings->where('status', 'confirmed')->count() }}
Confirmed Bookings
{{ $bookings->where('status', 'pending')->count() }}
Pending Bookings
{{ $bookings->where('status', 'cancelled')->count() }}
Cancelled Bookings
@if($bookings->count() > 0) @php $rowIndex = 0; @endphp @foreach($bookings as $booking) @foreach($booking->cart_data ?? [] as $cartItem) @if($rowIndex > 0 && $rowIndex % 25 == 0) @endif @php $rowIndex++; @endphp @endforeach @endforeach
Customer Gothram Seva Date & Time Temple Category Status
{{ $booking->user->name }} {{ data_get($booking->devotee_details, 'gotram', 'N/A') }} {{ data_get($cartItem, 'name') }} {{ \Carbon\Carbon::parse(data_get($cartItem, 'date'))->format('d M Y') }}
{{ data_get($cartItem, 'time_slot', 'Any Time') }}
{{ data_get($cartItem, 'temple_name', 'N/A') }} {{ data_get($cartItem, 'category_name', 'N/A') }} {{ ucfirst($booking->status) }}
@else

No bookings found for the selected criteria

Please adjust your filters and try again.

@endif