@extends('adminlte::page') @section('title', $pageTitle) @section('content_header')

{{ $pageTitle }}

@stop @section('content') {{-- {{ dd(get_defined_vars()) }} --}}
 {{ Lang::get('core.btn_back') }}
Order Placed: {{$order->orderCreated->formatLocalized('%B %d, %Y')}}
Order Number: {{$order->channelOrderNum}}
Order Total: ${{sprintf('%01.2f', $order->total)}}

@if(count($items)) @foreach($items as $item) @endforeach @else @endif @if(count($addresses) > 1) @foreach($addresses as $address) @endforeach @endif @if(!empty($order->comments)) @endif

Items Ordered

Price

@if(!empty($item['image'])) {!! str_replace('http://ep.','https://sep.',$item['image']) !!} @endif {{$item['qty']}} of: {{$item['name']}} @if(!empty($item['options']))

Options:
@foreach(json_decode($item['options']) as $option) {{$option->name}} : {{$option->value}}
@endforeach
@endif
$ {{sprintf('%01.2f', $item['price'])}}
The items on the order do not match any SKU's that are in the system.
{{ucwords($address['type'])}} Address:
{{$address["address_1"]}}
@if(!empty($address["address_2"]))
{{$address["address_2"]}}
@endif @if(!empty($address["city"]) && !empty($address["state"]) && !empty($address["zip"]))
{{$address["city"] .', '. $address["state"] . ' ' . $address["zip"]}}
{{$address["country"]}}
@endif
Item(s) Subtotal: ${{sprintf('%01.2f', $order->total - $order->discountAmt - ($order->shippingAmt + $order->tax))}}
Shipping & Handling: ${{sprintf('%01.2f', $order->shippingAmt)}}
Total before tax: ${{sprintf('%01.2f', $order->total - $order->discountAmt - ($order->shippingAmt + $order->tax) + $order->shippingAmt)}}
Sales tax: ${{sprintf('%01.2f', $order->tax)}}
@if($order->discountAmt) Discount: ${{sprintf('%01.2f', $order->discountAmt)}}
@endif Total for This Shipment:${{sprintf('%01.2f', $order->total)}}

Order Comments

{!! $order->comments !!}
@stop