@extends('Layouts.frontLayout',['classBody'=>"page-template-default page logged-in setinco page-wrapper-account page-wrapper-page page-wrapper-orders container-max-width show-bottom-nav"]) @section('title') {{__('Orders')}} @endsection @section('content')
{{__('Home')}} / {{__('Dashboard')}}

{{__('Dashboard')}}

@include('Front.Account.menu')

{{__('Orders')}}

{{__('All Orders')}}{{count($data['CountOrder'])}} {{__('Doing')}} {{$data['CountOrder']->whereIn('status',1)->count()}} {{__('Completed')}} {{$data['CountOrder']->whereIn('status',3)->count()}} {{__('Canceled')}} {{$data['CountOrder']->whereIn('status',4)->count()}}
@if(isset($data['orders']) and count($data['orders'])>0) @forelse($data['orders'] as $item) @if($item->status==0) @php $status=__('Pending'); @endphp @elseif($item->status==1) @php $status=__('Confirmed') ; @endphp @elseif($item->status==2) @php $status=__('Post') ; @endphp @elseif($item->status==3) @php $status=__('Complete') ; @endphp @elseif($item->status==4) @php $status=__('Cancel') ; @endphp @endif
{{ $status}}
{{timestampDateDayOrder($item->date,true)['date']}}
{{__('Tracking Code')}} {{$item->tracking_code}}
{{__('Total Order')}} {{fnumber_format($item->Payment->price_off)}} {{$prefix}}
{{count($item->Cart)}} {{__('Items')}}
@foreach($item->Cart as $Cart) {{$Cart->Product->title}} @endforeach
{{__('View')}}
@empty
{{__('Nothing Found')}}

{{__('Nothing Found')}} !

@endforelse @else
{{__('Nothing Found')}}

{{__('Nothing Found')}} !

@endif
@endsection