@extends('layouts.user')
@section('page-title', __('Profile & Security'))
@section('content')
@if(session('success'))
{{ session('success') }}
@endif
@if(session('error'))
{{ session('error') }}
@endif
{{-- Profile Information --}}
{{ __('Profile Information') }}
{{-- Password --}}
{{-- 2FA --}}
{{ __('Two-Factor Authentication') }}
{{ $user->two_factor_enabled ? __('Enabled') : __('Disabled') }}
@if($user->two_factor_enabled)
{{ __('2FA is protecting your account. Disable it if you lose access to your authenticator app.') }}
@else
{{ __('Add an extra layer of security using an authenticator app (e.g. Google Authenticator).') }}
@endif
{{-- API Keys --}}
{{ __('API Keys') }}
{{ __('Use these keys to automate orders via our reseller API.') }}
@if($user->api_key)
@endif
@forelse($apiKeys as $apiKey)
{{ $apiKey->name }}
{{ substr($apiKey->key, 0, 12) }}…
{{ $apiKey->last_used_at?->diffForHumans() ?? __('Never used') }}
@empty
{{ __('No API keys yet.') }}
@endforelse
@endsection