{{-- Cash / bank book body. Expects the repository payload (accounts, rows, opening, closing, totalIn, totalOut, from, to) plus the labels the calling page sets: $heading, $crumb, $inLabel, $outLabel, $empty. --}} @include('backend.accounting.partials._filters')
{{ ___('admin.opening_56e440') }}

{{ currency_symbol() }}{{ number_format($opening, 2) }}

{{ $inLabel }}s

{{ currency_symbol() }}{{ number_format($totalIn, 2) }}

{{ $outLabel }}s

{{ currency_symbol() }}{{ number_format($totalOut, 2) }}

{{ ___('admin.closing_76a032') }}

{{ currency_symbol() }}{{ number_format($closing, 2) }}

@if($accounts->isEmpty())
{{ $empty }}
@else
{{ ___('admin.accounts_007803') }} {{ $accounts->pluck('name')->implode(', ') }}
@foreach($rows as $row) {{ $row['txn']->txn_date?->format('Y-m-d') }} {{ $row['txn']->description }} {{ $row['against'] }} {{ $row['txn']->reference }} {{ $row['debit'] ? currency_symbol().number_format($row['debit'], 2) : '—' }} {{ $row['credit'] ? currency_symbol().number_format($row['credit'], 2) : '—' }} {{ currency_symbol() }}{{ number_format($row['balance'], 2) }} @endforeach @endif