@includeIf('vendor-payments.pdf.payment_pdf_css') @if($invoiceSetting->locale == 'th') @endif @forelse ($bills as $bill) @empty @endforelse @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 @php $due = ($bill->bill->total) - ($billArray[$bill->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 }})
@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 }})