Order Code:
{{ $order->code ?? '-' }}
Order Date:
{{ $order->created_at ? \Carbon\Carbon::parse($order->created_at)->format('d-m-Y') : 'N/A' }}
Customer Name:
@if ($IsCashSale)Cash Sale
@else{{ $order->user->name ?? '-' }}
@endifPhone Number:
@if ($IsCashSale)-
@else{{ $order->user->phone ?? '-' }}
@endifEmail:
@if ($IsCashSale)-
@else{{ $order->user->email ?? '-' }}
@endifTotal Products:
{{ $order->orderProducts->count() ?? 0 }}
Company Name:
@if ($IsCashSale)-
@else{{ $order->user->company_name ?? '-' }}
@endifCompany Phone:
@if ($IsCashSale)-
@else{{ $order->user->company_phone_no ?? '-' }}
@endifCompany Email:
@if ($IsCashSale)-
@else{{ $order->user->company_email ?? '-' }}
@endifCompany Address:
@if ($IsCashSale)-
@else{{ $order->user->company_address ?? '-' }}
@endifBilling Address:
@if($finalBilling) {{ $finalBilling->address }} {{ $finalBilling->city ? ', ' . $finalBilling->city : '' }} {{ $finalBilling->state ? ', ' . $finalBilling->state : '' }} {{ $finalBilling->country ? ', ' . $finalBilling->country : '' }} {{ $finalBilling->zip ? ' - ' . $finalBilling->zip : '' }} @else - @endif
Payment Status:
{{ $order->payment_status ?? '-' }}
Shipping Address:
@if($finalShipping) {{ $finalShipping->address }} {{ $finalShipping->city ? ', ' . $finalShipping->city : '' }} {{ $finalShipping->state ? ', ' . $finalShipping->state : '' }} {{ $finalShipping->country ? ', ' . $finalShipping->country : '' }} {{ $finalShipping->zip ? ' - ' . $finalShipping->zip : '' }} @else - @endif
Payment Method:
{{ ucwords(str_replace('_', ' ', $order->payment_method ?? 'N/A')) }}
Tax Amount:
{{ number_format($order->tax_amount ?? 0, 2) }}
Total Price:
{{ number_format($order->sub_total ?? 0, 2) }}
Remarks:
{{ $order->description ?? '-' }}
Terms & Conditions:
{!! $term->description !!}
@empty-
@endforelseNo related products found.
@endif