@extends('customer.dashboard.layout') @section('title', 'My Orders') @section('content')

My Orders

View and track all your orders

@if($orders->count() > 0)
@foreach($orders as $order) @endforeach
Order # Date Items Total Payment Status Order Status Actions
{{ $order->order_number }} {{ $order->created_at->format('M d, Y') }} {{ $order->orderItems->count() }} item(s) RM {{ number_format($order->total_amount, 2) }} {{ ucfirst($order->payment_status) }} {{ ucfirst($order->status) }} @if($order->payment_status === 'paid') @endif
{{ $orders->links() }}
@else

No Orders Yet

You haven't placed any orders yet

Start Shopping
@endif @endsection