<?php namespace App\Http\Requests;
 
use Illuminate\Foundation\Http\FormRequest;
 
class CotisationRequest extends FormRequest {
    public function rules() {
        return [
            'id' => '',
            'benum' => 'required',
            'montant' => 'required',
            'date' => '',
            'bqcleunik' => '',
            'compte' => '',
            'mode_pmt' => '',
            'type' => '',
            'sonum' => '',
            'montant_c' => 'required',
            'montant_r' => 'required',
            'num_imp' => '',
            'ret_type' => 'required',
            'ret_date' => '',
            'ret_num' => '',
            'obs_vers' => '',
        ];
    }
 
     public function attributes() {
        return [
            //'id' => '',
            'id' => '',
            'benum' => 'Bénéficiaire',
            'montant' => 'Montant',
            'date' => 'Date',
            'bqcleunik' => 'Banque',
            'compte' => 'Compte',
            'mode_pmt' => 'Mode de paiement',
            'type' => 'Type',
            'sonum' => 'Employeur',
            'montant_c' => 'Montant Calculé',
            'montant_r' => 'Montant Rappel',
            'num_imp' => 'Numéro impression',
            'ret_type' => 'Type de retraite',
            'ret_date' => 'Date de retraite',
            'ret_num' => 'Numéro de décision retraite',
            'obs_vers' => 'Observations',
        ];
    }


    public function authorize() {
        return true;
    }
}












