@extends('layouts.app') @section('header')
Account

Settings

@endsection @section('content') @php $isNative = (auth()->user()->source ?? 'native') !== 'workspace'; @endphp

Account settings

@if (session('status') && session('status') !== 'password-updated')
{{ session('status') }}
@endif
{{-- My Account --}}

My Account

Profile Details

@php $avatarInitials = collect(explode(' ', $user->name ?? ''))->filter() ->map(fn ($w) => mb_substr($w, 0, 1))->take(2)->implode(''); $avatarImageUrl = $user->avatar ? asset('storage/' . $user->avatar) : null; @endphp
{{ $avatarImageUrl ? '' : strtoupper($avatarInitials) }}
@csrf @method('patch')
@if ($user->avatar)
@csrf @method('DELETE')
@endif
@php $timezones = collect(\DateTimeZone::listIdentifiers()); @endphp

Edit Profile

@csrf @method('patch')
Name
@error('name')
{{ $message }}
@enderror
Email
@error('email')
{{ $message }}
@enderror
Timezone
@if ($isNative)

Password

@csrf @method('put')
Current Password
@error('current_password', 'updatePassword')
{{ $message }}
@enderror
New Password
@error('password', 'updatePassword')
{{ $message }}
@enderror
Confirm Password
@if (session('status') === 'password-updated') Saved. @endif
@else
You're signed in as a workspace user — your password is managed in the Worklance workspace.
@endif
{{-- Interface Settings --}}
@livewire('interface-settings')
{{-- Danger zone --}} @if ($isNative)

Delete Account

Once your account is deleted, all its data is permanently erased. Enter your password to confirm.

@endif
@if ($isNative) @endif @endsection