Admin | Collaborative Safety

Reports

Back
@php $c = 0; @endphp @if (isset($questions) && !empty($questions)) @foreach ($questions as $qkey => $question) @php $srt_selected = (isset($data['title_question_id']) && is_array($data['title_question_id']) && in_array($question->id,$data['title_question_id']) ) ? 'checked="checked"' : ''; $cls_hide = ( $c > 4 ) ? 'hide' : ''; @endphp @php $c++; @endphp @endforeach @endif @if (isset($filter_data) && !empty($filter_data)) @foreach ($filter_data as $sdata) @php $qnt = 0; $cls_hide = ''; @endphp @if (isset($sdata['report_id']) && !empty($sdata['report_id']>0)) @php $qtype = ''; $qid = 0; $str = ''; if ($filter_data[$sdata['report_id']]['question_id']) { foreach($filter_data[$sdata['report_id']]['question_id'] as $rsval) { $cls_hide = ( $qnt > 4 ) ? 'hide' : ''; $qtype = $filter_data[$sdata['report_id']]['question_type'][$rsval]; $qid = $rsval; if ( 'Multiple_Select' == $qtype ) { $tmp = json_decode($filter_data[$sdata['report_id']]['text_answer'][$rsval]); if(!empty($tmp)) { foreach($tmp as $Ky => $t) { $str .= $Ky.','; } } $str = trim($str,','); } else { $val = $filter_data[$sdata['report_id']]['text_answer'][$rsval]; } @endphp @if( 'Multiple_Select' == $qtype ) @else @endif @php $qnt++; } } @endphp @endif @endforeach @else @endif
Report Name{{ $question->heading }}
{{ $sdata['name'] }} {{$str}} {{ substr($val,0,100) }}
No result found