@if($account)
{{-- Account Info + Summary --}}
{{ $account->name }}@if($account->bank_name) · {{ $account->bank_name }}@endif
@if($account->account_no)
A/C: {{ $account->account_no }}@if($account->ifsc) · IFSC: {{ $account->ifsc }}@endif
@endif
@if($account->branch)
Branch: {{ $account->branch }}
@endif
Total Receipts
₹{{ indian_number($totalCredit, 2) }}
Total Payments
₹{{ indian_number($totalDebit, 2) }}
@php $canDeleteBankStatement = in_array(auth()->user()->role, ['admin', 'ca'], true); @endphp
| Date |
Type |
Party |
Reference |
Remarks |
Credit (In) |
Debit (Out) |
@if($canDeleteBankStatement)
Action |
@endif
@forelse($transactions as $tx)
| {{ \Carbon\Carbon::parse($tx->date)->format('d-M-Y') }} |
@if($tx->type === 'Receipt')
Receipt
@else
Payment
@endif
|
{{ $tx->party ?? '—' }} |
{{ $tx->reference ?? '—' }} |
{{ $tx->remarks ?? '—' }} |
{{ $tx->credit > 0 ? '₹'.indian_number($tx->credit, 2) : '—' }}
|
{{ $tx->debit > 0 ? '₹'.indian_number($tx->debit, 2) : '—' }}
|
@if($canDeleteBankStatement)
|
@endif
@empty
| No transactions in this period |
@endforelse
| Totals: |
₹{{ indian_number($totalCredit, 2) }} |
₹{{ indian_number($totalDebit, 2) }} |
@if($canDeleteBankStatement)
|
@endif
@else
No bank accounts found.
Add one.
@endif