Order # {{ $order->order_id }}
{{ Form::label('Order Date') }} {{ \Carbon\Carbon::parse($order->created_at)->format('M d, Y h:i a') }}
{{ Form::label('Total Amount') }} {{ number_format($order->grand_total, 2, '.', ',') }}
{{ Form::label('Payment Method') }} {{ $order->transaction ? $order->transaction->paymentMethod->payment_method_name : 'Not Available' }}
{{ $orderDelivery->customer_confirmation }} {{ $orderDelivery->transaction_no ? ' (' . $orderDelivery->transaction_no . ')' : '' }}
@if($fsp_user){{ Form::label('FSP') }} {{ $fsp_user->name }}
@endifBilling Information
{{ Form::label('Billing Name') }} {{ $order->billing->billing_name }}
@endif @if($order->billing->billing_address){{ Form::label('Billing Address') }} {{ $order->billing->billing_address }}
@endif @elseNot available
@endifShipping Information
{{ Form::label('Shipping Method') }} {{ $order->shipping->shippingMethod? $order->shipping->shippingMethod->shipping_method_name : 'Not Available' }}
@endif @if($order->shipping->shipping_method_id == 2){{ Form::label('City') }} {{ $order->shipping->shippingAreaOne ? $order->shipping->shippingAreaOne->shipping_area_one_name:'' }}
{{ Form::label('Address') }} @if($order->shipping->holdings) {{ $order->shipping->holdings }} @else Not available @endif
{{ Form::label('Delivery Type') }} {!! isset($order->shipping_type_name) ? $order->shipping_type_name : $delivery_type_name !!}
@else
{{ Form::label('Shipping Zone') }}
@if($customAddress)
Custom Location
{!! $customAddress !!}
@else
{!! $order->shipping->shippingZone ? $order->shipping->shippingZone->name . '
' . $order->shipping->shippingZone->address : 'Not Available' !!}
@endif
{{ Form::label('Delivery Type') }} {!! isset($order->shipping->shipping_type_name) ? $order->shipping->shipping_type_name : $delivery_type_name !!}
@endif @if($order->shipping->contact_no){{ Form::label('Contact') }} {{ $order->shipping->contact_no }}
@endif @elseNot available
@endifAccount Information
{{ Form::label('Customer Name') }} {{ $order->customerDetail ? $order->customerDetail->customer_name : 'Not available' }}
{{ Form::label('Email') }} {{ $order->customer ? $order->customer->email : 'Not available' }}
{{ Form::label('Address') }} {{ $order->customerDetail ? $order->customerDetail->customer_address : 'Not available' }}
{{ Form::label('Contact') }} {{ $order->customer ? $order->customer->code.$order->customer->phone : 'Not available' }}
{{ Form::label('Customer Group') }} {{ $order->customer ? $order->customer->group->group_name : 'Not available' }}
Items Ordered
| Product name | Product ID | Qty | Unit_Price | Subtotal |
|---|---|---|---|---|
| {{ $ordered_product->product_name }} | {{ $ordered_product->product_code_inv }} | {{$ordered_product->quantity}} | {{ number_format($ordered_product->unit_price, 2, '.', ',') }} | {{ number_format($ordered_product->total_price, 2, '.', ',') }} | No product | @endif
Order Totals
| {!! Form::label('Subtotal') !!} | {{number_format($subtotal+$order->special_discount, 2, '.', ',')}} |
| {!! Form::label('Shipping & Handling') !!} | {{number_format($order->shipping->shipping_cost, 2, '.', ',')}} |
| {!! Form::label($specialDiscountLabel) !!} | {{number_format($order->special_discount, 2, '.', ',')}} |
| {!! Form::label('Grand Total') !!} | {{number_format($subtotal + $order->shipping->shipping_cost, 2, '.', ',')}} |
| {!! Form::label('Customer Discount') !!} | {{number_format($customerDiscount->discount_price, 2, '.', ',')}} |
| {!! Form::label('New Grand Total') !!} | {{number_format($customerDiscount->new_grand_total, 2, '.', ',')}} |
Past Orders
| Order # | Purchased On | FSP | Bill to Name | Account Name | Ship to Contact | Grand Total | Status | Action |
|---|