<?php

namespace App\Http\Requests;

use Illuminate\Foundation\Http\FormRequest;

class UpdateClientRequest 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 [
            'NAME_SH' => ['nullable', 'string', 'max:100'],
            'NAME_FL' => ['nullable', 'string', 'max:240'],
            'ADDRESS' => ['nullable', 'string', 'max:240'],
            'BANK_ACC' => ['nullable', 'string', 'max:256'],
            'DISCOUNT' => ['nullable', 'numeric'],
            'BOSS_SURN' => ['nullable', 'string', 'max:60'],
            'BOSS_NAME' => ['nullable', 'string', 'max:60'],
            'BOSS_OTHNAME' => ['nullable', 'string', 'max:100'],
            'BOSS_POST' => ['nullable', 'string', 'max:240'],
            'BOSS_PHONE' => ['nullable', 'string', 'max:140'],
            'BOSS_CELL' => ['nullable', 'string', 'max:140'],
            'BOSS_EMAIL' => ['nullable', 'string', 'max:140'],
            'BOSS_FAX' => ['nullable', 'string', 'max:140'],
            'ACC_SURN' => ['nullable', 'string', 'max:60'],
            'ACC_NAME' => ['nullable', 'string', 'max:60'],
            'ACC_OTHNAME' => ['nullable', 'string', 'max:100'],
            'ACC_POST' => ['nullable', 'string', 'max:240'],
            'ACC_PHONE' => ['nullable', 'string', 'max:140'],
            'ACC_CELL' => ['nullable', 'string', 'max:140'],
            'ACC_EMAIL' => ['nullable', 'string', 'max:140'],
            'ACC_FAX' => ['nullable', 'string', 'max:140'],
            'STATUS_CL' => ['nullable', 'numeric']
        ];
    }
}
