<?php

namespace App\Validation;

use Config\Validation;

class SetupValidation extends Validation
{
    public $validateSetupOnUpdate = [
        'email' => [
            'rules' => 'required|valid_email',
            'errors' => [
                'required' => 'The email is required',
                'valid_email' => 'The email is invalid',
            ]
        ],
        'street' => [
            'rules' => 'required',
        ],
        'region' => [
            'rules' => 'required',
        ],
        'district' => [
            'rules' => 'required',
        ],
        'phone' => [
            'rules' => 'required|exact_length[10]',
        ],
        'opening_hrs_mon_sat' => [
            'rules' => 'required',
        ],
        'opening_hrs_sun' => [
            'rules' => 'required',
        ],
        'twitter' => [
            'rules' => 'required|valid_url_strict[https]',
        ],
        'facebook' => [
            'rules' => 'required|valid_url_strict[https]',
        ],
        'instagram' => [
            'rules' => 'required|valid_url_strict[https]',
        ],
    ];
}
