@extends('layouts.app') @section('title', 'Cash Flow') @section('content') @php $f = $filters ?? []; $qParams = array_filter([ 'q' => $f['q'] ?? '', 'project_id' => $f['project_id'] ?? '', 'status' => ($f['status'] ?? 'all') !== 'all' ? ($f['status'] ?? '') : null, 'type' => $f['type'] ?? '', 'date_from' => $f['date_from'] ?? '', 'date_to' => $f['date_to'] ?? '', ]); $net = $netPosition ?? 0; $netClass = $net > 0 ? 'text-emerald-600' : ($net < 0 ? 'text-red-600' : 'text-amber-600'); @endphp
Cash Flow Management
Track money coming in and going out
Current Balance
{{ \App\Support\Format::mwkDecimal($currentBalance ?? 0) }}
Posted income − expenses
Expected In (30d)
{{ \App\Support\Format::mwkDecimal($expectedIn30 ?? 0) }}
Pending inflows
Going Out (30d)
{{ \App\Support\Format::mwkDecimal($goingOut30 ?? 0) }}
Pending outflows
Net Position
{{ \App\Support\Format::mwkDecimal($net) }}
Balance + expected in − going out
Money In — {{ $periodLabel ?? '' }}
No money-in records found
Add an expected inflow or adjust your filters.
| Client/Source | Project | Amount | Date | Status | |
|---|---|---|---|---|---|
| {{ $src }} | @if($i->project_id) {{ $i->project?->name ?? 'Project #'.$i->project_id }} @else General @endif | {{ \App\Support\Format::mwkDecimal($i->amount) }} | {{ $dt?->format('M j, Y') }} | {{ $st }} | @if(!$i->is_received) @else Received @endif |
Money Out — {{ $periodLabel ?? '' }}
No money-out records found
Add an expected outflow or adjust your filters.
| Payable To | Type | Project | Amount | Due / Paid | Status | |
|---|---|---|---|---|---|---|
| {{ $pay }} | {{ $o->outflow_type }} | @if($o->project_id) {{ $o->project?->name ?? '#'.$o->project_id }} @else General @endif | {{ \App\Support\Format::mwkDecimal($o->amount) }} | {{ $dt?->format('M j, Y') }} | {{ $st }} | @if(!$o->is_paid) @else Paid @endif |
Add expected inflow
Add expected outflow