Dashboard extra column with personal scores

This commit is contained in:
2018-06-06 21:47:41 +02:00
parent 5f7510e4ef
commit eb6a091f3d

View File

@@ -29,7 +29,8 @@
<th scope="col">Team B</th>
<th scope="col">Ergebnis</th>
<th scope="col">Tipp</th>
<th scope="col">Edit</th>
<th scope="col">Score</th>
<th scope="col">Tippen</th>
</tr>
</thead>
<tbody>
@@ -40,7 +41,8 @@
<td>{!! $teams->find($match->teamb)->name !!}</td>
<td>{!! $match->resulta . ':' . $match->resultb !!}</td>
<td>{!! $tipps->where('matchid', 1)->pluck('resulta')->first() . ':' . $tipps->where('matchid', 1)->pluck('resultb')->first() !!}</td>
<td>{!! $tipps->where('matchid', $match->id)->pluck('resulta')->first() . ':' . $tipps->where('matchid', $match->id)->pluck('resultb')->first() !!}</td>
<td>{!! $tipps->where('matchid', $match->id)->pluck('score')->first() !!}</td>
<td>
@if($tipps->where('matchid', $match->id)->pluck('resulta')->first() == null)
<!-- Edit -->