%PDF- %PDF-
Direktori : /home/nginx/.vscode-server/data/User/History/44ac1317/ |
Current File : //home/nginx/.vscode-server/data/User/History/44ac1317/Jxz6.php |
<html> <head> <title></title> </head> <body style="font-family: DejaVu Sans, sans-serif;"> <h1>{{ $name }} - {{ $date->format("d.m.Y") }}</h1> <div style="overflow: visible;"> @foreach($divisions as $division) @if($division->name == "All") @continue @endif <h2>{{ __("contest." . $division->name) }}</h2> <table style="width: 100%; border-collapse: collapse;"> <thead> <tr> <td rowspan="2" style="border: 1px solid black;"><span class="fa-solid fa-trophy"></span></td> <td rowspan="2" style="border: 1px solid black;">{{ __("Name") }}</td> <td rowspan="2" style="border: 1px solid black;">{{ __("Total %") }}</td> @for($i = 1; $i <= $numStages; $i++) @php $stageDetailClass = "stage-detail-{$stages[$i]->id}"; $resOddEven = ($i % 2 == 0) ? "result-even" : "result-odd"; @endphp <td colspan="{{ $stages[$i]->span }}" class="{{ $stageDetailClass }} {{ $resOddEven }}" style="text-align: center; display: table-cell; font-weight: bold; border: 1px solid black;"> <span style="cursor:pointer">Stage {{ $i }}</span> </td> <td style="width: 10px; border: none;"></td> @endfor </tr> <tr> @for($i = 1; $i <= $numStages; $i++) @php $stageDetailClass = "stage-detail-{$stages[$i]->id}"; $resOddEven = ($i % 2 == 0) ? "result-even" : "result-odd"; @endphp <td class="{{ $resOddEven }} {{ $stageDetailClass }}" style="text-align: center; font-weight: bold; border: 1px solid black;"><span class="fa-solid fa-stopwatch"></span></td> @if($stages[$i]->strings > 1) @for($j = 1; $j <= $stages[$i]->strings; $j++) <td class="{{ $resOddEven }} {{ $stageDetailClass }}" style="text-align: center; font-weight: bold; border: 1px solid black;">T{{ $j }}</td> @endfor @endif <td class="{{ $resOddEven }} {{ $stageDetailClass }}" style="text-align: center; font-weight: bold; border: 1px solid black;">PP</td> <td class="{{ $resOddEven }} {{ $stageDetailClass }}" style="text-align: center; font-weight: bold; border: 1px solid black;">A</td> <td class="{{ $resOddEven }} {{ $stageDetailClass }}" style="text-align: center; font-weight: bold; border: 1px solid black;">C</td> <td class="{{ $resOddEven }} {{ $stageDetailClass }}" style="text-align: center; font-weight: bold; border: 1px solid black;">D</td> <td class="{{ $resOddEven }} {{ $stageDetailClass }}" style="text-align: center; font-weight: bold; border: 1px solid black;">M-T</td> <td class="{{ $resOddEven }} {{ $stageDetailClass }}" style="text-align: center; font-weight: bold; border: 1px solid black;">M-P</td> <td class="{{ $resOddEven }} {{ $stageDetailClass }}" style="text-align: center; font-weight: bold; border: 1px solid black;">N-T</td> <td class="{{ $resOddEven }} {{ $stageDetailClass }}" style="text-align: center; font-weight: bold; border: 1px solid black;">proc</td> <td class="{{ $resOddEven }} {{ $stageDetailClass }}" style="text-align: center; font-weight: bold; border: 1px solid black;"><span class="fa-solid fa-stopwatch"></span></td> <td class="{{ $resOddEven }} {{ $stageDetailClass }}" style="text-align: center; font-weight: bold; border: 1px solid black;">%</td> <td style="width: 10px; border: none;"></td> @endfor </tr> </thead> <tbody> @foreach($division->shooters as $sh) @php $rowbg = $loop->iteration % 2 ? "#ffffff" : "#e6e6e6"; @endphp <tr style="background-color: {{ $rowbg }};"> <td style="border: 1px solid black;">{{ !$sh->notcomp ? $loop->iteration : __("NC") }}</td> <td style="border: 1px solid black;">{{ $sh->name }}</td> <td style="border: 1px solid black;">{{ $sh->percent }}%</td> @for($i = 1; $i <= $numStages; $i++) @php $stageDetailClass = "stage-detail-{$stages[$i]->id}"; $resOddEven = ($i % 2) ? "result-odd" : "result-even"; @endphp <td class="{{ $resOddEven }} {{ $stageDetailClass }}" style="text-align: center; border: 1px solid black;">{{ $sh->stages[$i]->time }}</td> @if($stages[$i]->strings > 1) @for($j = 1; $j <= $stages[$i]->strings; $j++) <td class="{{ $resOddEven }} {{ $stageDetailClass }}" style="text-align: center; border: 1px solid black;">{{ $sh->stageStrings[$i][$j] }}</td> @endfor @endif <td class="{{ $resOddEven }} {{ $stageDetailClass }}" style="text-align: center; border: 1px solid black;">{{ $sh->stages[$i]->popper }}</td> <td class="{{ $resOddEven }} {{ $stageDetailClass }}" style="text-align: center; border: 1px solid black;">{{ $sh->stages[$i]->alpha }}</td> <td class="{{ $resOddEven }} {{ $stageDetailClass }}" style="text-align: center; border: 1px solid black;">{{ $sh->stages[$i]->charlie }}</td> <td class="{{ $resOddEven }} {{ $stageDetailClass }}" style="text-align: center; border: 1px solid black;">{{ $sh->stages[$i]->delta }}</td> <td class="{{ $resOddEven }} {{ $stageDetailClass }}" style="text-align: center; border: 1px solid black;">{{ $sh->stages[$i]->miss }}</td> <td class="{{ $resOddEven }} {{ $stageDetailClass }}" style="text-align: center; border: 1px solid black;">{{ $sh->stages[$i]->misspopper }}</td> <td class="{{ $resOddEven }} {{ $stageDetailClass }}" style="text-align: center; border: 1px solid black;">{{ $sh->stages[$i]->noshoot }}</td> <td class="{{ $resOddEven }} {{ $stageDetailClass }}" style="text-align: center; border: 1px solid black;">{{ $sh->stages[$i]->proc }}</td> <td class="{{ $resOddEven }} {{ $stageDetailClass }}" style="text-align: center; border: 1px solid black;">{{ $sh->stages[$i]->total_time }}</td> <td class="{{ $resOddEven }} {{ $stageDetailClass }}" style="text-align: center; border: 1px solid black;">{{ number_format($sh->stages[$i]->stage_percent, 2) }}</td> <td style="width: 10px; border: none; background-color: #ffffff;"></td> @endfor </tr> @endforeach </tbody> </table> @endforeach </div> </body> </html>