@includeIf('invoices.pdf.invoice_pdf_css')
{{ company()->company_name }}

{!! nl2br(default_address()->address) !!}
{{ company()->company_phone }}
@if ($creditNoteSetting->show_gst == 'yes' && !is_null($creditNoteSetting->gst_number))
@lang('app.gstIn'): {{ $creditNoteSetting->gst_number }}
@endif
{{ $creditNote->cn_number }}
@if (!is_null($creditNote->project) && !is_null($creditNote->project->client))
@if (!is_null($creditNote->project) && !is_null($creditNote->project->client)) @lang('modules.credit-notes.billedTo')
{{ $creditNote->project->client->name_salutation }}
{{ $creditNote->project->clientDetails->company_name }}
{!! nl2br($creditNote->project->clientDetails->address) !!}
{{ $creditNote->project->client->email }}
@if ($creditNoteSetting->show_gst == 'yes' && !is_null($creditNote->project->clientDetails->gst_number))
@lang('app.gstIn'): {{ $creditNote->project->clientDetails->gst_number }}
@endif @endif @if ($invoiceSetting->show_project == 1 && isset($creditNote->project))
@lang('modules.invoices.projectName') {{ $creditNote->project->project_name }} @endif
@endif

@if ($invoiceSetting->hsn_sac_code_show) @endif @foreach ($creditNote->items as $item) @if ($item->type == 'item') @if ($invoiceSetting->hsn_sac_code_show) @endif @endif @endforeach
# @lang('modules.credit-notes.item')@lang('app.hsnSac')@lang('modules.invoices.qty') @lang('modules.credit-notes.unitPrice') @lang('modules.invoices.tax') @lang('modules.credit-notes.price') ({!! htmlentities($creditNote->currency->currency_code) !!})
{{ ++$count }}
{{ $item->item_name }}
@if (!is_null($item->item_summary))

{!! nl2br(pdfStripTags($item->item_summary)) !!}

@endif @if ($item->creditNoteItemImage)

@endif
{{ $item->hsn_sac_code ? $item->hsn_sac_code : '--' }}{{ $item->quantity }}@if($item->unit)
{{ $item->unit->unit_type }}@endif
{{ currency_format($item->unit_price, $creditNote->currency_id, false) }} {{ $item->tax_list }} {{ currency_format($item->amount, $creditNote->currency_id, false) }}
@if ($discount != 0 && $discount != '') @endif @foreach ($taxes as $key => $tax) @endforeach
@lang('modules.credit-notes.subTotal'): {{ currency_format($creditNote->sub_total, $creditNote->currency_id, false) }}
@lang('modules.credit-notes.discount'): -{{ currency_format($discount, $creditNote->currency_id, false) }}
{{ $key }}: {{ currency_format($tax, $creditNote->currency_id, false) }}
@lang('modules.credit-notes.total'): {{ currency_format($creditNote->total, $creditNote->currency_id, false) }}
@lang('modules.credit-notes.creditAmountUsed'): {{ currency_format($creditNote->creditAmountUsed(), $creditNote->currency_id, false) }}
@lang('app.adjustmentAmount'): {{ currency_format($creditNote->adjustment_amount, $creditNote->currency_id, false) }}
@lang('modules.credit-notes.creditAmountRemaining'): {{ currency_format($creditNote->creditAmountRemaining(), $creditNote->currency_id, false) }}

@lang('app.issuesDate'): {{ $creditNote->issue_date->translatedFormat(company()->date_format) }}
@if ($invoiceNumber)
@lang('app.invoiceNumber'): {{ $invoiceNumber->invoice_number }}
@endif
@lang('app.status'): {{ $creditNote->status }}
@if (!is_null($creditNote->note))
{!! nl2br($creditNote->note) !!} @endif @if ($creditNote->status == 'open')
{!! nl2br($creditNoteSetting->credit_note_terms) !!} @endif @if (isset($invoiceSetting->other_info))
{!! nl2br($invoiceSetting->other_info) !!} @endif