@extends('layouts.app') @section('title', 'Cash Book') @section('content') {{-- ✅ Header Section --}}

Cash Book

Track all cash inflows and outflows with running balances.

{{-- ✅ Filter & Export Bar --}}
{{-- From Date --}}
{{-- To Date --}}
{{-- Action Buttons --}}
Filter
PDF Excel
{{-- ✅ Table Card --}}
@forelse($lines as $line) {{-- Date --}} {{-- Voucher --}} {{-- Account --}} {{-- Narration --}} {{-- Debit --}} {{-- Credit --}} {{-- Balance --}} @empty @endforelse {{-- Footer (Total Row) --}} @if (count($lines) > 0) @endif
Date Voucher Account Narration Debit Credit Balance
{{ $line['date'] }} {{ $line['voucher_number'] }} {{ $line['account'] }}{{ $line['narration'] }} {{ $line['debit'] > 0 ? number_format($line['debit'], 2) : '—' }} {{ $line['credit'] > 0 ? number_format($line['credit'], 2) : '—' }} {{ number_format($line['balance'], 2) }}
No entries found

There are no cash transactions in the selected period.

Total {{ number_format($total_debit, 2) }} {{ number_format($total_credit, 2) }} {{ number_format($closing_balance, 2) }}
@endsection