@extends('layouts.app') @section('title', 'Cash Flow Report') @section('breadcrumb')
{{ \Carbon\Carbon::parse($startDate)->format('M d, Y') }} - {{ \Carbon\Carbon::parse($endDate)->format('M d, Y') }}
| 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) }} |