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

Cash & Bank Management

Track cash flow, bank deposits, withdrawals, and transfers between Cash, M-Pesa, card, and bank accounts.
Accounting
@if(session('success'))
{{session('success')}}
@endif @if($errors->any())
{{$errors->first()}}
@endif
@foreach($accountBalances as $account)
{{$account->account_name}}{{number_format($account->calculated_balance,2)}}
@endforeach
Record Cash / Bank Movement
@csrf

Cash Flow Movement

@forelse($cashFlowRows as $row)@empty@endforelse
AccountOpening BalanceMoney InMoney OutClosing Balance
{{$row->account}}{{number_format($row->opening,2)}}{{number_format($row->money_in,2)}}{{number_format($row->money_out,2)}}{{number_format($row->closing,2)}}
No cash movement in this period.
Totals{{number_format($cashFlowRows->sum('opening'),2)}}{{number_format($cashFlowRows->sum('money_in'),2)}}{{number_format($cashFlowRows->sum('money_out'),2)}}{{number_format($cashFlowRows->sum('closing'),2)}}
@forelse($transactions as $t)@empty@endforelse
DateNo.BranchMovementFromToReferenceAmountStatusPosted ByAction
{{$t->transaction_date->format('Y-m-d H:i')}}{{$t->transaction_no}}{{$t->branch?->name}}{{ucwords(str_replace('_',' ',$t->transaction_type))}}{{$t->sourceAccount?->account_name}}{{$t->destinationAccount?->account_name}}{{$t->reference_no?:'-'}}{{number_format($t->amount,2)}}{{ucfirst($t->status)}}{{$t->creator?->name}}@if($t->status==='posted')
@csrf
@endif
No treasury movements found.
{{$transactions->links()}}
@endsection