@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')

Transactions

{{ $options['label'] }}
@foreach($options['payment_types'] as $value => $label) @endforeach
@foreach($options['events'] as $value => $label) @endforeach
@foreach($options['staff'] as $staffName) @endforeach
@foreach($options['categories'] as $category) @endforeach
@if($filters['date_range'] === 'custom')
@endif
Clear
Transactions {{ number_format($summary['count']) }}
Total Amount ${{ number_format($summary['amount'], 2) }}
@forelse($transactions as $transaction) @empty @endforelse
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.
@endsection @section('head-extra') @endsection @section('page-script') @endsection