<?php

namespace App\Http\Resources\Attendance;

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

class StaffMonthResource extends JsonResource
{
    public function toArray(Request $request): array
    {
        return [
            'filters' => $this['filters'] ?? [],
            'sundays' => $this['sundays'] ?? [],
            'no_school_days' => $this['noSchoolDays'] ?? [],
            'sections' => $this['sections'] ?? [],
            'admins' => $this['admins'] ?? [],
        ];
    }
}