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

use Illuminate\Foundation\Http\FormRequest;

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

    public function rules(): array
    {
        return [
            'mission_id' => 'required|integer|exists:missions,id',
            'type_paiement' => 'required|string|in:client_agence,agence_candidat,forfait_dossier',
            'montant' => 'required|numeric|min:0',
            'mode_paiement' => 'required|string|in:especes,mobile_money,virement',
            'notes' => 'nullable|string|max:500',
        ];
    }
}
