@if ($filter_from_date && $filter_to_date)
| {{ __('SL') }}. | {{ __('Date') }} | {{ __('Invoice') }} | {{ __('Name') }} | {{ __('Type') }} | {{ __('Cash In') }} | {{ __('Cash Out') }} | {{ __('Running Cash') }} | {{ __('Payment') }} | |||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| {{ $cash_flows->firstItem() + $loop->index }} | {{ formatted_date($cash_flow->date) }} | {{ $cash_flow->invoice_no }} | @if ($cash_flow->platform == 'sale'){{ $cash_flow->sale?->party?->name ?? 'Guest' }} | @elseif ($cash_flow->platform == 'sale_return'){{ $cash_flow->saleReturn?->sale?->party?->name ?? 'Guest' }} | @elseif ($cash_flow->platform == 'purchase'){{ $cash_flow->purchase?->party?->name ?? 'Guest' }} | @elseif ($cash_flow->platform == 'purchase_return'){{ $cash_flow->purchaseReturn?->purchase?->party?->name ?? 'Guest' }} | @elseif ($cash_flow->platform == 'due_collect' || $cash_flow->platform == 'due_pay'){{ $cash_flow->dueCollect?->party?->name ?? 'Guest' }} | @elseN/A | @endif{{ ucwords(str_replace('_', ' ', $cash_flow->platform)) }} | {{ $cash_flow->type === 'credit' ? currency_format($cash_flow->amount, currency: business_currency()) : currency_format(0, currency: business_currency()) }} | {{ $cash_flow->type === 'debit' ? currency_format($cash_flow->amount, currency: business_currency()) : currency_format(0, currency: business_currency()) }} | {{ currency_format($runningCash, currency: business_currency()) }} | {{ $cash_flow->payment_type_id ? $cash_flow->paymentType?->name : ucfirst(explode('_', $cash_flow->transaction_type)[0]) }} |
| {{__('Total')}} | {{ currency_format($page_cash_in, currency: business_currency()) }} | {{ currency_format($page_cash_out, currency: business_currency()) }} | {{ currency_format($page_running_cash, currency: business_currency()) }} |