@extends('layouts.app') @section('title', 'Daily Cash Report') @section('breadcrumb') @endsection @section('content')
Today
৳{{ number_format($totalInflow,0) }}
Total Inflow
৳{{ number_format($totalOutflow,0) }}
Total Outflow
৳{{ number_format(abs($netCash),0) }}
Net {{ $netCash >= 0 ? 'Surplus' : 'Deficit' }}
{{ $salesCash->count() }}
Sales Today
{{-- Account Summary --}}
By Account
@foreach($accountSummary as $a) @if($a['inflow'] > 0 || $a['outflow'] > 0) @endif @endforeach
AccountInOutNet
{{ $a['account']->name }} ৳{{ number_format($a['inflow'],0) }} ৳{{ number_format($a['outflow'],0) }} ৳{{ number_format($a['inflow']-$a['outflow'],0) }}
{{-- Cash Inflows --}}
@if($salesCash->count())
Sales Collected (৳{{ number_format($salesCash->sum('paid_amount'),0) }})
@foreach($salesCash as $s) @endforeach
InvoiceCustomerMethodCollected
{{ $s->invoice_no }} {{ $s->customer?->name ?? 'Walk-in' }} {{ ucfirst(str_replace('_',' ',$s->payment_method)) }} ৳{{ number_format($s->paid_amount,2) }}
@endif @if($customerPayments->count())
Customer Payments (৳{{ number_format($customerPayments->sum('amount'),0) }})
@foreach($customerPayments as $p) @endforeach
CustomerAccountMethodAmount
{{ $p->customer->name }} {{ $p->account->name }} {{ ucfirst(str_replace('_',' ',$p->payment_method)) }} ৳{{ number_format($p->amount,2) }}
@endif @if($supplierPayments->count())
Supplier Payments Out (৳{{ number_format($supplierPayments->sum('amount'),0) }})
@foreach($supplierPayments as $p) @endforeach
SupplierAccountMethodAmount
{{ $p->supplier->name }} {{ $p->account->name }} {{ ucfirst(str_replace('_',' ',$p->payment_method)) }} ৳{{ number_format($p->amount,2) }}
@endif @if(!$salesCash->count() && !$customerPayments->count() && !$supplierPayments->count())

No cash transactions on {{ $date->format('d M Y') }}

@endif
@endsection