Jawaban.
@if(!$empty)
@if($prodeskelQuestion->prodeskel_type_id === 1)
@if( !is_null($data->jawaban))
(
Hapus) {{ $data->jawaban }}
{{ $prodeskelQuestion->default_jawaban }}
@endif
@elseif($prodeskelQuestion->prodeskel_type_id === 2 )
@if( !is_null($multiple) && $multiple->count() > 0 )
@foreach($multiple as $item_multiple)
(
Hapus) {{ $item_multiple->prodeskelAnswerChoice->isi }}
@endforeach
@endif
@elseif($prodeskelQuestion->prodeskel_type_id === 3 || $prodeskelQuestion->prodeskel_type_id === 4)
@if( !is_null($multiple) && $multiple->count() > 0 )
@foreach($multiple as $item_multiple)
@if( !is_null($default) && $default->count() > 0 )
(
Hapus){{ $item_multiple->prodeskelAnswerChoice->isi }}
@foreach($default as $item_default)
@if($item_multiple->id == $item_default->prodeskel_has_answer_id)
-
(Hapus) {{ $item_default->prodeskelDefaultChoice->isi }}
@if($prodeskelQuestion->prodeskel_type_id === 4)
: {{ $item_default->jawaban }} {{ $prodeskelQuestion->default_jawaban }}
@endif
@endif
@endforeach
@endif
@endforeach
@endif
@elseif($prodeskelQuestion->prodeskel_type_id === 5 || $prodeskelQuestion->prodeskel_type_id === 6)
@if( !is_null($multiple) && $multiple->count() > 0 )
@foreach($multiple as $item_multiple)
-
(Hapus) {{ $item_multiple->prodeskelAnswerChoice->isi }}
@if($prodeskelQuestion->prodeskel_type_id == 5) : @endif
{{ $item_multiple->jawaban }} {{ $prodeskelQuestion->default_jawaban }}
@endforeach
@endif
@else
Tidak ada jawaban.
@endif
@else
Tidak ada jawaban.
@endif
@endif
@if($prodeskelQuestion->prodeskel_categorie_id == '14')
@if($prodeskelQuestion->prodeskel_type_id == '1')
@include('prodeskel.formulir.essay')
@elseif($prodeskelQuestion->prodeskel_type_id == '2')
@include('prodeskel.formulir.pilihan')
@elseif($prodeskelQuestion->prodeskel_type_id == '3')
@include('prodeskel.formulir.multiple')
@elseif($prodeskelQuestion->prodeskel_type_id == '4')
@include('prodeskel.formulir.multiple-essay')
@elseif($prodeskelQuestion->prodeskel_type_id == '5')
@include('prodeskel.formulir.pilihan-essay')
@elseif($prodeskelQuestion->prodeskel_type_id == '6')
@include('prodeskel.formulir.pilihan-multiple')
@else
{{ $prodeskelQuestion->jenisPertanyaan->nama ?? "-" }}
@endif
{{-- {!! Form::submit('Simpan', ['class' => 'btn btn-success mr-1']) !!} --}}
@endif