@extends('admin.layouts.main') @section('title','Manajemen Anggota & Staff') @push('styles') @endpush @section('content')
Kelola pengguna, role, dan hak akses sistem
| Anggota | Role & Posisi | Hak Akses | Login Terakhir | Status | Aksi |
|---|---|---|---|---|---|
|
{{ $user->initials }}
{{ $user->name }}
@if($user->id === auth()->id())
Anda
@endif
{{ $user->email }}
@if($user->phone)
{{ $user->phone }}
@endif
|
{{ $user->role_label }}
@if($user->position)
{{ $user->position }}
@endif
|
@if($user->role === 'admin') Semua Akses @else @php $perms = \App\Models\RolePermission::getPermissionsForRole($user->role); @endphp {{ count($perms) }} hak akses Lihat detail → @endif |
{{ $user->last_login_at ? $user->last_login_at->diffForHumans() : 'Belum pernah' }}
@if($user->last_login_at)
{{ $user->last_login_at->format('d M Y H:i') }}
@endif
|
@if($user->is_active) Aktif @else Nonaktif @endif | |
| Belum ada anggota | |||||