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_82.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>PERSENTASE TEMPAT DAN FASILITAS UMUM(TFU) YANG DILAKUKAN PENGAWASAN SESUAI STANDAR 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="4" style="vertical-align: middle">Kecamatan</th>
                                        @role('Admin|superadmin')
                                        <th rowspan="4" style="vertical-align: middle">Puskesmas</th>
                                        @endrole
                                        @role('Puskesmas|Pihak Wajib Pajak')
                                        <th rowspan="4" style="vertical-align: middle">Desa</th>
                                        @endrole
                                        <th colspan="5">TFU TERDAFTAR</th>
                                        <th colspan="10">TFU YANG DILAKUKAN PENGAWASAN SESUAI STANDAR (IKL)</th>

                                    </tr>
                                    <tr>
                                        <th colspan="2" rowspan="1">SEKOLAH</th>
                                        <th rowspan="3" style="vertical-align: middle;">PUSKESMAS</th>
                                        <th rowspan="3" style="vertical-align: middle;">PASAR</th>
                                        <th rowspan="3" style="vertical-align: middle;">TOTAL</th>
                                        <th colspan="4">SARANA PENDIDIKAN</th>
                                        <th colspan="2" rowspan="2" style="vertical-align: middle;">PUSKESMAS</th>
                                        <th colspan="2" rowspan="2" style="vertical-align: middle;">PASAR</th>
                                        <th colspan="2" rowspan="2" style="vertical-align: middle;">TOTAL</th>
                                    </tr>
                                    <tr>
                                        <th rowspan="2" style="vertical-align: middle;">SD / MI</th>
                                        <th rowspan="2" style="vertical-align: middle;">SMP/ MTS</th>
                                        <th colspan="2">SD / MI</th>
                                        <th colspan="2">SMP/ MTS</th>
                                    </tr>
                                    <tr>
                                        <th>∑</th>
                                        <th>%</th>
                                        <th>∑</th>
                                        <th>%</th>
                                        <th>∑</th>
                                        <th>%</th>
                                        <th>∑</th>
                                        <th>%</th>
                                        <th>∑</th>
                                        <th>%</th>
                                    </tr>

                                </thead>
                                <tbody>
                                    @php
                                        $Grandsd = 0;
                                        $Grandsmp = 0;
                                        $Grandpuskesmas = 0;
                                        $Grandpasar = 0;
                                        $GrandTotal = 0;
                                        $Grandm_sd = 0;
                                        $Grandm_smp = 0;
                                        $Grandm_puskesmas = 0;
                                        $Grandm_pasar = 0;
                                        $GrandMTotal = 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
                                                    $sd = $item->unitKerjaAmbilPart2('filterTable82', Session::get('year'), 'sd')['total'];
                                                    $Grandsd += $sd;
                                                    echo $sd;
                                                @endphp
                                            </td>
                                            <td>
                                                @php
                                                    $smp = $item->unitKerjaAmbilPart2('filterTable82', Session::get('year'), 'smp')['total'];
                                                    $Grandsmp += $smp;
                                                    echo $smp;
                                                @endphp
                                            </td>
                                            <td>
                                                @php
                                                    $puskesmas = $item->unitKerjaAmbilPart2('filterTable82', Session::get('year'), 'puskesmas')['total'];
                                                    $Grandpuskesmas += $puskesmas;
                                                    echo $puskesmas;
                                                @endphp
                                            </td>
                                            <td>
                                                @php
                                                    $pasar = $item->unitKerjaAmbilPart2('filterTable82', Session::get('year'), 'pasar')['total'];
                                                    $Grandpasar += $pasar;
                                                    echo $pasar;
                                                @endphp
                                            </td>
                                            <td>
                                                @php
                                                    $totals = $sd + $smp + $puskesmas + $pasar;
                                                    $GrandTotal += $totals;
                                                @endphp
                                                {{ $totals }}
                                            </td>
                                            <td>
                                                @php
                                                    $m_sd = $item->unitKerjaAmbilPart2('filterTable82', Session::get('year'), 'm_sd')['total'];
                                                    $Grandm_sd += $m_sd;
                                                    echo $m_sd;
                                                @endphp
                                            </td>
                                            <td>
                                                {{ $sd>0?number_format(($m_sd / $sd) * 100, 2) . '%':0}}
                                            </td>
                                            <td>
                                                @php
                                                    $m_smp = $item->unitKerjaAmbilPart2('filterTable82', Session::get('year'), 'm_smp')['total'];
                                                    $Grandm_smp += $m_smp;
                                                    echo $m_smp;
                                                @endphp
                                            </td>
                                            <td>
                                                {{ $smp>0?number_format(($m_smp / $smp) * 100, 2) . '%':0}}
                                            </td>
                                            <td>
                                                @php
                                                    $m_puskesmas = $item->unitKerjaAmbilPart2('filterTable82', Session::get('year'), 'm_puskesmas')['total'];
                                                    $Grandm_puskesmas += $m_puskesmas;
                                                    echo $m_puskesmas;
                                                @endphp
                                            </td>
                                            <td>
                                                {{ $puskesmas>0?number_format(($m_puskesmas / $puskesmas) * 100, 2) . '%':0}}
                                            </td>
                                            <td>
                                                @php
                                                    $m_pasar = $item->unitKerjaAmbilPart2('filterTable82', Session::get('year'), 'm_pasar')['total'];
                                                    $Grandm_pasar += $m_pasar;
                                                    echo $m_pasar;
                                                @endphp
                                            </td>
                                            <td>
                                                {{ $pasar>0?number_format(($m_pasar / $pasar) * 100, 2) . '%':0}}
                                            </td>
                                            <td>
                                                @php
                                                    $total = $m_sd + $m_smp + $m_puskesmas + $m_pasar;
                                                    $GrandMTotal += $total;
                                                @endphp
                                                {{ $total }}
                                            </td>
                                            <td>
                                                {{$totals>0? number_format(($total / $totals) * 100, 2) . '%':0}}
                                            </td>
                                        </tr>
                                        @endforeach
                                    @endrole

                                    @role('Puskesmas|Pihak Wajib Pajak')
                                        @foreach ($desa as $key => $item)
                                            @if ($item->filterTable82(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
                                                            $sd = $item->filterTable82(Session::get('year'), $item->id)->sd;
                                                            $Grandsd += $sd;
                                                        @endphp
                                                        {{ $sd }}
                                                    </td>
                                                    <td>
                                                        @php
                                                            $smp = $item->filterTable82(Session::get('year'), $item->id)->smp;
                                                            $Grandsmp += $smp;
                                                        @endphp
                                                        {{ $smp }}
                                                    </td>
                                                    <td>
                                                        @php
                                                            $puskesmas = $item->filterTable82(Session::get('year'), $item->id)->puskesmas;
                                                            $Grandpuskesmas += $puskesmas;
                                                        @endphp
                                                        {{ $puskesmas }}
                                                    </td>
                                                    <td>
                                                        @php
                                                            $pasar = $item->filterTable82(Session::get('year'), $item->id)->pasar;
                                                            $Grandpasar += $pasar;
                                                        @endphp
                                                        {{ $pasar }}
                                                    </td>
                                                    <td id="total_{{ $item->filterTable82(Session::get('year'), $item->id)->id }}">
                                                        @php
                                                            $totals = $sd + $smp + $puskesmas + $pasar;
                                                            $GrandTotal += $totals;
                                                        @endphp
                                                        {{ $totals }}
                                                    </td>
                                                    <td>
                                                        @php
                                                            $m_sd = $item->filterTable82(Session::get('year'), $item->id)->m_sd;
                                                            $Grandm_sd += $m_sd;
                                                        @endphp
                                                        {{ $m_sd }}
                                                    </td>
                                                    <td id="persen_sd_{{ $item->filterTable82(Session::get('year'), $item->id)->id }}">
                                                        {{ $sd > 0 ? number_format(($m_sd / $sd) * 100, 2) . '%' : '0%' }}
                                                    </td>
                                                    <td>
                                                        @php
                                                            $m_smp = $item->filterTable82(Session::get('year'), $item->id)->m_smp;
                                                            $Grandm_smp += $m_smp;
                                                        @endphp
                                                        {{ $m_smp }}
                                                    </td>
                                                    <td id="persen_smp_{{ $item->filterTable82(Session::get('year'), $item->id)->id }}">
                                                        {{ $smp > 0 ? number_format(($m_smp / $smp) * 100, 2) . '%' : '0%' }}
                                                    </td>
                                                    <td>
                                                        @php
                                                            $m_puskesmas = $item->filterTable82(Session::get('year'), $item->id)->m_puskesmas;
                                                            $Grandm_puskesmas += $m_puskesmas;
                                                        @endphp
                                                        {{ $m_puskesmas }}
                                                    </td>
                                                    <td id="persen_puskesmas_{{ $item->filterTable82(Session::get('year'), $item->id)->id }}">
                                                        {{ $puskesmas > 0 ? number_format(($m_puskesmas / $puskesmas) * 100, 2) . '%' : '0%' }}
                                                    </td>
                                                    <td>
                                                        @php
                                                            $m_pasar = $item->filterTable82(Session::get('year'), $item->id)->m_pasar;
                                                            $Grandm_pasar += $m_pasar;
                                                        @endphp
                                                        {{ $m_pasar }}
                                                    </td>
                                                    
                                                    <td id="persen_pasar_{{ $item->filterTable82(Session::get('year'), $item->id)->id }}">
                                                        {{ $pasar>0?number_format(($m_pasar / $pasar) * 100, 2) . '%':0}}
                                                    </td>
                                                    <td id="jumlah_total_{{ $item->filterTable82(Session::get('year'), $item->id)->id }}">
                                                        @php
                                                            $total = $m_sd + $m_smp + $m_puskesmas + $m_pasar;
                                                            $GrandMTotal += $total;
                                                        @endphp
                                                        {{ $total }}
                                                    </td>
                                                    <td id="persen_total_{{ $item->filterTable82(Session::get('year'), $item->id)->id }}">
                                                        {{ $totals>0?number_format(($total / $totals) * 100, 2) . '%':0}}
                                                    </td>
                                                </tr>
                                            @endif
                                        @endforeach
                                    @endrole
                                    <tr>
                                        <th colspan="2">JUMLAH</th>
                                        <th id="Grandsd">{{$Grandsd }} </th>
                                        <th id="Grandsmp">{{$Grandsmp }} </th>
                                        <th id="Grandpuskesmas">{{$Grandpuskesmas }} </th>
                                        <th id="Grandpasar">{{$Grandpasar }} </th>
                                        <th id="GrandTotal">{{$GrandTotal }} </th>
                                        <th id="Grandm_sd">{{$Grandm_sd }} </th>
                                        <th id="PersenGrandm_sd">{{ $Grandsd>0?number_format(($Grandm_sd / $Grandsd) * 100, 2) . '%':0}}</th>
                                        <th id="Grandm_smp">{{$Grandm_smp }} </th>
                                        <th id="PersenGrandm_smp">{{ $Grandsmp>0?number_format(($Grandm_smp / $Grandsmp) * 100, 2) . '%':0}}</th>
                                        <th id="Grandm_puskesmas">{{$Grandm_puskesmas }} </th>
                                        <th id="PersenGrandm_puskesmas">{{ $Grandpuskesmas>0?number_format(($Grandm_puskesmas / $Grandpuskesmas) * 100, 2) . '%':0}}</th>
                                        <th id="Grandm_pasar">{{$Grandm_pasar }}</th>
                                        <th id="PersenGrandm_pasar">{{$Grandpasar>0? number_format(($Grandm_pasar / $Grandpasar) * 100, 2) . '%':0}}</th>
                                        <th id="GrandMTotal">{{$GrandMTotal  }}</th>
                                        <th id="PersenGrandMTotal">{{ $GrandTotal>0?number_format(($GrandMTotal / $GrandTotal) * 100, 2) . '%':0}}</th>
                                    </tr>
                                </tbody>
                            </table>

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