@php
$bankName = isset($vendorPayment->bank_account_id) && $vendorPayment->bankAccount->bank_name ? $vendorPayment->bankAccount->bank_name.' |' : '';
$currencyId = (isset($vendorPayment->vendor->currency)) ? $vendorPayment->vendor->currency->id : '';
@endphp
@lang('purchase::app.menu.vendorName') |
{{ ucwords($vendorPayment->vendor->primary_name) }} |
@lang('purchase::app.menu.bankAccount') |
{{ ($vendorPayment->bank_account_id ? $bankName.' '.mb_ucwords($vendorPayment->bankAccount->account_name) : '--') }} |
@lang('purchase::app.menu.paymentMade') |
{{currency_format($vendorPayment->received_payment, $currencyId ,false) ?? '--' }}
({{ $vendorPayment->vendor->currency->currency_code }})
|
@lang('purchase::app.menu.internalNote') |
{{$vendorPayment->internal_note ?? '--'}} |
@lang('app.bill') |
{{ $bill->bill->id }} |
@lang('purchase::modules.vendorPayment.billAmount') |
{{ currency_format($bill->bill->total, $currencyId, false) }}
({{ $vendorPayment->vendor->currency->currency_code }})
|
@php
$due = ($bill->bill->total) - ($billArray[$bill->id]);
@endphp
@lang('purchase::modules.vendorPayment.amountDue') |
{{currency_format(($due),$currencyId, false)}}
({{ $vendorPayment->vendor->currency->currency_code }})
|
@lang('app.payment') |
{{currency_format($bill->total_paid, $currencyId, false)}}
({{ $vendorPayment->vendor->currency->currency_code }})
|