Agent {{ $viewType === 'statement' ? 'Statement' : 'Payment History' }}

Agent: {{ $selectedAgent ? $selectedAgent->name : 'All Agents' }}

@if($from || $to)

Date Range: {{ $from }} to {{ $to }}

@endif @if($viewType === 'statement' && $serviceId)

Service: {{ $services->find($serviceId)->name ?? 'All Services' }}

@endif

Generated on: {{ now()->format('Y-m-d H:i:s') }}

@if($agentId) @if($viewType === 'statement' && ($orders->isNotEmpty() || $payments->isNotEmpty())) @foreach($orders as $order)
Type Date Customer Name Customer Identity Service Name Voucher ID Branch Payment Method Transaction ID Payable Paid Due