<?php

namespace App\Http\Requests;

use Illuminate\Contracts\Validation\ValidationRule;
use Illuminate\Foundation\Http\FormRequest;

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

    /**
     * Get the validation rules that apply to the request.
     *
     * @return array<string, ValidationRule|array<mixed>|string>
     */
    public function rules(): array
    {

        return [
            'nomfr'   => 'required|string|max:255',
            'nomar'   => 'required|string|max:255',
            'matricule'   => 'required|string|max:255',
            'nni'   => 'required|string|max:255',
            'lieu_naissance_ar'   => 'required|string|max:255',
            'lieu_naissance_fr'   => 'required|string|max:255',
            'date_naissance' => 'required|date',
            'date_affectation' => 'required|date',
            'contact'   => 'required|string|max:255',
            'date_mise_en_corps_IES' => 'required|date',
            'bank'   => 'required|string|max:255',
            'compte'   => 'required|string|max:255',
            'email'   => 'required|string|max:255',
            'matrimonialite'   => 'required|string|max:255',
            'photo'   => 'required|string|max:255',
            'date_recri_fp' => 'required|date',
            'discipline_id' => 'required|exists:disciplines,id',
            'pole_id' => 'required|exists:poles,id'
        ];
    }
}
