@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); // Show the balance as MONEY (₹) — the value of the credits at the // current top-up rate — which is what customers expect. $minorPerCredit = \App\Services\MessageCreditRate::minorPerCredit(); $moneyOf = fn ($cr) => $minorPerCredit > 0 ? \App\Support\FormatSettings::display(((int) $cr * $minorPerCredit) / 100) : null; $balanceMoney = $moneyOf($credits); $perCountryPricing = \App\Services\MessageCreditRate::enabled(); $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 {{-- ADD-ONS tab — extra feature packs bought on top of the plan (gated to active-plan workspaces, like credit top-ups). --}} @php $brandingCanCustomize = \App\Services\PlanLimitGuard::hasFeature($ws, 'remove_branding'); $brandingPlatformFooter = (string) \App\Models\SystemSetting::get('platform_branding_footer', ''); $brandingCurrent = (string) ($ws->branding_footer ?? ''); @endphp @php $xlateCan = \App\Services\PlanLimitGuard::hasFeature($ws, 'access_translation'); $xlateLang = strtolower((string) ($ws->default_language ?: 'en')); $xlateOn = (bool) ($ws->inbox_translate ?? true); $xlateLangs = ['en'=>'English','es'=>'Spanish','pt'=>'Portuguese','fr'=>'French','de'=>'German','it'=>'Italian','ar'=>'Arabic','hi'=>'Hindi','zh'=>'Chinese','id'=>'Indonesian','ms'=>'Malay','ru'=>'Russian','tr'=>'Turkish','ja'=>'Japanese','ko'=>'Korean','th'=>'Thai','vi'=>'Vietnamese','nl'=>'Dutch','bn'=>'Bengali','ur'=>'Urdu','ta'=>'Tamil','tl'=>'Filipino']; // The translation ENGINE + keys are platform-wide (admin-managed). Users never enter keys. $xlateProvider = \App\Models\TranslationProvider::query()->where('is_active', true)->orderByDesc('is_default')->orderBy('sort_order')->first(); $xlateProviderName = $xlateProvider?->name ?: 'MyMemory (free)'; $xlateMonthStart = now()->startOfMonth(); $xlateChars = (int) \App\Models\TranslationUsage::query()->where('workspace_id', $ws->id)->where('called_at', '>=', $xlateMonthStart)->sum(\Illuminate\Support\Facades\DB::raw('chars_in + chars_out')); $xlateCount = (int) \App\Models\TranslationUsage::query()->where('workspace_id', $ws->id)->where('called_at', '>=', $xlateMonthStart)->count(); $isPlatformAdmin = (bool) (auth()->user()->is_admin ?? false); @endphp