@lang('purchase::app.menu.vendorCredit')

@if ($vendorCredit->vendors && $vendorCredit->vendors->primary_name) {{ $vendorCredit->vendors->primary_name }}
@endif @if ($vendorCredit->vendors && $vendorCredit->vendors->email) {{ $vendorCredit->vendors->email }}
@endif @if ($vendorCredit->vendors && $vendorCredit->vendors->billing_address) {{ $vendorCredit->vendors->billing_address }}
@endif @if ($vendorCredit->vendors && $vendorCredit->vendors->phone) {{ $vendorCredit->vendors->phone }}
@endif


@lang('purchase::app.menu.creditNumber') {{ $vendorCredit->vendor_credit_number }}
@lang('purchase::modules.vendor.creditDate') {{ $vendorCredit->credit_date }}
@if ($vendorCreditSetting->hsn_sac_code_show == 1) @endif @if ($vendorCredit->bill_id) @foreach ($vendorCredit->items as $item) @if ($vendorCreditSetting->hsn_sac_code_show == 1) @endif @if ($item->item_summary || $item->purchaseVendorCreditItemImage) @endif @endforeach @else @if ($vendorCreditSetting->hsn_sac_code_show == 1) @endif @endif
@lang('app.description')@lang('app.hsnSac')@lang('modules.invoices.qty') @lang('modules.invoices.unitPrice') ({{ $vendorCredit->currency->currency_code }}) @lang('modules.invoices.tax') @lang('modules.invoices.amount') ({{ $vendorCredit->currency->currency_code }})
{{ ucfirst($item->item_name) }}{{ $item->hsn_sac_code }}{{ $item->quantity }}@if ($item->unit)
{{ $item->unit->unit_type }} @endif
{{ currency_format($item->unit_price, $vendorCredit->currency_id, false) }} {{ $item->tax_list }} {{ currency_format($item->amount, $vendorCredit->currency_id, false) }}
{!! nl2br(strip_tags($item->item_summary)) !!} @if ($item->purchaseVendorCreditItemImage)

@endif
item1{{ $vendorCredit->hsn_sac_code }}1 Pcs {{ currency_format($vendorCredit->total, $vendorCredit->currency_id, false) }} {{ $vendorCredit->tax_list }} {{ currency_format($vendorCredit->total, $vendorCredit->currency_id, false) }}
@if ($discount != 0 && $discount != '') @endif @foreach ($taxes as $key => $tax) @endforeach
@lang('modules.invoices.subTotal')
@lang('modules.invoices.discount')
{{ mb_strtoupper($key) }}
@lang('modules.invoices.total')
@lang('modules.credit-notes.creditAmountUsed')
@lang('modules.credit-notes.creditAmountRemaining')
@if ($vendorCredit->bill_id) @else @endif @if ($discount != 0 && $discount != '') @endif @foreach ($taxes as $key => $tax) @endforeach
{{ currency_format($vendorCredit->sub_total, $vendorCredit->currency_id, false) }}
{{ currency_format($vendorCredit->total, $vendorCredit->currency_id, false) }}
{{ currency_format($discount, $vendorCredit->currency_id, false) }}
{{ currency_format($tax, $vendorCredit->currency_id, false) }}
{{ currency_format($vendorCredit->total, $vendorCredit->currency_id, false) }}
{{ currency_format($vendorCredit->creditAmountUsed(), $vendorCredit->currency_id, false) }}
{{ currency_format($vendorCredit->creditAmountRemaining(), $vendorCredit->currency_id, false) }} {{ $vendorCredit->currency->currency_code }}
@foreach ($vendorCredit->items as $item) @endforeach @if ($discount != 0 && $discount != '') @endif @foreach ($taxes as $key => $tax) @endforeach
@lang('app.description') @if ($item->item_summary != '' || $item->purchaseVendorCreditItemImage) @endif
{{ ucfirst($item->item_name) }}
{!! nl2br(strip_tags($item->item_summary)) !!} @if ($item->purchaseVendorCreditItemImage)

@endif
@lang('modules.invoices.qty') {{ $item->quantity }}
@lang('modules.invoices.unitPrice') ({{ $vendorCredit->currency->currency_code }}) {{ currency_format($item->unit_price, $vendorCredit->currency_id, false) }}
@lang('modules.invoices.amount') ({{ $vendorCredit->currency->currency_code }}) {{ currency_format($item->amount, $vendorCredit->currency_id, false) }}
@lang('modules.invoices.subTotal') {{ currency_format($vendorCredit->sub_total, $vendorCredit->currency_id, false) }}
@lang('modules.invoices.discount') {{ currency_format($discount, $vendorCredit->currency_id, false) }}
{{ mb_strtoupper($key) }} {{ currency_format($tax, $vendorCredit->currency_id, false) }}
@lang('modules.invoices.total') {{ currency_format($vendorCredit->total, $vendorCredit->currency_id, false) }}
@lang('modules.credit-notes.creditAmountUsed') {{ currency_format($vendorCredit->creditAmountUsed(), $vendorCredit->currency_id, false) }}
@lang('modules.invoices.total') @lang('modules.invoices.due') {{ currency_format($vendorCredit->creditAmountRemaining(), $vendorCredit->currency_id, false) }} {{ $vendorCredit->currency->currency_code }}
@lang('app.note')

{!! !empty($vendorCredit->note) ? $vendorCredit->note : '--' !!}

@lang('modules.invoiceSettings.invoiceTerms')

{!! nl2br($vendorCreditSetting->invoice_terms) !!}

@if (isset($taxes) && invoice_setting()->tax_calculation_msg == 1)

@if ($vendorCredit->calculate_tax == 'after_discount') @lang('messages.calculateTaxAfterDiscount') @else @lang('messages.calculateTaxBeforeDiscount') @endif

@endif