This commit is contained in:
2018-06-02 01:32:10 +02:00
parent b522270093
commit 99403359c8
2 changed files with 1 additions and 2 deletions

View File

@@ -16,7 +16,6 @@ class PagesController extends Controller
$teams = Team::all();
$matches = Match::all();
$tipps = Tipp::where('user', Auth::user()->id)->get();
dd($tipps->where('matchid', 1));
return view('dashboard')->with([
'teams' => $teams,

View File

@@ -39,7 +39,7 @@
<td>{!! $teams->find($match->teama)->name !!}</td>
<td>{!! $teams->find($match->teamb)->name !!}</td>
<td>{!! $match->resulta . ':' . $match->resultb !!}</td>
<td>{!! $tipps->where('matchid', $match->id)->resulta->first() . ':' . $tipps->where('matchid', $match->id)->resultb->first() !!}</td>
<td>{!! $tipps->where('matchid', $match->id)->first()->resulta . ':' . $tipps->where('matchid', $match->id)->first()->resultb !!}</td>
<td>
@if($tipps->where('matchid', $match->id)->resulta != null)
<!-- Edit -->