@extends('super_admin.layouts.master') @section('title', 'Schools') @section('page_title', 'Manage Schools') @section('content')

Total Schools

{{ $schools->total() }}

Active

{{ $schools->where('status', 'active')->count() }}

Expiring Soon

{{ \App\Models\School::expiringSoon(7)->count() }}

This Month

{{ \App\Models\School::whereMonth('created_at', now()->month)->count() }}

Add
All Schools Active Trash ({{ \App\Models\School::onlyTrashed()->count() }})
@forelse($schools as $school)
{{ substr($school->name, 0, 1) }}

{{ $school->name }}

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

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

Plan

{{ ucfirst($school->plan) }}

Users

{{ $school->users_count ?? 0 }}

Expires

{{ $school->subscription_end->format('M d, Y') }} @if($school->daysUntilExpiry() <= 7) (Soon) @endif

@empty

No schools found

Create School
@endforelse
{{ $schools->links() }}
{{-- Restore Confirmation Modal --}} {{-- ✅ School Created Success Modal --}} @if(session('school_created')) @php $sc = session('school_created'); @endphp
{{-- Header --}}

School Created Successfully!

{{ $sc['name'] }} is now live

{{-- Body --}}
{{-- School Login URL --}}

School Login URL

{{ $sc['login_url'] }}
{{-- Admin Credentials --}}

Admin Login Credentials

Email
{{ $sc['admin_email'] }}
Password
{{ $sc['admin_password'] }}
Plan {{ $sc['plan'] }}
Slug {{ $sc['slug'] }}.schoolerp.com
{{-- Copy All Button --}}
{{-- Footer --}}
@push('scripts') @endpush @endif {{-- ✅ Credentials Popup Modal --}} {{-- ✅ Reset Password Sub-Modal --}} @endsection @push('scripts') @endpush