{{-- @extends('layouts.app') @section('content')

{{ $form->title }}

{{ $form->description }}

@csrf @foreach ($questions as $question)
@if ($question->type == 'multiple_choice') @foreach (json_decode($question->options) as $option) @endforeach @elseif($question->type == 'checkbox') @foreach (json_decode($question->options) as $option) @endforeach @elseif($question->type == 'dropdown') @elseif($question->type == 'short_answer') @elseif($question->type == 'long_answer') @endif
@endforeach
@endsection --}} @extends('layouts.app') @section('content')

{{ $form->title }}

{{ $form->description }}

@csrf @foreach ($questions as $question)
@if ($question->type == 'multiple_choice') @foreach (json_decode($question->options) as $option) @endforeach @elseif($question->type == 'checkbox') @foreach (json_decode($question->options) as $option) @endforeach @elseif($question->type == 'dropdown') @elseif($question->type == 'short_answer') @elseif($question->type == 'long_answer') @endif
@endforeach
@endsection