<?php

namespace App\Http\Requests\Finance;

use Illuminate\Foundation\Http\FormRequest;

class ParentPaymentFollowUpRequest extends FormRequest
{
    public function authorize(): bool { return true; }
    public function rules(): array
    {
        return [
            'school_year' => ['nullable','string','max:20'],
            'date_from' => ['nullable','date'],
            'date_to' => ['nullable','date'],
            'minimum_balance' => ['nullable','numeric','min:0'],
            'aging_bucket' => ['nullable','string','max:40'],
            'parent_id' => ['nullable','integer'],
            'student_id' => ['nullable','integer'],
            'follow_up_status' => ['nullable','string','max:60'],
            'last_contacted_before' => ['nullable','date'],
            'next_follow_up_due_before' => ['nullable','date'],
            'promise_to_pay_due_before' => ['nullable','date'],
            'include_paid_invoices' => ['nullable','boolean'],
            'include_inactive_students' => ['nullable','boolean'],
        ];
    }
}
