@role('Admin|superadmin')
@foreach ($unit_kerja as $key => $item)
{{$item->kecamatan}} |
{{$item->nama}} |
{{$item->kunjungan_per_desa(Session::get('year'))["jalan_L"]}} |
{{$item->kunjungan_per_desa(Session::get('year'))["jalan_P"]}} |
{{$item->kunjungan_per_desa(Session::get('year'))["jalan_P"] + $item->kunjungan_per_desa(Session::get('year'))["jalan_L"]}} |
{{$item->kunjungan_per_desa(Session::get('year'))["inap_L"]}} |
{{$item->kunjungan_per_desa(Session::get('year'))["inap_P"]}} |
{{$item->kunjungan_per_desa(Session::get('year'))["inap_P"] + $item->kunjungan_per_desa(Session::get('year'))["inap_L"]}} |
{{$item->kunjungan_per_desa(Session::get('year'))["jiwa_L"]}} |
{{$item->kunjungan_per_desa(Session::get('year'))["jiwa_P"]}} |
{{$item->kunjungan_per_desa(Session::get('year'))["jiwa_P"] + $item->kunjungan_per_desa(Session::get('year'))["jiwa_L"]}} |
@endforeach
@php
@endphp
|
TOTAL |
{{\App\Models\UnitKerja::totalForAllUnitKerja(Session::get('year'), 'filterKunjungan', 'jalan_L')}} |
{{\App\Models\UnitKerja::totalForAllUnitKerja(Session::get('year'), 'filterKunjungan', 'jalan_P')}} |
{{\App\Models\UnitKerja::totalForAllUnitKerja(Session::get('year'), 'filterKunjungan', 'jalan_P') + \App\Models\UnitKerja::totalForAllUnitKerja(Session::get('year'), 'filterKunjungan', 'jalan_L')}} |
{{\App\Models\UnitKerja::totalForAllUnitKerja(Session::get('year'), 'filterKunjungan', 'inap_L')}} |
{{\App\Models\UnitKerja::totalForAllUnitKerja(Session::get('year'), 'filterKunjungan', 'inap_P')}} |
{{\App\Models\UnitKerja::totalForAllUnitKerja(Session::get('year'), 'filterKunjungan', 'inap_P') + \App\Models\UnitKerja::totalForAllUnitKerja(Session::get('year'), 'filterKunjungan', 'inap_L')}} |
{{\App\Models\UnitKerja::totalForAllUnitKerja(Session::get('year'), 'filterKunjungan', 'jiwa_L')}} |
{{\App\Models\UnitKerja::totalForAllUnitKerja(Session::get('year'), 'filterKunjungan', 'jiwa_P')}} |
{{\App\Models\UnitKerja::totalForAllUnitKerja(Session::get('year'), 'filterKunjungan', 'jiwa_P') + \App\Models\UnitKerja::totalForAllUnitKerja(Session::get('year'), 'filterKunjungan', 'jiwa_L')}} |
@endrole
@role('Puskesmas|Pihak Wajib Pajak')
@foreach ($desa as $key => $item)
@if($item->filterKunjungan(Session::get('year')))
{{$item->UnitKerja->kecamatan}} |
{{$item->nama}} |
@php
$kunjungan = $item->filterKunjungan(Session::get('year'));
@endphp
{{$kunjungan->jalan_L}} |
{{$kunjungan->jalan_P}} |
{{$kunjungan->jalan_L + $kunjungan->jalan_P}} |
{{$kunjungan->inap_L}} |
{{$kunjungan->inap_P}} |
{{$kunjungan->inap_L + $kunjungan->inap_P}} |
{{$kunjungan->jiwa_L}} |
{{$kunjungan->jiwa_P}} |
{{$kunjungan->jiwa_L + $kunjungan->jiwa_P}} |
@endif
@endforeach
@php
$total = Auth::user()->unit_kerja;
@endphp
|
TOTAL |
{{$total->admin_total(Session::get('year'), 'filterKunjungan', 'jalan_L')}} |
{{$total->admin_total(Session::get('year'), 'filterKunjungan', 'jalan_P')}} |
{{$total->admin_total(Session::get('year'), 'filterKunjungan', 'jalan_L') + $total->admin_total(Session::get('year'), 'filterKunjungan', 'jalan_P')}} |
{{$total->admin_total(Session::get('year'), 'filterKunjungan', 'inap_L')}} |
{{$total->admin_total(Session::get('year'), 'filterKunjungan', 'inap_P')}} |
{{$total->admin_total(Session::get('year'), 'filterKunjungan', 'inap_L') + $total->admin_total(Session::get('year'), 'filterKunjungan', 'inap_P')}} |
{{$total->admin_total(Session::get('year'), 'filterKunjungan', 'jiwa_L')}} |
{{$total->admin_total(Session::get('year'), 'filterKunjungan', 'jiwa_P')}} |
{{$total->admin_total(Session::get('year'), 'filterKunjungan', 'jiwa_L') + $total->admin_total(Session::get('year'), 'filterKunjungan', 'jiwa_P')}} |
@endrole