@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 = ''; } $asset_consequence = $threat->residualRisk->asset_consequence ?? ''; $people_consequence = $threat->residualRisk->people_consequence ?? ''; $environment_consequence = $threat->residualRisk->environmental_consequence ?? ''; $community_consequence = $threat->residualRisk->community_consequence ?? ''; $likelihood_of_asset_consequence = $threat->residualRisk->likelihood_of_asset_consequence ?? ''; $likelihood_of_people_consequence = $threat->residualRisk->likelihood_of_people_consequence ?? ''; $likelihood_of_environment_consequence = $threat->residualRisk->likelihood_of_environment_consequence ?? ''; $likelihood_of_community_consequence = $threat->residualRisk->likelihood_of_community_consequence ?? ''; $initial_asset_consequence = $additional ?? ''; $initial_people_consequence = $threat->riskAssessment->people_consequence ?? ''; $initial_environment_consequence = $threat->riskAssessment->environmental_consequence ?? ''; $initial_community_consequence = $threat->riskAssessment->community_consequence ?? ''; $initial_likelihood_of_asset_consequence = $threat->riskAssessment->likelihood_of_asset_consequence ?? ''; $initial_likelihood_of_people_consequence = $threat->riskAssessment->likelihood_of_people_consequence ?? ''; $initial_likelihood_of_environment_consequence = $threat->riskAssessment->likelihood_of_environment_consequence ?? ''; $initial_likelihood_of_community_consequence = $threat->riskAssessment->likelihood_of_community_consequence ?? ''; @endphp
@push('js') @endpush