<?php

namespace App\Http\Requests\SystemSettings;

use Illuminate\Foundation\Http\FormRequest;

class UpdateSystemSettings 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' => 'nullable|string|max:50',
            'activesmssystem' => 'nullable|integer',
            'active_electricity' => 'nullable|integer',
            'activemailsystem' => 'nullable|integer',
            'activebillsystem' => 'nullable|integer',
            'emailfrom' => 'nullable|string|email|max:100',
            'baseurl' => 'nullable|string|max:100',
            'location' => 'nullable|string|max:100',
            'appshortdetail' => 'nullable|string', // Removed max constraint
            'activepaysystem' => 'nullable|integer',
            'activebanksystem' => 'nullable|integer',
            'activebvnsystem' => 'nullable|integer',
            'supportemail' => 'nullable|string|email|max:100',
            'supportphoneno' => 'nullable|string|max:100',
            'appimgurl' => 'nullable|string|max:100',
            'referalpoints' => 'nullable|integer|min:0',
            'min_referall_withdraw' => 'nullable|integer|min:0',
            'encryptin_secrete_key' => 'nullable|string|max:1000',
        ];

    }
}
