Anons79 Mini Shell

Directory : /home/aplikasiposinfo/www/dinkes.aplikasipos.info/resources/views/export/
Upload File :
Current File : /home/aplikasiposinfo/www/dinkes.aplikasipos.info/resources/views/export/table_85.blade.php

<table id="data" class="table table-bordered dt-responsive"
style="border-collapse: collapse; border-spacing: 0; width: 100%;">
<thead class="text-center">
    <tr>
        <th>KKASUS COVID-19 BERDASARKAN JENIS KELAMIN DAN KELOMPOK UMUR MENURUT KECAMATAN DAN PUSKESMAS</th>
    </tr>
    <tr>
        <th>Kabupaten/Kota Kutai Timur</th>
    </tr>
    <tr>
        <th>Tahun {{Session::get('year')}}</th>
    </tr>
    <tr>
        <th rowspan="2" style="vertical-align: middle">Kecamatan</th>
        @role('Admin|superadmin')
        <th rowspan="2" style="vertical-align: middle">Puskesmas</th>
        @endrole
        @role('Puskesmas|Pihak Wajib Pajak')
        <th rowspan="2" style="vertical-align: middle">Desa</th>
        @endrole
        <th colspan="2">0-4 TAHUN</th>
        <th colspan="2">5-6 TAHUN</th>
        <th colspan="2">7-14 TAHUN</th>
        <th colspan="2">15-59 TAHUN</th>
        <th colspan="2">≥ 60 TAHUN</th>
        <th colspan="2">TOTAL</th>
    </tr>
    <tr>
        <th>L</th>
        <th>P</th>
        <th>L</th>
        <th>P</th>
        <th>L</th>
        <th>P</th>
        <th>L</th>
        <th>P</th>
        <th>L</th>
        <th>P</th>
        <th>L</th>
        <th>P</th>
    </tr>
