Account Statement

Customer: {{ $user->name }} ({{ $user->company_name }})

Period: {{ $statementData['statement_period_start']->format('d M Y') }} to {{ $statementData['statement_period_end']->format('d M Y') }}

📧 Email Message:
{!! nl2br(e($emailMessage)) !!}

Statement Summary

Total Invoiced Amount: BDT {{ number_format($statementData['total_invoice_amount'], 2) }}
Total Amount Received: BDT {{ number_format($statementData['total_paid_amount'], 2) }}
Balance Due: BDT {{ number_format(max(0, $statementData['total_invoice_amount'] - $statementData['total_paid_amount']), 2) }}
Advance Amount: BDT {{ number_format($statementData['advance_amount'], 2) }}

Account Details

Account Status: {{ $statementData['account_status'] }}

Payment Status: {{ $statementData['payment_status'] }}

Total Invoices: {{ $statementData['total_invoices'] }}

Paid Invoices: {{ $statementData['paid_invoices'] }}

Pending Invoices: {{ $statementData['pending_invoices'] }}

@if($statementData['last_transaction_date'])

Last Transaction: {{ $statementData['last_transaction_date']->format('d M Y') }}

@endif @if($statementData['last_invoice_date'])

Last Invoice: {{ $statementData['last_invoice_date']->format('d M Y') }}

@endif