blob: a322bc6a9a986fdca5d1ccfe4d514bb2a5e48489 (
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
50
51
52
53
54
55
|
@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>
<th scope="col">Video</th>
</tr>
</thead>
<tbody>
@foreach ($tournament->matches as $match)
<tr>
<th scope="row">{{ $match->id }}</th>
<td>{{ $match->getHomeTeam()->getName() }}</td>
<td>{{ $match->score }} <br> {{$match->half_score}}</td>
<td>{{ $match->getAwayTeam()->getName() }}</td>
<td>{{ $match->getDisplayName() }}</td>
<td>{{ $match->referee }}</td>
<td>{{ $match->getDisplayDate() }}</td>
@if ($match->getVideoUrl())
<td><a href="{{ $match->getVideoUrl() }}">Play</a></td>
@else
<td></td>
@endif
</tr>
@endforeach
</tbody>
</table>
</div>
</div>
@endforeach
@endsection
|