@extends('layouts.frontlayout') @section('content')
Home
My Orders
Order Detail
@if(isset($order) && $order) @foreach($order->orderItem as $k => $o)
{{ isset($o->title) && $o->title ? $o->title : '' }}
{{ isset($o->title) && $o->title ? $o->title : '' }}
{{isset($o->price) && $o->price ? (isset($o->transactions_currency) && $o->transactions_currency == '$' ? $o->transactions_currency_code : '').' '.$o->transactions_currency.''.priceFormatBake($o->price) : ''}} {{ isset($productSize) && $productSize ? '['.$productSize.']' : '' }}
Qty: {{ isset($o->quantity) && $o->quantity ? $o->quantity : '' }}
@if(isset($order->status) && $k == 0)
@if(isset($order->status) && $order->status == 0)

Cancelled

@elseif(isset($order->status) && $order->status == 1)

Pending

@elseif(isset($order->status) && $order->status == 2)

Accepted

@elseif(isset($order->status) && $order->status == 3)

In Progress

@elseif(isset($order->status) && $order->status == 4)

Packed

@elseif(isset($order->status) && $order->status == 5)

Dispatched

@elseif(isset($order->status) && $order->status == 6)

Delivered

@endif
@endif
@endforeach
@endif
Order Info.
Order Id : {{isset($order->id) && $order->id ? General::formatOrderNumber($order->id) : ''}}
Ordered on : {{isset($order->created) && $order->created ? date('d M, Y', strtotime($order->created)) : ''}}
@if(isset($order->orderItem[0]['delivery_date']) && $order->orderItem[0]['delivery_date'])
Delivery on : {{isset($order->orderItem[0]) && $order->orderItem[0] ? date('d M, Y', strtotime($order->orderItem[0]['delivery_date'])) : ''}}
@endif
Payment Status : @if(isset($order->payment_type) && $order->payment_type != 'cash' ) @if(isset($order->trans_status) && $order->trans_status == 0) Failed @elseif(isset($order->trans_status) && $order->trans_status == 1) Pending @elseif(isset($order->trans_status) && $order->trans_status == 2) Paid @endif @else @if(isset($order->trans_status) && $order->trans_status == 0) Failed(COD) @elseif(isset($order->trans_status) && $order->trans_status == 1) Pending(COD) @elseif(isset($order->trans_status) && $order->trans_status == 2) Success(COD) @endif @endif
Address : {{isset($order->address) && $order->address ? $order->address : ''}}
Bill Details
Item Total
{{isset($order->subtotal) && $order->subtotal ? (isset($order->trans_currency) && $order->trans_currency == '$' ? $order->trans_currency_code : '').' '.$order->trans_currency.' '.priceFormatBake($order->subtotal) : ''}}
Tax

i

{{isset($order->tax) && $order->tax ? (isset($order->trans_currency) && $order->trans_currency == '$' ? $order->trans_currency_code : '').' '.$order->trans_currency.' '.priceFormatBake($order->tax) : ''}}
Delivery Fee

i

{{isset($order->delivery_charges) && $order->delivery_charges ? (isset($order->trans_currency) && $order->trans_currency == '$' ? $order->trans_currency_code : '').' '.$order->trans_currency.' '.priceFormatBake($order->delivery_charges) : ''}}
@if(isset($order->discount) && $order->discount)
Discount @if(isset($order->coupon_id) && $order->coupon_id)
({{ isset($order->coupon_code) && $order->coupon_code ? $order->coupon_code : '' }}) @endif
-{{isset($order->discount) && $order->discount ? (isset($order->trans_currency) && $order->trans_currency == '$' ? $order->trans_currency_code : '').' '.$order->trans_currency.' '.priceFormatBake($order->discount) : ''}}
@endif
Total Amount
{{isset($order->total) && $order->total ? (isset($order->trans_currency) && $order->trans_currency == '$' ? $order->trans_currency_code : '').' '.$order->trans_currency.' '.priceFormatBake($order->total) : ''}}
@endsection