Order Code:
{{ $order->code ?? '-' }}
Order Date:
{{ $order->created_at ? \Carbon\Carbon::parse($order->created_at)->format('d-m-Y') : 'N/A' }}
Vendor Name:
{{ $order->user->first_name . ' ' . $order->user->last_name ?? '-' }}
Total Products:
{{ $order->orderProducts->count() ?? 0 }}
Phone Number:
{{ $order->user->phone ?? '-' }}
Total Price:
{{ number_format($order->sub_total ?? 0, 2) }}
Email:
{{ $order->user->email ?? '-' }}
Payment method:
{{ ucwords(str_replace('_', ' ', $order->payment_method ?? 'N/A')) }}
Vendor Invoice Number:
{{ $order->vendor_invoice_number ?? '-' }}
Vendor Invoice Document:
@if($order->vendor_invoice_document) View Document @else - @endif
Billing Address:
@if ($BillingAddress) {{ $BillingAddress->address }}, {{ $BillingAddress->city_name }}, {{ $BillingAddress->state_name }}, {{ $BillingAddress->country_name }} - {{ $BillingAddress->zip_code }} @else - @endif
Payment Status:
{{ $order->payment_status ?? '-' }}
Shipping Address:
@if ($ShippingAddress) {{ $ShippingAddress->address }}, {{ $ShippingAddress->city_name }}, {{ $ShippingAddress->state_name }}, {{ $ShippingAddress->country_name }} - {{ $ShippingAddress->zip_code }} @else - @endif
Remarks:
{{ $order->description ?? '-' }}
Terms & Conditions:
{!! $term->description !!}
@endif @endforeach @else-
@endifNo related products found.
@endif