@php $settings = $tenant->settings; $canCreate = (bool) ($settings?->can_create_apps); $limitRaw = $settings?->apps_limit; // null = infinite $limitLabel = $limitRaw === null ? '∞' : (int) $limitRaw; $isSuspended = $tenant->status === 'suspended'; $expiresAt = $tenant->approval_expires_at ?? null; $expiresText = $expiresAt ? \Illuminate\Support\Carbon::parse($expiresAt)->format('Y-m-d H:i') : null; $appsCount = $tenant->apps?->count() ?? 0; @endphp

Tenant #{{ $tenant->id }} — {{ $tenant->company_name ?? '-' }}

@if($isSuspended) suspended @else active @endif {{ $appsCount }} apps
Can create apps: {{ $canCreate ? 'yes' : 'no' }} Apps limit: {{ $limitLabel }} Expires: {{ $expiresText ?? '-' }}
Back
{{-- Status & Settings --}}
Status & Settings
Manage approvals, limits and access for this tenant.
@if(!$canCreate) @endif @if(!$isSuspended) @else @endif
Tenant status
{{ $tenant->status }}
Can create apps
{{ $canCreate ? 'yes' : 'no' }}
Apps limit
{{ $limitLabel }}
Reset policy
{{ $settings?->reset_policy ?? '-' }}
Apps limit
@csrf Current: {{ $limitLabel }}
{{-- MODALS --}} {{-- Approve --}} {{-- Suspend --}} {{-- Reactivate --}}
{{-- Apps --}}
Apps
Applications created under this tenant.
{{ $appsCount }} total
@if($tenant->apps->isEmpty())
No apps for this tenant.
@else
@foreach($tenant->apps as $app) @endforeach
Name Key Status Version
{{ $app->name }} {{ $app->key }} {{ $app->status }} {{ $app->current_version ?? '-' }}
@endif