@if($type == 'base')
@php $exists = $data['row'] ? $data['row']->sectionDetails : ""; @endphp
@if($exists)
@forelse($data['row']->sectionDetails as $section)
Section Name : {{$section->name}}
Section Type : {{$section->questionTypeDetails ? $section->questionTypeDetails->name : "-"}}
Question Selection : @if($section->is_manual == 1) Manual @else Auto @endif
Section Intro : {!! $section->section_content ?((strlen($section->section_content) > 60) ? substr(trim(strip_tags($section->section_content)),0,60)."....." : $section->section_content) : "Not Updated" !!}
@if($section->weightage>0)
Weightage : {!! $section->weightage ? $section->weightage : "Not Updated" !!}
@endif
@if($data['row']->section_freeze == 0)
@endif
@empty
You have not added any Sections to your Assessment, Add minimum (one) section to proceed next
@endforelse
@else
You have not added any Sections to your Assessment, Add minimum (one) section to proceed next
@endif
@elseif($type == 'new')
Section Name : {{$data['name']}}
Section Type : {{$data['ques_type']}}
Question Selection : @if($data['is_manual'] == 1) Manual @else Auto @endif
Section Intro : @if($data['section_intro']){!! $data['section_intro'] !!} @else Not Updated @endif
@if($data['weightage']>0)
Weightage : {!! $data['weightage'] !!}
@endif
@elseif($type == 'update')
Section Name : {{$data['name']}}
Section Type : {{$data['ques_type']}}
Question Selection : @if($data['is_manual'] == 1) Manual @else Auto @endif
Section Intro : @if($data['section_intro']){!! $data['section_intro'] !!} @else Not Updated @endif
@if($data['weightage']>0)
Weightage : {!! $data['weightage'] !!}
@endif
@endif