@extends('super_admin.layouts.master') @section('title', 'Dashboard') @section('page_title', 'Super Admin Dashboard') @use('Illuminate\Support\Facades\Storage') @section('content')

Total Schools

{{ $stats['total_schools'] }}

+12% from last month

Active Schools

{{ $stats['active_schools'] }}

{{ $stats['suspended_schools'] }} suspended

Total Students

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

+5% this month

Total Teachers

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

Across all schools

School Growth (Last 12 Months)

Plan Distribution

@foreach($plan_distribution as $plan => $count)
{{ $plan }} {{ $count }}
@endforeach

Recently Added Schools

View All
@forelse($recent_schools as $school) @empty @endforelse
School Plan Status Expiry Added Action
@if($school->logo && Storage::disk('public')->exists($school->logo)) {{ $school->name }} @else {{ substr($school->name, 0, 1) }} @endif

{{ $school->name }}

{{ $school->slug }}.schoolerp.com

{{ ucfirst($school->plan) }} {{ ucfirst($school->status) }} {{ $school->subscription_end->format('M d, Y') }} {{ $school->created_at->diffForHumans() }} Manage
No schools found. Create your first school
@endsection @push('scripts') @endpush