@includeIf('invoices.pdf.invoice_pdf_css')

@lang('app.proposal')

@if ($proposal->lead && ($proposal->lead->client_name || $proposal->lead->client_email || $proposal->lead->mobile || $proposal->lead->company_name || $proposal->lead->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 ($proposal->lead && $proposal->lead->client_name && $invoiceSetting->show_client_name == 'yes') {{ $proposal->lead->client_name }} @endif @if ($proposal->lead && $proposal->lead->client_email && $invoiceSetting->show_client_email == 'yes')
{{ $proposal->lead->client_email }}
@endif @if ($proposal->lead && $proposal->lead->mobile && $invoiceSetting->show_client_phone == 'yes')
{{ $proposal->lead->mobile }}
@endif @if ($proposal->lead && $proposal->lead->company_name && $invoiceSetting->show_client_company_name == 'yes')
{{ $proposal->lead->company_name }}
@endif @if ($proposal->lead && $proposal->lead->address && $invoiceSetting->show_client_company_address == 'yes')
{!! nl2br($proposal->lead->address) !!}
@endif
@endif
@lang("modules.invoices.generatedBy"):

@lang('modules.lead.proposal')#{{ $proposal->id }}

@lang('app.status'): {{ $proposal->status }}
@lang('modules.estimates.validTill'): {{ $proposal->valid_till->translatedFormat($company->date_format) }}
@if ($proposal->description)
{!! pdfStripTags($proposal->description) !!}
@endif @if (count($proposal->items) > 0) @if ($invoiceSetting->hsn_sac_code_show) @endif @foreach ($proposal->items as $item) @if ($item->type == 'item') @if ($invoiceSetting->hsn_sac_code_show) @endif @endif @endforeach @if ($invoiceSetting->hsn_sac_code_show) @endif @if ($discount != 0 && $discount != '') @if ($invoiceSetting->hsn_sac_code_show) @endif @endif @foreach ($taxes as $key => $tax) @if ($invoiceSetting->hsn_sac_code_show) @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($proposal->currency->currency_code) !!})
{{ ++$count }}

{{ $item->item_name }}

@if (!is_null($item->item_summary))
{!! nl2br(pdfStripTags($item->item_summary)) !!}
@endif @if ($item->proposalItemImage)

@endif

{{ $item->hsn_sac_code ? $item->hsn_sac_code : '--' }}

{{ $item->quantity }}@if($item->unit)
{{ $item->unit->unit_type }}@endif

{{ currency_format($item->unit_price, $proposal->currency_id, false) }}

{{ $item->tax_list }} {{ currency_format($item->amount, $proposal->currency_id, false) }}
        @lang("modules.invoices.subTotal") {{ currency_format($proposal->sub_total, $proposal->currency_id, false) }}
        @lang("modules.invoices.discount") {{ currency_format($discount, $proposal->currency_id, false) }}
        {{ $key }} {{ currency_format($tax, $proposal->currency_id, false) }}
@lang("modules.invoices.subTotal") {{ currency_format($proposal->sub_total, $proposal->currency_id, false) }}
@lang("modules.invoices.discount") {{ currency_format($discount, $proposal->currency_id, false) }}
@lang("modules.invoices.total") {{ currency_format($proposal->total, $proposal->currency_id, false) }} {!! htmlentities($proposal->currency->currency_code) !!}

@if (!is_null($proposal->note)) @lang('app.note')
{!! nl2br($proposal->note) !!}
@endif
@lang('modules.invoiceSettings.invoiceTerms')
{!! nl2br($invoiceSetting->invoice_terms) !!}

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

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

@endif

@if ($proposal->signature) @if (!is_null($proposal->signature->signature))

@lang('modules.estimates.signature')
@else
@lang('modules.estimates.signedBy')
@endif

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

@endif

@endif