{{-- Header --}}
Uneek
 
Invoice Number: UNK-{{ str_pad($order->id, 4, '0', STR_PAD_LEFT) }}
INVOICE TO:
{{ $order->user->name ?? '' }}
{{ $order->user->phone ?? '' }}
{{ $order->user->company_name ?? '' }}
Proforma Invoice
Invoice Date: {{ date('d-m-Y', strtotime($order->created_at)) }}
INVOICE FROM:
Uneek Apparel LLC
{{ config('constants.info_email') }}
www.uneekgcc.com
{{-- Products Table --}} @php $sr = 1; $grandQty = 0; $grandAmount = 0; @endphp @foreach($productRows as $row) @php $grandQty += $row->qty; $grandAmount += $row->amount; @endphp @endforeach
Sr. NO PRODUCT Product Code Total Quantity Amount
{{ str_pad($sr++, 2, '0', STR_PAD_LEFT) }} {{ $row->name }} {{ $row->code }} {{ number_format($row->qty) }} SAR {{ number_format($row->amount, 0) }}
{{-- Financial Summary --}} @php $subTotal = (float) ($order->sub_total ?? 0); $vatAmount = (float) ($order->vat_amount ?? 0); $grandTotal = (float) ($order->total_price ?? 0); $remaining = $grandTotal - (float) $paidAmount; $symbol = config('constants.currency_symbol', 'SAR'); @endphp
@if((float) ($order->discount_amount ?? 0) > 0) @endif
Sub Total {{ $symbol }} {{ number_format($subTotal, 0) }}
Discount ({{ rtrim(rtrim(number_format((float) $order->discount_percent, 2), '0'), '.') }}%) - {{ $symbol }} {{ number_format((float) $order->discount_amount, 2) }}
VAT (15%) {{ $symbol }} {{ number_format($vatAmount, 0) }}
Amount Received {{ $symbol }} {{ number_format((float)$paidAmount, 0) }}
Remaining Balance {{ $symbol }} {{ number_format($remaining, 2) }}
• Payment Method : {{ match($order->payment_method) { 'Cash at Pickup' => 'Cash', 'bank' => 'Bank Transfer', 'card' => 'Card', default => ucfirst((string) ($order->payment_method ?? 'N/A')), } }}
{{-- Footer Note + Bar --}}
For Any Further Assistance, Please Contact Our Finance Department At The Email Address Provided Below.
www.uneekgcc.com finance@uneekgcc.com