@extends('layouts.app') @section('content')

Cash Flow Statement

Period: {{ \Carbon\Carbon::parse($fromDate)->format('d M Y') }} to {{ \Carbon\Carbon::parse($toDate)->format('d M Y') }}

Cash Inflows (Receipts)

@forelse($inflows as $inflow) @empty @endforelse
{{ $inflow->account->name ?? 'Unknown' }} {{ number_format($inflow->amount, 2) }}
No inflows recorded
Total Inflows Rs. {{ number_format($totalInflow, 2) }}

Cash Outflows (Payments)

@forelse($outflows as $outflow) @empty @endforelse
{{ $outflow->account->name ?? 'Unknown' }} {{ number_format($outflow->amount, 2) }}
No outflows recorded
Total Outflows Rs. {{ number_format($totalOutflow, 2) }}
@php $netCashFlow = $totalInflow - $totalOutflow; @endphp
Net Cash Flow
Rs. {{ number_format(abs($netCashFlow), 2) }} {{ $netCashFlow >= 0 ? '(Positive)' : '(Negative)' }}
@endsection