{{-- Header --}}
Logo

{{ $shop_infos->shop_name ?? '' }}

{{ $shop_infos->address ?? '' }}


Cash Detail Transaction
Period: {{ \Carbon\Carbon::parse($startDate)->format('d-m-Y') }}{{ \Carbon\Carbon::parse($endDate)->format('d-m-Y') }}
{{-- Summary Cards (screen only) --}}
Opening Balance
{{ number_format($openingBalance ?? 0, 2) }}
Total Receive
{{ number_format($total_debit, 2) }}
Total Payment
{{ number_format($total_credit, 2) }}
Closing Balance
{{ number_format($closingBalance ?? 0, 2) }}
{{-- Transactions Table --}} @php $running = $openingBalance ?? 0; @endphp @forelse($transactions as $key => $item) @php $running += $item->dr_amount - $item->cr_amount; @endphp @empty @endforelse
# Date Invoice No Description Ledger Name Sub-Ledger Project Receive (Dr) Payment (Cr) Balance
— {{ \Carbon\Carbon::parse($startDate)->format('d-m-Y') }} Opening Balance — — {{ number_format($running, 2) }}
{{ $key + 1 }} {{ \Carbon\Carbon::parse($item->date)->format('d-m-Y') }} {{ $item->invoice_no ?? '—' }} {{ $item->description ?? '—' }} {{ $item->contra_ledger_name ?? '—' }} {{ $item->contra_subledger_name ?? '—' }} {{ $item->project_name ?? '—' }} {{ $item->dr_amount > 0 ? number_format($item->dr_amount, 2) : '—' }} {{ $item->cr_amount > 0 ? number_format($item->cr_amount, 2) : '—' }} {{ number_format($running, 2) }}
No transactions found for this period.
Period Total {{ number_format($total_debit, 2) }} {{ number_format($total_credit, 2) }}
Opening Balance : {{ number_format($openingBalance ?? 0, 2) }}
+ Total Receive : {{ number_format($total_debit, 2) }}
− Total Payment : {{ number_format($total_credit, 2) }}
Closing Balance : {{ number_format($closingBalance ?? 0, 2) }}