@php
$pertanyaannya1 = json_encode($tanya->pertanyaan);
$pertanyaannya = json_decode($pertanyaannya1);
@endphp
Export to Excel
@foreach($pertanyaannya as $tunj)
@if($tunj->type=="Repeater")
@foreach($tunj->data->kolom as $kol)
{{$kol->labelRep}}
@endforeach
@else
{{$tunj->data->label}}
@endif
@endforeach
@foreach($jawab as $jab)
@php
$jawabannya1 = json_encode($jab->jawaban);
$jawabannya = json_decode($jawabannya1);
@endphp
@foreach($pertanyaannya as $tunj)
@foreach($jawabannya as $key => $val)
@if($tunj->type=="Repeater")
@foreach($tunj->data->kolom as $kol)
@if($key==$kol->labelRep)
{{$val}}
@endif
@endforeach
@else
@if($key==$tunj->data->label)
{{$val}}
@endif
@endif
@endforeach
@endforeach
@endforeach