{{ $item->kecamatan }} |
{{ $item->nama }} |
@php
$sd = $item->unitKerjaAmbilPart2('filterTable82', Session::get('year'), 'sd')['total'];
$Grandsd += $sd;
echo $sd;
@endphp
|
@php
$smp = $item->unitKerjaAmbilPart2('filterTable82', Session::get('year'), 'smp')['total'];
$Grandsmp += $smp;
echo $smp;
@endphp
|
@php
$puskesmas = $item->unitKerjaAmbilPart2('filterTable82', Session::get('year'), 'puskesmas')['total'];
$Grandpuskesmas += $puskesmas;
echo $puskesmas;
@endphp
|
@php
$pasar = $item->unitKerjaAmbilPart2('filterTable82', Session::get('year'), 'pasar')['total'];
$Grandpasar += $pasar;
echo $pasar;
@endphp
|
@php
$totals = $sd + $smp + $puskesmas + $pasar;
$GrandTotal += $totals;
@endphp
{{ $totals }}
|
@php
$m_sd = $item->unitKerjaAmbilPart2('filterTable82', Session::get('year'), 'm_sd')['total'];
$Grandm_sd += $m_sd;
echo $m_sd;
@endphp
|
{{ $sd>0?number_format(($m_sd / $sd) * 100, 2) . '%':0}}
|
@php
$m_smp = $item->unitKerjaAmbilPart2('filterTable82', Session::get('year'), 'm_smp')['total'];
$Grandm_smp += $m_smp;
echo $m_smp;
@endphp
|
{{ $smp>0?number_format(($m_smp / $smp) * 100, 2) . '%':0}}
|
@php
$m_puskesmas = $item->unitKerjaAmbilPart2('filterTable82', Session::get('year'), 'm_puskesmas')['total'];
$Grandm_puskesmas += $m_puskesmas;
echo $m_puskesmas;
@endphp
|
{{ $puskesmas>0?number_format(($m_puskesmas / $puskesmas) * 100, 2) . '%':0}}
|
@php
$m_pasar = $item->unitKerjaAmbilPart2('filterTable82', Session::get('year'), 'm_pasar')['total'];
$Grandm_pasar += $m_pasar;
echo $m_pasar;
@endphp
|
{{ $pasar>0?number_format(($m_pasar / $pasar) * 100, 2) . '%':0}}
|
@php
$total = $m_sd + $m_smp + $m_puskesmas + $m_pasar;
$GrandMTotal += $total;
@endphp
{{ $total }}
|
{{$totals>0? number_format(($total / $totals) * 100, 2) . '%':0}}
|
@endforeach
@endrole
@role('Puskesmas|Pihak Wajib Pajak')
@foreach ($desa as $key => $item)
@if ($item->filterTable82(Session::get('year'), $item->id))
{{ $item->UnitKerja->kecamatan }} |
{{ $item->nama }} |
@php
$sd = $item->filterTable82(Session::get('year'), $item->id)->sd;
$Grandsd += $sd;
@endphp
{{ $sd }}
|
@php
$smp = $item->filterTable82(Session::get('year'), $item->id)->smp;
$Grandsmp += $smp;
@endphp
{{ $smp }}
|
@php
$puskesmas = $item->filterTable82(Session::get('year'), $item->id)->puskesmas;
$Grandpuskesmas += $puskesmas;
@endphp
{{ $puskesmas }}
|
@php
$pasar = $item->filterTable82(Session::get('year'), $item->id)->pasar;
$Grandpasar += $pasar;
@endphp
{{ $pasar }}
|
@php
$totals = $sd + $smp + $puskesmas + $pasar;
$GrandTotal += $totals;
@endphp
{{ $totals }}
|
@php
$m_sd = $item->filterTable82(Session::get('year'), $item->id)->m_sd;
$Grandm_sd += $m_sd;
@endphp
{{ $m_sd }}
|
{{ $sd > 0 ? number_format(($m_sd / $sd) * 100, 2) . '%' : '0%' }}
|
@php
$m_smp = $item->filterTable82(Session::get('year'), $item->id)->m_smp;
$Grandm_smp += $m_smp;
@endphp
{{ $m_smp }}
|
{{ $smp > 0 ? number_format(($m_smp / $smp) * 100, 2) . '%' : '0%' }}
|
@php
$m_puskesmas = $item->filterTable82(Session::get('year'), $item->id)->m_puskesmas;
$Grandm_puskesmas += $m_puskesmas;
@endphp
{{ $m_puskesmas }}
|
{{ $puskesmas > 0 ? number_format(($m_puskesmas / $puskesmas) * 100, 2) . '%' : '0%' }}
|
@php
$m_pasar = $item->filterTable82(Session::get('year'), $item->id)->m_pasar;
$Grandm_pasar += $m_pasar;
@endphp
{{ $m_pasar }}
|
{{ $pasar>0?number_format(($m_pasar / $pasar) * 100, 2) . '%':0}}
|
@php
$total = $m_sd + $m_smp + $m_puskesmas + $m_pasar;
$GrandMTotal += $total;
@endphp
{{ $total }}
|
{{ $totals>0?number_format(($total / $totals) * 100, 2) . '%':0}}
|
@endif
@endforeach
@endrole