<?php

namespace App\Http\Requests\AttendanceTracking;

use App\Http\Requests\ApiFormRequest;

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

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