</thead>
<tbody>
    @php
        $Grand_l_0_4 = 0;
        $Grand_p_0_4 = 0;
        $Grand_l_5_6 = 0;
        $Grand_p_5_6 = 0;
        $Grand_l_7_14 = 0;
        $Grand_p_7_14 = 0;
        $Grand_l_15_59 = 0;
        $Grand_p_15_59 = 0;
        $Grand_l_60_up = 0;
        $Grand_p_60_up = 0;
        $Grand_l_total = 0;
        $Grand_p_total = 0;
    @endphp
    @role('Admin|superadmin')

        @foreach ($unit_kerja as $key => $item)
        <tr style='{{ $key % 2 == 0 ? 'background: #e9e9e9' : '' }}'>
            <td>{{ $item->kecamatan }}</td>
            <td class="unit_kerja">{{ $item->nama }}</td>
            <td>
                @php
                    $l_0_4 = $item->unitKerjaAmbilPart2('filterTable85', Session::get('year'), 'l_0_4')['total'];
                    $Grand_l_0_4 += $l_0_4;

                    echo $l_0_4;
                @endphp
            </td>
            <td>
                @php
                    $p_0_4 = $item->unitKerjaAmbilPart2('filterTable85', Session::get('year'), 'p_0_4')['total'];
                    $Grand_p_0_4 += $p_0_4;

                    echo $p_0_4;
                @endphp
            </td>
            <td>
                @php
                    $l_5_6 = $item->unitKerjaAmbilPart2('filterTable85', Session::get('year'), 'l_5_6')['total'];
                    $Grand_l_5_6 += $l_5_6;

                    echo $l_5_6;
                @endphp
            </td>
            <td>
                @php
                    $p_5_6 = $item->unitKerjaAmbilPart2('filterTable85', Session::get('year'), 'p_5_6')['total'];
                    $Grand_p_5_6 += $p_5_6;

                    echo $p_5_6;
                @endphp
            </td>
            <td>
                @php
                    $l_7_14 = $item->unitKerjaAmbilPart2('filterTable85', Session::get('year'), 'l_7_14')['total'];
                    $Grand_l_7_14 += $l_7_14;

                    echo $l_7_14;
                @endphp
            </td>
            <td>
                @php
                    $p_7_14 = $item->unitKerjaAmbilPart2('filterTable85', Session::get('year'), 'p_7_14')['total'];
                    $Grand_p_7_14 += $p_7_14;

                    echo $p_7_14;
                @endphp
            </td>
            <td>
                @php
                    $l_15_59 = $item->unitKerjaAmbilPart2('filterTable85', Session::get('year'), 'l_15_59')['total'];
                    $Grand_l_15_59 += $l_15_59;
                    echo $l_15_59;
                @endphp
            </td>
            <td>
                @php
                    $p_15_59 = $item->unitKerjaAmbilPart2('filterTable85', Session::get('year'), 'p_15_59')['total'];
                    $Grand_p_15_59 += $p_15_59;
                    echo $p_15_59;
                @endphp
            </td>
            <td>
                @php
                    $l_60_up = $item->unitKerjaAmbilPart2('filterTable85', Session::get('year'), 'l_60_up')['total'];
                    $Grand_l_60_up += $l_60_up;
                    echo $l_60_up;
                @endphp
            </td>
            <td>
                @php
                    $p_60_up = $item->unitKerjaAmbilPart2('filterTable85', Session::get('year'), 'p_60_up')['total'];
                    $Grand_p_60_up += $p_60_up;
                    echo $p_60_up;
                @endphp
            </td>
            <td>
                @php
                    $l_total = $l_0_4 + $l_5_6 + $l_7_14 + $l_15_59 + $l_60_up;
                    $Grand_l_total += $l_total;
                    echo $l_total;
                @endphp
            </td>
            <td>
                @php
                    $p_total = $p_0_4 + $p_5_6 + $p_7_14 + $p_15_59 + $p_60_up;
                    $Grand_p_total += $p_total;
                    echo $p_total;
                @endphp
            </td>
        </tr>
        @endforeach
    @endrole
    @role('Puskesmas|Pihak Wajib Pajak')
        @foreach ($desa as $key => $item)
            @if ($item->filterTable85(Session::get('year'), $item->id))
                <tr style='{{ $key % 2 == 0 ? 'background: #e9e9e9' : '' }}'>
                    <td>{{ $item->UnitKerja->kecamatan }}</td>
                    <td class="unit_kerja">{{ $item->nama }}</td>
                    <td>
                        @php
                            $l_0_4 = $item
                                ->filterTable85(
                                    Session::get('year'),
                                    $item->id,
                                )
                                ->l_0_4;
                            $Grand_l_0_4 += $l_0_4;
                        @endphp
                        {{ $l_0_4 }}
                    </td>
                    <td>
                        @php
                            $p_0_4 = $item
                                ->filterTable85(
                                    Session::get('year'),
                                    $item->id,
                                )
                                ->p_0_4;
                            $Grand_p_0_4 += $p_0_4;
                        @endphp
                        {{ $p_0_4 }}
                    </td>
                    <td>
                        @php
                            $l_5_6 = $item
                                ->filterTable85(
                                    Session::get('year'),
                                    $item->id,
                                )
                                ->l_5_6;
                            $Grand_l_5_6 += $l_5_6;
                        @endphp
                        {{ $l_5_6 }}
                    </td>
                    <td>
                        @php
                            $p_5_6 = $item
                                ->filterTable85(
                                    Session::get('year'),
                                    $item->id,
                                )
                                ->p_5_6;
                            $Grand_p_5_6 += $p_5_6;
                        @endphp
                        {{ $p_5_6 }}
                    </td>
                    <td>
                        @php
                            $l_7_14 = $item
                                ->filterTable85(
                                    Session::get('year'),
                                    $item->id,
                                )
                                ->l_7_14;
                            $Grand_l_7_14 += $l_7_14;
                        @endphp
                        {{ $l_7_14 }}
                    </td>
                    <td>
                        @php
                            $p_7_14 = $item
                                ->filterTable85(
                                    Session::get('year'),
                                    $item->id,
                                )
                                ->p_7_14;
                            $Grand_p_7_14 += $p_7_14;
                        @endphp
                        {{ $p_7_14 }}
                    </td>
                    <td>
                        @php
                            $l_15_59 = $item
                                ->filterTable85(
                                    Session::get('year'),
                                    $item->id,
                                )
                                ->l_15_59;
                            $Grand_l_15_59 += $l_15_59;
                        @endphp
                        {{ $l_15_59 }}
                    </td>
                    <td>
                        @php
                            $p_15_59 = $item
                                ->filterTable85(
                                    Session::get('year'),
                                    $item->id,
                                )
                                ->p_15_59;
                            $Grand_p_15_59 += $p_15_59;
                        @endphp
                        {{ $p_15_59 }}
                    </td>
                    <td>
                        @php
                            $l_60_up = $item
                                ->filterTable85(
                                    Session::get('year'),
                                    $item->id,
                                )
                                ->l_60_up;
                            $Grand_l_60_up += $l_60_up;
                        @endphp
                        {{ $l_60_up }}
                    </td>
                    <td>
                        @php
                            $p_60_up = $item
                                ->filterTable85(
                                    Session::get('year'),
                                    $item->id,
                                )
                                ->p_60_up;
                            $Grand_p_60_up += $p_60_up;
                        @endphp
                        {{ $p_60_up }}
                    </td>
                    
                    <td id="l_total_{{ $item->filterTable85(Session::get('year'), $item->id)->id }}">
                        @php
                            $l_total = $l_0_4 + $l_5_6 + $l_7_14 + $l_15_59 + $l_60_up;
                            $Grand_l_total += $l_total;
                            echo $l_total;
                        @endphp
                    </td>
                    <td id="p_total_{{ $item->filterTable85(Session::get('year'), $item->id)->id }}">
                        @php
                            $p_total = $p_0_4 + $p_5_6 + $p_7_14 + $p_15_59 + $p_60_up;
                            $Grand_p_total += $p_total;
                            echo $p_total;
                        @endphp
                    </td>
                </tr>
            @endif
        @endforeach
    @endrole

    <tr>
        <th colspan="2">Jumlah</th>
        <th id="Grand_l_0_4">{{ $Grand_l_0_4 }} </th>
        <th id="Grand_p_0_4">{{ $Grand_p_0_4 }} </th>
        <th id="Grand_l_5_6">{{ $Grand_l_5_6 }} </th>
        <th id="Grand_p_5_6">{{ $Grand_p_5_6 }} </th>
        <th id="Grand_l_7_14">{{ $Grand_l_7_14 }} </th>
        <th id="Grand_p_7_14">{{ $Grand_p_7_14 }} </th>
        <th id="Grand_l_15_59">{{ $Grand_l_15_59 }} </th>
        <th id="Grand_p_15_59">{{ $Grand_p_15_59 }} </th>
        <th id="Grand_l_60_up">{{ $Grand_l_60_up }} </th>
        <th id="Grand_p_60_up">{{ $Grand_p_60_up }} </th>
        <th id="Grand_l_total">{{ $Grand_l_total }} </th>
        <th id="Grand_p_total">{{ $Grand_p_total }} </th>
    </tr>
</tbody>
</table>

Anons79 File Manager Version 1.0, Coded By Anons79
Email: [email protected]