@php $phaseCompletionDetails = App\Models\ThreatPhaseCompletionDate::getPhasesByThreatId(threatId: $threat->id); $phaseId = $threat->threatDetails->master_phase_id ?? null; $requiredFields = App\Models\ThreatPhaseCompletionDate::getRequiredFiels($phaseId); @endphp