LaraForms
@csrf @method('PATCH')
{{ $form->is_published ? 'Unpublish' : 'Publish' }}
Edit
@if (session('success'))
{{ session('success') }}
@endif @if (session('delete'))
{{ session('delete') }}
@endif
@foreach ($form->questions as $index => $question)
type === 'multiple_choice' ? 'selected' : '' }}>Multiple Choice
type === 'checkbox' ? 'selected' : '' }}>Checkbox
type === 'dropdown' ? 'selected' : '' }}>Dropdown
type === 'text' ? 'selected' : '' }}>Text
@if ($question->options)
@foreach (json_decode($question->options) as $optionIndex => $option)
@endforeach
@endif
@endforeach
@csrf @method('PATCH')
{{ $form->is_published ? 'Unpublish' : 'Publish' }}
Return to Forms