<?php

namespace App\Http\Requests\Member;

use Illuminate\Foundation\Http\FormRequest;

class MemberStore 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 [
            "id" => 'sometimes|numeric',
            "user_id" => 'sometimes|numeric',
            "branch_id" => 'numeric',
            "sub_branches" => '',
            'type' => '',
            "informal_name" => 'required|max:255',
            "formal_name" => 'required|max:255',
            "kvk_number" => 'required|numeric',
            'website' => '',
            'logo' => 'sometimes|mimes:jpeg,jpg,png|max:2048',
            'show_on_website' => '',
            'helpdesk_department' => '',
            'helpdesk_contact_person' => '',
            'helpdesk_email' => '',
            'helpdesk_phone' => '',
            'info_department' => '',
            'info_contacteperson' => '',
            'info_email' => '',
            'info_phone' => '',
            'info_address' => '',
            'info_housenumber' => '',
            'info_postal' => '',
            'info_city' => '',
            'info_country' => '',
            'info_link' => '',
            'more_info_link' => '',
            
            'start_membership' => '',
            'end_membership' => '',
            'contribution' => '',
            'invoice_number' => '',
        ];
    }
}
