@extends('admin-layouts.master') @section('title', 'User Management') @section('content')
Manage system users and their access rights
| User | Primary Role | All Roles | Status | Joined | Actions |
|---|---|---|---|---|---|
|
@if($user->profile_photo)
{{ $user->name }}{{ $user->username }} {{ $user->email }} |
@if($user->primaryRole) @php $badgeClass = match($user->primaryRole->name) { 'superadmin' => 'danger', 'supervisor' => 'warning', 'staff' => 'info', 'administrator' => 'success', 'guest' => 'secondary', default => 'secondary' }; @endphp {{ $user->primaryRole->name }} @else No Role @endif | @if($user->roles->count() > 0) @foreach($user->roles->take(2) as $role) {{ $role->name }} @endforeach @if($user->roles->count() > 2) +{{ $user->roles->count() - 2 }} more @endif @else No roles @endif | @if($user->email_verified_at) Verified @else Pending @endif | {{ $user->created_at->format('M d, Y') }} {{ $user->created_at->diffForHumans() }} |
There are no users registered in the system.
@can('user.create') Create First User @endcan