{{-- resources/views/admin/user-management/index.blade.php --}} @extends('admin.layouts.app') @section('title', 'Users Management') @section('page-title', 'Users Management') @section('page-description', 'Manage platform users, view their status, and perform administrative actions.') @section('content')
| User | Contact | Account | Status | Role | Joined | Actions |
|---|---|---|---|---|---|---|
|
@if($user->profile_photo_path)
{{ $user->initials }}
@endif
{{ $user->name }}
@if($user->isAdmin())
Admin
@endif
|
{{ $user->email }}
@if($user->phone_number)
{{ $user->phone_number }}
@endif
|
{{ $user->account_number }}
{{ ucfirst($user->account_type) }}
|
@php
$statusColors = [
'active' => 'bg-green-100 text-green-800',
'inactive' => 'bg-gray-100 text-gray-800',
'suspended' => 'bg-red-100 text-red-800'
];
@endphp
{{ ucfirst($user->account_status) }}
@if($user->email_verified_at)
✓ Verified
@else
⚠ Unverified
@endif
|
@if($user->isAdmin()) {{ ucfirst($user->admin_role) }} @else User @endif | {{ $user->created_at->format('M j, Y') }} |
Try adjusting your search criteria or filters.