diff --git a/tippspiel/resources/views/dashboard.blade.php b/tippspiel/resources/views/dashboard.blade.php index 62fff20..f157e40 100644 --- a/tippspiel/resources/views/dashboard.blade.php +++ b/tippspiel/resources/views/dashboard.blade.php @@ -40,9 +40,9 @@ {!! $teams->find($match->teamb)->name !!} {!! $match->resulta . ':' . $match->resultb !!} - {!! $tipps->where('matchid', 1)->pluck('resulta')->first() . ':' . $tipps->where('matchid', 1)->pluck('resultb')->first() !!} + {!! ($temp1 = $tipps->where('matchid', 1)->pluck('resulta')->first()) ? $temp1 : '-' . ':' . ($temp2 = $tipps->where('matchid', 1)->pluck('resultb')->first()) ? $temp2 : '-' !!} - @if($tipps->where('matchid', $match->id)->first()->resulta == null) + @if($tipps->where('matchid', $match->id)->pluck('resulta')->first() == null) {!! Form::model($match, ['method' => 'GET', 'action' => ['PagesController@createTipp', $match->id], 'style' => 'display:inline-block;']) !!}