@extends('layouts.app') @section('title', 'My profile') @section('page', 'profile') @section('content') @php $sw = fn ($key, $label, $p = null) => '
'.e($label).''.($p ? '

'.e($p).'

' : '').'
'; @endphp

My profile

Your own account.@if (auth()->user()->allows('manage_workspace')) Workspace-wide options are in Settings.@endif

@csrf
{{ av($u, 'lg') }}
Profile photo
Clients see this next to your messages
@csrf {!! $sw('approvals', 'Client approves or requests changes', 'Only for projects you manage') !!}
New client messages
{!! $sw('payments', 'Payments and overdue invoices') !!} {!! $sw('handover', 'Desk Assistant hands a client over to me') !!} {!! $sw('daily_summary', 'Daily summary email', 'Every morning at 8am') !!}
@csrf
@csrf
At least 8 characters
Two-step verification

{{ $twoFactorRequired ? 'Required by your workspace' : 'Enter a code when you sign in on a new device' }}

{{ badge($twoFactorRequired || $u->two_factor_enabled ? 'On' : 'Off', $twoFactorRequired || $u->two_factor_enabled ? 'b-green' : '') }}
Active sessions

{{ $sessions->map(fn ($s) => $s['device'].($s['ip'] ? ', '.$s['ip'] : '').($s['current'] ? ' (this device)' : ''))->implode('. ') ?: 'Only this device.' }}

@if ($sessions->count() > 1)@endif
@endsection @push('scripts') @endpush