@extends('layouts.admin') @section('title', 'Users Management') @section('content')
Manage system users and their permissions
{{ $error }}
@endforeachTotal Users
{{ $stats['total_users'] }}
Admins
{{ $stats['admin_users'] }}
Managers
{{ $stats['manager_users'] }}
Users
{{ $stats['user_users'] }}
This Month
{{ $stats['users_this_month'] }}
| User @if(request('sort_by') === 'name') @endif | Role & Department | Status | Created @if(request('sort_by') === 'created_at') @endif | Actions |
|---|---|---|---|---|
|
{{ strtoupper(substr($user->name, 0, 2)) }}
{{ $user->name }}
{{ $user->email }}
@if($user->phone)
{{ $user->phone }}
@endif
|
{{ ucfirst($user->role) }}
@if($user->department)
{{ $user->department }}
@endif
@if($user->position)
{{ $user->position }}
@endif
|
{{ $user->is_active ? 'Active' : 'Inactive' }} |
{{ $user->created_at->format('M d, Y') }}
{{ $user->created_at->format('g:i A') }}
|
|
|
No users found Try adjusting your search criteria or add a new user. |
||||