@extends('layouts.client-app') @section('page-title')

{{ __($pageTitle) }}

@endsection @push('head-script') @endpush @section('content')

{{ currency_formatter($creditNote->total ,$creditNote->currency->currency_symbol)}} @lang('modules.credit-notes.creditAmountTotal')

{{ currency_formatter($creditNote->creditAmountRemaining(),$creditNote->currency->currency_symbol) }} @lang('modules.credit-notes.creditAmountRemaining')

{{ currency_formatter($creditNote->creditAmountUsed(),$creditNote->currency->currency_symbol)}} @lang('modules.credit-notes.creditAmountUsed')

@if($creditNote->status == 'closed')
@lang('modules.credit-notes.closed')
@else
@lang('modules.credit-notes.open')
@endif

{{ $creditNote->cn_number }}

 {{ ucwords($global->company_name) }}

@if(!is_null($settings))

{!! nl2br($global->address) !!}

@endif @if($creditNoteSetting->show_gst == 'yes' && !is_null($creditNoteSetting->gst_number))

@lang('app.gstIn') :{{ $creditNoteSetting->gst_number }}

@endif
@if(!is_null($creditNote->project_id) && !is_null($creditNote->project->clientdetails))

@lang('modules.invoices.to'),

{{ ucwords($creditNote->project->clientdetails->name) }}

{!! nl2br($creditNote->project->clientdetails->address) !!}

@if($creditNoteSetting->show_gst == 'yes' && !is_null($creditNote->project->clientdetails->gst_number))

@lang('app.gstIn') : {{ $creditNote->project->clientdetails->gst_number }}

@endif @elseif(!is_null($creditNote->client_id))

@lang('modules.invoices.to'),

{{ ucwords($creditNote->client->name) }}

@if(!is_null($creditNote->client->client[0]))

{!! nl2br($creditNote->clientdetails->address) !!}

@if($creditNoteSetting->show_gst == 'yes' && !is_null($creditNote->clientdetails->gst_number))

@lang('app.gstIn') : {{ $creditNote->clientdetails->gst_number }}

@endif @endif @elseif(is_null($creditNote->client_id) || (is_null($creditNote->project_id) && is_null($creditNote->project->clientdetails))) @if($creditNote->invoice->client)

@lang('modules.invoices.to'),

{{ ucwords($creditNote->invoice->client->name) }}

{!! nl2br($creditNote->invoice->client->client_detail->address) !!}

@if($creditNoteSetting->show_gst == 'yes' && !is_null($creditNote->invoice->client->client_detail->gst_number))

@lang('app.gstIn') : {{ $creditNote->invoice->client->client_detail->gst_number }}

@endif @elseif($creditNote->invoice->project)

@lang('modules.invoices.to'),

{{ ucwords($creditNote->invoice->project->clientdetails->name) }}

{!! nl2br($creditNote->invoice->project->clientdetails->address) !!}

@if($creditNoteSetting->show_gst == 'yes' && !is_null($creditNote->invoice->project->clientdetails->gst_number))

@lang('app.gstIn') : {{ $creditNote->invoice->project->clientdetails->gst_number }}

@endif @endif @endif

@lang('app.credit-note') @lang('app.date') : {{ $creditNote->issue_date->format($global->date_format) }}

@lang('app.dueDate') : {{ $creditNote->due_date->format($global->date_format) }}

@if($creditNote->recurring == 'yes')

@lang('modules.creditNotes.billingFrequency') : {{ $creditNote->billing_interval . ' '. ucfirst($creditNote->billing_frequency) }} ({{ ucfirst($creditNote->billing_cycle) }} cycles)

@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('modules.invoices.hsnSacCode')@lang("modules.credit-notes.qty") @lang("modules.credit-notes.unitPrice") @lang("modules.credit-notes.price")
{{ ++$count }} {{ ucfirst($item->item_name) }}{{ ($item->hsn_sac_code) ?? '--' }}{{ $item->quantity }} {{ currency_formatter($item->unit_price,$creditNote->currency->currency_symbol) }} {{ currency_formatter($item->amount,$creditNote->currency->currency_symbol)}}

@lang("modules.credit-notes.subTotal") : {{ currency_formatter($creditNote->sub_total,$creditNote->currency->currency_symbol) }}

@lang("modules.credit-notes.discount") : {{ currency_formatter($discount,$creditNote->currency->currency_symbol) }}

@foreach($taxes as $key=>$tax)

{{ strtoupper($key) }} : {{ currency_formatter($tax,$creditNote->currency->currency_symbol) }}

@endforeach

@lang("modules.credit-notes.total") :{{ currency_formatter($creditNote->total ,$creditNote->currency->currency_symbol)}}


@if(!is_null($creditNote->note))

@lang('app.note'): {{ $creditNote->note }}

@endif
@endsection @push('footer-script') @endpush