@extends('backend.layouts.app') @section('content')
{{ translate('Order #') }} | {{ $order->code }} |
{{ translate('Order Status') }} | @php $status = $order->orderDetails->first()->delivery_status; @endphp@if ($status == 'delivered') {{ translate(ucfirst(str_replace('_', ' ', $status))) }} @else {{ translate(ucfirst(str_replace('_', ' ', $status))) }} @endif |
{{ translate('Order Date') }} | {{ date('d-m-Y h:i A', $order->date) }} |
{{ translate('Total amount') }} | {{ single_price($order->grand_total) }} |
{{ translate('Payment method') }} | {{ translate(ucfirst(str_replace('_', ' ', $order->payment_type))) }} |
{{ translate('Additional Info') }} | {{ $order->additional_info }} |
# | {{ translate('Photo') }} | {{ translate('Description') }} | {{ translate('Delivery Type') }} | {{ translate('Qty') }} | {{ translate('Price') }} | {{ translate('Total') }} |
---|---|---|---|---|---|---|
{{ $key + 1 }} | @if ($orderDetail->product != null) @else {{ translate('N/A') }} @endif | @if ($orderDetail->product != null) {{ $orderDetail->product->getTranslation('name') }} {{ $orderDetail->variation }} @else {{ translate('Product Unavailable') }} @endif | @if ($order->shipping_type != null && $order->shipping_type == 'home_delivery') {{ translate('Home Delivery') }} @elseif ($order->shipping_type == 'pickup_point') @if ($order->pickup_point != null) {{ $order->pickup_point->getTranslation('name') }} ({{ translate('Pickup Point') }}) @else {{ translate('Pickup Point') }} @endif @endif | {{ $orderDetail->quantity }} | {{ single_price($orderDetail->price / $orderDetail->quantity) }} | {{ single_price($orderDetail->price) }} |
{{ translate('Storehouse Price') }} : | {{ single_price($order->product_storehouse_total) }} |
{{ translate('Profit') }} : | {{ single_price($order->grand_total - $order->product_storehouse_total) }} |
{{ 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('Coupon') }} : | {{ single_price($order->coupon_discount) }} |
{{ translate('TOTAL') }} : | {{ single_price($order->grand_total) }} |