Select a workspace to continue.
@php $workspaces = $this->getWorkspaces(); $user = auth()->user(); $recommendedWorkspaceId = $user instanceof \App\Models\User ? (int) ($user->last_workspace_id ?? 0) : 0; if ($recommendedWorkspaceId > 0) { [$recommended, $other] = $workspaces->partition(fn ($workspace) => (int) $workspace->id === $recommendedWorkspaceId); $workspaces = $recommended->concat($other)->values(); } @endphp @if ($workspaces->isEmpty())
No active workspaces are available for your account. You can create one using the button above.
@else
@foreach ($workspaces as $workspace) @php $isRecommended = $recommendedWorkspaceId > 0 && (int) $workspace->id === $recommendedWorkspaceId; @endphp
@csrf
{{ $workspace->name }}
@if ($isRecommended)
Last used
@endif
Continue
@endforeach
@endif