@extends('layouts.main_frontend')
@section('title','RCSA - Aggregated Questionaire')
@section('main-content')
@php
if(count($risks)<1){
$risks = [json_decode(json_encode(['id'=>1,'reference_no'=>'12345']))];
}
$clr = $matrix['matrix_layout']['colours'];
if(empty($clr)){
$clr = @$colors[$organization->matrix_length];
if(empty($clr)){
$clr = $colors[3];
}
}
//dd($matrix);
$matrix_controls = $matrix['matrix_layout']['controls'];
$matrix_risk = $matrix['matrix_layout']['risk'];
$matrix_calc = json_decode($matrix['matrix_layout']['calc'], true);
//echo "
"; print_r((array)$matrix_calc); exit;
//dd($matrix_calc[4][3]);
$thresold = $matrix['matrix_layout']['thresold'];
//$risks = array();
if(!empty($data)) {
$risks_ref_no = explode(',', $data->risk_reference_no);
$avg_risk_likelyhood = explode(',', $data->avg_risk_likelyhood);
$avg_risk_impact = explode(',', $data->avg_risk_impact);
$avg_risk_control_design = explode(',', $data->avg_risk_control_design);
$avg_risk_cntrl_prfmnc = explode(',', $data->avg_risk_control_performance);
$avg_risk_residual = explode(',', $data->avg_risk_residual);
$avg_risk_perceived = explode(',', $data->avg_risk_perceived);
//$risk_ref_no = explode(',', $data->risk_reference_no);
}
@endphp
@if(!empty($data))
@endif
@endsection
@section('additionaljs')
@endsection