@extends('layouts.public') @section('content') @php /** * @var array $user * @var array $sessions live browsers for this account, current one flagged * @var bool $twoFactorOn * @var array|null $pendingPhone a new number waiting on a texted code, if any */ $sessions = $sessions ?? []; $twoFactorOn = (bool) ($twoFactorOn ?? false); $phonePend = is_array($pendingPhone ?? null) ? $pendingPhone : null; @endphp
{{ t_raw('account.phone_verify_sub', [':phone' => (string) $phonePend['phone']]) }}
{!! $twoFactorOn ? t('account.two_factor_on_sub') : t('account.two_factor_off_sub') !!}
| {{ t_raw('account.device_col') }} | {{ t_raw('account.device_ip_col') }} | {{ t_raw('account.device_last_seen_col') }} | {{ t_raw('common.actions') }} |
|---|---|---|---|
|
{{ (string) ($s['label'] ?? '') }}
@if (!empty($s['is_current'])){{ t_raw('account.device_this_one') }}@endif
|
{{ (string) ($s['ip'] ?? '') }} | {!! fmt_datetime($s['last_seen_at']) !!} |
@if (empty($s['is_current']))
@endif
|
{{ t_raw('account.devices_empty') }}
@endif @if (count($sessions) > 1) @endif