@extends('admin.layouts.app') @section('title', '내 정보') @section('page_title', '내 정보') @section('page_desc', '프로필 / 연락처 / 보안 상태') @push('head') @endpush @section('content') @php $hasSecret = !empty($me->totp_secret_enc); $isVerified = !empty($me->totp_verified_at); $isEnabled = (int)($me->totp_enabled ?? 0) === 1; $modeLabel = $isEnabled ? 'Google OTP(TOTP)' : 'SMS 인증'; $totpLabel = '미등록'; $totpPill = 'pill--muted'; if ($hasSecret && $isVerified) { $totpLabel='등록됨'; $totpPill='pill--ok'; } elseif ($hasSecret && !$isVerified) { $totpLabel='등록 진행중'; $totpPill='pill--warn'; } @endphp
{{-- 기본 정보 --}}
기본 정보
이메일은 변경할 수 없습니다.
프로필
@csrf
@error('nickname')
{{ $message }}
@enderror
@error('name')
{{ $message }}
@enderror
숫자만 입력 권장
@error('phone')
{{ $message }}
@enderror
* 저장 시 즉시 반영됩니다.
{{-- 보안 --}}
보안
비밀번호 변경 및 2FA 상태
2FA
2FA 모드
● {{ $modeLabel }}
로그인 시 추가 인증 방식입니다.
TOTP 상태
● {{ $totpLabel }} @if($hasSecret && $isVerified)
등록일: {{ $me->totp_verified_at }}
@elseif($hasSecret && !$isVerified)
QR 등록 후, 인증코드 확인이 필요합니다.
@else
Google Authenticator(또는 호환 앱)로 등록할 수 있습니다.
@endif
내 역할
@forelse(($roles ?? []) as $r) {{ $r['name'] }} {{ $r['code'] }} @empty 부여된 역할이 없습니다. @endforelse
최근 로그인
{{ $me->last_login_at ? $me->last_login_at : '-' }}
최근 로그인 시간 기준입니다.

* OTP를 등록해도, 최종 로그인 방식(OTP/SMS)은 “2FA 방식 변경”에서 선택할 수 있습니다.
@endsection