@if (!is_null($creditNote->project_id) && isset($creditNote->project->clientdetails)) @php $client = $creditNote->project->client; @endphp @elseif(!is_null($creditNote->client_id)) @php $client = $creditNote->client; @endphp @endif
@lang('app.credit-note')

{{ ucwords($global->company_name) }}
@if (!is_null($settings)) {!! nl2br($global->address) !!}
{{ $global->company_phone }} @endif @if ($creditNoteSetting->show_gst == 'yes' && !is_null($creditNoteSetting->gst_number))
@lang('app.gstIn'): {{ $creditNoteSetting->gst_number }} @endif


@if ($invoiceExist && $creditNote->invoice_id) @endif
@lang('app.credit-note') {{ $creditNote->cn_number }}
@lang('modules.invoices.invoiceNumber') {{ $creditNote->invoice->invoice_number }}
@lang('app.credit-note') @lang('app.date') {{ $creditNote->issue_date->format($global->date_format) }}

@lang("modules.invoices.billedTo")
{{ ucwords($client->name) }}
{{ ucwords($client->clientDetails->company_name) }}
{!! nl2br($client->clientDetails->address) !!}

@lang('modules.credit-notes.'.$creditNote->status)
@if ($creditNoteSetting->hsn_sac_code_show) @foreach ($creditNote->items as $item) @if ($item->type == 'item') @if ($creditNoteSetting->hsn_sac_code_show) @endif @if ($item->item_summary || $item->creditNoteItemImage) @endif @endif @endforeach
@lang('app.description')@lang("app.hsnSac") @endif @lang("modules.invoices.qty") @lang("modules.invoices.unitPrice") @lang("modules.invoices.tax") @lang("modules.invoices.amount") ({{ $creditNote->currency->currency_code }})
{{ ucfirst($item->item_name) }}{{ $item->hsn_sac_code ? $item->hsn_sac_code : '--' }}{{ $item->quantity }} {{ currency_formatter($item->unit_price, '') }} {{ $item->tax_list }} {{ currency_formatter($item->amount, '') }}
{!! nl2br(strip_tags($item->item_summary)) !!} @if ($item->creditNoteItemImage)

@endif
@if ($discount != 0 && $discount != '') @endif @foreach ($taxes as $key => $tax) @endforeach
@lang("modules.invoices.subTotal")
@lang("modules.invoices.discount")
{{ strtoupper($key) }}
@lang("modules.invoices.total")
@lang("modules.credit-notes.creditAmountUsed")
@lang('app.adjustment') @lang('app.amount')
@lang('modules.credit-notes.creditAmountRemaining')
@if ($discount != 0 && $discount != '') @endif @foreach ($taxes as $key => $tax) @endforeach
{{ currency_formatter($creditNote->sub_total, '') }}
{{ currency_formatter($discount, '') }}
{{ currency_formatter($tax, '') }}
{{ currency_formatter($creditNote->total, '') }}
{{ currency_formatter($creditNote->creditAmountUsed(), '') }}
{{ currency_formatter($creditNote->adjustment_amount, '') }}
{{ currency_formatter($creditNote->creditAmountRemaining(), '') }} {{ $creditNote->currency->currency_code }}
@foreach ($creditNote->items as $item) @if ($item->type == 'item') @endif @endforeach @if ($discount != 0 && $discount != '') @endif @foreach ($taxes as $key => $tax) @endforeach
@lang('app.description') @if ($item->item_summary != '' || $item->creditNoteItemImage) @endif
{{ ucfirst($item->item_name) }}
{!! nl2br(strip_tags($item->item_summary)) !!} @if ($item->creditNoteItemImage)

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

{!! $creditNote->note ? nl2br($creditNote->note) : '--' !!}

@lang('modules.invoiceSettings.invoiceTerms')

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