diff --git a/tippspiel/app/Http/Controllers/PagesController.php b/tippspiel/app/Http/Controllers/PagesController.php index e58ac38..e5fe5c7 100644 --- a/tippspiel/app/Http/Controllers/PagesController.php +++ b/tippspiel/app/Http/Controllers/PagesController.php @@ -9,9 +9,11 @@ class PagesController extends Controller { function dashboard() { $teams = Team::all(); + $matches = Match::all(); return view('dashboard')->with([ 'teams' => $teams, + 'matches' => $matches, ]); } } diff --git a/tippspiel/app/Match.php b/tippspiel/app/Match.php new file mode 100755 index 0000000..06ab3da --- /dev/null +++ b/tippspiel/app/Match.php @@ -0,0 +1,40 @@ +
- @foreach($teams as $t) + @foreach($matches as $match)