Edit @if($tenant->status === 'suspended')
@csrf
@else
@csrf
@endif

Status

{{ ucfirst($tenant->status) }}

Plan

{{ $tenant->plan?->name ?? '—' }}

Trial Ends

{{ $tenant->trial_ends_at?->format('M j, Y') ?? '—' }}

{{-- People summary --}}

Students

{{ number_format($stats['students']) }}

enrolled & active

Teachers

{{ number_format($stats['teachers']) }}

active records

Guardians

{{ number_format($stats['guardians']) }}

registered

Login Accounts

{{ number_format($stats['users']) }}

all roles (portal access)

@php $domainVerified = $tenant->custom_domain_status === 'verified'; @endphp

Custom Domain

@if ($errors->has('custom_domain'))
{{ $errors->first('custom_domain') }}
@endif
@csrf

Hostname only — no https:// and no trailing path.

Status: {{ $domainVerified ? 'Verified' : ($tenant->custom_domain ? 'Pending' : 'Not set') }}
@if($tenant->custom_domain && ! $domainVerified)

Step 1 — Add this DNS TXT record

Name
{{ $domainRecordName }}
Type
TXT
Value
{{ $tenant->custom_domain_token }}

Step 2 — Verify

DNS changes can take a few minutes to propagate.

@csrf
@endif @if($tenant->custom_domain)
@if($domainVerified)

The tenant site is served from {{ $tenant->custom_domain }}. Point an A/CNAME record at this application to finish going live.

@endif
@endif
@php $groupLabels = [ 'admin' => 'Admin', 'teacher_staff' => 'Teacher / Staff', 'student' => 'Student', 'guardian' => 'Guardian / Alumni', 'other' => 'Other', ]; @endphp
@foreach($groupLabels as $groupKey => $groupLabel) @continue(empty($userGroups[$groupKey]))

{{ $groupLabel }}

@foreach($userGroups[$groupKey] as $user)

{{ $user->name }}

{{ $user->email }}

@csrf
@endforeach
@endforeach @if(collect($userGroups)->flatten()->isEmpty())

Users

No users yet.

@endif

Branches

@forelse($tenant->branches as $branch)
{{ $branch->name }} @if($branch->is_main) Main @endif
@empty

No branches yet.

@endforelse

Subscription

@php $sub = $tenant->subscriptions->first(); @endphp @if($sub)
Billing Cycle
{{ ucfirst($sub->billing_cycle) }}
Status
{{ ucfirst($sub->status) }}
Trial Ends
{{ $sub->trial_ends_at?->format('M j, Y') ?? '—' }}
@else

No subscription record.

@endif