64 lines
3.3 KiB
PHP
64 lines
3.3 KiB
PHP
@extends('layouts.vertical', ["page_title"=> "Add & Edit Products"])
|
|
|
|
@section('css')
|
|
<!-- third party css -->
|
|
|
|
<!-- third party css end -->
|
|
@endsection
|
|
|
|
@section('content')
|
|
<!-- Start Content-->
|
|
<div class="container-fluid">
|
|
<div class="card">
|
|
<div class="card-body">
|
|
<div class="row">
|
|
<div class="col-12">
|
|
<div class="card border-primary border mb-3" id="compatition_dashboard_{{$competition->id}}">
|
|
<div class="card-body">
|
|
<h4 class="card-title text-primary">{{$competition->title}} dfgdgdfgdfgdfgdfgfd</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>Rank</th>
|
|
<th colspan="2">Team Name</th>
|
|
<th>Avg Runs</th>
|
|
<th>TM Count</th>
|
|
<th>Total Runs</th>
|
|
@foreach($competition->metrics as $metric)
|
|
<th>{{$metric->name}}</th>
|
|
@endforeach
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
@foreach($competition->participants as $participant)
|
|
<tr>
|
|
<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>{{ is_object($participant->score) ? '-' : $participant->score }}</td>
|
|
@foreach($competition->metrics as $metric)
|
|
<td>{{ isset($participant->{$metric->id}) ? $participant->{$metric->id} : 0 }}</td>
|
|
@endforeach
|
|
</tr>
|
|
@endforeach
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
@endsection
|
|
|
|
@section('script')
|
|
|
|
@endsection |