@if ((auth()->user()) && (auth()->user()->admin == 1)) <a style="text-decoration: none;" href="{{route('user.viewquestion', $q['id'])}}"><img class="img-responsive" alt="{{$q['Question'] . ' - Evangels English - '}}{{$_SERVER['HTTP_HOST']}}" src="/images/imageQuestion/{{$q['Photo']}}" /></a> @else <img class="img-responsive" alt="{{$q['Question'] . ' - Evangels English - '}}{{$_SERVER['HTTP_HOST']}}" src="/images/imageQuestion/{{$q['Photo']}}" /> @endif </li> @endif @elseif ($q['ThumbnailID'] == 2) @if ($q['Video'] != null) <div class="embed-responsive embed-responsive-4by3"> <iframe class="embed-responsive-item" src="https://www.youtube.com/embed/{{$q['Video']}}" frameborder="0" allowfullscreen></iframe> </div> @endif @endif <?php $subP = \App\Questions::getFilledQuestion($q['Question']); reset($Spaces); // don't know what's different between this view & viewfilledquestion ?> <div style="color:#cc0066; font-weight:bold;"> @if (strlen($q['Description']) > 0) {!! nl2br($q['Description']) . ":" !!} @endif </div> <div> @foreach ($subP as $value) {!! nl2br($value) !!} @if (count($Spaces[$q['id']]) > 0) <select style="color:#cc0066" id="select_space_{{current($Spaces[$q['id']])['id']}}" data-show-icon="true"> <?php $this_answers = $AnswersFor2[current($Spaces[$q['id']])['id']];