From a6010c286b242be8d0ce2dec14a72d82fd41f67b Mon Sep 17 00:00:00 2001 From: structix Date: Sat, 2 Jun 2018 01:47:05 +0200 Subject: [PATCH] Fix --- tippspiel/resources/views/dashboard.blade.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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;']) !!}