@php $tenants = $this->getTenants(); $workspace = app(\App\Support\Workspaces\WorkspaceContext::class)->currentWorkspace(); @endphp @if ($tenants->isEmpty()) {{-- Empty state --}}
@if ($workspace)
{{ $workspace->name }}
@endif

No active tenants available

There are no selectable active tenants for the normal operating context in this workspace. Workspace-level pages still work with no tenant selected, and you can inspect onboarding or archived records through managed tenants.

View managed tenants Switch workspace
@else {{-- Tenant list --}}
{{-- Header row --}}
@if ($workspace)
{{ $workspace->name }}
@endif · {{ $tenants->count() }} {{ \Illuminate\Support\Str::plural('tenant', $tenants->count()) }}

Select the tenant for your normal active operating context.

No tenant selected is still a valid workspace state on workspace-wide pages such as operations and managed tenants.

{{-- Tenant cards --}}
@foreach ($tenants as $tenant) @php $presentation = $this->tenantLifecyclePresentation($tenant); $badgeClasses = match ($presentation->badgeColor) { 'success' => 'border-emerald-200 bg-emerald-50 text-emerald-700 dark:border-emerald-500/20 dark:bg-emerald-500/10 dark:text-emerald-200', 'warning' => 'border-amber-200 bg-amber-50 text-amber-700 dark:border-amber-500/20 dark:bg-amber-500/10 dark:text-amber-200', 'danger' => 'border-rose-200 bg-rose-50 text-rose-700 dark:border-rose-500/20 dark:bg-rose-500/10 dark:text-rose-200', default => 'border-gray-200 bg-gray-100 text-gray-700 dark:border-white/10 dark:bg-white/10 dark:text-gray-300', }; @endphp @endforeach
{{-- Footer links --}}
@endif