@if (!is_null($creditNote->project) && !is_null($creditNote->project->client) && !is_null($creditNote->project->client->clientDetails)) @lang("modules.invoices.billedTo"):

{{ ucwords($creditNote->project->client->clientDetails->company_name) }}

@lang('app.address') :
{!! nl2br($creditNote->project->clientdetails->address) !!}
@if ($creditNote->show_shipping_address === 'yes')
@lang('app.shippingAddress') :
{!! nl2br($creditNote->project->clientdetails->shipping_address) !!}
@endif @if ($creditNoteSetting->show_gst == 'yes' && !is_null($creditNote->project->client->clientDetails->gst_number))
@lang('app.gstIn'): {{ $creditNote->project->client->clientDetails->gst_number }}
@endif @elseif(!is_null($creditNote->client_id) && !is_null($creditNote->clientdetails)) @lang("modules.invoices.billedTo"):

{{ ucwords($creditNote->clientdetails->company_name) }}

@lang('app.address') :
{!! nl2br($creditNote->clientdetails->address) !!}
@if ($creditNote->show_shipping_address === 'yes')
@lang('app.shippingAddress') :
{!! nl2br($creditNote->clientdetails->shipping_address) !!}
@endif @if ($creditNoteSetting->show_gst == 'yes' && !is_null($creditNote->clientdetails->gst_number))
@lang('app.gstIn'): {{ $creditNote->clientdetails->gst_number }}
@endif @endif @if (is_null($creditNote->project) && !is_null($creditNote->estimate) && !is_null($creditNote->estimate->client->clientDetails)) @lang("modules.invoices.billedTo"):

{{ ucwords($creditNote->estimate->client->clientDetails->company_name) }}

@lang('app.address') :
{!! nl2br($creditNote->estimate->client->clientDetails->address) !!}
@if ($creditNote->show_shipping_address === 'yes')
@lang('app.shippingAddress') :
{!! nl2br($creditNote->estimate->client->clientDetails->shipping_address) !!}
@endif @if ($creditNoteSetting->show_gst == 'yes' && !is_null($creditNote->estimate->client->clientDetails->gst_number))
@lang('app.gstIn'): {{ $creditNote->estimate->client->clientDetails->gst_number }}
@endif @endif
@lang("modules.invoices.generatedBy"):

{{ 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

{{ $creditNote->invoice_number }}

@if ($creditNote)
@lang('app.credit-note'): {{ $creditNote->cn_number }}
@endif
@lang('modules.invoices.invoiceDate'): {{ $creditNote->issue_date->format($global->date_format) }}
@lang('app.status'): {{ ucwords($creditNote->status) }}
@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 @if ($discount != 0 && $discount != '') @endif @foreach ($taxes as $key => $tax) @endforeach
# @lang("modules.invoices.item")@lang("app.hsnSac")@lang("modules.invoices.qty") @lang("modules.invoices.unitPrice") ({!! htmlentities($creditNote->currency->currency_code) !!}) @lang("modules.invoices.price") ({!! htmlentities($creditNote->currency->currency_code) !!})
{{ ++$count }}

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

@if (!is_null($item->item_summary))

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

@endif @if ($item->creditNoteItemImage)

@endif

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

{{ $item->quantity }}

{{ number_format((float) $item->unit_price, 2, '.', '') }}

{{ number_format((float) $item->amount, 2, '.', '') }}
        @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.credit-notes.total") {{ number_format((float) $creditNote->total, 2, '.', '') }}
@lang('modules.credit-notes.creditAmountUsed') {{ number_format((float) $creditNote->creditAmountUsed(), 2, '.', '') }}
@lang('app.adjustment') @lang('app.amount') {{ number_format((float) $creditNote->adjustment_amount, 2, '.', '') }}
@lang('modules.credit-notes.creditAmountRemaining') {{ number_format((float) $creditNote->creditAmountRemaining(), 2, '.', '') }}

 


@if (!is_null($creditNote->note)) {!! nl2br($creditNote->note) !!}
@endif {!! nl2br($creditNoteSetting->invoice_terms) !!}