update the new school year model

This commit is contained in:
root
2026-06-07 20:01:58 -04:00
parent 6866aedf42
commit 68a5c9edca
19 changed files with 472 additions and 32 deletions
@@ -18,6 +18,8 @@ class ClassProgressIndexRequest extends ClassProgressFormRequest
return [
'class_section_id' => ['nullable', 'integer', 'min:1'],
'teacher_id' => ['nullable', 'integer', 'min:1'],
'school_year' => ['nullable', 'string', 'max:20'],
'semester' => ['nullable', 'string', 'max:20'],
'week_start' => ['nullable', 'date_format:Y-m-d'],
'week_end' => ['nullable', 'date_format:Y-m-d'],
'subject' => ['nullable', 'string', 'max:120'],
@@ -15,6 +15,8 @@ class ClassProgressStoreRequest extends ClassProgressFormRequest
{
$rules = [
'class_section_id' => ['required', 'integer', 'exists:classSection,class_section_id'],
'school_year' => ['nullable', 'string', 'max:20'],
'semester' => ['nullable', 'string', 'max:20'],
'week_start' => ['required', 'date_format:Y-m-d'],
'week_end' => ['nullable', 'date_format:Y-m-d'],
'support_needed' => ['nullable', 'string'],
@@ -10,6 +10,7 @@ class SubjectCurriculumStoreRequest extends ApiFormRequest
{
return [
'class_id' => ['required', 'integer', 'min:1'],
'school_year' => ['nullable', 'string', 'max:20'],
'subject' => ['required', 'in:islamic,quran'],
'chapter_name' => ['required', 'string', 'max:255'],
'unit_number' => ['nullable', 'integer'],
@@ -10,6 +10,7 @@ class SubjectCurriculumUpdateRequest extends ApiFormRequest
{
return [
'class_id' => ['required', 'integer', 'min:1'],
'school_year' => ['nullable', 'string', 'max:20'],
'subject' => ['required', 'in:islamic,quran'],
'chapter_name' => ['required', 'string', 'max:255'],
'unit_number' => ['nullable', 'integer'],