@extends('layouts.app') @section('title', 'User Management') @section('page-title', 'User Management') @section('page-subtitle', 'Manage all platform users') @section('topbar-actions') Add User @endsection @push('styles') @endpush @section('content') {{-- ── Summary bar ── --}}
{{ $counts['total'] }}
Total Users
{{ $counts['managers'] }}
Managers
{{ $counts['influencers'] }}
Influencers
{{ $counts['pending'] }}
Pending Approval
{{-- ── Toolbar ── --}}
{{ $users->total() }} users
{{-- ── Table ── --}}
@forelse($users as $u) {{-- User --}} {{-- Role --}} {{-- Status --}} {{-- Joined --}} {{-- Last Active --}} {{-- Actions --}} @empty @endforelse
Username Role Status Joined Last Active Actions
{{ strtoupper(substr($u->name, 0, 1)) }}
{{ $u->name }}
{{ $u->email }}
@php $rc = ['admin'=>'blue','manager'=>'yellow','influencer'=>'purple'][$u->role] ?? 'gray'; @endphp {{ ucfirst($u->role) }} @if($u->is_approved) Approved @else Pending @endif {{ $u->created_at->format('d M Y') }}{{ $u->updated_at->diffForHumans() }}
@if(!$u->is_approved)
@csrf
@endif
No users found
Try adjusting your search or filters.
@if($users->hasPages())
{{ $users->links() }}
@endif
{{-- ── Delete confirm modal ── --}} @endsection @push('scripts') @endpush