@isset($activeSettingMenu) @endisset @stack('styles')
@lang('app.menu.proposal')

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


@lang('app.menu.proposal') #{{ $proposal->id }}
@lang('modules.proposal.validTill') {{ $proposal->valid_till->format($settings->date_format) }}
@if ($proposal->lead && ($proposal->lead->client_name || $proposal->lead->client_email || $proposal->lead->mobile || $proposal->lead->company_name || $proposal->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 ($proposal->lead && $proposal->lead->client_name && invoice_setting()->show_client_name == 'yes') {{ ucwords($proposal->lead->client_name) }}
@endif @if ($proposal->lead && $proposal->lead->client_email && invoice_setting()->show_client_email == 'yes') {{ ucwords($proposal->lead->client_email) }}
@endif @if ($proposal->lead && $proposal->lead->mobile && invoice_setting()->show_client_phone == 'yes') {{ $proposal->lead->mobile }}
@endif @if ($proposal->lead && $proposal->lead->company_name && invoice_setting()->show_client_company_name == 'yes') {{ ucwords($proposal->lead->company_name) }}
@endif @if ($proposal->lead && $proposal->lead->address && invoice_setting()->show_client_company_address == 'yes') {!! nl2br($proposal->lead->address) !!} @endif

@endif
@lang('modules.estimates.'.$proposal->status)
{!! $proposal->description !!}
@if ($invoiceSetting->hsn_sac_code_show == 1) @endif @foreach ($proposal->items as $item) @if ($item->type == 'item') @if ($invoiceSetting->hsn_sac_code_show == 1) @endif @if ($item->item_summary || $item->proposalItemImage) @endif @endif @endforeach
@lang('app.description') @lang("app.hsnSac") @lang("modules.invoices.qty") @lang("modules.invoices.unitPrice") ({{ $proposal->currency->currency_code }}) @lang("modules.invoices.tax") @lang("modules.invoices.amount") ({{ $proposal->currency->currency_code }})
{{ ucfirst($item->item_name) }}{{ $item->hsn_sac_code }}{{ $item->quantity }} {{ currency_formatter($item->unit_price, '') }} {{ $item->tax_list }} {{ currency_formatter($item->amount, '') }}
{!! nl2br(strip_tags($item->item_summary)) !!} @if ($item->proposalItemImage)

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

@endif
@lang("modules.invoices.qty") {{ $item->quantity }}
@lang("modules.invoices.unitPrice") ({{ $proposal->currency->currency_code }}) {{ currency_formatter($item->unit_price, '') }}
@lang("modules.invoices.amount") ({{ $proposal->currency->currency_code }}) {{ currency_formatter($item->amount, '') }}
@lang("modules.invoices.subTotal") {{ currency_formatter($proposal->sub_total, '') }}
@lang("modules.invoices.discount") {{ currency_formatter($discount, '') }}
{{ strtoupper($key) }} {{ currency_formatter($tax, '') }}
@lang("modules.invoices.total") @lang("modules.invoices.due") {{ currency_formatter($proposal->total, '') }}
@lang('app.note')

{!! !empty($proposal->note) ? $proposal->note : '--' !!}

@lang('modules.invoiceSettings.invoiceTerms')

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

@if (isset($taxes) && invoice_setting()->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 @if ($proposal->client_comment)

@lang('app.rejectReason')

{{ $proposal->client_comment }}

@endif