@extends('admin.layout') @section('title', 'Users Management') @section('styles') @endsection @section('content')
Users Management
View and manage all registered users on the platform.
@if(session('success'))
{{ session('success') }}
@endif
All Users ({{ $users->total() }})
@forelse($users as $user) @empty @endforelse
ID Name Email Phone Wallet Orders Volume Joined Actions
{{ $user->id }}
{{ $user->name }}
{{ $user->email }} {{ $user->phone ?? 'N/A' }}
¥{{ number_format($user->wallet_balance, 2) }}
{{ $user->orders_count }}
₵{{ number_format($user->orders_sum_ghs_amount ?? 0, 2) }}
{{ $user->created_at->format('M d, Y') }}

No users found

@forelse($users as $user)
{{ $user->name }}
ID: {{ $user->id }}
Email {{ $user->email }}
Phone {{ $user->phone ?? 'N/A' }}
Wallet Balance ¥{{ number_format($user->wallet_balance, 2) }}
Orders {{ $user->orders_count }}
Total Volume ₵{{ number_format($user->orders_sum_ghs_amount ?? 0, 2) }}
@empty

No users found

@endforelse
@if($users->hasPages())
Showing {{ $users->firstItem() }} to {{ $users->lastItem() }} of {{ $users->total() }} users
@if ($users->onFirstPage()) Previous @else Previous @endif @foreach ($users->getUrlRange(1, $users->lastPage()) as $page => $url) @if ($page == $users->currentPage()) {{ $page }} @else {{ $page }} @endif @endforeach @if ($users->hasMorePages()) Next @else Next @endif
@endif
@endsection @section('scripts') @endsection