Fix + Debug

This commit is contained in:
2018-06-02 01:27:49 +02:00
parent c8f2a5138c
commit 453cc8104a
2 changed files with 2 additions and 1 deletions

View File

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

View File

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