@extends('layouts.admin') @section('title', 'Chi tiết Admin User - MU Admin Panel') @section('styles') @endsection @section('content') @if(session('success'))
✅ {{ session('success') }}
@endif @if($errors->any())
@foreach($errors->all() as $error) ❌ {{ $error }} @endforeach
@endif

📋 Thông tin cơ bản

ID
{{ $adminUser->id }}
Tên đăng nhập
{{ $adminUser->username }}
Email
{{ $adminUser->email }}
Họ và tên
{{ $adminUser->full_name }}
Role
{{ $adminUser->getRoleText() }}
Trạng thái
{{ $adminUser->getStatusText() }}
Đăng nhập cuối
{{ $adminUser->last_login_at ? $adminUser->last_login_at->format('d/m/Y H:i:s') : 'Chưa đăng nhập' }}
IP đăng nhập cuối
{{ $adminUser->last_login_ip ?: 'N/A' }}
Quyền hạn
@if($adminUser->isSuperAdmin()) Toàn quyền (Super Admin) @else
@if($adminUser->permissions && count($adminUser->permissions) > 0) @foreach($adminUser->permissions as $permission) {{ $permission }} @endforeach @else Chưa có quyền nào được cấp @endif
@endif
Tạo lúc
{{ $adminUser->created_at->format('d/m/Y H:i:s') }}
Tạo bởi
@if($adminUser->creator) {{ $adminUser->creator->username }} ({{ $adminUser->creator->full_name }}) @else System @endif
Cập nhật lúc
{{ $adminUser->updated_at->format('d/m/Y H:i:s') }}
Cập nhật bởi
@if($adminUser->updater) {{ $adminUser->updater->username }} ({{ $adminUser->updater->full_name }}) @else System @endif
@if(count($recentLogins) > 0)

📝 Lịch sử đăng nhập gần đây

@foreach($recentLogins as $log) @endforeach
Thời gian IP Address User Agent Trạng thái
{{ date('d/m/Y H:i:s', strtotime($log->created_at)) }} {{ $log->ip_address }} {{ $log->user_agent }} Thành công
@endif @endsection