@lang('app.order')

@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')
{{ 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')
{{ 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
@lang("modules.invoices.generatedBy"):
{{ ucwords(global_setting()->company_name) }}
@if (!is_null($settings) && $order->address)
{!! nl2br($order->address->address) !!}
@endif
{{ global_setting()->company_phone }}
@if ($invoiceSetting->show_gst == 'yes' && $order->address)
{{ $order->address->tax_name }}: {{ $order->address->tax_number }}
@endif

{{ $order->order_number }}

@lang('modules.orders.orderDate'): {{ \Carbon\Carbon::parse($order->order_date)->format(global_setting()->date_format) }}
@lang('app.status'): @lang('modules.invoices.'.$order->status)
@if ($invoiceSetting->hsn_sac_code_show) @endif @foreach ($order->items as $item) @if ($item->type == 'item') @if ($invoiceSetting->hsn_sac_code_show) @endif @endif @endforeach @if ($invoiceSetting->hsn_sac_code_show) @endif @if ($discount != 0 && $discount != '') @if ($invoiceSetting->hsn_sac_code_show) @endif @endif @foreach ($taxes as $key => $tax) @if ($invoiceSetting->hsn_sac_code_show) @endif @endforeach
# @lang("modules.invoices.item")@lang("app.hsnSac")@lang("modules.invoices.qty") @lang("modules.invoices.unitPrice") @lang("modules.invoices.tax") @lang("modules.invoices.price") ({!! htmlentities($order->currency->currency_code) !!})
{{ ++$count }}

{{ ucfirst($item->item_name) }}

@if (!is_null($item->item_summary))
{!! nl2br(strip_tags($item->item_summary, ['p', 'b', 'strong', 'a'])) !!}
@endif @if ($item->orderItemImage)

@endif

{{ $item->hsn_sac_code ? $item->hsn_sac_code : '--' }}

{{ $item->quantity }}

{{ currency_formatter($item->unit_price,'') }}

{{ $item->tax_list }} {{ currency_formatter($item->amount, '') }}
        @lang("modules.invoices.subTotal") {{ currency_formatter($order->sub_total, '') }}
        @lang("modules.invoices.discount") {{ currency_formatter($discount, '') }}
        {{ strtoupper($key) }} {{ currency_formatter($tax, '') }}
@lang("modules.invoices.total") {{ currency_formatter($order->total, '') }}

@if (!is_null($order->note)) {!! nl2br($order->note) !!}
@endif