@extends('layouts.front') @section('css') @endsection @section('content')
@include('includes.user.sidebar')

@lang('Purchase Items')

@php $orders = App\Models\Order::where('user_id', Auth::user()->id) ->latest() ->paginate(12); @endphp @foreach ($orders as $order) @endforeach
{{ __('#Order') }} {{ __('Date') }} {{ __('Order Total') }} {{ __('Order Status') }} {{ __('View') }}
{{ $order->order_number }} {{ date('d M Y', strtotime($order->created_at)) }} {{ \PriceHelper::showAdminCurrencyPrice($order->pay_amount * $order->currency_value, $order->currency_sign) }} @php if ($order->status == 'pending') { $class = 'yellow-btn'; } elseif ($order->status == 'processing') { $class = 'yellow-btn'; } elseif ($order->status == 'completed') { $class = 'green-btn'; } elseif ($order->status == 'declined') { $class = 'red-btn'; } elseif ($order->status == 'on delivery') { $class = 'black-btn'; } @endphp
{{ $orders->links('includes.frontend.pagination') }}
@endsection @section('script') @endsection