From ee7f448a1e954cb86155ce8b379c60794cba4801 Mon Sep 17 00:00:00 2001 From: structix Date: Sat, 2 Jun 2018 01:37:04 +0200 Subject: [PATCH] Debug --- tippspiel/app/Http/Controllers/PagesController.php | 2 +- tippspiel/resources/views/dashboard.blade.php | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/tippspiel/app/Http/Controllers/PagesController.php b/tippspiel/app/Http/Controllers/PagesController.php index ffdf1c4..58dfa14 100644 --- a/tippspiel/app/Http/Controllers/PagesController.php +++ b/tippspiel/app/Http/Controllers/PagesController.php @@ -16,7 +16,7 @@ class PagesController extends Controller $teams = Team::all(); $matches = Match::all(); $tipps = Tipp::where('user', Auth::user()->id)->get(); - dd($tipps->where('matchid', 1)->pluck('resulta')->first()); + //dd($tipps->where('matchid', 1)->pluck('resulta')->first()); return view('dashboard')->with([ 'teams' => $teams, diff --git a/tippspiel/resources/views/dashboard.blade.php b/tippspiel/resources/views/dashboard.blade.php index 12ef04a..f7a0a2d 100644 --- a/tippspiel/resources/views/dashboard.blade.php +++ b/tippspiel/resources/views/dashboard.blade.php @@ -39,6 +39,8 @@ {!! $teams->find($match->teama)->name !!} {!! $teams->find($match->teamb)->name !!} {!! $match->resulta . ':' . $match->resultb !!} + {!! dd($match->id) !!} + {!! $tipps->where('matchid', $match->id)->pluck('resulta')->first() . ':' . $tipps->where('matchid', $match->id)->pluck('resultb')->first() !!} @if($tipps->where('matchid', $match->id)->resulta != null)