@if (isset($settings['icon']) && is_file('storage/settings/' . $settings['icon']))
@endif
{{ $settings['website_name'] ?? '' }}
{{ $settings['address'] ?? '' }}
{{ $settings['number_1'] ?? '' }}, {{ $settings['number_2'] ?? '' }}
Customer statement
Customer Name:
{{ $customer?->name }}
Start date:
{{ now()->startOfMonth()->format('d M, Y') }}
End date:
{{ now()->endOfMonth()->format('d M, Y') }}
| # | Date | Description | Debit | Credit | Runnnig balance |
|---|---|---|---|---|---|
| {{ $counter++ }} | {{ $customer->created_at->format('d M, Y') }} | Opening balance | {{ $customer->opening_balance }} | 0 | {{ $balance }} |
| {{ $counter++ }} | {{ \Carbon\Carbon::parse($customer->date)->format('d M, Y') }} | {{ $item?->description }} | {{ $item?->debit }} | {{ $item?->credit }} | {{ $balance }} |
| Total | {{ $debit }} | {{ $credit }} | {{ $debit - $credit }} | ||