43 lines
1.0 KiB
HTML
43 lines
1.0 KiB
HTML
{{ define "content" }}
|
||
<div class="container py-4">
|
||
<h2>Syndicate Tickets</h2>
|
||
|
||
{{ if .Tickets }}
|
||
<table class="table table-striped">
|
||
<thead>
|
||
<tr>
|
||
<th>Game</th>
|
||
<th>Draw Date</th>
|
||
<th>Numbers</th>
|
||
<th>Matched</th>
|
||
<th>Prize</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
{{ range .Tickets }}
|
||
<tr>
|
||
<td>{{ .GameType }}</td>
|
||
<td>{{ .DrawDate }}</td>
|
||
<td>
|
||
{{ .Ball1 }} {{ .Ball2 }} {{ .Ball3 }} {{ .Ball4 }} {{ .Ball5 }} {{ .Ball6 }}
|
||
{{ if .Bonus1 }}+{{ .Bonus1 }}{{ end }}
|
||
{{ if .Bonus2 }} {{ .Bonus2 }}{{ end }}
|
||
</td>
|
||
<td>{{ .MatchedMain }} + {{ .MatchedBonus }}</td>
|
||
<td>
|
||
{{ if .IsWinner }}
|
||
💷 {{ .PrizeLabel }}
|
||
{{ else }}
|
||
<span class="text-muted">–</span>
|
||
{{ end }}
|
||
</td>
|
||
</tr>
|
||
{{ end }}
|
||
</tbody>
|
||
</table>
|
||
{{ else }}
|
||
<div class="alert alert-info">No tickets found for this syndicate.</div>
|
||
{{ end }}
|
||
</div>
|
||
{{ end }}
|