@php $primaryBox = $threat->riskAssessment->{'primary_RAM_box_#'} ?? ''; $highestImpactCategory = $threat->riskAssessment->{'highest_impact_category'} ?? ''; $secondaryBox = $threat->riskAssessment->{'second_RAM_box_#'} ?? ''; $secondaryImpactCategory = $threat->riskAssessment->{'second_highest_impact_category'} ?? ''; $residualPrimaryBox = $threat->residualRisk->{'primary_RAM_box_#'} ?? ''; $residualHighestImpactCategory = $threat->residualRisk->{'highest_impact_category'} ?? ''; $residualSecondaryBox = $threat->residualRisk->{'second_RAM_box_#'} ?? ''; $residualSecondImpactCategory = $threat->residualRisk->{'second_highest_impact_category'} ?? ''; $mto_score = $threat->riskAssessment->MTO_score ?? 0; if ($secondaryBox == $primaryBox) { $secondaryBox = ''; $highestImpactCategory = $highestImpactCategory . ',' . $secondaryImpactCategory; $secondaryImpactCategory = ''; } if ($residualPrimaryBox == $residualSecondaryBox) { $residualSecondaryBox = ''; $residualHighestImpactCategory = $residualHighestImpactCategory . ',' . $residualSecondImpactCategory; $residualSecondImpactCategory = ''; } @endphp
@push('js') @endpush