@if (!is_null($creditNote->project) && !is_null($creditNote->project->client) && !is_null($creditNote->project->client->clientDetails))
@lang('modules.invoices.billedTo'):
{{ mb_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 ($invoiceSetting->show_project == 1 && isset($creditNote->project))
@lang('modules.invoices.projectName'):
{{ $creditNote->project->project_name }}
@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'):
{{ mb_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'):
{{ mb_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