@if ($test->areResultsShown(Auth::user()->group) || Auth::user()->hasRole('Teacher'))
Solution:
{!! Markdown::convertToHtml("```sql\n".$question->solution."\n```") !!}
@endif
@if ($test->areResultsShown(Auth::user()->group)) @if ($question->attempts_count==0) You haven't answered this question. @elseif ($question->solved>0) You solved this question! @else You didn't solved this question. @endif @else @if ($question->attempts_count==0) You didn't answer this question. @else You answered this question. @endif @endif
@if (Auth::user()->hasRole('Teacher')) @else @endif