<?php

namespace App\Http\Requests\Settings;

use Illuminate\Foundation\Http\FormRequest;

class SettingsUpdateRequest extends FormRequest
{
    /**
     * @return bool
     */
    public function authorize(): bool
    {
        return true;
    }

    /**
     * @return array
     */
    public function rules(): array
    {
        return [
            'app_name' => ['nullable','max:60'],
            'app_description' => ['nullable','max:160'],
            'app_address' => ['nullable','max:250'],
            'app_phone' => ['nullable','max:25'],
            'app_phone1' => ['nullable','max:25'],
            'app_email' => ['nullable','max:150'],
            'app_email1' => ['nullable','max:150'],
            'facebook' => ['nullable','max:250'],
            'instagram' => ['nullable','max:250'],
            'telegram' => ['nullable','max:250'],
            'linkedin' => ['nullable','max:250'],
            'tiktok' => ['nullable','max:250'],
            'youtube' => ['nullable','max:250'],
            'be' => ['nullable','max:250'],
            'start_date' => ['nullable','max:250'],
            'end_date' => ['nullable','max:250'],
            'name' => ['nullable','max:250'],
            'logo_image' => ['nullable', 'file', 'image' ,'mimes:jpeg,png,jpg,gif,webp,svg,heic'],
            'back_image' => ['nullable', 'file', 'image' ,'mimes:jpeg,png,jpg,gif,webp,svg,heic'],


        ];
    }
}
