@extends('super_admin.layouts.master') @section('title', 'Edit ' . $school->name) @section('page_title', 'Edit School') @section('content')

Edit School

{{ $school->name }}

Cancel
@if($errors->any())

Please fix the following errors:

@endif
@csrf @method('PUT') {{-- REQUIRED: Hidden fields for validation --}}

Basic Information

@error('name')

{{ $message }}

@enderror
@if($school->logo && \Illuminate\Support\Facades\Storage::disk('public')->exists($school->logo)) Current Logo @else @endif

Any image size accepted. Auto-optimized for best quality.

@if($school->logo)

Current logo loaded. Choose new file to replace.

@endif
@error('logo')

{{ $message }}

@enderror
.schoolerp.com

This will change the school's URL

@error('slug')

{{ $message }}

@enderror
@error('email')

{{ $message }}

@enderror
@error('phone')

{{ $message }}

@enderror
@error('address')

{{ $message }}

@enderror

Current Stats

Total Users {{ $school->users()->count() }}
Active Modules {{ $school->subscriptions()->where('status', 'active')->count() }}
Created {{ $school->created_at->format('M d, Y') }}

{{ $school->name }}

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

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

Subscription

Plan {{ ucfirst($school->plan) }}
Started {{ $school->subscription_start->format('M d, Y') }}
Expires {{ $school->subscription_end->format('M d, Y') }}
Days Left {{ max(0, $school->daysUntilExpiry()) }} days
@if($school->daysUntilExpiry() <= 30)
Expiring soon! Renew now.
@endif @php $totalDays = $school->subscription_start->diffInDays($school->subscription_end); $usedDays = $school->subscription_start->diffInDays(now()); $progressPercent = $totalDays > 0 ? min(100, ($usedDays / $totalDays) * 100) : 0; @endphp
Progress {{ round($progressPercent) }}%

Quick Actions

Edit School Info Manage Modules {{ $school->subscriptions()->where('status', 'active')->count() }} active Modify Subscription

Danger Zone

{{-- Subscription History Modal --}} {{-- Reset Password Modal --}} {{-- Suspend/Activate Modal --}} @endsection @push('scripts') @endpush