@extends('layouts.admin') @section('content')
{{ trans('global.show') }} {{ trans('global.order.title') }}
{{ trans('global.customer.title_singular') }} {{-- @if($order->customer_id) --}} {{ $order->customer->first_name ?? '' }} {{ $order->customer->last_name ?? '' }} {{-- @else {{ $order->customer_first_name ?? '' }} {{ $order->customer_last_name ?? '' }} @endif --}}
{{ trans('global.order.fields.order_email') }} {!! $order->orderShipping->shipping_email ?? '' !!}
{{ trans('global.order.fields.order_phone') }} {!! $order->orderShipping->shipping_phone ?? '' !!}
{{ trans('global.order.fields.order_date') }} {{ date('Y-M-d', strtotime($order->created_at)) ?? '' }}
Delivery TwonShip {{ $order->delivery->township ?? '' }}
{{ trans('global.order.fields.order_address') }} {{ $order->orderShipping->shipping_address ?? '' }}
Order Note {{ $order->order_note ?? '' }}
{{ trans('global.order.fields.order_status') }} {{ App\Order::ORDER_STATUS[$order->order_status] }}
@foreach($order->orderProducts as $item) @endforeach
Product Option Qty Price Discount Promotion Price Amount
{{ $item->product['name_en'] }} {{ $item->order_note ? "(".$item->order_note.")":""}} @foreach($item->orderOptions as $option) @if ($option->name == 'Color') {{ $option->name }} - {{ $option->color_name }}
{{--
--}} @else {{ $option->name }} - {{$option->value }}
@endif @endforeach
{{ $item->quantity ?? '' }} {{ number_format($item->price) ?? '' }} {{ number_format($item->discount_price) ?? '' }} @if ($item->promotion_code) - {{ number_format($promotion_price) ?? '' }} @endif {{-- {{ ($item->price * $item->quantity) - $item->discount_price }} --}} {{ $item->amount }}
Sub Total {{ number_format($order->sub_total) ?? '' }}
Delivery Fee {{ number_format($order->delivery->fee) ?? '' }}
Tax 5% Included
Grand Total {{ number_format($order->grand_total) ?? '' }}
{{ trans('global.back_to_list') }}
@endsection