%PDF- %PDF-
| Direktori : /www/loslex/demo/resources/views/contests/results/ |
| Current File : /www/loslex/demo/resources/views/contests/results/overview-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%;">
@foreach($divisions as $division)
<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;">
@for($i = 1; $i <= $numStages; $i++)
<th style="text-align: center; display: table-cell; font-weight: bold; border: 1px solid black;">Stage {{ $i }}</th>
@endfor
</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 }}">{{ number_format($sh->stages[$i]->stage_percent, 2) }}%</td>
@endfor
</tr>
@endforeach
</tbody>
</table>
</td>
@endforeach
</table>
</div>
</body>
</html>