<?php

namespace App\Http\Requests\Admin;

use App\Http\Requests\ApiFormRequest;

class SendTeacherSubmissionNotificationsRequest extends FormRequest
{
    public function authorize(): bool
    {
        return true; // protected by auth/admin middleware
    }

    public function rules(): array
    {
        return [
            'notify' => ['required', 'array', 'min:1'],
            // nested keys are dynamic [section_id][teacher_id], keep flexible
            'missing_items' => ['nullable', 'array'],
        ];
    }
}