@includeIf('invoices.pdf.invoice_pdf_css')
{{ company()->company_name }}

@if (!is_null($settings) && $order->address) {!! nl2br($order->address->address) !!}
@endif {{ company()->company_phone }} @if ($invoiceSetting->show_gst == 'yes' && $order->address)
{{ $order->address->tax_name }}: {{ $order->address->tax_number }} @endif
{{ $order->order_number }}
@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')
{{ $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')
{{ $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) && !is_null($order->clientDetails->gst_number))
@lang('app.gstIn'): {{ $order->clientDetails->gst_number }}
@endif
@endif

@if($invoiceSetting->hsn_sac_code_show) @endif @if ($order->unit != null) @else @endif @foreach($order->items as $item) @if($item->type == 'item') @if($invoiceSetting->hsn_sac_code_show) @endif @endif @endforeach
# @lang("modules.invoices.item")@lang("app.hsnSac"){{ $order->unit->unit_type }} @lang("modules.invoices.unitPrice") @lang("modules.invoices.tax") @lang("modules.invoices.price") ({!! htmlentities($order->currency->currency_code) !!})
{{ ++$count }} {{ $item->item_name }} @if(!is_null($item->item_summary))

{!! nl2br(pdfStripTags($item->item_summary)) !!}

@endif @if ($item->orderItemImage)

@endif
{{ $item->hsn_sac_code ? $item->hsn_sac_code : '--' }}{{ $item->quantity }} {{ currency_format($item->unit_price, $order->currency_id, false) }} {{ $item->tax_list }} {{ currency_format($item->amount, $order->currency_id, false) }}
@if($discount != 0 && $discount != '') @endif @foreach($taxes as $key=>$tax) @endforeach
@lang("modules.invoices.subTotal"): {{ currency_format($order->sub_total, $order->currency_id, false) }}
@lang("modules.invoices.discount"): -{{ currency_format($discount, $order->currency_id, false) }}
{{ $key }}: {{ currency_format($tax, $order->currency_id, false) }}
@lang("modules.invoices.total"): {{ currency_format($order->total, $order->currency_id, false) }}
@lang('modules.orders.orderDate'): {{ \Carbon\Carbon::parse($order->order_date)->translatedFormat(company()->date_format) }}
@lang('app.status'): @lang('modules.invoices.'.$order->status)
@if(!is_null($order->note))
{!! nl2br($order->note) !!} @endif