@extends('layouts.app') @section('title', 'Cash Flow Report') @section('breadcrumb') @endsection @section('content') {{-- Date Filter --}}
{{-- Summary Cards --}}
Rs. {{ number_format($totalInflows, 0) }}
Total Inflows
Rs. {{ number_format($totalOutflows, 0) }}
Total Outflows
Rs. {{ number_format(abs($netCashFlow), 0) }}
{{ $netCashFlow >= 0 ? 'Net Cash Flow' : 'Cash Deficit' }}
{{-- Cash Inflows --}}
Cash Inflows
Rs. {{ number_format($totalInflows, 2) }}
Cash Sales Direct cash payments
Rs. {{ number_format($cashSales, 2) }}
Card Payments Credit/Debit card
Rs. {{ number_format($cardSales, 2) }}
Other Payments Bank transfer, mobile, etc.
Rs. {{ number_format($otherInflows, 2) }}
{{-- Cash Outflows --}}
Cash Outflows
Rs. {{ number_format($totalOutflows, 2) }}
Cash Expenses Paid in cash
Rs. {{ number_format($expensesByCash, 2) }}
Bank/Card Expenses Transfer and card payments
Rs. {{ number_format($expensesByBank, 2) }}
Purchase Payments Supplier payments
Rs. {{ number_format($purchasePayments, 2) }}
{{-- Daily Cash Flow Table --}}
Daily Cash Flow
@php $runningTotal = 0; @endphp @foreach($dailyCashFlow as $day) @php $runningTotal += $day['net']; @endphp @endforeach
Date Inflows Outflows Net
{{ \Carbon\Carbon::parse($day['date'])->format('M d, Y (D)') }} @if($day['inflow'] > 0) Rs. {{ number_format($day['inflow'], 2) }} @else - @endif @if($day['outflow'] > 0) Rs. {{ number_format($day['outflow'], 2) }} @else - @endif {{ $day['net'] >= 0 ? '+' : '' }}Rs. {{ number_format($day['net'], 2) }}
Total Rs. {{ number_format($totalInflows, 2) }} Rs. {{ number_format($totalOutflows, 2) }} {{ $netCashFlow >= 0 ? '+' : '' }}Rs. {{ number_format($netCashFlow, 2) }}
@push('styles') @endpush @endsection