@extends('layouts.admin') @section('title', 'Manage Users') @section('content')

Manage Users

Total Users

{{ $totalUsers }}

Vendors

{{ $vendorCount }}

Admins

{{ $adminCount }}

Buyers

{{ $buyerCount }}

@if(request('role') === 'admin')

Administrator Guidelines

  • Administrators have full access to all system features
  • Only assign admin role to trusted team members
  • Regularly review admin access and permissions
  • Use strong passwords and enable two-factor authentication
@endif
@forelse($users as $user) @empty @endforelse
User Role & Status Listings Contact Joined Actions
{{ $user->name }}
{{ $user->email }}
@if($user->business_name)
{{ $user->business_name }}
@endif
{{ ucfirst($user->role) }} {{ $user->email_verified_at ? 'Active' : 'Inactive' }}
{{ $user->vehicles_count }} vehicles {{ $user->spare_parts_count }} parts
{{ $user->phone ?? 'N/A' }} {{ $user->created_at->format('M d, Y') }}
View Edit @if($user->id !== auth()->id())
@csrf
@endif
No users found.
{{ $users->appends(['role' => request('role')])->links() }}
@endsection