@php $authUser = auth()->user(); $initials = collect(preg_split('/\s+/', trim($authUser->name ?? '?'))) ->take(2) ->map(fn($p) => mb_substr($p, 0, 1)) ->implode(''); $initials = $initials !== '' ? mb_strtoupper($initials) : '?'; $avatarUrl = $authUser->avatar_url; @endphp
{{ __('More') }} / {{ __('Profile') }}

{{ __('Profile') }} {{ __('settings') }}

{{ __('Update your photo, name, and contact details.') }}

@php $u = auth()->user(); $ws = $u?->current_workspace; $countries = [ 'India', 'United States', 'United Kingdom', 'UAE', 'Australia', 'Canada', 'Germany', 'France', 'Singapore', ]; $timezones = [ 'Asia/Kolkata' => 'Asia / Kolkata (IST / GMT+5:30)', 'Asia/Dubai' => 'Asia / Dubai (GST / GMT+4)', 'Asia/Singapore' => 'Asia / Singapore (SGT / GMT+8)', 'Europe/London' => 'Europe / London (GMT)', 'Europe/Berlin' => 'Europe / Berlin (CET / GMT+1)', 'America/New_York' => 'America / New York (EST / GMT-5)', 'America/Los_Angeles' => 'America / Los Angeles (PST / GMT-8)', 'UTC' => 'UTC', ]; $currentTz = old('timezone', $ws->timezone ?? 'Asia/Kolkata'); @endphp
@csrf

{{ __('Personal info') }}

@if (session('status'))
{{ session('status') }}
@endif @if ($errors->any())
@foreach ($errors->all() as $err)
{{ $err }}
@endforeach
@endif
{{ __('Applies to') }} {{ $ws->name ?? 'this workspace' }}. Only the owner can change it.

{{ __('Notifications') }}

{{ __('Choose what you want to hear from us.') }}

@php $credits = (int) ($authUser->wallet_credits ?? 0); $currencyMinor = (int) ($authUser->wallet_currency_minor ?? 0); $currencyCode = $authUser->wallet_currency_code ?? 'INR'; $currencyMajor = number_format($currencyMinor / 100, 2); $messagesPossible = max(1, $creditsPerMessage ?? 1); $estMessages = (int) floor($credits / $messagesPossible); $spent30d = \App\Models\WalletTransaction::query() ->forUser($authUser->id) ->credit() ->where('type', 'spend') ->where('created_at', '>=', now()->subDays(30)) ->sum('amount'); $spent30d = abs((int) $spent30d); $earned30d = \App\Models\WalletTransaction::query() ->forUser($authUser->id) ->credit() ->whereIn('type', ['earn', 'refund']) ->where('created_at', '>=', now()->subDays(30)) ->sum('amount'); @endphp @php $brandingCanCustomize = \App\Services\PlanLimitGuard::hasFeature($ws, 'remove_branding'); $brandingPlatformFooter = (string) \App\Models\SystemSetting::get('platform_branding_footer', ''); $brandingCurrent = (string) ($ws->branding_footer ?? ''); @endphp