@lang('app.estimate')

@if(!is_null($estimate->client)) @lang("modules.invoices.billedTo"):
{{ ucfirst($estimate->client->name) }}
{{ ucwords($estimate->client->clientDetails->company_name) }}
@lang('app.address') :
{!! nl2br($estimate->client->clientDetails->address) !!}
@if($invoiceSetting->show_gst == 'yes' && !is_null($estimate->client->clientDetails->gst_number))
@lang('app.gstIn'): {{ $estimate->client->clientDetails->gst_number }}
@endif @endif
@lang("modules.invoices.generatedBy"):
{{ ucwords($global->company_name) }}
@if(!is_null($settings))
{!! nl2br($global->address) !!}
{{ $global->company_phone }}
@endif @if($invoiceSetting->show_gst == 'yes' && !is_null($invoiceSetting->gst_number))
@lang('app.gstIn'): {{ $invoiceSetting->gst_number }}
@endif

{{ $estimate->estimate_number }}

@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 @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($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, '') }}
        @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) !!}

@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