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

Details

@if (!auth()->user()->hasRole('Admin')) @endif
@php$defaultPlaceholder = " Guidelines for MTO Users What is the problem? a. Expected: What was expected to happen prior to the event? b. Actual: What actually happened. c. Impact: Consequence as a result of the event (potential and actual)?"; @endphp
@php $config = [ 'placeholder' => 'Select Technical Discipline', 'allowClear' => false, ]; @endphp @foreach (App\Models\Threat::getTechnicalDiscipline() as $key => $value) @endforeach
@php $config = [ 'placeholder' => 'Select Infrastructure Category', 'allowClear' => false, ]; @endphp @foreach (App\Models\Threat::getInfrastuructureCategory() as $key => $infrastructure) @endforeach
mark_as_confidential == 1) checked @endif>
pt_support_needed == 1) checked @endif>
bad_actor == 1) checked @endif>
inclusion_aip_esamp == 1) checked @endif>
@php $config = [ 'placeholder' => 'Select Plan Relevance', 'allowClear' => false, ]; @endphp @foreach (App\Models\Threat::getPlanRelevance() as $key => $value) @endforeach
@php $config = [ 'placeholder' => 'Select Value Lever Area', 'allowClear' => false, ]; @endphp @foreach (App\Models\Threat::getValueLeverArea() as $key => $value) @endforeach
@php $config = [ 'placeholder' => 'Select eSamp Value Lever', 'allowClear' => false, ]; @endphp @foreach (App\Models\Threat::getEsampValueLevers() as $key => $value) @endforeach
@php $config = [ 'placeholder' => 'Select Enabled By', 'allowClear' => false, ]; @endphp @foreach (App\Models\Threat::getEnabledByUsers() as $key => $name) @endforeach

Regulatory/Mandatory or Intolerable Risk Management

intolerable_risk == 1) checked @endif>
regulatory_mandatory == 1) checked @endif>
@php $config = [ 'placeholder' => 'Select Approver Name', 'allowClear' => false, ]; @endphp @php $selectedUserId = $details->approver_user_id ?? null; @endphp @foreach (App\Models\Threat::getAdminAndApproverNames($selectedUserId) as $key => $name) @endforeach

Schedule

@if (in_array('L1CompletionDatePlanned', $requiredFields)) @php $required = 'required'; @endphp @else @php $required = ''; @endphp @endif @php $l1Planned = isset($phaseCompletionDetails['L1CompletionDatePlanned']) ? $phaseCompletionDetails['L1CompletionDatePlanned'] : ''; @endphp
@php $l1Actual = isset($phaseCompletionDetails['L1CompletionDateActual']) ? $phaseCompletionDetails['L1CompletionDateActual'] : ''; @endphp
@if (in_array('L2CompletionDatePlanned', $requiredFields)) @php $required = 'required'; @endphp @else @php $required = ''; @endphp @endif @php $l2Planned = isset($phaseCompletionDetails['L2CompletionDatePlanned']) ? $phaseCompletionDetails['L2CompletionDatePlanned'] : ''; @endphp
@php $l2Actual = isset($phaseCompletionDetails['L2CompletionDateActual']) ? $phaseCompletionDetails['L2CompletionDateActual'] : ''; @endphp
@if (in_array('L3CompletionDatePlanned', $requiredFields)) @php $required = 'required'; @endphp @else @php $required = ''; @endphp @endif @php $l3Planned = isset($phaseCompletionDetails['L3CompletionDatePlanned']) ? $phaseCompletionDetails['L3CompletionDatePlanned'] : ''; @endphp
@php $l3Actual = isset($phaseCompletionDetails['L3CompletionDateActual']) ? $phaseCompletionDetails['L3CompletionDateActual'] : ''; @endphp
@if (in_array('L4CompletionDatePlanned', $requiredFields)) @php $required = 'required'; @endphp @else @php $required = ''; @endphp @endif @php $l4Planned = isset($phaseCompletionDetails['L4CompletionDatePlanned']) ? $phaseCompletionDetails['L4CompletionDatePlanned'] : ''; @endphp
@php $l4Actual = isset($phaseCompletionDetails['L4CompletionDateActual']) ? $phaseCompletionDetails['L4CompletionDateActual'] : ''; @endphp
@if (in_array('L5CompletionDatePlanned', $requiredFields)) @php $required = 'required'; @endphp @else @php $required = ''; @endphp @endif @php $l5Planned = isset($phaseCompletionDetails['L5CompletionDatePlanned']) ? $phaseCompletionDetails['L5CompletionDatePlanned'] : ''; @endphp
@php $l5Actual = isset($phaseCompletionDetails['L5CompletionDateActual']) ? $phaseCompletionDetails['L5CompletionDateActual'] : ''; @endphp