@php $show = json_decode($invoice_settings->show_column); @endphp {{ $lims_quotation_data->customer->name . '_Quotation_' . $lims_quotation_data->reference_no }} @php $primary_color = isset($show->active_primary_color) && $show->active_primary_color == 1 && !empty($invoice_settings->primary_color) ? $invoice_settings->primary_color : '#014b94'; @endphp @php $url = url()->previous(); @endphp
{{ __('db.Back') }}

@if (isset($show->show_warehouse_info) && $show->show_warehouse_info == 1)

{{ $general_setting->company_name ?? $lims_biller_data->company_name }}

{{ __('db.Address') }}:  {{ $lims_warehouse_data->address }}
{{ __('db.Phone') }}:  {{ $lims_warehouse_data->phone }}
@if ($general_setting->vat_registration_number && isset($show->show_vat_registration_number) && $show->show_vat_registration_number == 1)
{{ __('db.VAT Number') }}:  {{ $general_setting->vat_registration_number }}
@endif @endif
@if ($general_setting->site_logo || $invoice_settings->company_logo) @endif
{{ __('db.reference') }}: {{ $lims_quotation_data->reference_no }}
{{ __('db.date') }}: @if (isset($show->active_date_format) && $show->active_date_format == 1) {{ Carbon\Carbon::parse($lims_quotation_data->created_at)->format($invoice_settings->invoice_date_format) }} @else {{ $lims_quotation_data->created_at }} @endif
{{ __('db.Status') }}: {{ $lims_quotation_data->quotation_status == 1 ? __('db.Pending') : __('db.Sent') }}
@if (isset($show->show_biller_info) && $show->show_biller_info == 1)
{{ __('db.Served By') }}: {{ $lims_bill_by['name'] }} - ({{ $lims_bill_by['user_name'] }})
@endif
@if (isset($show->show_bill_to_info) && $show->show_bill_to_info == 1) @endif

{{ __('db.quotation') }}

{{ __('db.customer') }}: {{ $lims_customer_data->name }}
{{ __('db.Address') }}:  {{ $lims_customer_data->address }}
@if (isset($lims_customer_data->phone_number))
Phone:  {{ $lims_customer_data->phone_number }}
@endif
@foreach ($lims_product_quotation_data as $key => $pq) @php $lims_product_data = \App\Models\Product::find($pq->product_id); $unit_code = $pq->sale_unit_id ? (\App\Models\Unit::select('unit_code')->find($pq->sale_unit_id)->unit_code ?? '') : ''; $variant_name = $pq->variant_id ? (\App\Models\Variant::select('name')->find($pq->variant_id)->name ?? '') : ''; $total = $pq->net_unit_price * $pq->qty; $subtotal = $pq->total; @endphp @endforeach @if ($general_setting->invoice_format == 'gst' && $general_setting->state == 1) @elseif ($general_setting->invoice_format == 'gst' && $general_setting->state == 2) @else @endif @if ($general_setting->currency_position == 'prefix') @else @endif
# {{ __('db.Description') }} {{ __('db.qty') }} {{ __('db.Unit Price') }} {{ __('db.Total') }} {{ __('db.Tax') }} {{ __('db.Subtotal') }}
{{ $key + 1 }} {!! $lims_product_data->name !!} @if($pq->product_batch_id) @php $batch = \App\Models\ProductBatch::select('batch_no')->find($pq->product_batch_id); @endphp @if($batch)
Batch: {{ $batch->batch_no }}@endif @endif
{{ $pq->qty . ' ' . $unit_code . ' ' . $variant_name }} {{ number_format($pq->net_unit_price, $general_setting->decimal) }} {{ number_format($total, $general_setting->decimal) }} {{ number_format($pq->tax, $general_setting->decimal) }} {{ number_format($subtotal, $general_setting->decimal) }}
@if ($lims_quotation_data->note)

{{ __('db.Note') }}: {{ $lims_quotation_data->note }}

@endif
{{ __('db.Total Before Tax') }} {{ number_format($lims_quotation_data->total_price - ($lims_quotation_data->total_tax + $lims_quotation_data->order_tax), $general_setting->decimal) }}
IGST {{ number_format($lims_quotation_data->total_tax + $lims_quotation_data->order_tax, $general_setting->decimal) }}
SGST @php $total_tax_amount = ($lims_quotation_data->total_tax + $lims_quotation_data->order_tax) / 2; @endphp {{ number_format($total_tax_amount, $general_setting->decimal) }}
CGST {{ number_format($total_tax_amount, $general_setting->decimal) }}
{{ __('db.Tax') }} {{ number_format($lims_quotation_data->total_tax + $lims_quotation_data->order_tax, $general_setting->decimal) }}
{{ __('db.Discount') }} {{ number_format($lims_quotation_data->total_discount + $lims_quotation_data->order_discount, $general_setting->decimal) }}
{{ __('db.Shipping Cost') }} {{ number_format($lims_quotation_data->shipping_cost ?? 0, $general_setting->decimal) }}
{{ __('db.grand total') }} {{ number_format($lims_quotation_data->grand_total, $general_setting->decimal) }}
@if (isset($show->show_in_words) && $show->show_in_words == 1) {{ __('db.In Words') }}
{{ $currency_code }} {{ str_replace('-', ' ', $numberInWords) }} only @endif
@if (isset($show->show_in_words) && $show->show_in_words == 1) {{ __('db.In Words') }}:
{{ str_replace('-', ' ', $numberInWords) }} {{ $currency_code }} only @endif
{{ __('db.Quotation Status') }} {{ $lims_quotation_data->quotation_status == 1 ? __('db.Pending') : __('db.Sent') }}
{{ __('db.Validity') }} {{ \Carbon\Carbon::parse($lims_quotation_data->created_at)->addDays(30)->format('d-m-Y') }}


@if (isset($show->show_barcode) && $show->show_barcode == 1)