@php $addProductPermission = user()->permission('add_product'); $addLeadPermission = user()->permission('add_lead'); @endphp

@lang('app.proposalDetails')


@if (isset($deal) && !is_null($deal))
@else
@foreach ($leadContacts as $leadContact) @endforeach
@endif
@foreach ($currencies as $currency) @endforeach
@if (isset($proposalTemplate) && !is_null($proposalTemplate)) @else @endif
{!! $proposalTemplate ? $proposalTemplate->description : '' !!}

@if(in_array('products', user_modules()) || in_array('purchase', user_modules()))
@if ($addProductPermission == 'all' || $addProductPermission == 'added') @lang('app.add') @endif
@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, '.', '') }}
@endforeach @elseif (isset($proposalTemplateItem) && !is_null($proposalTemplateItem)) @foreach ($proposalTemplateItem 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, '.', '')}}
proposalTemplateItemImage ->id) ? $item->proposalTemplateItemImage ->id : '' }} /> proposalTemplateItemImage && $item->proposalTemplateItemImage->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')
{{ isset($proposalTemplate) ? number_format((float) $proposalTemplate->discount, 2, '.', '') : '0.00' }}
@lang('modules.invoices.tax')
0.00
@lang('modules.invoices.total') 0.00

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