<?php

namespace App\Http\Requests;

use App\Models\ChecklistReport;
use Gate;
use Illuminate\Foundation\Http\FormRequest;
use Illuminate\Http\Response;

class UpdateChecklistReportRequest extends FormRequest
{
    public function authorize()
    {
        return Gate::allows('checklist_report_edit');
    }

    public function rules()
    {
        return [
            'complaint_id' => [
                'required',
                'integer',
            ],
            'checklist_name_id' => [
                'required',
                'integer',
            ],
            'checklist_status' => [
                'string',
                'nullable',
            ],
            'checklist_value_text_1' => [
                'string',
                'nullable',
            ],
            'checklist_value_text_2' => [
                'string',
                'nullable',
            ],
        ];
    }
}
