@includeIf('estimates.pdf.estimate_pdf_css')
{{ $estimate->estimate_number }}
@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')
{{ $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')
@if(isset($estimate->clientdetails->user->country))+{{$estimate->clientdetails->user->country->phonecode}} @endif {{ $estimate->client->mobile }}
@endif @if ($estimate->clientDetails && $estimate->clientDetails->company_name && $invoiceSetting->show_client_company_name == 'yes')
{{ $estimate->clientDetails->company_name }}
@endif @if ($estimate->clientDetails && $estimate->clientDetails->address && $invoiceSetting->show_client_company_address == 'yes')
@lang('app.address') :
{!! nl2br($estimate->clientDetails->address) !!}
@endif @endif @if($invoiceSetting->show_gst == 'yes' && !is_null($estimate->client->clientDetails->gst_number))
@lang('app.gstIn'): {{ $estimate->client->clientDetails->gst_number }}
@endif
@if ($estimate->status == 'unpaid')
@lang('app.dueDate'): {{ $estimate->due_date ? $estimate->due_date->translatedFormat($company->date_format) : '--' }}
@endif
@lang('app.status'): {{ $estimate->status }}

 

 

 

@if ($estimate->description)
{!! nl2br(pdfStripTags($estimate->description)) !!}
@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 }} {{ $item->item_name }} @if (!is_null($item->item_summary))

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

@endif @if ($item->estimateItemImage)

@endif
{{ $item->hsn_sac_code ? : '--' }}{{ $item->quantity }}@if($item->unit)
{{ $item->unit->unit_type }}@endif
{{ currency_format($item->unit_price, $estimate->currency_id, false) }} {{ $item->tax_list }} {{ currency_format($item->amount, $estimate->currency_id, false) }}
@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) }}
{{ $key }}: {{ currency_format($tax, $estimate->currency_id, false) }}
@lang("modules.invoices.total"): {{ currency_format($estimate->total, $estimate->currency_id, false) }} {!! htmlentities($estimate->currency->currency_code) !!}

@if (!is_null($estimate->note))
@lang('app.note')
{!! nl2br($estimate->note) !!} @endif

@lang('modules.invoiceSettings.invoiceTerms')
{!! nl2br($invoiceSetting->invoice_terms) !!} @if (isset($invoiceSetting->other_info))

{!! nl2br($invoiceSetting->other_info) !!} @endif
@if (isset($taxes) && $invoiceSetting->tax_calculation_msg == 1)

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

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

@endif
{{--Custom fields data--}} @if(isset($fields) && count($fields) > 0)

@lang('modules.projects.otherInfo')

@foreach($fields as $field) @endforeach
{{ $field->label }}

@if( $field->type == 'text' || $field->type == 'password' || $field->type == 'number' || $field->type == 'textarea') {{$estimate->custom_fields_data['field_'.$field->id] ?? '-'}} @elseif($field->type == 'radio') {{ !is_null($estimate->custom_fields_data['field_'.$field->id]) ? $estimate->custom_fields_data['field_'.$field->id] : '-' }} @elseif($field->type == 'select') {{ (!is_null($estimate->custom_fields_data['field_'.$field->id]) && $estimate->custom_fields_data['field_'.$field->id] != '') ? $field->values[$estimate->custom_fields_data['field_'.$field->id]] : '-' }} @elseif($field->type == 'checkbox') {{ !is_null($estimate->custom_fields_data['field_'.$field->id]) ? $estimate->custom_fields_data['field_'.$field->id] : '-' }} @elseif($field->type == 'date') {{ !is_null($estimate->custom_fields_data['field_'.$field->id]) ? \Carbon\Carbon::parse($estimate->custom_fields_data['field_'.$field->id])->translatedFormat($estimate->company->date_format) : '--'}} @endif

@endif