@php $setting = \App\Setting::first(); $paper_size = $setting->paper_size_a5_enable == '0' ? 'A4 landscape' : 'A5'; @endphp @php $setting = \App\Setting::first(); $city = \App\City::where('id', $setting->city)->first(); @endphp @if($sale->payment_status !== 'paid') @endif
Invoice
{{-- #INV-{!! $sale->ref_no !!} --}} #Order Id-{!! $sale->invoice_no !!}
{!! $setting->name !!}
{!! $setting->landmark !!}, {!! $setting->landmark_2 !!}
@if ($city) {{ $city->name_en }} @endif
{!! $setting->mobile !!}
Balance Due
  LKR {{ number_format($sale->invoice_balance, 2) }}
Bill To
{!! $sale->customer->name !!},
{!! $sale->customer->landmark !!},
@if ($sale->customer->city_id) {!! $sale->customer->city_id->name_en !!} @endif
@if ($sale->customer->district) {!! $sale->customer->district->name_en !!} @endif
{!! $sale->customer->mobile !!}
{!! $sale->customer->email !!}
Invoice Date : {!! \Carbon\Carbon::parse($sale->sale_date)->format('Y-m-d') !!}
Terms : Due on Receipt
Due Date : {!! \Carbon\Carbon::parse($sale->sale_date)->format('Y-m-d') !!}
@foreach ($sale->saleItems as $key => $item) @endforeach @if($sale->payment_status !== 'paid') @endif
# Item & Description Qty Rate Amount
{{ $key + 1 }} {{ $item->product->product_name }} @if ($setting->show_category) ({{ $item->product->category ? $item->product->category->category_name : 'N/A' }}) @endif @if ($setting->show_sub_category) @php $product_sub_category = DB::table('product_has_subcategories') ->where('product_id', $item->product->id) ->first(); if ($product_sub_category) { $sub_category = \App\SubCategory::find($product_sub_category->sub_category_id); } @endphp @if (isset($sub_category) && $sub_category) ({{ $sub_category->sub_category_name }}) @endif @endif
@if (!empty($item->product->warranty_period)) warranty period :{{ $item->product->warranty_period }} {{ $item->product->warranty_select }} @endif
{{ $item->qty }} {{ $item->product->unit->short_name }} {{ number_format($item->sale_unit_price, 2) }} {{ number_format($item->sale_line_total, 2) }}
Sub Total {{ number_format($sale->invoice_total, 2) }}
Shipping charge {{ number_format($sale->delivery_fee, 2) }}
Discount {{ number_format($sale->invoice_discount, 2) }}
Total {{ number_format($sale->invoice_nettotal, 2) }}
Balance Due {{ number_format($sale->invoice_balance, 2) }}
{{--
{!! DNS1D::getBarcodeHTML("$barcode", 'C128',1.4, 30) !!}
--}} @if ($setting->terms_condition_in_invoice == 'yes')
@if ($setting->terms != null) @endif
Notes
Thank you for your order.Will comeĀ again.
Terms & Conditions
@if ($setting->terms != null) {!! $setting->terms !!} @else If your product is damaged, defective, incorrect or incomplete at the time of delivery, please file a return request on the app or website within 1 days of the delivery date. For Warranty Registration send complete warranty card photo to prime home within 3 day of the delivery date. @endif
@endif