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

Create Class

Add a new class to the school's academic structure.

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

Please correct the following information.

    @foreach($errors->all() as $error)
  • {{ $error }}
  • @endforeach
@endif {{-- ============================================================ Form ============================================================ --}}
@csrf
{{-- ==================================================== Main Information ==================================================== --}}
{{-- Basic Information --}}

Class Information

Enter the primary information used to identify this class.

{{-- Academic Year --}}
@error('academic_year_id')

{{ $message }}

@enderror

Select the academic year this class belongs to.

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

{{ $message }}

@enderror

Use a clear name such as Grade 1, Class 5 or Nursery.

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

{{ $message }}

@enderror

A short code used to identify the class.

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

{{ $message }}

@enderror

Lower numbers appear first in class lists.

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

{{ $message }}

@enderror

Inactive classes remain stored but should not be used for new assignments.

{{-- Description --}}
0 / 1000
@error('description')

{{ $message }}

@enderror
{{-- Academic Structure Information --}}

Academic Structure

How this class will fit into the attendance system.

Sections

Sections can be created after the class has been saved.

Students

Students can later be assigned to this class and its sections.

Attendance

Attendance records will remain associated with this class.

{{-- ==================================================== Sidebar ==================================================== --}}
{{-- Save --}}

Create Class

Review the information before saving.

Class names and codes must be unique within the selected academic year.

Cancel
{{-- Quick Guide --}}

Quick Guide

1

Select Academic Year

Choose the session in which the class will operate.

2

Enter Class Details

Provide a clear class name and optional short code.

3

Create Sections

After saving, create sections such as A, B or C under this class.

{{-- Current Academic Year --}} @php $currentAcademicYear = $academicYears->firstWhere( 'is_current', true ); @endphp @if($currentAcademicYear)

Current Academic Year

{{ $currentAcademicYear->name }}

@if( $currentAcademicYear->start_date && $currentAcademicYear->end_date )

{{ $currentAcademicYear->start_date->format('d M Y') }} – {{ $currentAcademicYear->end_date->format('d M Y') }}

@endif
@endif
@endsection @push('scripts') @endpush