{{ ucwords($global->company_name) }}

{!! nl2br($global->address) !!}
{{ $global->company_phone }}
@if($invoiceSetting->show_gst == 'yes' && !is_null($invoiceSetting->gst_number))
@lang('app.gstIn'): {{ $invoiceSetting->gst_number }}
@endif
{{ $estimate->estimate_number }}
@if(!is_null($estimate->project) && !is_null($estimate->project->client))
@if(!is_null($estimate->project->client)) @lang('modules.invoices.billedTo'):
{{ ucwords($estimate->project->client->name) }}
@if($estimate->project->client->clientDetails)
{{ ucwords($estimate->project->client->clientDetails->company_name) }}
@lang('app.address') :
{!! nl2br($estimate->project->clientdetails->address) !!}
@if ($estimate->show_shipping_address === 'yes')
@lang('app.shippingAddress') :
{!! nl2br($estimate->project->clientdetails->shipping_address) !!}
@endif @endif
{{ $estimate->project->client->email }}
@if($invoiceSetting->show_gst == 'yes' && !is_null($estimate->project->client->clientDetails) && !is_null($estimate->project->client->clientDetails->gst_number))
@lang('app.gstIn'): {{ $estimate->project->client->clientDetails->gst_number }}
@endif @endif
@elseif(!is_null($estimate->client_id))
@if(!is_null($estimate->client)) @lang('modules.invoices.billedTo'):
{{ ucwords($estimate->client->name) }}
@if($estimate->clientdetails)
{{ ucwords($estimate->clientdetails->company_name) }}
@lang('app.address') :
{!! nl2br($estimate->clientdetails->address) !!}
@if ($estimate->show_shipping_address === 'yes')
@lang('app.shippingAddress') :
{!! nl2br($estimate->clientdetails->shipping_address) !!}
@endif @endif
{{ $estimate->client->email }}
@if($invoiceSetting->show_gst == 'yes' && !is_null($estimate->clientdetails) && !is_null($estimate->clientdetails->gst_number))
@lang('app.gstIn'): {{ $estimate->clientdetails->gst_number }}
@endif @endif
@endif @if(is_null($estimate->project) && !is_null($estimate->estimate) && !is_null($estimate->estimate->client))
@if(!is_null($estimate->estimate->client)) @lang('modules.invoices.billedTo'):
{{ ucwords($estimate->estimate->client->name) }}
{{ ucwords($estimate->estimate->client->clientDetails->company_name) }}
@lang('app.address') :
{!! nl2br($estimate->estimate->client->clientDetails->address) !!}
@if ($estimate->show_shipping_address === 'yes')
@lang('app.shippingAddress') :
{!! nl2br($estimate->estimate->client->clientDetails->shipping_address) !!}
@endif
{{ $estimate->estimate->client->email }}
@if($invoiceSetting->show_gst == 'yes' && !is_null($estimate->estimate->client->clientDetails->gst_number))
@lang('app.gstIn'): {{ $estimate->estimate->client->clientDetails->gst_number }}
@endif @endif
@endif

@if ($invoiceSetting->hsn_sac_code_show) @endif @foreach($estimate->items as $item) @if($item->type == 'item') @if ($invoiceSetting->hsn_sac_code_show) @endif @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($estimate->currency->currency_code) !!})
{{ ++$count }}
{{ ucfirst($item->item_name) }}
@if(!is_null($item->item_summary))

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

@endif @if ($item->estimateItemImage)

@endif
{{ $item->hsn_sac_code ? $item->hsn_sac_code : '--' }}{{ $item->quantity }} {{ currency_formatter($item->unit_price, '') }} {{ $item->tax_list }} {{ currency_formatter($item->amount, '') }}
@if($discount != 0 && $discount != '') @endif @foreach($taxes as $key=>$tax) @endforeach
@lang("modules.invoices.subTotal"): {{ currency_formatter($estimate->sub_total, '') }}
@lang("modules.invoices.discount"): {{ currency_formatter($discount, '') }}
{{ strtoupper($key) }}: {{ currency_formatter($tax, '') }}
@lang("modules.invoices.total"): {{ currency_formatter($estimate->total, '') }} {!! htmlentities($estimate->currency->currency_code) !!}

@lang('modules.estimates.validTill'): {{ $estimate->valid_till ? $estimate->valid_till->format($global->date_format) : '--' }}
@if($estimate->status == 'unpaid')
@lang('app.dueDate'): {{ $estimate->due_date->format($global->date_format) }}
@endif
@lang('app.status'): {{ ucwords($estimate->status) }}
@if(!is_null($estimate->note))
{!! nl2br($estimate->note) !!} @endif
{!! nl2br($invoiceSetting->invoice_terms) !!}
@if (isset($taxes) && invoice_setting()->tax_calculation_msg == 1)

@if ($estimate->calculate_tax == 'after_discount') @lang('messages.calculateTaxAfterDiscount') @else @lang('messages.calculateTaxBeforeDiscount') @endif

@endif