| Report Name |
@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
{{ $question->heading }} |
@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))
| {{ $sdata['name'] }} |
@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 )
{{$str}} |
@else
{{ substr($val,0,100) }} |
@endif
@php
$qnt++;
}
}
@endphp
@endif
@endforeach
@else
|
No result found
|
@endif