%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /www/loslex/demo/resources/views/contests/results/
Upload File :
Create Path :
Current File : /www/loslex/demo/resources/views/contests/results/detail-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 }}">&nbsp;</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>
            @for($i = 1; $i <= $numStages; $i++)
            <td>
                <table style="width: 100%; border-collapse: collapse;">
                    <thead>
                        <tr style="font-size: {{ $fontSize }}pt;">
                            <td colspan="{{ $stages[$i]->span }}" style="text-align: center; display: table-cell; font-weight: bold; border: 1px solid black;">Stage {{ $i }}</td>
                        </tr>
                        <tr style="font-size: {{ $fontSize }}pt;">
                            <td style="text-align: center; font-weight: bold; border: 1px solid black; {{ $padding }}">T</td>
                            @if($stages[$i]->strings > 1)
                                @for($j = 1; $j <= $stages[$i]->strings; $j++)
                                    <td style="text-align: center; font-weight: bold; border: 1px solid black; {{ $padding }}">T{{ $j }}</td>
                                @endfor
                            @endif
                            <td style="text-align: center; font-weight: bold; border: 1px solid black; {{ $padding }}">PP</td>
                            <td style="text-align: center; font-weight: bold; border: 1px solid black; {{ $padding }}">A</td>
                            <td style="text-align: center; font-weight: bold; border: 1px solid black; {{ $padding }}">C</td>
                            <td style="text-align: center; font-weight: bold; border: 1px solid black; {{ $padding }}">D</td>
                            <td style="text-align: center; font-weight: bold; border: 1px solid black; {{ $padding }}">M-T</td>
                            <td style="text-align: center; font-weight: bold; border: 1px solid black; {{ $padding }}">M-P</td>
                            <td style="text-align: center; font-weight: bold; border: 1px solid black; {{ $padding }}">N-T</td>
                            <td style="text-align: center; font-weight: bold; border: 1px solid black; {{ $padding }}">proc</td>
                            <td style="text-align: center; font-weight: bold; border: 1px solid black; {{ $padding }}">{{ __('Time') }}</td>
                            <td style="text-align: center; font-weight: bold; border: 1px solid black; {{ $padding }}">%</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="text-align: center; border: 1px solid black; {{ $padding }}">{{ $sh->stages[$i]->time }}</td>
                                @if($stages[$i]->strings > 1)
                                    @for($j = 1; $j <= $stages[$i]->strings; $j++)
                                        <td style="text-align: center; border: 1px solid black; {{ $padding }}">{{ (isset($sh->stageStrings[$i][$j]) ? $sh->stageStrings[$i][$j] : "0.00") }}</td>
                                    @endfor
                                @endif
                                <td style="text-align: center; border: 1px solid black; {{ $padding }}">{{ $sh->stages[$i]->popper }}</td>
                                <td style="text-align: center; border: 1px solid black; {{ $padding }}">{{ $sh->stages[$i]->alpha }}</td>
                                <td style="text-align: center; border: 1px solid black; {{ $padding }}">{{ $sh->stages[$i]->charlie }}</td>
                                <td style="text-align: center; border: 1px solid black; {{ $padding }}">{{ $sh->stages[$i]->delta }}</td>
                                <td style="text-align: center; border: 1px solid black; {{ $padding }}">{{ $sh->stages[$i]->miss }}</td>
                                <td style="text-align: center; border: 1px solid black; {{ $padding }}">{{ $sh->stages[$i]->misspopper }}</td>
                                <td style="text-align: center; border: 1px solid black; {{ $padding }}">{{ $sh->stages[$i]->noshoot }}</td>
                                <td style="text-align: center; border: 1px solid black; {{ $padding }}">{{ $sh->stages[$i]->proc }}</td>
                                <td style="text-align: center; border: 1px solid black; {{ $padding }}">{{ $sh->stages[$i]->total_time }}</td>
                                <td style="text-align: center; border: 1px solid black; {{ $padding }}">{{ number_format($sh->stages[$i]->stage_percent, 2) }}</td>
                            </tr>
                        @endforeach
                    </tbody>
                </table>
            </td>
            @endfor
    @endforeach
    </table>
    </div>
</body>
</html>

Zerion Mini Shell 1.0