@php $show = json_decode($invoice_settings->show_column); @endphp
{{ __('db.Address') }}: {{ $lims_warehouse_data->address }}
{{ __('db.Phone Number') }}: {{ $lims_warehouse_data->phone }}
@if (gen_setting()->vat_registration_number && isset($show->show_vat_registration_number) && $show->show_vat_registration_number == 1)
{{ __('db.VAT Number') }}: {{ gen_setting()->vat_registration_number }}
@endif
{{ __('db.date') }}:
@if (isset($show->active_date_format) && $show->active_date_format == 1)
{{ Carbon\Carbon::parse($lims_sale_data->created_at)->format($invoice_settings->invoice_date_format) }}
@else
{{ $lims_sale_data->created_at }}
@endif
@if (isset($show->show_ref_number) && $show->show_ref_number == 1)
{{ __('db.reference') }}: {{ $lims_sale_data->reference_no }}
@endif
@if (isset($show->show_customer_name) && $show->show_customer_name == 1)
{{ __('db.customer') }}: {{ $lims_customer_data->name }}
@if(isset($lims_customer_data->tax_no))
{{__('Tax Number')}}: {{ $lims_customer_data->tax_no }}
@endif
@endif
{{-- biller info --}}
@if (isset($show->show_biller_info) && $show->show_biller_info == 1)
{{ __('db.Biller') }}: {{ $lims_bill_by['name'] }} - ({{ $lims_bill_by['user_name'] }})
@endif
{{-- end biller info --}}
@if ($lims_sale_data->table_id)
{{ __('db.Table') }}: {{ $lims_sale_data->table->name }}
{{ __('db.Queue') }}: {{ $lims_sale_data->queue }}
@endif
|
{!! $item->product_name !!}
@if ($item->imei_number)
@endif @php $warranty_info = []; if ($item->warranty_duration) { $warranty_info[] = 'Warranty: ' . $item->warranty_duration . ' (Exp: ' . $item->warranty_end . ')'; } if ($item->guarantee_duration) { $warranty_info[] = 'Guarantee: ' . $item->guarantee_duration . ' (Exp: ' . $item->guarantee_end . ')'; } @endphp @if (!empty($warranty_info)) @endif @if (!empty($item->topping_names)) ({{ implode(', ', $item->topping_names) }}) @endif @php $cfIndex = 0; @endphp @foreach ($item->custom_fields as $fieldName => $fieldValue) @if ($fieldValue) @if (!$cfIndex) {{ $fieldName . ': ' . $fieldValue }} @else {{ '/' . $fieldName . ': ' . $fieldValue }} @endif @php $cfIndex++; @endphp @endif @endforeach {{ $item->qty }} x {{ number_format((float) ($item->total / $item->qty), gen_setting()->decimal, '.', ',') }} @if (!empty($item->topping_prices)) + {{ implode(' + ', array_map(fn($price) => number_format($price, gen_setting()->decimal, '.', ','), $item->topping_prices)) }} @endif @if ($item->tax_rate) [{{ __('db.Tax') }} ({{ $item->tax_rate }}%): {{ $item->tax }}] @endif |
{{format_currency($item->subtotal, $lims_sale_data->currency->symbol ?? $lims_sale_data->currency->code ?? '$') }} | ||||
| {{ __('db.Total Before Tax') }} | {{ format_currency($lims_sale_data->total_price - ($lims_sale_data->total_tax + $lims_sale_data->order_tax), $lims_sale_data->currency->symbol ?? $lims_sale_data->currency->code ?? '$') }} | ||||
|---|---|---|---|---|---|
| IGST | {{format_currency($total_product_tax, $lims_sale_data->currency->symbol ?? $lims_sale_data->currency->code ?? '$') }} | ||||
| SGST | @php $total_product_tax_amount = ((float) ($total_product_tax / 2)); @endphp {{format_currency($total_product_tax_amount, $lims_sale_data->currency->symbol ?? $lims_sale_data->currency->code ?? '$') }} | ||||
| CGST | @php $total_product_tax_amount = ((float) ($total_product_tax / 2)); @endphp {{format_currency($total_product_tax_amount, $lims_sale_data->currency->symbol ?? $lims_sale_data->currency->code ?? '$') }} | ||||
| {{ __('db.Tax') }} | {{ format_currency($lims_sale_data->total_tax + $lims_sale_data->order_tax, $lims_sale_data->currency->symbol ?? $lims_sale_data->currency->code ?? '$') }} | ||||
| {{ __('db.Order Discount') }} | {{format_currency($lims_sale_data->order_discount, $lims_sale_data->currency->symbol ?? $lims_sale_data->currency->code ?? '$') }} | ||||
| {{ __('db.Coupon Discount') }} | {{format_currency($lims_sale_data->coupon_discount, $lims_sale_data->currency->symbol ?? $lims_sale_data->currency->code ?? '$') }} | ||||
| {{ __('db.Shipping Cost') }} | {{format_currency($lims_sale_data->shipping_cost, $lims_sale_data->currency->symbol ?? $lims_sale_data->currency->code ?? '$') }} | ||||
| {{ __('db.grand total') }} | {{format_currency($lims_sale_data->grand_total, $lims_sale_data->currency->symbol ?? $lims_sale_data->currency->code ?? '$') }} | ||||
| {{ __('db.Due') }} | {{format_currency($lims_sale_data->grand_total - $lims_sale_data->paid_amount, $lims_sale_data->currency->symbol ?? $lims_sale_data->currency->code ?? '$') }} | ||||
| {{ __('db.Previous Due') }} | {{format_currency($prevDue, $lims_sale_data->currency->symbol ?? $lims_sale_data->currency->code ?? '$') }} | ||||
| {{ __('db.Total Due') }} | {{format_currency($totalDue, $lims_sale_data->currency->symbol ?? $lims_sale_data->currency->code ?? '$') }} | ||||
| {{ __('db.In Words') }}: {{ $currency_code }} {{ str_replace('-', ' ', $numberInWords) }} | @else{{ __('db.In Words') }}: {{ str_replace('-', ' ', $numberInWords) }} {{ $currency_code }} | @endif @endif||||
|
INSTALMENT SALE Plan: {{$installment_info->plan->name}} Duration: {{$installment_info->plan->months}} Mo Add. Amt: {{format_currency($installment_info->plan->additional_amount, $lims_sale_data->currency->symbol ?? $lims_sale_data->currency->code ?? '$')}} Down Pay: {{format_currency($installment_info->plan->down_payment, $lims_sale_data->currency->symbol ?? $lims_sale_data->currency->code ?? '$')}} Paid: {{$installment_info->paid}}/{{$installment_info->total}} Instalments @if($installment_info->next)Next Due: {{\Carbon\Carbon::parse($installment_info->next->payment_date)->format('d M Y')}} @endif |
|||||
| {{ __('db.Paid By') }}: {{ $payment_data->paying_method }} |
{{ __('db.Amount') }}: {{format_currency($payment_data->amount + $payment_data->change, $lims_sale_data->currency->symbol ?? $lims_sale_data->currency->code ?? '$') }} |
{{ __('db.Change') }}: {{format_currency($payment_data->change, $lims_sale_data->currency->symbol ?? $lims_sale_data->currency->code ?? '$') }} |
|||
| @if (isset($show->show_footer_text) && $show->show_footer_text == 1) @if ($invoice_settings->footer_text) {!! $invoice_settings->footer_text !!} @else {{ __('db.Thank you for shopping with us!') }} @endif @endif | |||||
| @if (isset($show->show_barcode) && $show->show_barcode == 1) | |||||