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

Create Teacher Assignment

Assign a teacher to a class, section and subject for an academic year.

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

Please correct the following information.

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

Assignment Information

Select the academic year, teacher, class and section for this assignment.

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

{{ $message }}

@enderror

Select the academic year in which this teaching assignment applies.

{{-- Teacher --}}
@error('teacher_id')

{{ $message }}

@enderror

Choose the teacher who will be responsible for this assignment.

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

{{ $message }}

@enderror

Classes are filtered according to the selected academic year.

{{-- Section --}}
@error('section_id')

{{ $message }}

@enderror

Sections are filtered according to the selected class.

{{-- ==================================================== Teaching Details ==================================================== --}}

Teaching Details

Define the subject, workload and teacher responsibility.

{{-- Subject Name --}}
@error('subject_name')

{{ $message }}

@enderror

Enter the subject this teacher will teach in the selected class and section.

{{-- Periods Per Week --}}
@error('periods_per_week')

{{ $message }}

@enderror

Number of periods assigned to this teacher each week.

{{-- Class Teacher --}}
@error('is_class_teacher')

{{ $message }}

@enderror

Mark Yes if this teacher is responsible for the selected class and section.

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

{{ $message }}

@enderror

Inactive assignments remain stored but are excluded from active operations.

{{-- ==================================================== Assignment Structure ==================================================== --}}

Assignment Structure

How this assignment connects with the school attendance system.

{{-- Teacher --}}

Teacher

Links the selected teacher with their teaching responsibility.

{{-- Class --}}

Class & Section

Defines where the teacher will perform this teaching assignment.

{{-- Subject --}}

Subject

Identifies the subject handled by the teacher for this assignment.

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

Create Assignment

Review the information before saving.

Make sure the selected class belongs to the academic year and the section belongs to the selected class.

Cancel
{{-- ==================================================== Quick Guide ==================================================== --}}

Quick Guide

{{-- Step 1 --}}
1

Select Academic Year

Choose the academic session for this teaching assignment.

{{-- Step 2 --}}
2

Select Teacher

Choose the teacher who will handle the assignment.

{{-- Step 3 --}}
3

Choose Class & Section

Select where the teacher will perform the assignment.

{{-- Step 4 --}}
4

Enter Teaching Details

Enter the subject and optional weekly teaching workload.

{{-- ==================================================== 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