<?php
namespace App\Services;
use App\Models\Evidence;
use App\Models\EvidenceCustodyEvent;
class CustodyService
{
    public static function record(Evidence $evidence, string $eventType, ?int $performedBy = null, ?string $notes = null, ?string $ip = null): EvidenceCustodyEvent
    {
        return EvidenceCustodyEvent::create([
            'evidence_id' => $evidence->id,
            'event_type' => $eventType,
            'performed_by' => $performedBy,
            'event_at' => now(),
            'notes' => $notes,
            'ip_address' => $ip,
        ]);
    }
}
