@extends('admin.layouts.app') @section('title', '관리자 정보 수정') @section('page_title', '관리자 정보 수정') @section('page_desc', '기본정보/상태/2FA/역할을 관리합니다.') @push('head') @endpush @section('content') @php $ip = !empty($admin->last_login_ip) ? inet_ntop($admin->last_login_ip) : '-'; $lockedUntil = $admin->locked_until ?? null; $isLocked = false; if (!empty($lockedUntil)) { try { $isLocked = \Carbon\Carbon::parse($lockedUntil)->isFuture(); } catch (\Throwable $e) { $isLocked = true; } } $st = (string)($admin->status ?? 'active'); $statusLabel = $st === 'active' ? '활성' : '비활성'; $statusPill = $st === 'active' ? 'pill--ok' : 'pill--bad'; $hasSecret = !empty($admin->totp_secret_enc); $isModeOtp = (int)($admin->totp_enabled ?? 0) === 1; @endphp {{-- 요약 카드 --}}