@extends('layouts.inspinia') @section('title', 'Cash Movement Summary') @section('content_header', 'Cash Movement Summary') @section('breadcrumb') @endsection @section('content')
Important: This is an operational cash movement summary, not a reconciled bank or cashbook statement. Opening balances are not calculated in this phase. Inflows = posted customer receipts (base TZS). Outflows = posted supplier payments + posted expenses.
{{-- Filter Form --}}
Filters
Reset
{{-- Net Position Cards --}}

{{ number_format($totalInflows, 2) }}

Total Inflows (TZS) {{ $inflowCount }} receipts

{{ number_format($totalOutflows, 2) }}

Total Outflows {{ $supplierOutCount + $expenseOutCount }} transactions

{{ number_format($netMovement, 2) }}

Net Movement {{ $netMovement >= 0 ? '(Surplus)' : '(Deficit)' }}

{{-- Inflows by Method --}}
Inflows by Method
@if($inflowsByMethod->isEmpty())
No inflows in period
@else @foreach($inflowsByMethod as $row) @endforeach
MethodTZSCnt
{{ ucfirst(str_replace('_', ' ', $row->payment_method ?? 'N/A')) }} {{ number_format($row->total, 2) }} {{ $row->cnt }}
@endif
{{-- Supplier Outflows by Method --}}
Supplier Payments by Method
@if($supplierOutByMethod->isEmpty())
No supplier payments in period
@else @foreach($supplierOutByMethod as $row) @endforeach
MethodAmountCnt
{{ ucfirst(str_replace('_', ' ', $row->payment_method ?? 'N/A')) }} {{ number_format($row->total, 2) }} {{ $row->cnt }}
@endif
{{-- Expense Outflows by Method --}}
Expenses by Method
@if($expenseOutByMethod->isEmpty())
No expenses in period
@else @foreach($expenseOutByMethod as $row) @endforeach
MethodAmountCnt
{{ ucfirst(str_replace('_', ' ', $row->payment_method ?? 'N/A')) }} {{ number_format($row->total, 2) }} {{ $row->cnt }}
@endif
{{-- Summary Statement --}}
Movement Statement — {{ $from }} to {{ $to }}
Inflows
Customer Receipts (Base TZS) {{ $inflowCount }} receipts {{ number_format($totalInflows, 2) }}
Outflows
Supplier Payments {{ $supplierOutCount }} payments {{ number_format($totalSupplierOut, 2) }}
Expenses {{ $expenseOutCount }} expenses {{ number_format($totalExpenseOut, 2) }}
Total Outflows {{ number_format($totalOutflows, 2) }}
Net Movement {{ number_format($netMovement, 2) }}
{{-- Daily Inflow Trend --}} @if($inflowsByDate->isNotEmpty())
Daily Inflow Trend
@foreach($inflowsByDate as $row) @endforeach
DateBase (TZS)Receipts
{{ $row->txn_date }} {{ number_format($row->total, 2) }} {{ $row->cnt }}
@endif @endsection