Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @foreach ($quest->answer as $answer)
- <div class="custom-control custom-checkbox ml-5 my-1">
- <input type="checkbox" name="checkbox[{{ $answer->id }}]" value="{{ $answer->id }}"
- @if (is_array(old('checkbox')) && in_array($answer->id, array_keys(old('checkbox')))) checked @endif>
- <label class="custom-control-label h6-responsive" for="checkbox-answer{{ $answer->id }}">{{ $answer->answer }}</label>
- </div>
- @endforeach
- {{ $questions->links() }}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement