checkmarks and X's are know aligned with text on answer page
This commit is contained in:
parent
c8ebd1756f
commit
5eb1e899b6
1 changed files with 14 additions and 7 deletions
|
@ -20,19 +20,26 @@
|
|||
@foreach ($options as $option)
|
||||
@if ($answers->where("id", $option->id)->first() && $option->correct_answer)
|
||||
<div class="alert alert-success">
|
||||
<span class="glyphicon glyphicon-ok" aria-hidden="true" style="color: green;"></span>
|
||||
<p>{{ $option->option }}</p>
|
||||
<p>
|
||||
<span class="glyphicon glyphicon-ok" aria-hidden="true" style="color: green;"></span>
|
||||
|
||||
{{ $option->option }}
|
||||
</p>
|
||||
</div>
|
||||
@elseif ($answers->where("id", $option->id)->first() && !$option->correct_answer)
|
||||
<div class="alert alert-danger">
|
||||
<span class="glyphicon glyphicon-remove" aria-hidden="true" style="color: red;"></span>
|
||||
<p>{{ $option->option }}</p>
|
||||
<p>
|
||||
<span class="glyphicon glyphicon-remove" aria-hidden="true" style="color: red;"></span>
|
||||
|
||||
{{ $option->option }}
|
||||
</p>
|
||||
</div>
|
||||
@elseif ($option->correct_answer)
|
||||
<div class="alert alert-success">
|
||||
<p>
|
||||
<span class="glyphicon glyphicon-ok" aria-hidden="true" style="color: green;"></span>
|
||||
<p>{{ $option->option }}</p>
|
||||
</div>
|
||||
|
||||
{{ $option->option }}
|
||||
</p>
|
||||
@else
|
||||
<div>
|
||||
<p>{{ $option->option }}</p>
|
||||
|
|
Reference in a new issue