add projet

This commit is contained in:
root
2026-03-05 12:29:37 -05:00
parent 8d1eef8ba8
commit 23b7db1107
9109 changed files with 1106501 additions and 73 deletions
@@ -0,0 +1,27 @@
<?php
namespace App\Http\Resources\Admin;
use Illuminate\Http\Request;
use Illuminate\Http\Resources\Json\JsonResource;
class TeacherSubmissionRowResource extends JsonResource
{
public function toArray(Request $request): array
{
return [
'class_section' => $this['class_section'] ?? null,
'class_section_id' => $this['class_section_id'] ?? null,
'teachers' => $this['teachers'] ?? [],
'student_count' => $this['student_count'] ?? 0,
'midterm_score_status' => $this['midterm_score_status'] ?? null,
'midterm_comment_status' => $this['midterm_comment_status'] ?? null,
'participation_status' => $this['participation_status'] ?? null,
'ptap_comment_status' => $this['ptap_comment_status'] ?? null,
'attendance_status' => $this['attendance_status'] ?? null,
'missing_items' => $this['missing_items'] ?? [],
];
}
}