@extends('layouts.admin') @section('title', 'Tenant Details - ' . $tenant->name) @section('content')
Back to Tenants

{{ $tenant->name }}

Tenant details and management

@if($tenant->is_active) Active @else Inactive @endif Edit Tenant @if($tenant->is_active)
@csrf
@else
@csrf
@endif
@if(session('success'))

{{ session('success') }}

@endif

Tenant Information

{{ $tenant->name }}

{{ $tenant->domain }}

{{ $tenant->phone ?: 'Not provided' }}

@if($tenant->is_active) Active @else Inactive @endif

{{ $tenant->created_at->format('M d, Y \a\t g:i A') }}

@if($tenant->notes)

{{ $tenant->notes }}

@endif

Database Information

{{ $tenant->tenancy_db_name ?? 'tenant_' . $tenant->domain }}

Connected

Subscription

@if($tenant->subscription)

{{ $tenant->subscription->plan->name }}

${{ number_format($tenant->subscription->plan->price, 2) }}/{{ $tenant->subscription->plan->billing_cycle }}

@if($tenant->subscription->status === 'active') Active @elseif($tenant->subscription->status === 'trial') Trial @else {{ ucfirst($tenant->subscription->status) }} @endif
@if($tenant->subscription->trial_ends_at)

{{ $tenant->subscription->trial_ends_at->format('M d, Y') }}

@endif @if($tenant->subscription->ends_at)

{{ $tenant->subscription->ends_at->format('M d, Y') }}

@endif
@else

No active subscription

Assign Plan
@endif

Quick Stats

Total Users
{{ $tenant->users_count ?? 0 }}
Total Clients
{{ $tenant->clients_count ?? 0 }}
Total Documents
{{ $tenant->documents_count ?? 0 }}
Storage Used
{{ $tenant->storage_used ?? '0 MB' }}

Recent Activity

Tenant created

{{ $tenant->created_at->diffForHumans() }}

@if($tenant->subscription)

Subscription activated

{{ $tenant->subscription->created_at->diffForHumans() }}

@endif

Last updated

{{ $tenant->updated_at->diffForHumans() }}

@endsection