<?php

namespace App\Http\Requests\AttendanceTracking;

use App\Http\Requests\ApiFormRequest;

class ComposeAttendanceEmailRequest extends ApiFormRequest
{
    public function authorize(): bool
    {
        return true;
    }

    public function rules(): array
    {
        return [
            'student_id'    => ['required', 'integer', 'min:1'],
            'code'          => ['nullable', 'string'],
            'variant'       => ['nullable', 'string'],
            'incident_date' => ['nullable', 'date_format:Y-m-d'],
        ];
    }
}
