<?php

namespace App\Http\Requests\Api;

use Illuminate\Foundation\Http\FormRequest;

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

    /**
     * Get the validation rules that apply to the request.
     *
     * @return array
     */
    public function rules()
    {
        return [
            'province_id' => 'required',
            'province_fa' => 'required',
            'constituency_id' => 'required',
            'constituency_fa' => 'required',
            'lawmaker_name' => 'required',
            'project_name' => 'required',
            'unit_id' => 'required',
            'unit_fa' => 'required',
            'amount' => 'required',
            'total_credit' => 'required',
            'national_credit' => 'required',
            'province_credit' => 'required',
            'licence_credit' => 'required',
            'preaction_by_setad' => 'required',
            'action_by_province' => 'required',
            'needed_actions' => 'required',
            'last_action' => 'required',
        ];
    }
}
