|
@ -5,17 +5,17 @@ |
|
|
<div class="row"> |
|
|
<div class="row"> |
|
|
<div class="col-md-12"> |
|
|
<div class="col-md-12"> |
|
|
|
|
|
|
|
|
<table class="table table-bordered"> |
|
|
|
|
|
|
|
|
<table class="table scoreboard"> |
|
|
<thead> |
|
|
<thead> |
|
|
<tr> |
|
|
<tr> |
|
|
<th>Team</th> |
|
|
<th>Team</th> |
|
|
@foreach($missions as $mission) |
|
|
@foreach($missions as $mission) |
|
|
<th> |
|
|
|
|
|
|
|
|
<th class="score"> |
|
|
<h3>{{ $mission->id }}</h3> |
|
|
<h3>{{ $mission->id }}</h3> |
|
|
{{ $mission->hashtag }} |
|
|
{{ $mission->hashtag }} |
|
|
</th> |
|
|
</th> |
|
|
@endforeach |
|
|
@endforeach |
|
|
<th>Score</th> |
|
|
|
|
|
|
|
|
<th class="score">Score</th> |
|
|
</tr> |
|
|
</tr> |
|
|
</thead> |
|
|
</thead> |
|
|
<tbody> |
|
|
<tbody> |
|
@ -33,17 +33,21 @@ |
|
|
</div> |
|
|
</div> |
|
|
</td> |
|
|
</td> |
|
|
@foreach($missions as $mission) |
|
|
@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 |
|
|
@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> |
|
|
</td> |
|
|
@endforeach |
|
|
@endforeach |
|
|
<td> |
|
|
|
|
|
|
|
|
<td class="total score"> |
|
|
<b>{{ $team->total_score() }}</b> |
|
|
<b>{{ $team->total_score() }}</b> |
|
|
</td> |
|
|
</td> |
|
|
</tr> |
|
|
</tr> |
|
|