@php $addProductPermission = user()->permission('add_product'); @endphp @if (!in_array('clients', user_modules())) @lang('messages.enableClientModule') @lang('app.back') @else

@lang('app.estimate') @lang('app.details')


{{ $invoiceSetting->estimate_prefix }}{{ $invoiceSetting->estimate_number_separator }}{{ $zero }}
@if (isset($estimate)) @endif
@if (isset($client) && !is_null($client))
@else @endif
{!! isset($estimate) ? $estimate->description : ($estimateTemplate ? $estimateTemplate->description : '') !!}

@if ($addProductPermission == 'all' || $addProductPermission == 'added') @lang('app.add') @endif
@if (isset($estimate)) @foreach ($estimate->items as $key => $item)
@if ($invoiceSetting->hsn_sac_code_show) @endif @if ($invoiceSetting->hsn_sac_code_show) @endif
@lang('app.description')@lang('app.hsnSac') @lang('modules.invoices.qty') @lang('modules.invoices.unitPrice') @lang('modules.invoices.tax') @lang('modules.invoices.amount')
@if (!is_null($item->product_id) && $item->product_id != 0) {{ $item->unit->unit_type }} @else @endif
{{ number_format((float) $item->amount, 2, '.', '') }}
estimateItemImage->id) ? $item->estimateItemImage->id : '' }} />
@endforeach @elseif (isset($estimateTemplateItem) && !is_null($estimateTemplateItem)) @foreach ($estimateTemplateItem as $item)
@if ($invoiceSetting->hsn_sac_code_show) @endif @if ($invoiceSetting->hsn_sac_code_show) @endif
@lang('app.description')@lang('app.hsnSac') @lang('modules.invoices.qty') @lang('modules.invoices.unitPrice') @lang('modules.invoices.tax') @lang('modules.invoices.amount')
@if (!is_null($item->product_id) && $item->product_id != 0) {{ $item->unit->unit_type }} @else @endif
{{ number_format((float) $item->amount, 2, '.', '') }}
estimateTemplateItemImage->id) ? $item->estimateTemplateItemImage->id : '' }} /> estimateTemplateItemImage && $item->estimateTemplateItemImage->external_link) data-show-remove="false" @endif />
@endforeach @else
@if ($invoiceSetting->hsn_sac_code_show) @endif @if ($invoiceSetting->hsn_sac_code_show) @endif
@lang('app.description')@lang('app.hsnSac') @lang('modules.invoices.qty') @lang('modules.invoices.unitPrice') @lang('modules.invoices.tax') @lang('modules.invoices.amount')
0.00
@endif

@lang('modules.invoices.subTotal') 0.00
@lang('modules.invoices.discount')
discount : '0' }}
@if(isset($estimate)) {{ number_format((float) $estimate->discount, 2, '.', '') }} @else 0.00 @endif
@lang('modules.invoices.tax')
0.00
@lang('modules.invoices.total') 0.00

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

@lang('app.saveDraft')
@lang('app.cancel')
@endif