@if(@count(@$orders) > 0) @foreach($orders as $order)

{!! convertUtcToLocal($order['created_at'],config('constants.DISPLAY_DATE_TIME_ZONE_FORMAT')) !!}

Order ID : {!! $order['id'] !!}
Order Amount
{!! $order['total'] !!}
Item
SKU
Status
Price
Qty
Total
@if(count($order['items'])) @foreach($order['items'] as $items)
{!! @$items['name'] !!}
{!! @$items['name'] !!}

{!! @$items['variation_name'] !!}

@if(count($items['modifiers']))

@foreach($items['modifiers'] as $modifiers) {!! $modifiers['name']." (+ ".@$modifiers['amount'] .")" !!}
@endforeach

@endif
{!! @$items['sku'] !!}
{!! @$items['status'] !!}
{!! @$items['price'] !!}
{!! @$items['quantity'] !!}
{!! @$items['total'] !!}
@endforeach @endif
 
 
 
Subtotal:
{!! @$order['subtotal'] !!}
@if(count($order['discounts'])) @foreach($order['discounts'] as $discounts)
Discount: {!! $discounts['name'] !!} @if($discounts['percentage']) ({!! $discounts['percentage'] !!}%) @endif
 
 
 
 
-{!! @$discounts['amount'] !!}
@endforeach @endif
 
 
 
@if(@$order['fulfillments']['type'] == "SHIPMENT")
Shipping:
{!! @$order['fulfillments']['shipping_type'] !!}
{!! @$order['fulfillments']['shipping_charge'] !!}
@else
In store pick up:
{!! @$order['fulfillments']['pickup_charge'] !!}
@endif
@if(isset($order['taxes'][0]['name']))
 
 
 
Tax: ({!! @$order['taxes'][0]['name'] !!})
{!! @$order['taxes'][0]['amount'] !!}
@endif
 
 
 
Total:
{!! @$order['total'] !!}

Fulfillment Details

@if(count($order['fulfillments'])) @if($order['fulfillments']['type'] == "SHIPMENT")
Ship to location

{!! $order['fulfillments']['name'] !!}

{!! @$order['fulfillments']['address']['organization'] !!}

{!! @$order['fulfillments']['address']['address_line_1'] !!}

{!! @$order['fulfillments']['address']['locality'].', '.@$order['fulfillments']['address']['administrative_district_level_1'].' '.@$order['fulfillments']['address']['postal_code'] !!}

Ship From Location

{!! @$order['fulfillments']['shipping_from'] !!}

Contact Information
@if(@$order['fulfillments']['phone'])

{!! @$order['fulfillments']['phone'] !!}

@endif @if(@$order['fulfillments']['email'])

{!! @$order['fulfillments']['email'] !!}

@endif
Shipping Method

{!! @$order['fulfillments']['shipping_method'] !!}

@else
Contact information

{!! $order['fulfillments']['name'] !!}

@if(@$order['fulfillments']['phone'])

{!! @$order['fulfillments']['phone'] !!}

@endif @if(@$order['fulfillments']['email'])

{!! @$order['fulfillments']['email'] !!}

@endif
Pickup Time

{!! $order['fulfillments']['pickup_time'] ? convertUtcToLocal(@$order['fulfillments']['pickup_time'], config('constants.DISPLAY_DATE_TIME_ZONE_FORMAT')) : "-" !!}

Pickup Location

{!! @$order['fulfillments']['address']['organization'] !!}

{!! @$order['fulfillments']['address']['address_line_1'] !!}

{!! @$order['fulfillments']['address']['locality'].', '.@$order['fulfillments']['address']['administrative_district_level_1'].' '.@$order['fulfillments']['address']['postal_code'] !!}

@endif @endif

Last Updated At

{!! convertUtcToLocal($order['updated_at'],config('constants.DISPLAY_DATE_TIME_ZONE_FORMAT')) !!}

Payment Method

{!! @$order['payment_method'] !!}

Contact Information
@if(@$order['fulfillments']['phone'])

Phone : {!! @$order['fulfillments']['phone'] !!}

@endif @if(@$order['fulfillments']['email'])

Email : {!! @$order['fulfillments']['email'] !!}

@endif
@endforeach @section('js') @parent @stop @else

No orders found!

@endif