@if (!is_null($invoice->project) && !is_null($invoice->project->client) && !is_null($invoice->project->client->clientDetails))
@lang('modules.invoices.billedTo'):
{{ mb_ucwords($invoice->project->client->clientDetails->company_name) }}
@lang('app.address') :
{!! nl2br($invoice->project->clientDetails->address) !!}
@if ($invoice->show_shipping_address === 'yes')
@lang('app.shippingAddress') :
{!! nl2br($invoice->project->clientDetails->shipping_address) !!}
@endif
@if ($invoiceSetting->show_gst == 'yes' && !is_null($invoice->project->client->clientDetails->gst_number))
@lang('app.gstIn'): {{ $invoice->project->client->clientDetails->gst_number }}
@endif
@elseif(!is_null($invoice->client_id) && !is_null($invoice->clientDetails))
@lang('modules.invoices.billedTo'):
{{ mb_ucwords($invoice->clientDetails->company_name) }}
@lang('app.address') :
{!! nl2br($invoice->clientDetails->address) !!}
@if ($invoice->show_shipping_address === 'yes')
@lang('app.shippingAddress') :
{!! nl2br($invoice->clientDetails->shipping_address) !!}
@endif
@if ($invoiceSetting->show_gst == 'yes' && !is_null($invoice->clientDetails->gst_number))
@lang('app.gstIn'): {{ $invoice->clientDetails->gst_number }}
@endif
@endif
@if (is_null($invoice->project) && !is_null($invoice->estimate) && !is_null($invoice->estimate->client->clientDetails))
@lang('modules.invoices.billedTo'):
{{ mb_ucwords($invoice->estimate->client->clientDetails->company_name) }}
@lang('app.address') :
{!! nl2br($invoice->estimate->client->clientDetails->address) !!}
@if ($invoice->show_shipping_address === 'yes')
@lang('app.shippingAddress') :
{!! nl2br($invoice->estimate->client->clientDetails->shipping_address) !!}
@endif
@if ($invoiceSetting->show_gst == 'yes' && !is_null($invoice->estimate->client->clientDetails->gst_number))
@lang('app.gstIn'): {{ $invoice->estimate->client->clientDetails->gst_number }}
@endif
@if ($invoiceSetting->show_project == 1 && isset($creditNote->project))
@lang('modules.invoices.projectName')
{{ $creditNote->project->project_name }}
@endif
@endif