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_73.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>KESAKITAN DAN KEMATIAN AKIBAT MALARIA MENURUT JENIS KELAMIN, KECAMATAN, DAN PUSKESMAS</th>
                                    </tr>
                                    <tr>
                                        <th>Kabupaten/Kota Kutai Timur</th>
                                    </tr>
                                    <tr>
                                        <th>Tahun {{Session::get('year')}}</th>
                                    </tr>
                                    <tr>
                                        <th rowspan="3" style="vertical-align: middle">Kecamatan</th>
                                        @role('Admin|superadmin')
                                        <th rowspan="3" style="vertical-align: middle">Puskesmas</th>
                                        @endrole
                                        @role('Puskesmas|Pihak Wajib Pajak')
                                        <th rowspan="3" style="vertical-align: middle">Desa</th>
                                        @endrole
                                        <th colspan="16">MALARIA</th>
                                    </tr>
                                    <tr>
                                        <th rowspan="2">SUSPEK</th>
                                        <th colspan="3">KONFIRMASI LABORATORIUM</th>
                                        <th rowspan="2">% KONFIRMASI LABORATORIUM</th>
                                        <th colspan="3">POSITIF</th>
                                        <th rowspan="2">PENGOBATAN STANDAR</th>
                                        <th rowspan="2">% PENGOBATAN STANDAR</th>
                                        <th colspan="3">MENINGGAL</th>
                                        <th colspan="3">CFR	</th>
                                    </tr>
                                    <tr>
                                        <th>MIKROSKOPIS</th>
                                        <th>RAPID DIAGNOSTIC TEST (RDT)</th>
                                        <th>TOTAL</th>
                                        <th>L</th>
                                        <th>P</th>
                                        <th>L + P</th>
                                        <th>L</th>
                                        <th>P</th>
                                        <th>L + P</th>
                                        <th>L</th>
                                        <th>P</th>
                                        <th>L + P</th>
                                    </tr>
                                </thead>
                                <tbody>
                                    @php
                                        $Grandsuspek = 0;
                                        $Grandmikroskopis = 0;
                                        $Grandrapid = 0;
                                        $Grandtotal = 0;
                                        $Grandl_positif = 0;
                                        $Grandp_positif = 0;
                                        $Grandlp_positif = 0;
                                        $Grandpengobatan_standar = 0;
                                        $Grandl_meninggal = 0;
                                        $Grandp_meninggal = 0;
                                        $Grandlp_meninggal = 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
                                                    $suspek = $item->unitKerjaAmbilPart2('filterTable73', Session::get('year'), 'suspek')['total'];
                                                        $Grandsuspek += $suspek;
                                                        echo $suspek;
                                                @endphp
                                            </td>
                                            <td>
                                                @php
                                                    $mikroskopis = $item->unitKerjaAmbilPart2('filterTable73', Session::get('year'), 'mikroskopis')['total'];
                                                        $Grandmikroskopis += $mikroskopis;
                                                        echo $mikroskopis;
                                                @endphp
                                            </td>
                                            <td>
                                                @php
                                                    $rapid = $item->unitKerjaAmbilPart2('filterTable73', Session::get('year'), 'rapid')['total'];
                                                    $Grandrapid += $rapid;
                                                    echo $rapid;
                                                @endphp
                                            </td>
                                            <td>
                                                @php
                                                    $total = $mikroskopis + $rapid;
                                                    $Grandtotal += $total;
                                                @endphp
                                                {{ $total }}
                                            </td>
                                            <td>
                                                {{$suspek>0?number_format(($total / $suspek) * 100, 2) . '%':0}}
                                            </td>
                                            <td>
                                                @php
                                                    $l_positif = $item->unitKerjaAmbilPart2('filterTable73', Session::get('year'), 'l_positif')['total'];
                                                    $Grandl_positif += $l_positif;
                                                    echo $l_positif;
                                                @endphp
                                            </td>
                                            <td>
                                                @php
                                                    $p_positif = $item->unitKerjaAmbilPart2('filterTable73', Session::get('year'), 'p_positif')['total'];
                                                    $Grandp_positif += $p_positif;
                                                    echo $p_positif;
                                                @endphp
                                            </td>
                                            <td>
                                                @php
                                                    $lp_positif = $l_positif + $p_positif;
                                                    $Grandlp_positif += $lp_positif;
                                                    echo $lp_positif;
                                                @endphp
                                            </td>
                                            <td>
                                                @php
                                                    $pengobatan_standar = $item->unitKerjaAmbilPart2('filterTable73', Session::get('year'), 'pengobatan_standar')['total'];
                                                    $Grandpengobatan_standar += $pengobatan_standar;
                                                    echo $pengobatan_standar;
                                                @endphp
                                            </td>
                                            <td>
                                                {{$lp_positif>0?number_format(($pengobatan_standar / $lp_positif) * 100, 2) . '%':0}}
                                            </td>
                                            <td>
                                                @php
                                                    $l_meninggal = $item->unitKerjaAmbilPart2('filterTable73', Session::get('year'), 'l_meninggal')['total'];
                                                    $Grandl_meninggal += $l_meninggal;
                                                    echo $l_meninggal;
                                                @endphp
                                            </td>
                                            <td>
                                                @php
                                                    $p_meninggal = $item->unitKerjaAmbilPart2('filterTable73', Session::get('year'), 'p_meninggal')['total'];
                                                    $Grandp_meninggal += $p_meninggal;
                                                    echo $p_meninggal;
                                                @endphp
                                            </td>
                                            <td>
                                                @php
                                                    $lp_meninggal = $l_meninggal + $p_meninggal;
                                                    $Grandlp_meninggal += $lp_meninggal;
                                                    echo $lp_meninggal;
                                                @endphp
                                            </td>
                                            <td >
                                                {{$l_positif>0?number_format(($l_meninggal / $l_positif) * 100, 2) . '%':0}}
                                            </td>
                                            <td>
                                                {{$p_positif>0?number_format(($p_meninggal / $p_positif) * 100, 2) . '%':0}}
                                            </td>
                                            <td>
                                                {{$lp_positif>0?number_format(($lp_meninggal / $lp_positif) * 100, 2) . '%':0}}
                                            </td>
                                        </tr>
                                        @endforeach
                                    @endrole
                                    @role('Puskesmas|Pihak Wajib Pajak')
                                        @foreach ($desa as $key => $item)
                                            @if ($item->filterTable73(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
                                                            $suspek = $item
                                                                ->filterTable73(Session::get('year'), $item->id)
                                                                ->suspek;
                                                            $Grandsuspek += $suspek;
                                                        @endphp
                                                        {{ $suspek }}
                                                    </td>
                                                    <td>
                                                        @php
                                                            $mikroskopis = $item
                                                                ->filterTable73(Session::get('year'), $item->id)
                                                                ->mikroskopis;
                                                            $Grandmikroskopis += $mikroskopis;
                                                        @endphp
                                                        {{ $mikroskopis }}
                                                    </td>
                                                    <td>
                                                        @php
                                                            $rapid = $item
                                                                ->filterTable73(Session::get('year'), $item->id)
                                                                ->rapid;
                                                            $Grandrapid += $rapid;
                                                        @endphp
                                                        {{ $rapid }}
                                                    </td>
                                                    <td id="total_{{ $item->filterTable73(Session::get('year'), $item->id)->id }}">
                                                        @php
                                                            $total = $mikroskopis + $rapid;
                                                            $Grandtotal += $total;
                                                        @endphp
                                                        {{ $total }}
                                                    </td>
                                                    <td id="konfirmasi_{{ $item->filterTable73(Session::get('year'), $item->id)->id }}">
                                                        {{ $suspek > 0 ? number_format(($total / $suspek) * 100, 2) . '%' : 0 }}
                                                    </td>
                                                    <td>
                                                        @php
                                                            $l_positif = $item
                                                                ->filterTable73(Session::get('year'), $item->id)
                                                                ->l_positif;
                                                            $Grandl_positif += $l_positif;
                                                        @endphp
                                                        {{ $l_positif }}
                                                    </td>
                                                    <td>
                                                        @php
                                                            $p_positif = $item
                                                                ->filterTable73(Session::get('year'), $item->id)
                                                                ->p_positif;
                                                            $Grandp_positif += $p_positif;
                                                        @endphp
                                                        {{ $p_positif }}
                                                    </td>
                                                    <td id="lp_positif_{{ $item->filterTable73(Session::get('year'), $item->id)->id }}">
                                                        @php
                                                            $lp_positif = $l_positif + $p_positif;
                                                            $Grandlp_positif += $lp_positif;
                                                        @endphp
                                                        {{ $lp_positif }}
                                                    </td>
                                                    <td>
                                                        @php
                                                            $pengobatan_standar = $item
                                                                ->filterTable73(Session::get('year'), $item->id)
                                                                ->pengobatan_standar;
                                                            $Grandpengobatan_standar += $pengobatan_standar;
                                                        @endphp
                                                        {{ $pengobatan_standar }}
                                                    </td>
                                                    <td id="pengobatan_s_persen_{{ $item->filterTable73(Session::get('year'), $item->id)->id }}">
                                                        {{ $lp_positif > 0 ? number_format(($pengobatan_standar / $lp_positif) * 100, 2) . '%' : 0 }}
                                                    </td>
                                                    <td>
                                                        @php
                                                            $l_meninggal = $item
                                                                ->filterTable73(Session::get('year'), $item->id)
                                                                ->l_meninggal;
                                                            $Grandl_meninggal += $l_meninggal;
                                                        @endphp
                                                        {{ $l_meninggal }}
                                                    </td>
                                                    <td>
                                                        @php
                                                            $p_meninggal = $item
                                                                ->filterTable73(Session::get('year'), $item->id)
                                                                ->p_meninggal;
                                                            $Grandp_meninggal += $p_meninggal;
                                                        @endphp
                                                        {{ $p_meninggal }}
                                                    </td>
                                                    
                                                    <td id="lp_meninggal_{{ $item->filterTable73(Session::get('year'), $item->id)->id }}">
                                                        @php
                                                            $lp_meninggal = $l_meninggal + $p_meninggal;
                                                            $Grandlp_meninggal += $lp_meninggal;
                                                            echo $lp_meninggal;
                                                        @endphp
                                                    </td>
                                                    <td id="l_cfr_{{ $item->filterTable73(Session::get('year'), $item->id)->id }}">
                                                        {{$l_positif>0?number_format(($l_meninggal / $l_positif) * 100, 2) . '%':0}}
                                                    </td>
                                                    <td id="p_cfr_{{ $item->filterTable73(Session::get('year'), $item->id)->id }}">
                                                        {{$p_positif>0?number_format(($p_meninggal / $p_positif) * 100, 2) . '%':0}}
                                                    </td>
                                                    <td id="lp_cfr_{{ $item->filterTable73(Session::get('year'), $item->id)->id }}">
                                                        {{$lp_positif>0?number_format(($lp_meninggal / $lp_positif) * 100, 2) . '%':0}}
                                                    </td>
                                                </tr>
                                            @endif
                                        @endforeach
                                    @endrole

                                    <tr>
                                        <th colspan="2">JUMLAH (KAB/KOTA)</th>
                                        <th id="Grandsuspek">{{$Grandsuspek }}</th>
                                        <th id="Grandmikroskopis">{{$Grandmikroskopis }}</th>
                                        <th id="Grandrapid">{{$Grandrapid }}</th>
                                        <th id="Grandtotal">{{$Grandtotal }}</th>
                                        <th id="Grandkonfirmasi">{{$Grandsuspek>0?number_format(($Grandtotal / $Grandsuspek) * 100, 2) . '%':0}}</th>
                                        <th id="Grandl_positif">{{$Grandl_positif }}</th>
                                        <th id="Grandp_positif">{{$Grandp_positif }}</th>
                                        <th id="Grandlp_positif">{{$Grandlp_positif }}</th>
                                        <th id="Grandpengobatan_standar">{{$Grandpengobatan_standar }}</th>
                                        <th id="Grandpengobatan_s_persen"> {{$Grandlp_positif>0?number_format(($Grandpengobatan_standar / $Grandlp_positif) * 100, 2) . '%':0}} </th>
                                        <th id="Grandl_meninggal">{{$Grandl_meninggal }}</th>
                                        <th id="Grandp_meninggal">{{$Grandp_meninggal }}</th>
                                        <th id="Grandlp_meninggal">{{$Grandlp_meninggal }}</th>
                                        <th id="Grandl_cfr">{{$Grandl_positif>0?number_format(($Grandl_meninggal / $Grandl_positif) * 100, 2) . '%':0}}</th>
                                        <th id="Grandp_cfr">{{$Grandp_positif>0?number_format(($Grandp_meninggal / $Grandp_positif) * 100, 2) . '%':0}}</th>
                                        <th id="Grandlp_cfr">{{$Grandlp_positif>0?number_format(($Grandlp_meninggal / $Grandlp_positif) * 100, 2) . '%':0}}</th>
                                    </tr>
                                    <tr>
                                        <th colspan="9">ANGKA KESAKITAN (ANNUAL PARASITE INCIDENCE) PER 1.000 PENDUDUK</th>
                                        <th id="angka_kesakitan">{{$jumlah_penduduk_perempuan + $jumlah_penduduk_laki_laki>0?($Grandlp_positif / ($jumlah_penduduk_perempuan + $jumlah_penduduk_laki_laki)) * 1000:0}}</th>
                                    </tr>
                                </tbody>
                            </table>

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