@lang('purchase::modules.vendor.accountDetails')
@foreach ($vendors as $vendor)
purchase_vendor_id == $vendor->id) selected @endif value="@if($payment->purchase_vendor_id)" {{$payment->purchase_vendor_id}} @else {{$vendor->vendor_id}} @endif>{{ $vendor->primary_name }}
@endforeach
{{ $vendor->currency->currency_code }}
--
@if($viewBankAccountPermission != 'none') @foreach ($bankDetails as $bankDetail)
id == $payment->bank_account_id) selected @endif>@if($bankDetail->type == 'bank') {{ $bankDetail->bank_name }} | @endif {{ mb_ucwords($bankDetail->account_name) }}
@endforeach @endif
@lang('purchase::modules.vendor.billDetails')
@lang('app.date') @lang('app.bill') @lang('purchase::app.menu.purchaseOrder') @lang('purchase::modules.vendorPayment.billAmount') @lang('purchase::modules.vendorPayment.amountDue') @lang('app.payment')
@forelse ($bills as $bill) {{ $bill->bill->bill_date ? $bill->bill->bill_date->timezone(company()->timezone)->format(company()->date_format) : '--' }} {{ $bill->bill->id }}
{{ $bill->bill->order->purchase_order_number }} {{ currency_format($bill->bill->total, ($payment->vendor->currency ? $payment->vendor->currency->id : company()->currency->id )) }} @php $due = ($bill->bill->total) - ($billArray[$bill->id]); @endphp
{{ currency_format($due, ($payment->vendor->currency ? $payment->vendor->currency->id : company()->currency->id )) }}
@lang('purchase::modules.vendorPayment.payInFull')
@empty
@endforelse
@php $currencyId = (isset($payment->vendor->currency)) ? $payment->vendor->currency->id : ''; @endphp
@lang('modules.invoices.amountPaid')
{{ currency_format($payment->received_payment,$currencyId) }}
@lang('purchase::modules.vendorPayment.amountUsed')
{{ currency_format($amountUsedSum,$currencyId) }}
@lang('purchase::modules.vendorPayment.amountRefunded')
0.00
@lang('purchase::modules.vendorPayment.amountInExcess')
{{ currency_format(($payment->received_payment) - ($amountUsedSum),$currencyId) }}
@lang('app.save')
@lang('app.cancel')