@php $setting = \App\Setting::first(); $paper_size = $setting->paper_size_a5_enable == '0' ? 'A4 potrait' : '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->mobile_2 !!}
{!! $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) @php $product = App\Product::find($item->product_id); if (!empty($product->parent_product_id)) { $product = App\Product::find($product->parent_product_id); } $stocks = App\Stock::where('id', $item->stock_id)->first(); $attribute_value_id = App\AttributeValue::find($stocks->attribute_value_id); $second_attribute_value_id = App\AttributeValue::find($stocks->second_attribute_value_id); @endphp @endforeach
Item Color Type Qty Selling Price Line Total
@if ($setting->show_category) {{ $item->product->category ? $item->product->category->category_name : '' }} @endif @if ($setting->show_sub_category) @php $sub_category = DB::table('product_has_subcategories') ->where('product_id', $item->product->id) ->join('sub_categories', 'product_has_subcategories.sub_category_id', '=', 'sub_categories.id') ->select('sub_categories.sub_category_name') ->first(); @endphp @if ($sub_category) {{ $sub_category->sub_category_name }} @endif @endif {{ !empty($attribute_value_id->value) ? $attribute_value_id->value : '' }} {{-- {{ $variations->second_attribute_value }} --}} {{ $item->product->product_name }} @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) }}
{{-- sale note --}}
{{ $sale->sale_note }} @if($sale->payment_status !== 'paid') @endif
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