%PDF- %PDF-
Direktori : /www/loslex/test/resources/views/contests/results/ |
Current File : //www/loslex/test/resources/views/contests/results/ceremonies.blade.php |
<html> <head> <title>{{ $name }} - {{ $date->format("d.m.Y") }}</title> </head> @php $fontSize = 9; @endphp <body style="font-family: DejaVu Sans, sans-serif;"> <h1 style="font-size: {{ floor($fontSize * 2) }}pt; margin-bottom: 8px;">{{ $name }} - {{ $date->format("d.m.Y") }}</h1> <div style="overflow: visible;"> @php $j = 0; @endphp @foreach($divisions as $division) @php $i = 1; $total = count($division->shooters); if($total < 4) continue; // Only show divisions which would be awarded @endphp <h2 style="margin-bottom: 4px; font-size: {{ floor($fontSize * 1.5) }}pt;">{{ __("contest." . $division->name) }}</h2> <h3 style="margin: 4px 0px 4px 0px; font-size: {{ floor($fontSize * 1.2) }}pt;">{{ __("Total shooters: :total", ['total' => count($division->shooters)]) }}</h3> @foreach($division->shooters as $sh) @if($i > 3) @break @endif <p style="margin: 2px 0px 2px 0px; font-size: {{ floor($fontSize) }}pt;">{{ $i++ }}. {{ $sh->name }} - {{ $sh->percent }}%</p> @endforeach @endforeach </div> </body> </html>