@extends('layouts.front') @section('title')@lang('Track Orders') - {{config('app.name')}}@endsection @section('styles') @include('includes.order_tracker_style') @endsection @section('scripts') @endsection @section('content')
@include('partials.front.sidebar')
@if (session()->has('request_not_send')) @endif @if (session()->has('request_send')) @endif @if (session()->has('order_cancelled')) @endif @if (session()->has('order_not_cancelled')) @endif

@lang('Your Orders')

@lang('Order No.')

@lang('Products')

@lang('Payment Status')

@lang('Total')

@lang('Order Date')

@if($orders->count() > 0) @foreach($orders as $key => $order)

{{$key+1}}

@if ($order->products->first()) @else

@lang('Not Available')

@endif

@if($order->payment_method != 'Cash on Delivery' && $order->paid == 0) @lang('Failed') @else @if($order->paid) @lang('Paid') @else @lang('Unpaid') @endif @endif

{{currency_format($order->shipping_cost + $order->total - $order->coupon_amount + ($order->total * $order->tax) / 100, $order->currency)}}

{{$order->created_at->toFormattedDateString()}}

@if($order->payment_method != 'Cash on Delivery' && $order->paid == 0) {!! Form::model($order, ['method'=>'patch', 'action'=>['FrontOrdersController@hide', $order->id], 'id'=> 'hide-form-'.$order->id, 'style'=>'display: none;']) !!} {!! Form::close() !!} @endif
@endforeach @else
@lang('No Order History')

@lang('NO ORDERS HISTORY FOUND')

@endif @if(count($orders))
{{$orders->links()}}
@endif
@endsection