@include('Partials.sidebar')
@include('Partials.header')
{{-- Page Title --}}

Tenant Details

{{ $tenant->name }}

  1. ›
  2. Tenants
  3. ›
  4. {{ $tenant->name }}
{{-- Flash Messages --}} @if(session('success'))
{{ session('success') }}
@endif @if(session('error'))
{{ session('error') }}
@endif
{{-- Back Button --}}
{{-- ── Tenant Info Card ── --}}
{{ $tenant->name }}
{{ strtoupper(substr($tenant->name, 0, 1)) }}
@if($tenant->approved_at) @endif @if($tenant->activated_at) @endif
Status @if($tenant->isActive()) Active @elseif($tenant->isPending()) Pending @elseif($tenant->isApproved()) Approved @elseif($tenant->isSuspended()) Suspended @elseif($tenant->isRejected()) Rejected @endif
Slug {{ $tenant->slug }}
Email {{ $tenant->email }}
Phone {{ $tenant->phone ?? '—' }}
Plan {{ $tenant->plan->name ?? 'N/A' }}
Billing Cycle {{ ucfirst($tenant->billing_cycle ?? 'N/A') }}
Created {{ $tenant->created_at?->format('d M Y, h:i A') }}
Approved {{ $tenant->approved_at->format('d M Y, h:i A') }}
Activated {{ $tenant->activated_at->format('d M Y, h:i A') }}
{{-- ── Actions ── --}}
@if($tenant->isPending())
@csrf
@endif @if($tenant->isActive())
@csrf
@endif @if($tenant->isSuspended())
@csrf
@endif {{-- Change Plan --}} Plan Back to Tenants
{{-- ── Details ── --}}
{{-- ── Setup Progress ── --}}
Setup Progress
@if(isset($setupProgress))
Progress: {{ $setupProgress['percentage'] ?? 0 }}% {{ $setupProgress['completed'] ?? 0 }} / {{ $setupProgress['total'] ?? 0 }} steps completed
Branding
Company
Settings
@else

Setup progress data not available.

@endif
{{-- ── Address ── --}}
Address
@if($tenant->address_line_1 || $tenant->city || $tenant->state)

{{ $tenant->address_line_1 ?? '' }}
{{ $tenant->address_line_2 ?? '' }}
{{ $tenant->city ?? '' }} {{ $tenant->state ?? '' }} {{ $tenant->postal_code ?? '' }}
{{ $tenant->country ?? '' }}

@else

No address provided.

@endif @if($tenant->gst_number)
GST Number: {{ $tenant->gst_number }}
@endif @if($tenant->website) @endif
{{-- ── Admins ── --}}
Tenant Admins
@if($tenant->admins && $tenant->admins->count() > 0)
@foreach($tenant->admins as $admin) @endforeach
Name Email Role Status
{{ $admin->name }} {{ $admin->email }} {{ ucfirst(str_replace('_', ' ', $admin->role)) }} @if($admin->status === 'active') Active @else Inactive @endif
@else

No admins found for this tenant.

@endif
{{-- ── Subscription History ── --}}
Subscription History
@if($tenant->subscriptions && $tenant->subscriptions->count() > 0)
@foreach($tenant->subscriptions->sortByDesc('created_at') as $sub) @endforeach
Plan Amount Status Expires
{{ $sub->plan->name ?? 'N/A' }} {{ $sub->currency ?? '₹' }} {{ number_format($sub->amount, 2) }} @if($sub->payment_status === 'paid') Paid @elseif($sub->payment_status === 'pending') Pending @else {{ ucfirst($sub->payment_status) }} @endif {{ $sub->expires_at?->format('d M Y') ?? 'N/A' }}
@else

No subscriptions found.

@endif
{{-- ── Reject Modal ── --}} @if($tenant->isPending()) @endif @include('Partials.footer') @push('styles') @endpush