<?php

namespace App\Http\Requests\Api;

use Illuminate\Foundation\Http\FormRequest;

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

    public function rules(): array
    {
        return [
            'case_number' => ['required', 'string', 'max:100'],
            'reporting_date' => ['required', 'date'],
            'district' => ['required', 'string', 'max:150'],
            'subcounty' => ['required', 'string', 'max:150'],
            'parish' => ['required', 'string', 'max:150'],
            'victim_gender' => ['required', 'string', 'max:20'],
            'victim_age' => ['required', 'numeric', 'min:0', 'max:130'],
            'incident_type' => ['required', 'string', 'max:150'],
            'incident_date' => ['required', 'date'],
            'incident_time' => ['required', 'string', 'max:100'],
            'case_status' => ['required', 'string', 'max:150'],
        ];
    }
}
