@extends('layouts.app') @section('content')
| {{translate('Order #')}} | {{ $order->code }} |
| {{translate('Order Status')}} | @php $status = $order->orderDetails->first()->delivery_status; @endphp@if($status == 'delivered') {{ ucfirst(str_replace('_', ' ', $status)) }} @else {{ ucfirst(str_replace('_', ' ', $status)) }} @endif |
| {{translate('Order Date')}} | {{ date('d-m-Y h:i A', $order->date) }} |
| {{translate('Total amount')}} | {{ single_price($order->orderDetails->sum('price') + $order->orderDetails->sum('tax')) }} |
| {{translate('Payment method')}} | {{ ucfirst(str_replace('_', ' ', $order->payment_type)) }} |
| # | {{translate('Photo')}} | {{translate('Description')}} | {{translate('Delivery Type')}} | {{translate('Qty')}} | {{translate('Price')}} | {{translate('Total')}} |
|---|---|---|---|---|---|---|
| {{ $key+1 }} |
@if ($orderDetail->product != null)
|
@if ($orderDetail->product != null) {{ $orderDetail->product->name }} {{ $orderDetail->variation }} @else {{ translate('Product Unavailable') }} @endif | @if ($orderDetail->shipping_type != null && $orderDetail->shipping_type == 'home_delivery') {{ translate('Home Delivery') }} @elseif ($orderDetail->shipping_type == 'pickup_point') @if ($orderDetail->pickup_point != null) {{ $orderDetail->pickup_point->name }} ({{ translate('Pickup Point') }}) @else {{ translate('Pickup Point') }} @endif @endif | {{ $orderDetail->quantity }} | {{ single_price($orderDetail->price/$orderDetail->quantity) }} | {{ single_price($orderDetail->price) }} |
| {{translate('Sub Total')}} : | {{ single_price($order->orderDetails->sum('price')) }} |
| {{translate('Tax')}} : | {{ single_price($order->orderDetails->sum('tax')) }} |
| {{translate('Shipping')}} : | {{ single_price($order->orderDetails->sum('shipping_cost')) }} |
| {{translate('Discount')}} : | {{ single_price($order->coupon_discount) }} |
| {{translate('TOTAL')}} : | {{ single_price($order->grand_total) }} |