reconstruction of the project

This commit is contained in:
root
2026-03-08 16:33:24 -04:00
parent 23b7db1107
commit c8de5f7edc
9157 changed files with 77877 additions and 1073823 deletions
@@ -0,0 +1,26 @@
<?php
namespace App\Http\Resources\Attendance;
use Illuminate\Http\Request;
use Illuminate\Http\Resources\Json\JsonResource;
class DailyAttendanceResource extends JsonResource
{
public function toArray(Request $request): array
{
return [
'attendance_data' => $this['attendanceData'] ?? [],
'attendance_record' => $this['attendanceRecord'] ?? [],
'students_by_section' => $this['studentsBySection'] ?? [],
'grades' => $this['grades'] ?? [],
'dates_by_section' => $this['datesBySection'] ?? [],
'date_list' => $this['dateList'] ?? [],
'no_school_days' => $this['noSchoolDays'] ?? [],
'total_passed_days' => $this['totalPassedDays'] ?? 0,
'semester' => $this['semester'] ?? null,
'school_year' => $this['schoolYear'] ?? ($this['school_year'] ?? null),
'current_admin_name' => $this['currentAdminName'] ?? null,
];
}
}