@php $periodRows = []; if ($contact->type == 'supplier' || $contact->type == 'both') { $periodRows[] = ['label' => __('report.total_purchase'), 'value' => $ledger_details['total_purchase']]; } if ($contact->type == 'customer' || $contact->type == 'both') { $periodRows[] = ['label' => __('lang_v1.total_invoice'), 'value' => $ledger_details['total_invoice']]; } $periodRows[] = ['label' => __('sale.total_paid'), 'value' => $ledger_details['total_paid']]; if ($ledger_details['ledger_discount'] > 0) { $periodRows[] = ['label' => __('lang_v1.ledger_discount'), 'value' => $ledger_details['ledger_discount']]; } $overallRows = []; if ($contact->type == 'supplier' || $contact->type == 'both') { $overallRows[] = ['label' => __('report.total_purchase'), 'value' => $ledger_details['all_total_purchase']]; } if ($contact->type == 'customer' || $contact->type == 'both') { $overallRows[] = ['label' => __('lang_v1.total_invoice'), 'value' => $ledger_details['all_total_invoice']]; $overallRows[] = ['label' => __('sale.total_paid'), 'value' => $ledger_details['all_invoice_paid']]; } if ($contact->type == 'supplier' || $contact->type == 'both') { $overallRows[] = ['label' => __('sale.total_paid'), 'value' => $ledger_details['all_purchase_paid']]; } @endphp
| @lang('lang_v1.date') | @lang('purchase.ref_no') | @lang('lang_v1.type') | @lang('sale.location') | @lang('sale.payment_status') | @lang('account.debit') | @lang('account.credit') | @lang('lang_v1.payment_method') | @lang('report.others') |
|---|---|---|---|---|---|---|---|---|
| @format_datetime($data['date']) | {{ $data['ref_no'] }} | {{ $data['type'] }} | {{ $data['location'] }} | @if(!empty($data['payment_status'])) {{ $data['payment_status'] }} @endif | @if($data['debit'] != '') @format_currency($data['debit']) @endif | @if($data['credit'] != '') @format_currency($data['credit']) @endif | {{ $data['payment_method'] }} | {!! $data['others'] !!} |
| @lang('portal::lang.no_records') | ||||||||