@extends('layouts.app') @section('page-title', 'Cash Book Report') @section('content')

Cash Book

Opening Balance

{{ number_format($openingBalance, 2) }}

Total Receipts

{{ number_format($totalReceipts, 2) }}

Total Payments

{{ number_format($totalPayments, 2) }}

Closing Balance

{{ number_format($closingBalance, 2) }}

@forelse($transactions as $transaction) @empty @endforelse
Date Type Details Receipts Payments Balance
{{ $transaction->date->format('M d, Y') }} {{ ucfirst($transaction->type) }} {{ $transaction->details ?? '-' }} {{ $transaction->type == 'income' ? number_format($transaction->amount, 2) : '-' }} {{ $transaction->type == 'expense' ? number_format($transaction->amount, 2) : '-' }} {{ number_format($transaction->balance_after, 2) }}
No transactions found.
@endsection