|
|
@ -5,17 +5,17 @@ |
|
|
|
<div class="row"> |
|
|
|
<div class="col-md-12"> |
|
|
|
|
|
|
|
<table class="table table-bordered"> |
|
|
|
<table class="table scoreboard"> |
|
|
|
<thead> |
|
|
|
<tr> |
|
|
|
<th>Team</th> |
|
|
|
@foreach($missions as $mission) |
|
|
|
<th> |
|
|
|
<th class="score"> |
|
|
|
<h3>{{ $mission->id }}</h3> |
|
|
|
{{ $mission->hashtag }} |
|
|
|
</th> |
|
|
|
@endforeach |
|
|
|
<th>Score</th> |
|
|
|
<th class="score">Score</th> |
|
|
|
</tr> |
|
|
|
</thead> |
|
|
|
<tbody> |
|
|
@ -33,17 +33,21 @@ |
|
|
|
</div> |
|
|
|
</td> |
|
|
|
@foreach($missions as $mission) |
|
|
|
<td> |
|
|
|
@if(Auth::guest()) |
|
|
|
<div>{{ $mission->complete($team) ? 'Complete' : '' }}</div> |
|
|
|
@else |
|
|
|
<div>{{ $mission->score($team) }}</div> |
|
|
|
<div>{{ $mission->complete($team) ? 'Complete' : '' }}</div> |
|
|
|
<div>{{ $mission->progress($team)[0].'/'.$mission->progress($team)[1] }}</div> |
|
|
|
<td class="score"> |
|
|
|
@if(!Auth::guest()) |
|
|
|
<div>{{ $mission->score($team) }}pts</div> |
|
|
|
@endif |
|
|
|
<div class="team-wrap"> |
|
|
|
<div class="team"> |
|
|
|
@if($mission->progress($team)[0] >= 1) |
|
|
|
<span class="team-icon outlined {{ $mission->complete($team) ? '' : 'empty' }}" |
|
|
|
style="background-color: #{{ $team->color }}; border-color: #{{ $team->color }};"></span> |
|
|
|
@endif |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</td> |
|
|
|
@endforeach |
|
|
|
<td> |
|
|
|
<td class="total score"> |
|
|
|
<b>{{ $team->total_score() }}</b> |
|
|
|
</td> |
|
|
|
</tr> |
|
|
|