Questionaire

@php $i=0; @endphp @if(!empty($risks)) @foreach($risks as $key=>$risk) @php $i++; @endphp @if($i%3==0)
@endif @endforeach @endif
@if(!empty($risks)) @foreach($risks as $key=>$risk)
0) style="display:none" @endif data-index="{{$key}}">
Inherent Risk
@php $i=1; $colours = $matrix_data['matrix_layout']['colours']; @endphp @foreach($matrix_data['matrix_layout']['risk'] as $key=>$row) @if($i == 1) @endif @foreach($row as $key2=>$column) @endforeach @php $i++; @endphp @endforeach @foreach($matrix['likelihood'] as $level) @endforeach
Impact{{@ucwords($matrix['impact'][$key])}}
{{ucwords($level)}}
Likelihood
@php $controlNum=1; @endphp @if($riskControls) @foreach($riskControls[$risk->id] as $ctrl => $r)
Control Reference

{{$controlNum++}}.{{$r->control_reference_no ?? ''}} Name: {{ $r->control_title ?? '' }} and Details: {{$r->control_details ?? ''}}

@php $controlSelectedDesigns = explode(',', @$model[$risk->id]->control_designs); $controlSelectedPerformance = explode(',', @$model[$risk->id]->control_performance); @endphp
@php $i=1; @endphp @foreach($matrix_data['matrix_layout']['controls'] as $key=>$row) @if($i == 1) @endif @foreach($row as $key2=>$column) @endforeach @php $i++; @endphp @endforeach @foreach($matrix['control_design'] as $level) @endforeach
Control Performance {{@ucwords($matrix['control_performance'][$key])}}
{{ucwords($level)}}
Control Design
@endforeach @endif
Calculated Residual Risk
@php $c_risk = ''; if(!empty($model[$risk->id])){ $c_risk = $model[$risk->id]->calculated_residual_risk_impact; } @endphp
Perceived Residual Risk
Comments
@can('questionnaire.add') @endcan
@endforeach
@else

Please select risk for this RCSA planner

@endif