@if (isset($question) &&
$question->type == 1 &&
!empty($question->image) &&
file_exists(public_path('uploads/questionImages/' . $question->image)))
@endif
@if (isset($question->options))
@foreach ($question->options as $option)
@include('admin.components.option', [
'id' => $option->id,
'question_id' => $id,
'option' => $option,
])
@endforeach
@endif