{{-- Step 2's form body. Extracted VERBATIM from step2.blade.php so the same markup can be dropped into either chrome: for auth variants 2-5, or the bespoke two-column showcase layout for variant 1 (which is what /register itself uses). Nothing here changed - only where it is mounted. --}} @php $__brandName = brand_name(); @endphp
{{ __('Step 2 of 3 / Workspace') }}

{{ __('Create your') }} {{ __('workspace') }}.

  1. 1Account
  2. 2Workspace
  3. 3Plan
@if (!empty($existing) && $existing->isNotEmpty())
{{ __('Already have') }}
@foreach ($existing as $w)
{{ $w->name }} {{ $w->slug }}
@endforeach
Skip / continue to plan
@endif @if ($errors->any())
@foreach ($errors->all() as $err)
{{ $err }}
@endforeach
@endif
@csrf
{{ __('A friendly label your team will see at the top of the app.') }}
@php $picked = old('timezone', \App\Models\SystemSetting::get('default_timezone', config('app.timezone', 'Asia/Kolkata'))); @endphp @php // Every IANA timezone (same source campaigns / scheduled / admin use). // // Built ONCE and cached for a day. It used to construct a // DateTimeZone + DateTimeImmutable per row inside the loop — ~420 // object pairs on EVERY render of this page. That is the only heavy // thing on step 2 (step 1 has nothing like it), and on a shared host // it is enough to blow max_execution_time / memory_limit mid-render: // PHP dies with a FATAL (not catchable, nothing in laravel.log) and // the browser gets the shell with an EMPTY form panel — exactly the // "step 1 fine, step 2 blank" symptom. $tzOptions = \Illuminate\Support\Facades\Cache::remember('iana_tz_labels_v1', 86400, function () { $out = []; foreach (\DateTimeZone::listIdentifiers() as $tz) { try { $off = (new \DateTimeImmutable('now', new \DateTimeZone($tz)))->format('P'); } catch (\Throwable $e) { $off = ''; } $out[$tz] = $tz . ($off !== '' ? " (UTC{$off})" : ''); } return $out; }); @endphp
{{ __('Type to search any IANA timezone (Asia/Kolkata, Europe/London, etc.).') }}
{{-- Mobile number — shown ONLY when the account has none. Email signups capture (and OTP-verify) their mobile at step 1, so they never see this. Social-login accounts (Google/Facebook) arrive here without a mobile — OAuth doesn't provide one — and storeWorkspace() requires it, so this is where they supply it. Reuses the SAME #reg-phone / #reg-country-code ids as step 1 so auth-register.js auto-mounts the intl-tel country picker here with no extra JS. --}} @if (!empty($need_mobile))
{{ __('We use this to reach you for account verification and important updates.') }}
@endif

{{ __('You can create more workspaces any time from the top bar.') }}