<?php

namespace App\Http\Requests\Admin\AdminSection;

use Illuminate\Foundation\Http\FormRequest;

class SmAdmissionQueryFollowUpRequest extends FormRequest
{
    /**
     * Determine if the user is authorized to make this request.
     */
    public function authorize(): bool
    {
        return true;
    }

    /**
     * Get the validation rules that apply to the request.
     */
    public function rules(): array
    {
        $today = date('m/d/Y');

        return [
            'next_follow_up_date' => 'required|after_or_equal:follow_up_date,'.$today,
            'response' => 'required',
        ];
    }
}
