@extends('layouts.admin') @section('title', 'Tenants Management') @section('content')

Tenants Management

Manage all your tenants and their subscriptions

Add New Tenant
@if(session('success'))
{{ session('success') }}
@endif @if(session('error'))
{{ session('error') }}
@endif

Total Tenants

{{ $totalTenants }}

Active Tenants

{{ $activeTenants }}

Trial Period

{{ $trialTenants }}

Inactive

{{ $inactiveTenants }}

All Tenants

@forelse($tenants as $tenant) @empty @endforelse
Tenant Domain Plan Status Created Actions
{{ strtoupper(substr($tenant->name, 0, 2)) }}
{{ $tenant->name }}
{{ $tenant->email }}
{{ $tenant->domain }}
{{ $tenant->company_name ?? 'N/A' }}
@if($tenant->subscription) {{ $tenant->subscription->plan->name }} @if($tenant->subscription->trial_ends_at && $tenant->subscription->trial_ends_at > now())
Trial
@endif @else No Plan @endif
@if($tenant->is_active)
Active
@else
Inactive
@endif
{{ $tenant->created_at->format('M d, Y') }}
{{ $tenant->created_at->diffForHumans() }}
@csrf @method('DELETE')

No tenants found

Get started by creating your first tenant.

Create First Tenant
@if($tenants->hasPages())
Showing {{ $tenants->firstItem() }} to {{ $tenants->lastItem() }} of {{ $tenants->total() }} results
{{ $tenants->links() }}
@endif
@endsection