INVOICE
فاتورة
|
@php
$ordernumber = config('global.sale_order_prefix'). date('Ymd', strtotime($list[0]->created_at)). $list[0]->order_id;
$grandTotal = $list[0]->grand_total + $list[0]->shipping_charge;
@endphp
| CLIENT NAME: |
{{ $list[0]->name ?? $list[0]->customer_name }}
|
INVOICE NO: |
{{ $ordernumber }} |
| INVOICE DATE: |
{{ get_date_in_timezone($list[0]->created_at,'d-M-Y') }}
|
PAYMENT TYPE: |
{{ payment_mode($list[0]->payment_mode) }} |
| CLIENT ADDRESS: |
@php
$shipdata = \App\Models\UserAdress::get_address_details($list[0]->address_id);
@endphp
{{ $shipdata->building_name ?? '' }},
{{ $shipdata->street ?? '' }},
{{ $shipdata->area_name ?? '' }},
{{ $shipdata->city_name ?? '' }},
{{ $shipdata->country_name ?? '' }}
|
@php
// Fetch user data
$user = \App\Models\User::find($list[0]->user_id);
@endphp
CLIENT PHONE NUMBER: |
{{ $user->dial_code ?? '' }} {{ $user->phone ?? '' }} |
|
|
ORDER STATUS : {{ order_status($list[0]->status) }}
|
| S/Q |
Description الوصف |
Quantity الكمية |
Unit Price سعر الوحدة |
TOTAL المجموع |
@php $i = 1; @endphp
@foreach($sub_orders as $vendor)
@foreach($vendor->productList as $product)
| {{ $i++ }} |
{{ $product['product_name'] }} |
{{ $product['quantity'] }} |
SYP {{ number_format($product['price'],2) }} |
SYP {{ number_format($product['quantity'] * $product['price'],2) }}
|
@endforeach
@endforeach
|
|
Sub Total
|
SYP {{ number_format($list[0]->total, 2, '.', '') }}
|
|
Discount
|
SYP {{ number_format($list[0]->discount, 2, '.', '') }}
|
|
Delivery Charge
|
SYP {{ number_format($list[0]->shipping_charge, 2, '.', '') }}
|
|
VAT
|
SYP {{ number_format($list[0]->vat, 2, '.', '') }}
|
|
GRAND TOTAL
|
SYP {{ number_format($grandTotal,2) }}
|
|
AMOUNT IN WORDS: {{ ucfirst(numberToWords((int)$grandTotal)) }} SYP
|