@extends('layouts.frontend.app') @push('meta') @endpush @section('title', 'Order List') @push('css') @endpush @section('content')
@include('layouts.frontend.partials.userside')
@foreach ($orders as $key => $order) @endforeach
Order NO. Price Qty Total Status Date Action
{{$key + 1}} {{number_format($order->orderDetails->sum('price'), 2, '.', ',')}} {{$order->orderDetails->sum('qty')}} {{number_format($order->total, 2, '.', ',')}} @if ($order->status == 0) Pending @elseif ($order->status == 1) Processing @elseif ($order->status == 2) Canceled @elseif ($order->status == 4) Shipping @elseif ($order->status == 5) Refund @elseif ($order->status == 6) Return Requested @elseif ($order->status == 7) Return Accepted
you can now return this product
@elseif ($order->status == 8) Returned @else Delivered @endif
{{date('d M Y', strtotime($order->created_at))}} @if($order->pay_staus!=1 && $order->status != 3 && $order->status != 2) Pay @endif View @if ($order->status == 0) Cancel @endif @if ($order->status == 3) Review Return @endif
@endsection @push('js') @endpush