@extends('layout') @section('content')

{{ __('Question Information') }} icon

{{-- Question Type --}}
{{-- Options Count --}} @if ($question->options_count)
@endif {{-- Question Text --}}
{{-- Answers (if applicable) --}} @if ( in_array($question->type, [ 'Multiple Choices (Multi select)', 'Multiple Choice (Single Select)', 'Yes or No Question', ]) )
@php $answers = json_decode($question->answer ?? '[]'); @endphp @if (!empty($answers))
@foreach ($answers as $ans) {{ $ans }} @endforeach
@else

{{ __('No answers available.') }}

@endif
@endif
{{-- Scripts --}} @endsection