{{ ucwords($global->company_name) }} @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

@lang('app.credit-note') {{ $creditNote->cn_number }}
@lang('app.credit-note') @lang('app.date') {{ $creditNote->issue_date->format($global->date_format) }}
@if (!is_null($creditNote->project_id) && !is_null($creditNote->project->clientdetails)) @php $client = $creditNote->project->client; @endphp @elseif(!is_null($creditNote->client_id)) @php $client = $creditNote->client; @endphp @endif

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

@if ($creditNoteSetting->show_gst == 'yes' && !is_null($client->clientDetails->gst_number))
@lang('app.gstIn'): {{ $client->clientDetails->gst_number }} @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('app.description')@lang("app.hsnSac")@lang("modules.invoices.qty") @lang("modules.invoices.unitPrice") ({{ $creditNote->currency->currency_code }}) @lang("modules.invoices.amount") ({{ $creditNote->currency->currency_code }})
{{ ucfirst($item->item_name) }} {{ $item->hsn_sac_code ? $item->hsn_sac_code : '--' }}{{ $item->quantity }} {{ number_format((float) $item->unit_price, 2, '.', '') }} {{ number_format((float) $item->amount, 2, '.', '') }}
{!! 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") {{ number_format((float) $creditNote->sub_total, 2, '.', '') }}
@lang("modules.invoices.discount") {{ number_format((float) $discount, 2, '.', '') }}
{{ strtoupper($key) }} {{ number_format((float) $tax, 2, '.', '') }}
@lang("modules.invoices.total") {{ number_format((float) $creditNote->total, 2, '.', '') }}
@lang('modules.credit-notes.creditAmountUsed') {{ number_format((float)$creditNote->creditAmountUsed(), 2, '.', '') }} {{ $creditNote->currency->currency_code }}
@lang('app.adjustment') @lang('app.amount') {{ number_format((float) $creditNote->adjustment_amount, 2, '.', '') }} {{ $creditNote->currency->currency_code }}
@lang('modules.credit-notes.creditAmountRemaining') {{ number_format((float) $creditNote->creditAmountRemaining(), 2, '.', '') }} {{ $creditNote->currency->currency_code }}
@lang('app.note') @lang('modules.invoiceSettings.invoiceTerms')
{!! nl2br($creditNote->note) !!} {!! nl2br($invoiceSetting->invoice_terms) !!}