@if($order->client && $order->clientDetails)
@if(($order->client->name || $order->client->email || $order->client->mobile || $order->clientDetails->company_name || $order->clientDetails->address )
&& ($invoiceSetting->show_client_name == 'yes' || $invoiceSetting->show_client_email == 'yes' || $invoiceSetting->show_client_phone == 'yes' || $invoiceSetting->show_client_company_name == 'yes' || $invoiceSetting->show_client_company_address == 'yes'))
@lang("modules.invoices.billedTo"):
@if ($order->client->name && $invoiceSetting->show_client_name == 'yes')
{{ mb_ucwords($order->client->name) }}
@endif
@if ($order->client->email && $invoiceSetting->show_client_email == 'yes')
{{ $order->client->email }}
@endif
@if ($order->client->mobile && $invoiceSetting->show_client_phone == 'yes')
{{ $order->client->mobile }}
@endif
@if ($order->clientDetails->company_name && $invoiceSetting->show_client_company_name == 'yes')
{{ mb_ucwords($order->clientDetails->company_name) }}
@endif
@if ($order->client->clientDetails->address && $invoiceSetting->show_client_company_address == 'yes')
@lang('app.address') :
{!! nl2br($order->clientDetails->address) !!}
@endif
@endif
@if ($order->show_shipping_address === 'yes' && $client->clientDetails->shipping_address && $invoiceSetting->show_client_company_address == 'yes')
@lang('app.shippingAddress') :
{!! nl2br($order->clientDetails->shipping_address) !!}
@endif
@if ($invoiceSetting->show_gst == 'yes' && !is_null($order->clientDetails->gst_number))
@lang('app.gstIn'): {{ $order->clientDetails->gst_number }}
@endif
@endif