%PDF- %PDF-
| Direktori : /www/loslex_o/demo/resources/views/contests/results/ |
| Current File : /www/loslex_o/demo/resources/views/contests/results/szclassification-print.blade.php |
<html>
<head>
<title>{{ $name }} - {{ $date->format("d.m.Y") }}</title>
</head>
@php
$padding = "padding-left: 4pt; padding-right: 4pt;";
$fontSize = 8;
@endphp
<body style="font-family: DejaVu Sans, sans-serif;">
<h1 style="font-size: {{ floor($fontSize * 2) }}pt">{{ $name }} - {{ $date->format("d.m.Y") }}</h1>
<div style="overflow: visible;">
<table style="width: 100%;">
@php
$division = $divisions['All'];
@endphp
<tr>
<td colspan="{{ ($numStages + 1) }}" style="font-weight: bold; font-size: {{ floor($fontSize * 1.5) }}pt;">{{ __("contest." . $division->name) }}</td>
</tr>
<tr>
<td>
<table style="width: 100%; border-collapse: collapse;">
<thead>
<tr style="line-height: {{ $fontSize * 2 + 5 }}pt; font-size: {{ $fontSize }}pt;">
<td style="border: 1px solid black; font-weight: bold; {{ $padding }}"> </td>
<td style="border: 1px solid black; font-weight: bold; {{ $padding }}">{{ __("Name") }}</td>
@if($division->name == "All")<td style="border: 1px solid black; font-weight: bold; {{ $padding }}">{{ __("Division") }}</td>@endif
<td style="border: 1px solid black; font-weight: bold; {{ $padding }}">{{ __("Total %") }}</td>
</tr>
</thead>
<tbody>
@foreach($division->shooters as $sh)
@php
$rowbg = $loop->iteration % 2 ? "#ffffff" : "#e6e6e6";
@endphp
<tr style="background-color: {{ $rowbg }}; font-size: {{ $fontSize }}pt;">
<td style="border: 1px solid black; {{ $padding }}">{{ !($sh->notcomp || $sh->dq) ? $loop->iteration : ($sh->dq ? __("DQ") : __("NC")) }}</td>
<td style="border: 1px solid black; {{ $padding }}">{{ $sh->name }}</td>
@if($division->name == "All")<td style="border: 1px solid black; {{ $padding }}">{{ $sh->origDivision }}</td>@endif
<td style="border: 1px solid black; {{ $padding }}">{{ $sh->percent }}%</td>
</tr>
@endforeach
</tbody>
</table>
</td>
<td>
<table style="width: 100%; border-collapse: collapse;">
<thead>
<tr style="font-size: {{ $fontSize }}pt; line-height: {{ $fontSize * 2 + 5 }}pt;">
<th style="text-align: center; display: table-cell; font-weight: bold; border: 1px solid black;">{{ __("Time") }}</th>
<th style="text-align: center; display: table-cell; font-weight: bold; border: 1px solid black;">{{ __("Hit") }}</th>
<th style="text-align: center; display: table-cell; font-weight: bold; border: 1px solid black;">{{ __("Miss") }}</th>
<th style="text-align: center; display: table-cell; font-weight: bold; border: 1px solid black;">{{ __("Proc") }}</th>
<th style="text-align: center; display: table-cell; font-weight: bold; border: 1px solid black;">{{ __("N-S") }}</th>
<th style="text-align: center; display: table-cell; font-weight: bold; border: 1px solid black;">{{ __("Total time") }}</th>
<th style="text-align: center; display: table-cell; font-weight: bold; border: 1px solid black;">{{ __("Result") }}</th>
</tr>
</thead>
<tbody>
@foreach($division->shooters as $sh)
@php
$rowbg = $loop->iteration % 2 ? "#ffffff" : "#e6e6e6";
@endphp
<tr style="background-color: {{ $rowbg }}; font-size: {{ $fontSize }}pt;">
@for($i = 1; $i <= $numStages; $i++)
<td style="text-align: center; border: 1px solid black; {{ $padding }}">{{ $sh->stages[1]->time }}</td>
<td style="text-align: center; border: 1px solid black; {{ $padding }}">{{ ($sh->stages[1]->alpha + $sh->stages[1]->charlie + $sh->stages[1]->delta + $sh->stages[1]->popper) }}</td>
<td style="text-align: center; border: 1px solid black; {{ $padding }}">{{ ($sh->stages[1]->miss + $sh->stages[1]->misspopper) }}</td>
<td style="text-align: center; border: 1px solid black; {{ $padding }}">{{ $sh->stages[1]->proc }}</td>
<td style="text-align: center; border: 1px solid black; {{ $padding }}">{{ $sh->stages[1]->noshoot }}</td>
<td style="text-align: center; border: 1px solid black; {{ $padding }}">{{ $sh->stages[1]->total_time }}</td>
<td style="text-align: center; border: 1px solid black; {{ $padding }}">{{ ($sh->stages[1]->total_time < 40.0 && $sh->stages[1]->noshoot == 0) ? __("Pass") : __("Fail") }}</td>
@endfor
</tr>
@endforeach
</tbody>
</table>
</td>
</table>
</div>
</body>
</html>