56 lines
3.4 KiB
PHP
56 lines
3.4 KiB
PHP
<div class="card">
|
|
<div class="card-body">
|
|
<h4 class="header-title mb-2">{{$title}}</h4>
|
|
<div class="row">
|
|
@foreach($scores as $score)
|
|
<div class="col-12">
|
|
<button class="btn btn-warning btn-xs rounded-pill mb-1 dlscreenshot" target="compatition_dashboard_{{$score->id}}">Download PNG</button>
|
|
<a href="/competitionreport/contestmailer?domain=team4&id={{$score->id}}" class="btn btn-info btn-xs rounded-pill mb-1">Contest Emailer</a>
|
|
<div class="card border-primary border mb-3" id="compatition_dashboard_{{$score->id}}">
|
|
|
|
<div class="card-body">
|
|
<h4 class="card-title text-primary">{{$score->title}}</h4>
|
|
<!-- <p class="card-text">Some quick example text to build on the card title and make up the bulk of the card's content.</p> -->
|
|
<div class="table-responsive">
|
|
<table class="table table-borderless table-nowrap table-hover table-centered m-0">
|
|
<thead class="table-light">
|
|
<tr>
|
|
<th>Download</th>
|
|
<th>Rank</th>
|
|
<th colspan="2">Team Name</th>
|
|
<th>Avg Runs</th>
|
|
<th>TM Count</th>
|
|
<th>Total Runs</th>
|
|
<!-- @foreach($score->metrics as $metric)
|
|
<th>{{$metric->name}}</th>
|
|
@endforeach -->
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
@foreach($score->participants as $participant)
|
|
<tr>
|
|
<td><a href="/competitionreport/contestteammailer?domain=team4&id={{$score->id}}&team={{$participant->team->id}}" class="btn btn-info btn-xs rounded-pill mb-1">Team Emailer</a></td>
|
|
<td><h2>{{$participant->rank}}</h2></td>
|
|
<td style="width: 36px;">
|
|
<img src="{{$participant->team->image}}" alt="contact-img" title="contact-img" class="avatar-md" />
|
|
</td>
|
|
<td><h5 class="m-0 fw-normal">{{$participant->team->name}}</h5></td>
|
|
<td>{{ number_format((float)$participant->avg_score, 2, '.', '') }}</td>
|
|
<td>{{ $participant->users_count }}</td>
|
|
<td>{{ $participant->score }}</td>
|
|
<!-- @foreach($score->metrics as $metric)
|
|
<td>{{ isset($participant->{$metric->id}) ? $participant->{$metric->id} : 0 }}</td>
|
|
@endforeach -->
|
|
</tr>
|
|
@endforeach
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
@endforeach
|
|
</div>
|
|
</div>
|
|
</div>
|