{{-- --}}

Proforma Invoice

Invoice Number: UF-{{ date('Y') }}-{{ str_pad($orderDetail->id,3,'0',STR_PAD_LEFT) }}
Invoice Date: {{ date('F d, Y', strtotime($orderDetail->created_at)) }}
@php $customerVat = $orderDetail->vat_number ?? ($orderDetail->user->vat_number ?? null); $customerVat = is_string($customerVat) ? trim($customerVat) : $customerVat; @endphp @if(!empty($customerVat)) @endif
Invoice To:
{{ $orderDetail->user->name ?? '' }}
{{ $orderDetail->user->company_name ?? '' }}
VAT No: {{ $customerVat }}
{{ $orderDetail->user->phone_number ?? '' }}
{{ $orderDetail->user->complete_address ?? '' }}
@if(!empty(config('constants.vat_number'))) @endif
Invoice From:
{{ config('constants.company_name') }}
VAT No: {{ config('constants.vat_number') }}
{{ config('constants.finance_email') }}
{{ config('constants.phone_number_text') }}
{{ config('constants.address') }}
@forelse ($OrderItems as $product) @empty @endforelse {{-- Totals section --}} @if(isset($customisationTotal) && $customisationTotal > 0) @endif @if((float) ($orderDetail->payment_fee ?? 0) > 0) @endif
NO. PRODUCT COLOR SIZE QTY. UNIT PRICE CUSTOMISATION TOTAL
{{ $loop->iteration }} {{ $product->name }}
{{ $product->product_code }}
{{ $product->color }} {{ $product->size }} {{ $product->quantity }} {{ number_format($product->base_price, 0) }} {{ $product->customisation_price > 0 ? number_format($product->customisation_price, 0) : '-' }} {{ number_format($product->price * $product->quantity, 0) }}
Subtotal {{ config('constants.currency_symbol') }} {{ number_format($baseTotal, 0) }}
Customisation {{ config('constants.currency_symbol') }} {{ number_format($customisationTotal, 0) }}
Discount {{ config('constants.currency_symbol') }} {{ number_format($orderDetail->discount, 0) }}
@if(($orderDetail->fulfillment_type ?? '') === 'pickup') Branch Pickup @else Delivery @endif {{ config('constants.currency_symbol') }} {{ number_format($orderDetail->delivery_fee ?? 0, 0) }}
Cash Handling Charges {{ config('constants.currency_symbol') }} {{ number_format((float) $orderDetail->payment_fee, 0) }}
{{ !empty($orderDetail->prices_include_vat) ? 'VAT included (15%)' : 'VAT (15%)' }} {{ config('constants.currency_symbol') }} {{ number_format($orderDetail->vat, 0) }}
Total {{ config('constants.currency_symbol') }} {{ number_format($orderDetail->amount, 0) }}
Thank you for choosing Uniform Flex.