@php $setting = \App\Setting::first(); $city = \App\City::where('id', $setting->city)->first(); @endphp
Invoice
#INV-{!! $sale->ref_no !!}
{!! $setting->name !!}
{!! $setting->landmark !!}, {!! $setting->landmark_2 !!}
@if ($city) {{ $city->name_en }} @endif
{!! $setting->mobile !!}
Balance Due
  LKR {{ number_format($sale->invoice_nettotal, 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
# Item & Description Qty Rate Amount
{{ $key + 1 }} {{ $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->edit_price == 0.00 || is_null($item->edit_price)) ? $item->sale_unit_price : $item->edit_price, 2) }} {{ number_format(($item->edit_price_sale_line_total == 0.00 || is_null($item->edit_price_sale_line_total)) ? $item->sale_line_total : $item->edit_price_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_nettotal, 2) }}
@if ($setting->terms_condition_in_invoice == 'yes')
@if ($setting->terms != null) @endif
Notes
Thanks for your business. For more Details WhatsApp 0706209209 or Visit our website primehome.lk
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