%PDF- %PDF-
Direktori : /home/nginx/.vscode-server/data/User/History/44ac1317/ |
Current File : //home/nginx/.vscode-server/data/User/History/44ac1317/IOlq.php |
<html> <head> <title></title> </head> <body> <!-- @php print_r($divisions) @endphp --> <h1>{{ $name }} - {{ $date->format("d.m.Y") }}</h1> <div> @foreach($divisions as $division) @if($division->name == "All") @continue @endif <h2>{{ __("contest." . $division->name) }}</h2> <table style="border: 1px solid black; width: 100%;"> <thead> <tr> <td rowspan="2"><span class="fa-solid fa-trophy"></span></td> <td rowspan="2">{{ __("Name") }}</td> <td rowspan="2">{{ __("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;"> <span style="cursor:pointer">Stage {{ $i }}</span> </td> <td style="width: 10px;"></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;"><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;">T{{ $j }}</td> @endfor @endif <td class="{{ $resOddEven }} {{ $stageDetailClass }}" style="text-align: center; font-weight: bold;">PP</td> <td class="{{ $resOddEven }} {{ $stageDetailClass }}" style="text-align: center; font-weight: bold;">A</td> <td class="{{ $resOddEven }} {{ $stageDetailClass }}" style="text-align: center; font-weight: bold;">C</td> <td class="{{ $resOddEven }} {{ $stageDetailClass }}" style="text-align: center; font-weight: bold;">D</td> <td class="{{ $resOddEven }} {{ $stageDetailClass }}" style="text-align: center; font-weight: bold;">M-T</td> <td class="{{ $resOddEven }} {{ $stageDetailClass }}" style="text-align: center; font-weight: bold;">M-P</td> <td class="{{ $resOddEven }} {{ $stageDetailClass }}" style="text-align: center; font-weight: bold;">N-T</td> <td class="{{ $resOddEven }} {{ $stageDetailClass }}" style="text-align: center; font-weight: bold;">proc</td> <td class="{{ $resOddEven }} {{ $stageDetailClass }}" style="text-align: center; font-weight: bold;"><span class="fa-solid fa-stopwatch"></span></td> <td class="{{ $resOddEven }} {{ $stageDetailClass }}" style="text-align: center; font-weight: bold;">%</td> <td style="width: 10px;"></td> @endfor </tr> </thead> <tbody> @foreach($division->shooters as $sh) <tr> <td>{{ !$sh->notcomp ? $loop->iteration : __("NC") }}</td> <td>{{ $sh->name }}</td> <td>{{ $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;">{{ $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;">{{ $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;"></td> @endfor </tr> @endforeach </tbody> </table> @endforeach </div> </body> </html>