@extends('layouts.platform') @section('title', $school->name) @section('header', $school->name) @section('content') {{-- Header --}}
{{ $school->initials }}

{{ $school->name }}

{{ $school->email }} · {{ $school->phone }}

{{ $school->address }}, {{ $school->city }}, {{ $school->state }}

Edit
@csrf @method('PATCH')
@csrf @method('DELETE')
{{-- Stats --}}

Total Users

{{ $stats['total_users'] }}

Students

{{ $stats['total_students'] }}

Teachers

{{ $stats['total_teachers'] }}

Parents

{{ $stats['total_parents'] }}

{{-- Details --}}

School Details

Status
{{ $school->status->label() }}
Current Plan
{{ $school->plan?->name ?? 'No Plan' }}
Timezone
{{ $school->timezone }}
Country
{{ $school->country }}
Registered
{{ $school->created_at->format('M d, Y') }}
@if($school->trial_ends_at)
Trial Ends
{{ $school->trial_ends_at->format('M d, Y') }}
@endif

Recent Users

@forelse($school->users()->latest()->take(5)->get() as $user)
{{ substr($user->name, 0, 1) }}

{{ $user->name }}

{{ $user->role instanceof \App\Enums\UserRole ? $user->role->label() : ucfirst((string) $user->role) }}

{{ $user->is_active ? 'Active' : 'Inactive' }}
@empty

No users yet.

@endforelse
@endsection