summaryrefslogtreecommitdiff
path: root/resources/views/index.blade.php
diff options
context:
space:
mode:
Diffstat (limited to 'resources/views/index.blade.php')
-rw-r--r--resources/views/index.blade.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/resources/views/index.blade.php b/resources/views/index.blade.php
index 0500e96..a322bc6 100644
--- a/resources/views/index.blade.php
+++ b/resources/views/index.blade.php
@@ -32,9 +32,9 @@
@foreach ($tournament->matches as $match)
<tr>
<th scope="row">{{ $match->id }}</th>
- <td>{{ $match->homeTeam()->first()->getName() }}</td>
+ <td>{{ $match->getHomeTeam()->getName() }}</td>
<td>{{ $match->score }} <br> {{$match->half_score}}</td>
- <td>{{ $match->awayTeam()->first()->getName() }}</td>
+ <td>{{ $match->getAwayTeam()->getName() }}</td>
<td>{{ $match->getDisplayName() }}</td>
<td>{{ $match->referee }}</td>
<td>{{ $match->getDisplayDate() }}</td>