@extends('layouts.app') @section('title', 'All Orders') @section('content')

All Orders

View and manage all orders in the system

Total Orders
{{ $orders->total() }}
Pending
{{ $orders->where('status', 'pending')->count() }}
Active
{{ $orders->where('status', 'active')->count() }}
Cancelled
{{ $orders->where('status', 'cancelled')->count() }}
@forelse($orders as $order) @empty @endforelse
ID Client Service Price Status Date Actions
#{{ $order->id }}
{{ $order->user->name }}
{{ $order->user->email }}
{{ $order->name }} {{ format_currency($order->price) }} @if($order->status === 'active') Active @elseif($order->status === 'pending') Pending @elseif($order->status === 'suspended') Suspended @else Cancelled @endif {{ $order->created_at->format('M d, Y') }} View
No orders found
@if($orders->hasPages())
{{ $orders->links() }}
@endif
@endsection