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