{{$title}}

{{$agents->company_name}}

@foreach($statements as $statement) @endforeach
Date Description Debit Credit Balance
{{ date('d M Y', strtotime($statement->transaction_date)) }} {{ $statement->description }} @if($statement->invoice_id) (Invoice: #{{ $statement->invoice_id }}) @endif @if($statement->payment_id) (Payment: #{{ $statement->payment_id }}) @endif {{ $statement->type == 'debit' ? number_format($statement->amount, 2) : '-' }} {{ $statement->type == 'credit' ? number_format($statement->amount, 2) : '-' }} {{ number_format($statement->balance, 2) }}