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

@if ($vendorCredit->vendors && ($vendorCredit->vendors->primary_name || $vendorCredit->vendors->email || $vendorCredit->vendors->phone || $vendorCredit->vendors->company_name || $vendorCredit->vendors->billing_address) && ($invoiceSetting->show_client_name == 'yes' || $invoiceSetting->show_client_email == 'yes' || $invoiceSetting->show_client_phone == 'yes' || $invoiceSetting->show_client_company_name == 'yes' || $invoiceSetting->show_client_company_address == 'yes'))
@lang("modules.invoices.billedTo"):
@if ($vendorCredit->vendors && $vendorCredit->vendors->primary_name && $invoiceSetting->show_client_name == 'yes') {{ mb_ucwords($vendorCredit->vendors->primary_name) }} @endif @if ($vendorCredit->vendors && $vendorCredit->vendors->email && $invoiceSetting->show_client_email == 'yes')
{{ mb_ucwords($vendorCredit->vendors->email) }}
@endif @if ($vendorCredit->vendors && $vendorCredit->vendors->phone && $invoiceSetting->show_client_phone == 'yes')
{{ $vendorCredit->vendors->phone }}
@endif @if ($vendorCredit->vendors && $vendorCredit->vendors->company_name && $invoiceSetting->show_client_company_name == 'yes')
{{ mb_ucwords($vendorCredit->vendors->company_name) }}
@endif @if ($vendorCredit->vendors && $vendorCredit->vendors->billing_address && $invoiceSetting->show_client_company_address == 'yes')
{!! nl2br($vendorCredit->vendors->billing_address) !!}
@endif
@endif
@lang("modules.invoices.generatedBy"):

@lang('purchase::app.menu.vendorCredit')#{{ $vendorCredit->id }}

@lang('modules.estimates.validTill'): {{ $vendorCredit->credit_date }}
@if ($vendorCredit->description)
{!! strip_tags($vendorCredit->description, ['p', 'b', 'strong', 'a', 'ul', 'li', 'ol', 'i', 'u', 'em', 'blockquote', 'img']) !!}
@endif @if (count($vendorCredit->items) > 0) @if ($invoiceSetting->hsn_sac_code_show) @endif @foreach ($vendorCredit->items as $item) @if ($item->type == 'item') @if ($invoiceSetting->hsn_sac_code_show) @endif @endif @endforeach @if ($invoiceSetting->hsn_sac_code_show) @endif @if ($discount != 0 && $discount != '') @if ($invoiceSetting->hsn_sac_code_show) @endif @endif @foreach ($taxes as $key => $tax) @if ($invoiceSetting->hsn_sac_code_show) @endif @endforeach
# @lang("modules.invoices.item")@lang("app.hsnSac")@lang('modules.invoices.qty') @lang("modules.invoices.unitPrice") @lang("modules.invoices.tax") @lang("modules.invoices.price") ({!! htmlentities($vendorCredit->currency->currency_code) !!})
{{ ++$count }}

{{ ucfirst($item->item_name) }}

@if (!is_null($item->item_summary))
{!! nl2br(strip_tags($item->item_summary, ['p', 'b', 'strong', 'a'])) !!}
@endif @if ($item->vendorCreditItemImage)

@endif

{{ $item->hsn_sac_code ? $item->hsn_sac_code : '--' }}

{{ $item->quantity }}
{{ $item->unit_type }}

{{ currency_format($item->unit_price, $vendorCredit->currency_id, false) }}

{{ $item->tax_list }} {{ 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.subTotal") {{ currency_format($vendorCredit->sub_total, $vendorCredit->currency_id, false) }}
@lang("modules.invoices.discount") {{ currency_format($discount, $vendorCredit->currency_id, false) }}
@lang("modules.invoices.total") {{ currency_format($vendorCredit->total, $vendorCredit->currency_id, false) }} {!! htmlentities($vendorCredit->currency->currency_code) !!}
@lang("modules.credit-notes.creditAmountUsed") {{ currency_format($vendorCredit->creditAmountUsed(), $vendorCredit->currency_id, false) }}
@lang('modules.credit-notes.creditAmountRemaining') {{ currency_format($vendorCredit->creditAmountRemaining(), $vendorCredit->currency_id, false) }} {{ $vendorCredit->currency->currency_code }}
@else @if ($invoiceSetting->hsn_sac_code_show) @endif @if ($invoiceSetting->hsn_sac_code_show) @endif @if ($discount != 0 && $discount != '') @if ($invoiceSetting->hsn_sac_code_show) @endif @endif @foreach ($taxes as $key => $tax) @if ($invoiceSetting->hsn_sac_code_show) @endif @endforeach
# @lang("modules.invoices.item")@lang("app.hsnSac")@lang('modules.invoices.qty') @lang("modules.invoices.unitPrice") @lang("modules.invoices.tax") @lang("modules.invoices.price") ({!! htmlentities($vendorCredit->currency->currency_code) !!})

item1

1 pcs

{{ currency_format($vendorCredit->total, $vendorCredit->currency_id, false) }}

{{ $vendorCredit->tax_list }} {{ currency_format($vendorCredit->total, $vendorCredit->currency_id, false) }}
        @lang("modules.invoices.subTotal") {{ currency_format($vendorCredit->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.subTotal") {{ currency_format($vendorCredit->total, $vendorCredit->currency_id, false) }}
@lang("modules.invoices.discount") {{ currency_format($discount, $vendorCredit->currency_id, false) }}
@lang("modules.invoices.total") {{ currency_format($vendorCredit->total, $vendorCredit->currency_id, false) }} {!! htmlentities($vendorCredit->currency->currency_code) !!}
@lang("modules.credit-notes.creditAmountUsed") {{ currency_format($vendorCredit->creditAmountUsed(), $vendorCredit->currency_id, false) }}
@lang('modules.credit-notes.creditAmountRemaining') {{ currency_format($vendorCredit->creditAmountRemaining(), $vendorCredit->currency_id, false) }} {{ $vendorCredit->currency->currency_code }}
@endif

@if (!is_null($vendorCredit->note)) @lang('app.note')
{!! nl2br($vendorCredit->note) !!}
@endif
@lang('modules.invoiceSettings.invoiceTerms')
{!! nl2br($invoiceSetting->invoice_terms) !!}

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

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

@endif

@if ($vendorCredit->signature) @if (!is_null($vendorCredit->signature->signature))

@lang('modules.estimates.signature')
@else
@lang('modules.estimates.signedBy')
@endif

({{ $vendorCredit->signature->full_name }})

@endif