<?php
namespace App\Http\Requests\Admin;
use Illuminate\Foundation\Http\FormRequest;
class UpdateEvidenceRequest extends FormRequest
{
    public function authorize(): bool { return true; }
    public function rules(): array
    {
        return [
            'case_id' => ['required', 'exists:cases,id'],
            'type' => ['required', 'in:image,video,audio,document,other'],
            'title' => ['nullable', 'string', 'max:200'],
            'description' => ['nullable', 'string'],
            'visibility' => ['required', 'in:internal,client_visible,restricted'],
            'file' => ['nullable', 'file', 'max:51200'],
            'captured_at' => ['nullable', 'date'],
        ];
    }
}
