@extends('layouts.app') @section('content')
Dashboard
Ihr momentaner Punktestand:
Spiele
@foreach($matches as $match) @endforeach
Datum Team A Team B Ergebnis Tipp Edit
{!! $match->date !!} {!! $teams->find($match->teama)->name !!} {!! $teams->find($match->teamb)->name !!} {!! $match->resulta . ':' . $match->resultb !!} {!! ($temp1 = $tipps->where('matchid', 1)->pluck('resulta')->first()) ? $temp1 : '-' . ':' . ($temp2 = $tipps->where('matchid', 1)->pluck('resultb')->first()) ? $temp2 : '-' !!} @if($tipps->where('matchid', $match->id)->pluck('resulta')->first() == null) {!! Form::model($match, ['method' => 'GET', 'action' => ['PagesController@createTipp', $match->id], 'style' => 'display:inline-block;']) !!}
@endsection