{{-- Send-questionnaire modal: pick patient + questionnaire → creates an empty response. --}}
<div class="modal-dialog" role="document">
  <div class="modal-content">
    <form class="mportal-form" action="{{ route('mportal.questionnaires.send') }}" method="POST">
      {{ csrf_field() }}
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal">&times;</button>
        <h4 class="modal-title">@lang('medportal::lang.send_questionnaire')</h4>
      </div>
      <div class="modal-body">
        <div class="form-group">
          <label>@lang('medportal::lang.patient') *</label>
          <select name="patient_id" class="form-control" required>
            <option value="">@lang('medportal::lang.select_patient')</option>
            @foreach($patients as $id => $name)
              <option value="{{ $id }}">{{ $name }}</option>
            @endforeach
          </select>
        </div>
        <div class="form-group">
          <label>@lang('medportal::lang.questionnaire') *</label>
          <select name="questionnaire_id" class="form-control" required>
            @foreach($questionnaires as $id => $title)
              <option value="{{ $id }}">{{ $title }}</option>
            @endforeach
          </select>
        </div>
      </div>
      <div class="modal-footer">
        <button type="button" class="btn btn-default" data-dismiss="modal">@lang('medportal::lang.cancel')</button>
        <button type="submit" class="btn btn-primary">@lang('medportal::lang.send')</button>
      </div>
    </form>
  </div>
</div>
