@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() }}
| School | Plan | Status | Users | Expiry | Actions |
|---|---|---|---|---|---|
|
@if($school->logo && !$school->deleted_at)
{{ $school->name }} @if($school->deleted_at) DELETED @endif {{ $school->slug }}.schoolerp.com |
{{ ucfirst($school->plan) }} | @if($school->deleted_at) Deleted @else {{ ucfirst($school->status) }} @endif |
{{ $school->users_count ?? 0 }}
|
@if($school->deleted_at)
Deleted {{ $school->deleted_at->diffForHumans() }} @else{{ $school->subscription_end->format('M d, Y') }} @endif |
|
{{ $school->slug }}.schoolerp.com
Plan
{{ ucfirst($school->plan) }}
Users
{{ $school->users_count ?? 0 }}
Expires
{{ $school->subscription_end->format('M d, Y') }} @if($school->daysUntilExpiry() <= 7) (Soon) @endif
{{ $sc['name'] }} is now live
School Login URL
{{ $sc['login_url'] }}
Admin Login Credentials
{{ $sc['admin_email'] }}
{{ $sc['admin_password'] }}
{{ $sc['slug'] }}.schoolerp.com