@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 == 'text') @endif
@endforeach
@endsection