@if(Request::segment('2') == 'report') @if(Request::segment(1) == 'klik') @php $data = $prodeskelQuestion->responden($tahun->id)->wherePivot('prodeskel_responden_id', $prodeskelResponden->id)->first(); $jawaban = null; $multiple = null; if(empty($data) || is_null($data)){ $empty = true; }else{ $empty = false; $data = $data->pivot; $multiple = \App\Models\ProdeskelHasAnswer::where('prodeskel_responden_id', $prodeskelResponden->id) ->where('prodeskel_question_id', $prodeskelQuestion->id)->where('prodeskel_tahun_id', $tahun->id)->get(); } @endphp
Jawaban sebelumnya.
@if(!$empty) @if( !is_null($multiple) && $multiple->count() > 0 ) @endif @else Tidak ada jawaban. @endif
@endif @endif
@if( is_null($prodeskelQuestion->wajib) ): @endif
{!! Form::submit('Simpan', ['class' => 'btn btn-success btn-xs']) !!}