@php $pertanyaannya1 = json_encode($tanya->pertanyaan); $pertanyaannya = json_decode($pertanyaannya1); @endphp
@foreach($pertanyaannya as $tunj) @if($tunj->type=="Repeater") @foreach($tunj->data->kolom as $kol) @endforeach @else @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) @endif @endforeach @else @if($key==$tunj->data->label) @endif @endif @endforeach @endforeach @endforeach
{{$kol->labelRep}}{{$tunj->data->label}}
{{$val}}{{$val}}