@extends('layouts.dashboard') @section('title', 'Admin Management') @section('page-title', 'Admin Management') @section('content')
Create and manage admin accounts with different access levels
| Admin | Role | Status | Managed Users | Last Login | Actions | |
|---|---|---|---|---|---|---|
|
{{ strtoupper(substr($admin->name, 0, 2)) }}
{{ $admin->name }}
@if($admin->created_by)
Created by: {{ $admin->createdBy->name ?? 'Unknown' }}
@endif
|
{{ $admin->email }} | @if($admin->isSuperAdmin()) Super Admin @else Admin @endif | @if($admin->is_active) Active @else Inactive @endif | @if($admin->isSuperAdmin()) All Users @else {{ $admin->getManagedUserCount() }} / {{ $admin->limits->max_users ?? 10 }} @endif | @if($admin->last_login_at) {{ $admin->last_login_at->diffForHumans() }} @else Never @endif |
|
| No admins found | ||||||