@extends('layouts.app') @section('title', 'Preferences — Financial OS') @push('styles') @endpush @section('content') @php $user = Auth::user(); @endphp {{-- Toasts --}} @if(session('success'))
{{ session('success') }}
@endif @if(session('error'))
{{ session('error') }}
@endif
{{-- PROFILE --}}

Profile

Your personal details

Email{{ $user->email }}
Member Since{{ $user->created_at->format('M Y') }}
@csrf
{{-- CURRENCY --}}

Currency

Your preferred currency

Current: {{ $user->base_currency }}
@csrf
Preview
{{ $currencies->firstWhere('code',$user->base_currency)->symbol ?? '$' }} 1,234.56
{{-- TIMEZONE --}}

Timezone

Your local time

Current: {{ $user->timezone ?? 'UTC' }}
@csrf
📍 Current time: {{ now()->format('Y-m-d H:i:s') }}
{{-- PASSWORD --}}

Password

Change your password

@csrf
{{-- 2FA --}}

Two-Factor Auth

Secure your account

@if(!$user->two_factor_secret)

Add an extra layer of security with Google Authenticator.

@else
Status: Enabled
@csrf
@endif
{{-- ACCOUNT --}}

Account

Your membership

@php $status = optional($user->tenant)->subscription_status; @endphp

{{ $status === 'active' ? 'Premium Plan' : 'Free Plan' }}

{{ $status === 'active' ? 'Full access to all features' : 'Upgrade for AI features' }}

Account ID#{{ $user->id }}
StatusActive
Currency{{ $user->base_currency }}
{{-- JOIN FAMILY --}} @php $hasActiveFamily = App\Models\FamilyMember::where('user_id', $user->id)->where('status', 'active')->exists(); $hasPendingRequest = App\Models\FamilyMember::where('user_id', $user->id)->where('status', 'pending')->exists(); $isFamilyOwner = App\Models\FamilyGroup::where('owner_user_id', $user->id)->exists(); @endphp @if(!$hasActiveFamily && !$isFamilyOwner)

Join Family

Connect with your family

@if($hasPendingRequest)
Your join request is pending approval from the family owner.
@else

Ask your family owner for the 8-character family code. They can find it on their Family Access page.

@csrf
@endif
@endif
@endsection