@extends('layouts.front') @section('title')@lang('Track Orders') - {{config('app.name')}}@endsection @section('sidebar')
@lang('Qty:') {{$product->pivot->quantity}}
@lang('Payment Status:') @if($order->payment_method != 'Cash on Delivery' && $order->paid == 0) @lang('Failed') @else @if($order->paid) @lang('Paid') @else @lang('Unpaid') @endif @endif
@lang('Payment Date:') {{$order->payment_date}}
@endif@lang('Payment Method:') {{$order->payment_method}}
@lang('Order Status:') @if($order->is_processed) @lang('Delivered') @else @if($order->stock_regained) @lang('Cancelled') @elseif($order->payment_method != 'Cash on Delivery' && $order->paid == 0) @lang('Failed') @else @lang('Pending') @endif @endif
@if(!($order->is_processed || $order->stock_regained || ($order->payment_method != 'Cash on Delivery' && $order->paid == 0)))@lang('Current Status:') {{$order->status}}
@endif @if($order->is_processed == 1)@lang('Delivered on:') {{$order->processed_date}}
@lang('View Invoice') @endif@lang('Shipping Address')
{{$order->address->first_name}} {{$order->address->last_name}}
{{$order->address->address}}
{{$order->address->city}}, {{$order->address->state}} - {{$order->address->zip}}
{{$order->address->country}}.
@lang('Order Total')
@lang('Sub Total:') {{currency_format($order->total, $order->currency)}}
@lang('Tax:') {{$order->tax}} %
@lang('Shipping Cost:') {{isset($order->shipping_cost) ? currency_format($order->shipping_cost, $order->currency) : currency_format(0, $order->currency)}}
@if($order->coupon_amount && $order->coupon_amount > 0)@lang('Coupon Discount:') {{ currency_format($order->coupon_amount, $order->currency) }}
@endif@lang('Order Total:') {{currency_format($order->shipping_cost + $order->total - $order->coupon_amount + ($order->total * $order->tax) / 100, $order->currency)}}