Tenants (Admin)

{{ $tenants->total() }} total
Manage approvals, app creation and limits, and tenant status.
{{-- Card --}}
{{-- Table wrapper --}}
@forelse($tenants as $t) @php $settings = $t->settings; $canCreate = (bool) ($settings?->can_create_apps); $limitRaw = $settings?->apps_limit; // null = infinito $limitLabel = $limitRaw === null ? '∞' : (int) $limitRaw; $isSuspended = $t->status === 'suspended'; $expiresAt = $t->approval_expires_at ?? null; $expiresHuman = $expiresAt ? \Illuminate\Support\Carbon::parse($expiresAt)->format('Y-m-d H:i') : null; @endphp @empty @endforelse
ID Company Owner Status Create apps Apps limit Expires Actions
{{ $t->id }} {{ $t->company_name ?? '-' }}
tenant: {{ $t->id }}
{{ $t->name ?? '-' }} @if($isSuspended) suspended @else active @endif @if($canCreate) yes @else no @endif {{ $limitLabel }} @if($limitRaw === null) (infinite) @endif @if($expiresAt)
{{ \Illuminate\Support\Carbon::parse($expiresAt)->format('Y-m-d') }}
{{ \Illuminate\Support\Carbon::parse($expiresAt)->format('H:i') }}
@else - @endif
{{-- Approve (indefinido) --}} @if(!$canCreate) @endif {{-- Approve timed (modal) --}} {{-- Apps limit (inline compact) --}}
@csrf
{{-- Suspend / Reactivate --}} @if(!$isSuspended) @else @endif
{{-- ========== MODALS ========== --}} {{-- Approve confirm --}} {{-- Approve timed modal --}} {{-- Suspend confirm --}} {{-- Reactivate confirm --}}
No tenants found.
{{-- Pagination --}}
{{ $tenants->links() }}