@extends('layouts.app') @section('title', 'Create Section') @section('content')
{{-- ============================================================ Page Header ============================================================ --}}

Create Section

Add a new section under an active school class.

All Sections
{{-- ============================================================ Validation Summary ============================================================ --}} @if($errors->any())

Please correct the following information.

    @foreach($errors->all() as $error)
  • {{ $error }}
  • @endforeach
@endif {{-- ============================================================ Empty Class Warning ============================================================ --}} @if($schoolClasses->isEmpty())

No active classes available

A section must belong to an active class. Create or activate a class before adding sections.

@can('school-classes.create') Create Class @endcan
@endif {{-- ============================================================ Create Form ============================================================ --}}
@csrf
{{-- ==================================================== Main Form ==================================================== --}}
{{-- ================================================= Academic Placement ================================================= --}}

Academic Placement

Select the class this section belongs to.

{{-- Class --}}
@error('class_id')

{{ $message }}

@enderror

Only active classes are available when creating a section.

{{-- Selected Class Context --}}
{{-- ================================================= Section Information ================================================= --}}

Section Information

Enter the section name, code and ordering information.

{{-- Section Name --}}
@error('name')

{{ $message }}

@enderror

Use a simple name such as Section A, Blue or Morning.

{{-- Section Code --}}
@error('code')

{{ $message }}

@enderror

Short identifier unique within the selected class.

{{-- Display Order --}}
@error('display_order')

{{ $message }}

@enderror

Lower values appear first in section lists.

{{-- Status --}}
@error('is_active')

{{ $message }}

@enderror

Inactive sections remain available for historical records.

{{-- ================================================= Capacity ================================================= --}}

Capacity

Define the recommended maximum number of students.

students
@error('capacity')

{{ $message }}

@enderror

Allowed range: 1–500 students.

{{-- Capacity Preview --}}

Maximum Capacity

{{ old('capacity', 40) }} students

This value helps monitor section occupancy and available seats.

{{-- ================================================= Description ================================================= --}}

Additional Information

Add optional notes or details about this section.

0 / 1000
@error('description')

{{ $message }}

@enderror
{{-- ==================================================== Sidebar ==================================================== --}}
{{-- Save --}}

Create Section

Review the information before creating the section.

Section names and codes must be unique within the selected class.

Class Not selected
Academic Year
Capacity {{ old('capacity', 40) }} students
Cancel
@endsection @push('scripts') @endpush