# winex01/class-record architecture

> Architecture diagram of the GitHub repository winex01/class-record, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-30). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/winex01/class-record
- Repository: https://github.com/winex01/class-record

## Overview

This is a Laravel/Filament class-record management system. The principal workflow is for a teacher to organize a class and its students, record attendance, assessments, lessons and fee collections, then compute grades and export class records. The model layer relates these records to classes and students; a dedicated computation service applies component weights and grade transmutations. The README documents capabilities whose implementing files were not sampled, so those branches are included without asserting unverified internal calls. Source-level evidence is limited to the supplied excerpts and SOURCE INDEX.

Main entry points: [`app/Models/SchoolClass.php`](https://github.com/winex01/class-record/blob/master/app/Models/SchoolClass.php) (Class records), [`app/Models/Student.php`](https://github.com/winex01/class-record/blob/master/app/Models/Student.php) (Student records), [`app/Services/GradeComputationService.php`](https://github.com/winex01/class-record/blob/master/app/Services/GradeComputationService.php) (Grade computation), [`app/Filament/Resources/SchoolClasses`](https://github.com/winex01/class-record/tree/master/app/Filament/Resources/SchoolClasses) (Class management)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_class_setup["Class setup"]
  node_class_ui["Class management"]
  node_student_ui["Student management"]
  node_school_class[("Class records<br/>[SchoolClass.php]")]
  node_student[("Student records<br/>[Student.php]")]
end

subgraph group_class_records["Class records"]
  node_attendance_ui["Attendance entry"]
  node_attendance[("Attendance data<br/>[Attendance.php]")]
  node_assessment_ui["Assessment entry"]
  node_assessment[("Assessments<br/>[Assessment.php]")]
  node_lesson_ui["Lesson tracking"]
  node_lesson[("Lessons<br/>[Lesson.php]")]
  node_fee_ui["Fee collection"]
  node_fee[("Fee records<br/>[FeeCollection.php]")]
end

subgraph group_grading["Grading"]
  node_grade_ui["Grade management"]
  node_grade[("Grading periods<br/>[Grade.php]")]
  node_grading_component[("Grade components")]
  node_grade_service["Grade computation"]
  node_transmute_ui["Transmutation setup"]
  node_transmutation[("Grade transmutation")]
end

subgraph group_support["Reports and support"]
  node_export["Excel export"]
  node_reminders["Record reminders"]
  node_filters["Record filters"]
end

node_teacher(("Teacher"))
node_excel["Excel workbook"]

node_teacher -->|"manages"| node_class_ui
node_teacher -->|"manages"| node_student_ui
node_teacher -->|"records"| node_attendance_ui
node_teacher -->|"creates"| node_assessment_ui
node_teacher -->|"tracks"| node_lesson_ui
node_teacher -->|"records"| node_fee_ui
node_teacher -->|"reviews"| node_grade_ui
node_teacher -->|"configures"| node_transmute_ui
node_teacher -->|"exports"| node_export
node_class_ui -.->|"manages"| node_school_class
node_student_ui -->|"manages"| node_student
node_class_ui -->|"assigns"| node_student
node_attendance_ui -->|"toggles presence"| node_student
node_school_class -->|"has many"| node_attendance
node_school_class -->|"has many"| node_assessment
node_school_class -->|"has many"| node_fee
node_school_class -->|"has many"| node_grade
node_school_class -->|"has many"| node_grading_component
node_school_class -->|"has many"| node_lesson
node_student -->|"links attendance"| node_attendance
node_student -->|"links scores"| node_assessment
node_student -->|"links payments"| node_fee
node_fee_ui -->|"records payments"| node_fee
node_grade_ui -.->|"manages"| node_grade
node_grade -.->|"computes through"| node_grade_service
node_grade_service -->|"loads weights"| node_grading_component
node_grade_service -.->|"applies ranges"| node_transmutation
node_grade_service -->|"loads grading data"| node_grade
node_transmute_ui -.->|"configures"| node_transmutation
node_grade_ui -.->|"computes grades"| node_grade_service
node_export -->|"produces"| node_excel
node_reminders -.->|"reminds about due dates"| node_assessment
node_reminders -.->|"reminds about completion"| node_lesson
node_class_ui -.->|"offers"| node_filters

click node_class_ui "https://github.com/winex01/class-record/tree/master/app/Filament/Resources/SchoolClasses"
click node_student_ui "https://github.com/winex01/class-record/blob/master/app/Filament/Resources/Students/StudentResource.php"
click node_school_class "https://github.com/winex01/class-record/blob/master/app/Models/SchoolClass.php"
click node_student "https://github.com/winex01/class-record/blob/master/app/Models/Student.php"
click node_attendance_ui "https://github.com/winex01/class-record/blob/master/app/Filament/Resources/SchoolClasses/RelationManagers/TakeAttendanceRelationManager.php"
click node_attendance "https://github.com/winex01/class-record/blob/master/app/Models/Attendance.php"
click node_assessment_ui "https://github.com/winex01/class-record/tree/master/app/Filament/Resources/SchoolClasses"
click node_assessment "https://github.com/winex01/class-record/blob/master/app/Models/Assessment.php"
click node_lesson_ui "https://github.com/winex01/class-record/tree/master/app/Filament/Resources/SchoolClasses"
click node_lesson "https://github.com/winex01/class-record/blob/master/app/Models/Lesson.php"
click node_fee_ui "https://github.com/winex01/class-record/blob/master/app/Livewire/StudentFeeCollections.php"
click node_fee "https://github.com/winex01/class-record/blob/master/app/Models/FeeCollection.php"
click node_grade_ui "https://github.com/winex01/class-record/tree/master/app/Filament/Resources/SchoolClasses"
click node_grade "https://github.com/winex01/class-record/blob/master/app/Models/Grade.php"
click node_grading_component "https://github.com/winex01/class-record/blob/master/app/Models/GradingComponent.php"
click node_grade_service "https://github.com/winex01/class-record/blob/master/app/Services/GradeComputationService.php"
click node_transmute_ui "https://github.com/winex01/class-record/tree/master/app/Filament/Resources/TransmuteTemplates"
click node_transmutation "https://github.com/winex01/class-record/blob/master/app/Models/GradeTransmutation.php"
click node_export "https://github.com/winex01/class-record/blob/master/app/Exports/SchoolClassExport.php"
click node_reminders "https://github.com/winex01/class-record/tree/master/app/Filament/Widgets"
click node_filters "https://github.com/winex01/class-record/tree/master/app/Filament/Resources/SchoolClasses/Filters"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_class_ui,node_student_ui,node_school_class,node_student toneBlue
class node_attendance_ui,node_attendance,node_assessment_ui,node_assessment,node_lesson_ui,node_lesson,node_fee_ui,node_fee toneAmber
class node_grade_ui,node_grade,node_grading_component,node_grade_service,node_transmute_ui,node_transmutation toneMint
class node_export,node_reminders,node_filters toneRose
class node_teacher,node_excel toneIndigo
```

## Components

### Class setup

- [Class management](https://github.com/winex01/class-record/tree/master/app/Filament/Resources/SchoolClasses): `app/Filament/Resources/SchoolClasses`
- [Student management](https://github.com/winex01/class-record/blob/master/app/Filament/Resources/Students/StudentResource.php): `app/Filament/Resources/Students/StudentResource.php`
- [Class records](https://github.com/winex01/class-record/blob/master/app/Models/SchoolClass.php): `app/Models/SchoolClass.php`
- [Student records](https://github.com/winex01/class-record/blob/master/app/Models/Student.php): `app/Models/Student.php`

### Class records

- [Attendance entry](https://github.com/winex01/class-record/blob/master/app/Filament/Resources/SchoolClasses/RelationManagers/TakeAttendanceRelationManager.php): `app/Filament/Resources/SchoolClasses/RelationManagers/TakeAttendanceRelationManager.php`
- [Attendance data](https://github.com/winex01/class-record/blob/master/app/Models/Attendance.php): `app/Models/Attendance.php`
- [Assessment entry](https://github.com/winex01/class-record/tree/master/app/Filament/Resources/SchoolClasses): `app/Filament/Resources/SchoolClasses`
- [Assessments](https://github.com/winex01/class-record/blob/master/app/Models/Assessment.php): `app/Models/Assessment.php`
- [Lesson tracking](https://github.com/winex01/class-record/tree/master/app/Filament/Resources/SchoolClasses): `app/Filament/Resources/SchoolClasses`
- [Lessons](https://github.com/winex01/class-record/blob/master/app/Models/Lesson.php): `app/Models/Lesson.php`
- [Fee collection](https://github.com/winex01/class-record/blob/master/app/Livewire/StudentFeeCollections.php): `app/Livewire/StudentFeeCollections.php`
- [Fee records](https://github.com/winex01/class-record/blob/master/app/Models/FeeCollection.php): `app/Models/FeeCollection.php`

### Grading

- [Grade management](https://github.com/winex01/class-record/tree/master/app/Filament/Resources/SchoolClasses): `app/Filament/Resources/SchoolClasses`
- [Grading periods](https://github.com/winex01/class-record/blob/master/app/Models/Grade.php): `app/Models/Grade.php`
- [Grade components](https://github.com/winex01/class-record/blob/master/app/Models/GradingComponent.php): `app/Models/GradingComponent.php`
- [Grade computation](https://github.com/winex01/class-record/blob/master/app/Services/GradeComputationService.php): `app/Services/GradeComputationService.php`
- [Transmutation setup](https://github.com/winex01/class-record/tree/master/app/Filament/Resources/TransmuteTemplates): `app/Filament/Resources/TransmuteTemplates`
- [Grade transmutation](https://github.com/winex01/class-record/blob/master/app/Models/GradeTransmutation.php): `app/Models/GradeTransmutation.php`

### Reports and support

- [Excel export](https://github.com/winex01/class-record/blob/master/app/Exports/SchoolClassExport.php): `app/Exports/SchoolClassExport.php`
- [Record reminders](https://github.com/winex01/class-record/tree/master/app/Filament/Widgets): `app/Filament/Widgets`
- [Record filters](https://github.com/winex01/class-record/tree/master/app/Filament/Resources/SchoolClasses/Filters): `app/Filament/Resources/SchoolClasses/Filters`

### Other components

- **Teacher**
- **Excel workbook**

## Connections

- Teacher → Class management: manages
- Teacher → Student management: manages
- Teacher → Attendance entry: records
- Teacher → Assessment entry: creates
- Teacher → Lesson tracking: tracks
- Teacher → Fee collection: records
- Teacher → Grade management: reviews
- Teacher → Transmutation setup: configures
- Teacher → Excel export: exports
- Class management → Class records: manages
- Student management → Student records: manages (evidence: `app/Filament/Resources/Students/StudentResource.php`)
- Class management → Student records: assigns
- Attendance entry → Student records: toggles presence (evidence: `app/Filament/Resources/SchoolClasses/RelationManagers/TakeAttendanceRelationManager.php`)
- Class records → Attendance data: has many (evidence: `app/Models/SchoolClass.php`)
- Class records → Assessments: has many (evidence: `app/Models/SchoolClass.php`)
- Class records → Fee records: has many (evidence: `app/Models/SchoolClass.php`)
- Class records → Grading periods: has many (evidence: `app/Models/SchoolClass.php`)
- Class records → Grade components: has many (evidence: `app/Models/SchoolClass.php`)
- Class records → Lessons: has many (evidence: `app/Models/SchoolClass.php`)
- Student records → Attendance data: links attendance (evidence: `app/Models/Student.php`)
- Student records → Assessments: links scores (evidence: `app/Models/Student.php`)
- Student records → Fee records: links payments (evidence: `app/Models/Student.php`)
- Fee collection → Fee records: records payments (evidence: `app/Livewire/StudentFeeCollections.php`)
- Grade management → Grading periods: manages
- Grading periods → Grade computation: computes through (evidence: `app/Services/GradeComputationService.php`)
- Grade computation → Grade components: loads weights (evidence: `app/Services/GradeComputationService.php`)
- Grade computation → Grade transmutation: applies ranges
- Grade computation → Grading periods: loads grading data (evidence: `app/Services/GradeComputationService.php`)
- Transmutation setup → Grade transmutation: configures
- Grade management → Grade computation: computes grades
- Excel export → Excel workbook: produces
- Record reminders → Assessments: reminds about due dates
- Record reminders → Lessons: reminds about completion
- Class management → Record filters: offers (evidence: `app/Filament/Resources/SchoolClasses/RelationManagers/RecordScoreRelationManager.php`)
