{{-- slot:content --}} {{-- data-binding --}}
@csrf
問診票 ({!! $data['total'] !!}項目)

質問には最後までご回答ください

@php $cnt = 1; @endphp @foreach ($data['question_list'] as $key => $question)
@if ($question['is_option']) {{-- is_checkbox --}} @if ($question['is_checkbox']) @foreach ($question['option_list'] as $i => $option)
get("question.{$key}.{$i}") !== null) ? 'checked' : '' !!} > @if ($option['is_remark'])
get("remark.{$key}.{$i}") : '' !!}" placeholder="{!! $option['remark'] !!}" >
@endif
@endforeach @endif {{-- is_radio --}} @if ($question['is_radio']) @foreach ($question['option_list'] as $i => $option)
get("question.{$key}.{$i}") !== null) ? 'checked' : (($option['is_default']) ? 'checked' : '') !!} > @if ($option['is_remark'])
get("remark.{$key}.{$i}") : '' !!}" placeholder="{!! $option['remark'] !!}" >
@endif
@endforeach @endif {{-- is_select --}} @if ($question['is_select'])
{!! html() ->select("question[{$question['mtb_question_id']}]", $question['option_list'], '') ->class('form-select') !!}
@endif @else @endif
@php $cnt++; @endphp @endforeach
{{-- nav --}}
{{-- /.nav --}}
{{-- /.data-binding --}}
{{-- /.slot:content --}} {{-- css --}} @push('css') @endpush {{-- /.css --}} {{-- js --}} @push('js') @endpush {{-- /.js --}}