<?php

namespace App\Http\Requests\Fees;

use App\Http\Requests\ApiFormRequest;

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

    public function rules(): array
    {
        return [
            'students' => ['required', 'array'],
            'students.*.class_section_id' => ['required', 'integer', 'min:1'],
            'students.*.grade' => ['nullable', 'string', 'max:20'],
        ];
    }
}
