From eb6a091f3d2f2f00a2a8366f884075716bac43e1 Mon Sep 17 00:00:00 2001 From: structix Date: Wed, 6 Jun 2018 21:47:41 +0200 Subject: [PATCH] Dashboard extra column with personal scores --- tippspiel/resources/views/dashboard.blade.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tippspiel/resources/views/dashboard.blade.php b/tippspiel/resources/views/dashboard.blade.php index 72c6ee6..c42970c 100644 --- a/tippspiel/resources/views/dashboard.blade.php +++ b/tippspiel/resources/views/dashboard.blade.php @@ -29,7 +29,8 @@ Team B Ergebnis Tipp - Edit + Score + Tippen @@ -40,7 +41,8 @@ {!! $teams->find($match->teamb)->name !!} {!! $match->resulta . ':' . $match->resultb !!} - {!! $tipps->where('matchid', 1)->pluck('resulta')->first() . ':' . $tipps->where('matchid', 1)->pluck('resultb')->first() !!} + {!! $tipps->where('matchid', $match->id)->pluck('resulta')->first() . ':' . $tipps->where('matchid', $match->id)->pluck('resultb')->first() !!} + {!! $tipps->where('matchid', $match->id)->pluck('score')->first() !!} @if($tipps->where('matchid', $match->id)->pluck('resulta')->first() == null)