blob: cde358d9642e689f5ba8c21eb20dbe2688d08c90 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
@extends('layout.default')
@section('content')
@foreach ($tournaments as $tournament)
<div class="container">
<div class="mt-4">
<h1>{{ $tournament->name }}</h1>
</div>
<div class="mt-4">
<table class="table">
<thead>
<tr>
<th scope="col">#</th>
<th scope="col">Home</th>
<td scope="col"></td>
<th scope="col">Away</th>
<th scope="col">Venue</th>
<th scope="col">Referee</th>
<th scope="col">Date</th>
</tr>
</thead>
<tbody>
@foreach ($tournament->matches as $match)
<tr>
<th scope="row">{{ $match->id }}</th>
<td>{{ $match->homeTeam()->first()->getName() }}</td>
<td>{{ $match->score }} <br> {{$match->half_score}}</td>
<td>{{ $match->awayTeam()->first()->getName() }}</td>
<td>{{ $match->getDisplayName() }}</td>
<td>{{ $match->referee }}</td>
<td>{{ $match->getDisplayDate() }}</td>
</tr>
@endforeach
</tbody>
</table>
</div>
</div>
@endforeach
@endsection
|