@if (count($bills)>0)
{{ $vendor->currency->currency_code }}
@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_date ? $bill->bill_date->timezone(company()->timezone)->format(company()->date_format) : '--' }} {{ $bill->id }} {{ $bill->order->purchase_order_number }} {{ currency_format($bill->total, ($vendor->currency ? $vendor->currency->id : company()->currency->id )) }} @php if($bill->status == 'partially_paid'){ $due = ($bill->total) - ($billArray[$bill->id]); } @endphp @if($bill->status == 'partially_paid') {{ currency_format($due, ($vendor->currency ? $vendor->currency->id : company()->currency->id)) }} @else {{currency_format($bill->total, ($vendor->currency ? $vendor->currency->id : company()->currency->id ))}} @endif @if($bill->status == 'partially_paid') @else @endif @if($bill->status == 'partially_paid') @lang('purchase::modules.vendorPayment.payInFull') @else @lang('purchase::modules.vendorPayment.payInFull') @endif @empty @endforelse
@if (count($bills)>0)
@lang('modules.invoices.amountPaid') 0.00
@lang('purchase::modules.vendorPayment.amountUsed') 0.00
@lang('purchase::modules.vendorPayment.amountRefunded') 0.00
@lang('purchase::modules.vendorPayment.amountInExcess') 0.00
@lang('app.save') @lang('app.cancel') @endif