Debug
This commit is contained in:
@@ -16,7 +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($tipps->where('matchid', 1)->pluck('resulta')->first());
|
//dd($tipps->where('matchid', 1)->pluck('resulta')->first());
|
||||||
|
|
||||||
return view('dashboard')->with([
|
return view('dashboard')->with([
|
||||||
'teams' => $teams,
|
'teams' => $teams,
|
||||||
|
@@ -39,6 +39,8 @@
|
|||||||
<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>{!! dd($match->id) !!}</td>
|
||||||
|
|
||||||
<td>{!! $tipps->where('matchid', $match->id)->pluck('resulta')->first() . ':' . $tipps->where('matchid', $match->id)->pluck('resultb')->first() !!}</td>
|
<td>{!! $tipps->where('matchid', $match->id)->pluck('resulta')->first() . ':' . $tipps->where('matchid', $match->id)->pluck('resultb')->first() !!}</td>
|
||||||
<td>
|
<td>
|
||||||
@if($tipps->where('matchid', $match->id)->resulta != null)
|
@if($tipps->where('matchid', $match->id)->resulta != null)
|
||||||
|
Reference in New Issue
Block a user