@extends('layouts.business.pdf.pdf_layout') @section('pdf_title')
| {{ __('Date') }} | {{ __('Invoice') }} | {{ __('Name') }} | {{ __('Type') }} | {{ __('Cash In') }} | {{ __('Cash Out') }} | {{ __('Running Cash') }} | |||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| {{ 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()) }} |
| {{__('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()) }} |