<?php

namespace App\Http\Resources\Admin\Progress;

use Illuminate\Http\Request;
use Illuminate\Http\Resources\Json\JsonResource;

class ProgressReportDetailResource extends JsonResource
{
    public function toArray(Request $request): array
    {
        return [
            'report' => $this['report'] ?? null,
            'weekly_reports' => $this['weekly_reports'] ?? [],
            'subject_sections' => $this['subject_sections'] ?? [],
        ];
    }
}