@extends('layouts.layout-horizontal') @section('title', 'Bank Statement') @section('content')
@if($account) Add Receipt Add Payment @endif
@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) }}
@forelse($transactions as $tx) @empty @endforelse
Date Type Party Reference Remarks Credit (In) Debit (Out)
{{ \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) : '—' }}
No transactions in this period
Totals: ₹{{ indian_number($totalCredit, 2) }} ₹{{ indian_number($totalDebit, 2) }}
@else
No bank accounts found. Add one.
@endif
@endsection