@extends('layouts.app') @section('content')

Account Settings

Profile Information

Update your personal details and avatar.

user

Full Name

{{ $user->name }}

Email Address

{{ $user->email }} @if($user->hasVerifiedEmail()) Verified @else Unverified @endif

Phone Number

{{ $user->phone ?? 'Not set' }}

Bio

{{ $user->bio ?? 'Not set' }}

Change Password

Update your password to keep your account secure.

@csrf
@error('current_password')

{{ $message }}

@enderror
@error('password')

{{ $message }}

@enderror

Connected Accounts

Manage your linked social accounts.

Google

{{ $user->google_id ? 'Connected' : 'Not connected' }}

@if ($user->google_id)
@csrf @method('DELETE')
@else Connect @endif

GitHub

{{ $user->github_id ? 'Connected' : 'Not connected' }}

@if ($user->github_id)
@csrf @method('DELETE')
@else Connect @endif

Account Access

Recent login activity on your account (Max 10 records, last 1 month).

@forelse($user->loginHistories as $history)
@if($history->provider === 'google') @elseif($history->provider === 'github') @else @endif

{{ $history->login_at->format('d M Y, H:i') }}

({{ $history->login_at->diffForHumans() }})
@if($history->ip_address)
{{ $history->ip_address }} @if($history->user_agent) Login on {{ Str::limit($history->user_agent, 40) }} @endif
@endif
{{ ucfirst($history->provider) }}
@empty

No login history recorded yet.

@endforelse

Danger Zone

Irreversible actions for your account.

Delete Account

Once you delete your account, there is no going back. Please be certain.

@endsection