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)