Untitled
unknown
plain_text
a month ago
4.8 kB
1
Indexable
Never
<!-- question_1 --> @foreach ($data->surveys_questions as $question) <div class="col-xl-6 my-3 " id="c{{$question->id}}"> <div class=" row custom-card position-relative"> <button type="button" class="position-left btn btn-danger z-custom-index" onclick="removeQuestion({{$question->id}})">X</button> <div class="col-md-8 form-group mb-3"> <div class="select_label ui sub header"><span></span> Sual <span class="text-danger">*</span></div> <input type="text" name="question[]" id="" class="form-control disabled-div" value="{{$question->question}}" placeholder="Sual daxil edin"> @if($errors->has('question')) <span class="text-danger">{{ $errors->first('question') }}</span> @endif </div> <!-- Bura --> <div class="col-md-4 form-group mb-3 "> <div class="select_label ui sub header ">Sualın növ <span class="text-danger">*</span></div> <select id="input_type-0" style="height: 48px;" aria-readonly="true" name="input_type[]" class="input_type form-control ui fluid search dropdown "> <option value="checkbox" {{ $question->input_type == 'checkbox' ? 'selected' : '' }}> Çox variantlı</option> <option value="radio" {{ $question->input_type == 'radio' ? 'selected' : '' }}>Tək variantlı</option> <option value="textarea" {{ $question->input_type == 'textarea' ? 'selected' : '' }}> Mətn</option> </select> @if($errors->has('input_type')) <span class="text-danger">{{ $errors->first('input_type') }}</span> @endif </div> <div class="col-md-12 form-group mb-3" id="todo-content-0"> <div class="select_label ui sub header ">Cavab və ya cavablar <span class="text-danger">*</span></div> <div class="todo-container" style="width: 100%;"> <div id="todo-header"> <input type="text" id="todo-input-0" class="todo-input form-control form-control-left-radius disabled-div " placeholder="Yeni cavab daxil edin"> <button class="add-btn btn-right-radius btn-success disabled-div" type="button" onclick="addTodo(0)"> <i class="fa-solid fa-plus"></i> </button> </div> <ul id="todo-list-0" class="todo-list disabled-div"> @foreach ($question->answers as $answer) <li> <input type="text" name="answer_value[{{ $question->id }}][]" class="form-answer form-control" value="{{ $answer->name }}"> <button class="remove" onclick="removeSelf(this)" type="button">Delete</button> </li> @endforeach </ul> </div> </div> </div> </div> @endforeach
Leave a Comment