@extends('crm.master') @section('title', 'Transactions') @php $selectedPaymentTypes = $filters['payment_types'] ?? []; $selectedEvents = $filters['events'] ?? []; $selectedStaff = $filters['staff'] ?? []; $selectedCategoryIds = array_map('intval', $filters['category_ids'] ?? []); $paymentTypeSummary = count($selectedPaymentTypes) ? count($selectedPaymentTypes) . ' selected' : 'All payment types'; $eventSummary = count($selectedEvents) ? count($selectedEvents) . ' selected' : 'All events'; $staffSummary = count($selectedStaff) ? count($selectedStaff) . ' selected' : 'All staff'; $categorySummary = count($selectedCategoryIds) ? count($selectedCategoryIds) . ' selected' : 'All categories'; @endphp @section('content')
| Booking No | Date | Event | Amount | Payment Type | User Account | Payment Customer | Payment Provider | Provider Transaction | Booking Date | Booking Code | Item Name | Category |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| {{ $transaction->booking?->booking_number }} |
{{ optional($transaction->processed_at ?? $transaction->created_at)?->format('m/d/y') }} {{ optional($transaction->processed_at ?? $transaction->created_at)?->format('h:i A') }} |
{{ strtoupper($transaction->event_label) }} | ${{ number_format((float) $transaction->amount, 2) }} | {{ $transaction->payment_type_label }} | {{ $transaction->staff_label }} | {{ $transaction->booking?->customer_name }} | {{ $transaction->payment_provider ?: 'None' }} | {{ $transaction->provider_reference ?: '-' }} | {{ optional($transaction->booking?->start_datetime)?->format('m/d/y') ?: '-' }} | {{ $transaction->booking?->booking_number }} | {{ $transaction->item_names ?: '-' }} | {{ $transaction->category_names ?: '-' }} |
| No transactions found for the selected filters. | ||||||||||||