<?php

namespace App\Http\Controllers\Requests\Task;

use Illuminate\Foundation\Http\FormRequest;

class TaskRequest extends FormRequest
{
    public function authorize(): bool
    {
        return true;
    }

    public function rules(): array
    {

        return [
            'activity_type' => ['required'],
            'lead_id' => ['nullable'],
            'lead_name' => ['required'],
            'phone_code' => ['required'],
            'mobile' => ['required'],
            'service_type' => ['required'],
            'preferred_service' => ['required'],
            'location' => ['nullable'],
            'lattitude' => ['nullable'],
            'longitude' => ['nullable'],
            'lead_status' => ['required'],
            'source' => ['nullable'],
            'photo' => ['nullable'],
            'remarks' => ['nullable'],

        ];
    }
}
