@include('sections.theme_css', ['company' => $company]) @isset($activeSettingMenu) @endisset @stack('styles')
@lang('app.estimate')

{{ mb_ucwords($company->company_name) }}
@if (!is_null($company)) {!! nl2br($defaultAddress->address) !!}
{{ $company->company_phone }} @endif @if ($invoiceSetting->show_gst == 'yes' && !is_null($invoiceSetting->gst_number))
@lang('app.gstIn'): {{ $invoiceSetting->gst_number }} @endif


@lang('modules.estimates.estimatesNumber') {{ $estimate->estimate_number }}
@lang('modules.estimates.validTill') {{ $estimate->valid_till->translatedFormat($company->date_format) }}
@if (($estimate->client || $estimate->clientDetails) && ($estimate->client->name || $estimate->client->email || $estimate->client->mobile || $estimate->clientDetails->company_name || $estimate->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 ($estimate->client && $estimate->client->name && $invoiceSetting->show_client_name == 'yes') {{ mb_ucwords($estimate->client->name) }}
@endif @if ($estimate->client && $estimate->client->email && $invoiceSetting->show_client_email == 'yes') {{ $estimate->client->email }}
@endif @if ($estimate->client && $estimate->client->mobile && $invoiceSetting->show_client_phone == 'yes') +{{$estimate->clientdetails->user->country->phonecode}} {{ $estimate->client->mobile }}
@endif @if ($estimate->clientDetails && $estimate->clientDetails->company_name && $invoiceSetting->show_client_company_name == 'yes') {{ mb_ucwords($estimate->clientDetails->company_name) }}
@endif @if ($estimate->clientDetails && $estimate->clientDetails->address && $invoiceSetting->show_client_company_address == 'yes') {!! nl2br($estimate->clientDetails->address) !!} @endif

@endif
@if ($estimate->clientDetails->company_logo)


@endif @lang('modules.estimates.'.$estimate->status)
{!! $estimate->description !!}
@if ($invoiceSetting->hsn_sac_code_show) @endif @foreach ($estimate->items as $item) @if ($item->type == 'item') @if ($invoiceSetting->hsn_sac_code_show) @endif @if ($item->item_summary || $item->estimateItemImage) @endif @endif @endforeach
@lang('app.description') @lang("app.hsnSac") {{ isset($estimate->unit) ? $estimate->unit->unit_type : 'Qty\hrs' }} @lang("modules.invoices.unitPrice") ({{ $estimate->currency->currency_code }}) @lang("modules.invoices.tax") @lang("modules.invoices.amount") ({{ $estimate->currency->currency_code }})
{{ ucfirst($item->item_name) }}{{ $item->hsn_sac_code }}{{ $item->quantity }} {{ currency_format($item->unit_price, $estimate->currency_id, false) }} {{ $item->tax_list }} {{ currency_format($item->amount, $estimate->currency_id, false) }}
{!! nl2br(strip_tags($item->item_summary)) !!} @if ($item->estimateItemImage)

@endif
@if ($discount != 0 && $discount != '') @endif @foreach ($taxes as $key => $tax) @endforeach
@lang("modules.invoices.subTotal") {{ currency_format($estimate->sub_total, $estimate->currency_id, false) }}
@lang("modules.invoices.discount") {{ currency_format($discount, $estimate->currency_id, false) }}
{{ mb_strtoupper($key) }} {{ currency_format($tax, $estimate->currency_id, false) }}
@lang("modules.invoices.total") {{ currency_format($estimate->total, $estimate->currency_id, false) }}
@foreach ($estimate->items as $item) @if ($item->type == 'item') @endif @endforeach @if ($discount != 0 && $discount != '') @endif @foreach ($taxes as $key => $tax) @endforeach
@lang('app.description') @if ($item->item_summary != '' || $item->estimateItemImage) @endif
{{ ucfirst($item->item_name) }}
{!! nl2br(strip_tags($item->item_summary)) !!} @if ($item->estimateItemImage)

@endif
{{ isset($estimate->unit) ? $estimate->unit->unit_type : 'Qty\hrs' }} {{ $item->quantity }}
@lang("modules.invoices.unitPrice") ({{ $estimate->currency->currency_code }}) {{ currency_format($item->unit_price, $estimate->currency_id, false) }}
@lang("modules.invoices.amount") ({{ $estimate->currency->currency_code }}) {{ currency_format($item->amount, $estimate->currency_id, false) }}
@lang("modules.invoices.subTotal") {{ currency_format($estimate->sub_total, $estimate->currency_id, false) }}
@lang("modules.invoices.discount") {{ currency_format($discount, $estimate->currency_id, false) }}
{{ mb_strtoupper($key) }} {{ currency_format($tax, $estimate->currency_id, false) }}
@lang("modules.invoices.total") {{ currency_format($estimate->total, $estimate->currency_id, false) }}
@if (isset($taxes) && $invoiceSetting->tax_calculation_msg == 1) @endif
@lang('app.note')

{!! $estimate->note ?? '--' !!}

@lang('modules.invoiceSettings.invoiceTerms')

{!! nl2br($invoiceSetting->invoice_terms) !!}

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

@if ($estimate->sign)
@lang('modules.estimates.signature')

({{ $estimate->sign->full_name }})

@endif