@extends('admin.layouts.app')
@section('title', '관리자 계정 관리')
@section('page_title', '관리자 계정 관리')
@section('page_desc', '계정/2FA/최근로그인/역할 정보를 관리합니다.')
@section('content_class', 'a-content--full')
@push('head')
@endpush
@section('content')
관리자 계정 관리
계정/2FA/최근로그인/역할 정보를 관리합니다.
총 {{ $page->total() }}명
| ID |
닉네임 |
성명 |
이메일 |
상태 |
잠금 |
2FA 모드 |
TOTP |
역할 |
최근 로그인 |
관리 |
@forelse($page as $u)
@php
$uid = (int)$u->id;
$roles = $roleMap[$uid] ?? [];
$st = (string)($u->status ?? '');
$isLocked = !empty($u->locked_until);
$stLabel = $st === 'active' ? '활성' : ($st === 'blocked' ? '비활성' : ($st ?: '-'));
$stPill = $st === 'active' ? 'pill--ok' : ($st === 'blocked' ? 'pill--bad' : 'pill--muted');
$twofa = (string)($u->two_factor_mode ?? 'sms');
$twofaLabel = ($twofa === 'totp' || $twofa === 'otp') ? 'OTP' : 'SMS';
$totpOn = (int)($u->totp_enabled ?? 0) === 1;
@endphp
| {{ $uid }} |
{{ $u->nickname ?? '-' }} |
{{ $u->name ?? '-' }} |
{{ $u->email ?? '-' }} |
● {{ $stLabel }}
|
@if($isLocked)
● 잠김
@else
● 정상
@endif
|
{{ $twofaLabel }} |
@if($totpOn)
On
@else
Off
@endif
|
@forelse($roles as $r)
{{ $r['name'] ?? $r['code'] }}
@empty
-
@endforelse
|
{{ $u->last_login_at ?? '-' }} |
보기
|
@empty
| 데이터가 없습니다. |
@endforelse
{{ $page->links() }}
@endsection