<?php

namespace App\Http\Requests\Parents;

use App\Http\Requests\ApiFormRequest;

class ParentAttendanceReportCheckRequest extends ApiFormRequest
{
    public function rules(): array
    {
        return [
            'date' => ['nullable', 'date'],
            'dates' => ['nullable', 'array'],
            'dates.*' => ['date'],
            'type' => ['required', 'in:absent,late,early_dismissal'],
            'student_ids' => ['required', 'array'],
            'student_ids.*' => ['integer', 'min:1'],
        ];
    }
}
