@php $viewEstimatePermission = user()->permission('view_estimates'); $addEstimatePermission = user()->permission('add_estimates'); $editEstimatePermission = user()->permission('edit_estimates'); $deleteEstimatePermission = user()->permission('delete_estimates'); $addInvoicePermission = user()->permission('add_invoices'); @endphp
@lang('app.estimate')

{{ 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('modules.estimates.estimatesNumber') {{ $invoice->estimate_number }}
@lang('modules.estimates.validTill') {{ $invoice->valid_till->format(global_setting()->date_format) }}
@if ( ($invoice->client || $invoice->clientDetails) && ($invoice->client->name || $invoice->client->email || $invoice->client->mobile || $invoice->clientDetails->company_name || $invoice->clientDetails->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->client && $invoice->client->name && invoice_setting()->show_client_name == 'yes') {{ ucwords($invoice->client->name) }}
@endif @if ($invoice->client && $invoice->client->email && invoice_setting()->show_client_email == 'yes') {{ $invoice->client->email }}
@endif @if ($invoice->client && $invoice->client->mobile && invoice_setting()->show_client_phone == 'yes') {{ $invoice->client->mobile }}
@endif @if ($invoice->clientDetails && $invoice->clientDetails->company_name && invoice_setting()->show_client_company_name == 'yes') {{ ucwords($invoice->clientDetails->company_name) }}
@endif @if ($invoice->clientDetails && $invoice->clientDetails->address && invoice_setting()->show_client_company_address == 'yes') {!! nl2br($invoice->clientDetails->address) !!} @endif

@endif
@lang('modules.estimates.'.$invoice->status)
{!! $invoice->description !!}
@if($invoiceSetting->hsn_sac_code_show) @endif @foreach ($invoice->items as $item) @if ($item->type == 'item') @if($invoiceSetting->hsn_sac_code_show) @endif @if ($item->item_summary || $item->estimateItemImage) @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 }})
{{ ucfirst($item->item_name) }}{{ $item->hsn_sac_code ? $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->estimateItemImage)

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

@endif
@lang("modules.invoices.qty") {{ $item->quantity }}
@lang("modules.invoices.unitPrice") ({{ $invoice->currency->currency_code }}) {{ currency_formatter($item->unit_price, '') }}
@lang("modules.invoices.amount") ({{ $invoice->currency->currency_code }}) {{ currency_formatter($item->amount, '') }}
@lang("modules.invoices.subTotal") {{ currency_formatter($item->sub_total, '') }}
@lang("modules.invoices.discount") {{ currency_formatter($discount, '') }}
{{ strtoupper($key) }} {{ currency_formatter($tax, '') }}
@lang("modules.invoices.total") {{ currency_formatter($invoice->total, '') }}
@if (isset($taxes) && invoice_setting()->tax_calculation_msg == 1) @endif
@lang('app.note')

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

@lang('modules.invoiceSettings.invoiceTerms')

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

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

@if ($invoice->sign)
@lang('modules.estimates.signature')

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

@endif
{{-- Custom fields data --}} @if (isset($fields) && count($fields) > 0)
@foreach ($fields as $field) @if ($field->type == 'text' || $field->type == 'password' || $field->type == 'number') @elseif($field->type == 'textarea') @elseif($field->type == 'radio') @elseif($field->type == 'checkbox') @elseif($field->type == 'select') @elseif($field->type == 'date') @endif @endforeach
@endif @push('scripts') @endpush