@lang('modules.proposal.proposalTemplate')

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


@lang('modules.lead.proposalTemplate') #{{ $invoice->id }}
@if ($invoice->lead && ($invoice->lead->client_name || $invoice->lead->client_email || $invoice->lead->mobile || $invoice->lead->company_name || $invoice->lead->address) && (invoice_setting()->show_client_name == 'yes' || invoice_setting()->show_client_email == 'yes' || invoice_setting()->show_client_phone == 'yes' || invoice_setting()->show_client_company_name == 'yes' || invoice_setting()->show_client_company_address == 'yes'))

@lang("modules.invoices.billedTo")
@if ($invoice->lead && $invoice->lead->client_name && invoice_setting()->show_client_name == 'yes') {{ $invoice->lead->client_name_salutation }}
@endif @if ($invoice->lead && $invoice->lead->client_email && invoice_setting()->show_client_email == 'yes') {{ $invoice->lead->client_email }}
@endif @if ($invoice->lead && $invoice->lead->mobile && invoice_setting()->show_client_phone == 'yes') {{ $invoice->lead->mobile }}
@endif @if ($invoice->lead && $invoice->lead->company_name && invoice_setting()->show_client_company_name == 'yes') {{ $invoice->lead->company_name }}
@endif @if ($invoice->lead && $invoice->lead->address && invoice_setting()->show_client_company_address == 'yes') {!! nl2br($invoice->lead->address) !!} @endif

@endif
{!! $invoice->description !!}
@if($invoiceSetting->hsn_sac_code_show == 1) @endif @foreach ($invoice->items as $item) @if ($item->type == 'item') @if($invoiceSetting->hsn_sac_code_show == 1) @endif @if ($item->item_summary || $item->proposalTemplateItemImage) @endif @endif @endforeach
@lang('app.description')@lang("app.hsnSac")@lang('modules.invoices.qty') @lang("modules.invoices.unitPrice") ({{ $invoice->currency->currency_code }}) @lang("modules.invoices.tax") @lang("modules.invoices.amount") ({{ $invoice->currency->currency_code }})
{{ $item->item_name }}{{ $item->hsn_sac_code }}{{ $item->quantity }}@if($item->unit)
{{ $item->unit->unit_type }}@endif
{{ currency_format($item->unit_price, $invoice->currency_id, false) }} {{ $item->tax_list }} {{ currency_format($item->amount, $invoice->currency_id, false) }}
{!! nl2br(strip_tags($item->item_summary)) !!} @if ($item->proposalTemplateItemImage)

@endif
@if ($discount != 0 && $discount != '') @endif @foreach ($taxes as $key => $tax) @endforeach
@lang("modules.invoices.subTotal")
@lang("modules.invoices.discount")
{{ $key }}
@lang("modules.invoices.total")
@if ($discount != 0 && $discount != '') @endif @foreach ($taxes as $key => $tax) @endforeach
{{ currency_format($invoice->sub_total, $invoice->currency_id, false) }}
{{ currency_format($discount, $invoice->currency_id, false) }}
{{ currency_format($tax, $invoice->currency_id, false) }}
{{ currency_format($invoice->total, $invoice->currency_id, false) }}
@foreach ($invoice->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->proposalTemplateItemImage) @endif
{{ $item->item_name }}
{!! nl2br(strip_tags($item->item_summary)) !!} @if ($item->proposalTemplateItemImage)

@endif
@lang('modules.invoices.qty') {{ $item->quantity }}@if($item->unit)
{{ $item->unit->unit_type }}@endif
@lang("modules.invoices.unitPrice") ({{ $invoice->currency->currency_code }}) {{ currency_format($item->unit_price, $invoice->currency_id, false) }}
@lang("modules.invoices.amount") ({{ $invoice->currency->currency_code }}) {{ currency_format($item->amount, $invoice->currency_id, false) }}
@lang("modules.invoices.subTotal") {{ currency_format($invoice->sub_total, $invoice->currency_id, false) }}
@lang("modules.invoices.discount") {{ currency_format($discount, $invoice->currency_id, false) }}
{{ $key }} {{ currency_format($tax, $invoice->currency_id, false) }}
@lang("modules.invoices.total") {{ currency_format( $invoice->total, $invoice->currency_id, false) }}
@lang('modules.invoiceSettings.invoiceTerms')

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

@if (isset($taxes) && invoice_setting()->tax_calculation_msg == 1)

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

@endif
@if ($invoice->signature)
@if (!is_null($invoice->signature->signature))
@lang('modules.estimates.signature')
@else
@lang('modules.estimates.signedBy')
@endif

({{ $invoice->signature->full_name }})

@endif @if ($invoice->client_comment)

@lang('app.rejectReason')

{{ $invoice->client_comment }}

@endif