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

{{ __($pageTitle) }}

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

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

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

{{ $creditNote->currency->currency_symbol.' '.$creditNote->creditAmountUsed() }} @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 }} {!! htmlentities($creditNote->currency->currency_symbol) !!}{{ $item->unit_price }} {!! htmlentities($creditNote->currency->currency_symbol) !!}{{ $item->amount }}

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

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

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

{{ strtoupper($key) }} : {!! htmlentities($creditNote->currency->currency_symbol) !!}{{ $tax }}

@endforeach

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


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

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

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