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,22 @@
<?php
namespace App\Http\Resources\Admin\Progress;
use Illuminate\Http\Request;
use Illuminate\Http\Resources\Json\JsonResource;
class ProgressGroupResource extends JsonResource
{
public function toArray(Request $request): array
{
$reports = $this['reports'] ?? [];
return [
'week_start' => $this['week_start'] ?? null,
'week_end' => $this['week_end'] ?? null,
'class_section_id' => $this['class_section_id'] ?? null,
'class_section_name' => $this['class_section_name'] ?? '',
'reports' => $reports, // keyed by subject for compatibility
];
}
}