<?php

namespace App\Http\Requests\MedicalHealth\CivilLocalSelfGoverment;

use Illuminate\Foundation\Http\FormRequest;

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

    /**
     * Get the validation rules that apply to the request.
     *
     * @return array<string, \Illuminate\Contracts\Validation\ValidationRule|array<mixed>|string>
     */
    public function rules(): array
    {
        return [
            // 'zone'=>'required',
            'first_name' => 'required',
            'middle_name' => 'required',
            'last_name' => 'required',
            'marathi_first_name' => 'required',
            'marathi_middle_name' => 'required',
            'marathi_last_name' => 'required',
            'mobile_num' => 'required',
            'adhar_num' => 'required',
            'email' => 'required',
            'address' => 'required',
            'marathi_address' => 'required',
            'purpose' => 'required',
            'marathi_purpose' => 'required',
            'prescribed_formats' => 'required|file|mimes:pdf,PDF,png,PNG,jpg,JPG,jpeg,JPEG|max:2048',
        ];
    }
}
