@extends('layouts.front') @section('title') @lang('Track Orders') - {{config('app.name')}} @endsection @section('meta-tags') @endsection @section('meta-tags-og') @endsection @section('styles') @include('includes.order_tracker_style') @endsection @section('sidebar') @include('includes.user-account-sidebar') @endsection @section('above_content')
@endsection @section('content')@lang('Not Available')
@lang('Qty:') {{$product->pivot->quantity}}
@lang('Payment Status:') @if($order->is_not_online_payment() && $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->is_not_online_payment() && $order->paid == 0) @lang('Failed') @else @lang('Pending') @endif @endif
@if(!($order->is_processed || $order->stock_regained || ($order->is_not_online_payment() && $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->wallet_amount && $order->wallet_amount > 0)@lang('Wallet Used:') - {{ currency_format($order->wallet_amount, $order->currency) }}
@endif @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->wallet_amount - $order->coupon_amount + ($order->total * $order->tax) / 100, $order->currency)}}