@extends('layouts.admin.app') @section('content')
@include('layouts.errors-and-messages')

{{$customer->name}}
{{$customer->email}}
reference: {{$order->reference}}

Order Information

@if($order['total_paid'] != $order['total']) @endif
Date Customer Payment Status
{{ date('M d, Y h:i a', strtotime($order['created_at'])) }} {{ $customer->name }} {{ $order['payment'] }}
Subtotal {{ $order['total_products'] }}
Tax {{ $order['tax'] }}
Discount {{ $order['discounts'] }}
Order Total {{ $order['total'] }}
Total paid {{ $order['total_paid'] }}
@if($order) @if($order->total != $order->total_paid)

Ooops, there is discrepancy in the total amount of the order and the amount paid.
Total order amount: {{ config('cart.currency') }} {{ $order->total }}
Total amount paid {{ config('cart.currency') }} {{ $order->total_paid }}

@endif
@if(!$items->isEmpty())

Items

@foreach($items as $item) @endforeach
SKU Name Description Quantity Price
{{ $item->sku }} {{ $item->name }} {!! $item->description !!} @php($pattr = \App\Shop\ProductAttributes\ProductAttribute::find($item->product_attribute_id)) @if(!is_null($pattr))
@foreach($pattr->attributesValues as $it)

{{ $it->attribute->name }} : {{ $it->value }}

@endforeach @endif
{{ $item->pivot->quantity }} {{ $item->price }}
@endif

Address

Address 1 Address 2 City Province Zip Country Phone
{{ $order->address->address_1 }} {{ $order->address->address_2 }} {{ $order->address->city }} @if(isset($order->address->province)) {{ $order->address->province->name }} @endif {{ $order->address->zip }} {{ $order->address->country->name }} {{ $order->address->phone }}
@endif
@endsection