@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_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 !!}
@if ($sale->payment_method == 'cash_on_delivery') Cash on delivery @elseif($sale->payment_method == 'Cod') Cash on delivery @elseif($sale->payment_method == 'cod') Cash on delivery @elseif($sale->payment_method == 'cash') Cash Sale @elseif($sale->payment_method == 'bank_transfer') Bank Transfer @elseif($sale->payment_method == 'online') Online Payment @elseif($sale->payment_method == 'online_payhere') Payhere @elseif($sale->payment_method == 'multiple') Multiple @else @endif
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,Size & Description Qty Rate Amount
{{ $key + 1 }} {{ $item->product->product_name }} / @if (!empty($item->product->attribute->attribute_name)) {{ $item->product->attribute->attribute_name }} {{ $item->attribute_value }} @else Single @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_total + $sale->delivery_fee, 2) }}
Paid amount {{ number_format($paid, 2) }}
Balance Due {{ number_format($sale->invoice_balance, 2) }}
saleItems->count() > 7) class="page-break" @endif>
saleItems->count() < 7) style="bottom: 5px;position: absolute;margin-left: 30px;width: 90%;" @endif> @if ($setting->terms_condition_in_note == 'yes') @if ($setting->note != null) @endif @endif @if ($setting->terms_condition_in_invoice == 'yes') @if ($setting->terms != null) @endif @endif
Note
@if ($setting->note != null) {!! $setting->note !!} @else ............ @endif
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