<?php
namespace App\Http\Requests\Admin;

use Illuminate\Foundation\Http\FormRequest;

class ChangerStatutCandidatRequest extends FormRequest
{
    public function authorize(): bool
    {
        return true;
    }

    public function rules(): array
    {
        return [
            'statut' => 'required|string|in:soumis,attente_paiement,paiement_recu,contrat_formation_signe,formation_suivie,disponible,en_mission,suspendu,rejete,archive',
            'commentaire' => 'nullable|string|max:500',
        ];
    }
}
