{{ __('← 帳號管理') }} @if (session('temp_password'))
{{ __('臨時密碼(只會顯示這一次)') }}
{{ session('temp_password') }}

{{ __('請用安全的方式交給 :name,並請對方登入後立即到「個人資料」更改密碼。離開此頁後無法再查看。', ['name' => $u->name]) }}

@endif @error('role')
{{ $message }}
@enderror @error('status')
{{ $message }}
@enderror
{{ mb_substr($u->name, 0, 1) }}
{{ $u->name }} @if ($isSelf){{ __('你自己') }}@endif
{{ $u->email }}
{{ __('註冊') }} {{ $u->created_at->format('Y/m/d') }} ・ {{ __('最後活動') }} {{ $u->last_seen_at?->diffForHumans() ?? '—' }}
@if ($u->disabled_at) {{ __('已停用') }}({{ $u->disabled_at->format('m/d H:i') }}) @else ● {{ __('啟用中') }} @endif
@foreach ([[__('等級'), 'LV.'.$u->level().' ・ '.__($u->stageTitle())], [__('經驗值'), number_format($u->xp).' XP'], [__('徽章'), __(':n 枚', ['n' => $u->badges->count()])], [__('向小柚提問'), __(':n 次', ['n' => $aiCount])]] as [$l, $v])
{{ $l }}
{{ $v }}
@endforeach

{{ __('帳號操作') }}

@csrf @method('PATCH')
@error('name')

{{ $message }}

@enderror
@if ($isSelf)

{{ __('這是你自己的帳號。電子郵件、密碼與語言請到') }} {{ __('個人資料') }} →

@endif
@csrf @method('PATCH')
@if ($isSelf)

{{ __('不能變更或停用自己的帳號。') }}

@endif @if ($isSelf) {{ __('修改我自己的密碼 →') }}

{{ __('自己的密碼請在個人資料頁修改(輸入目前密碼與新密碼),不能在這裡重設。') }}

@else
@csrf

{{ __('至少 12 碼,含大寫、小寫與數字。') }}

@endif
@csrf

{{ __('停用不會刪除任何學習紀錄,之後可以隨時重新啟用。') }}

{{ __('修課狀況') }}

@forelse ($u->enrollments as $e)
{{ $e->course->title }}
@if ($e->completed_at){{ __('已結業') }}@endif
@empty

{{ __('尚未報名任何課程。') }}

@endforelse

{{ __('這個帳號的異動紀錄') }}

@forelse ($history as $h)
{{ __($h->label()) }} {{ __('by :name', ['name' => $h->actor_name ?? __('系統')]) }}@if ($h->details) ・ {{ json_encode($h->details, JSON_UNESCAPED_UNICODE) }}@endif{{ $h->created_at->format('Y/m/d H:i') }}
@empty

{{ __('沒有異動紀錄。') }}

@endforelse