@if ($nonPaidInvoices->count() > 0)

{{ $vendorCredit->credit_note_no }}

{{ mb_ucwords($vendorCredit->vendors->primary_name) }}

{{ mb_ucwords($vendorCredit->vendors->company_name) }}

{{--

@lang('app.lastLogin') @if (!is_null($vendorCredit->client->last_login)) {{ $vendorCredit->client->last_login->timezone(company()->timezone)->translatedFormat(company()->date_format . ' ' . company()->time_format) }} @else -- @endif

--}}

@lang('purchase::app.menu.vendor') @lang('app.unpaid') @lang('app.bill')

@lang('purchase::app.menu.billNumber') # @lang('purchase::app.menu.billDate') @lang('purchase::app.menu.billAmount') @lang('purchase::app.menu.billDue') @lang('app.credit-notes.amountToCredit') @forelse ($nonPaidInvoices as $bill) @php $amountDue = $bill->amountDue($bill->purchase_vendor_id); $paid = $bill->purchasePaymentBills->sum('total_paid'); @endphp @if ($amountDue > 0) {{ $bill->purchase_bill_number }} {{ $bill->bill_date->translatedFormat(company()->date_format) }} {{ currency_format($bill->total) }} {{ currency_format($amountDue) }} @endif @empty @endforelse
@lang('app.credit-notes.amountToCredit'):
0.00
@lang('app.credit-notes.remainingAmount'):
{{-- {{ $invoice->currency->currency_symbol }} --}} {{ number_format((float) $vendorCredit->creditAmountRemaining(), 2, '.', '') }}
@lang('app.apply') @lang('app.cancel') @else @endif