SHARE
TWEET

Untitled

a guest Jun 25th, 2019 58 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. @foreach ($quest->answer as $answer)
  2.           <div class="custom-control custom-checkbox ml-5 my-1">
  3.             <input type="checkbox" name="checkbox[{{ $answer->id }}]"  value="{{ $answer->id }}"
  4. @if (is_array(old('checkbox')) && in_array($answer->id, array_keys(old('checkbox')))) checked @endif>
  5.             <label class="custom-control-label h6-responsive" for="checkbox-answer{{ $answer->id }}">{{ $answer->answer }}</label>
  6.           </div>
  7.             @endforeach
  8.     {{ $questions->links() }}
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top