@include('templates.SPP.RT.export.preview-search') @include('templates.SPP.RT.export.export-search') @include('templates.SPP.RT.export.print-search') @include('templates.SPP.RT.dev.data') @if($getStatus == 'administrator') distinct('office_name')->get(); if($month == 1){ $fixMonth = 12; $fixYear = $year - 1; } else{ $fixMonth = $month - 1; $fixYear = $year; } ?>
 PRINT  DOWNLOAD AS PDF  DOWNLOAD AS XLS

REKAP PENGIRIMAN LAPORAN

@foreach($listUpt as $key => $value) whereYear('bi_begin',$fixYear)->where('upt',$value->office_name)->where('status_izin','Perpanjangan')->where('katagori_spp','Pokok')->where('active',1)->count(); $nihil = \App\Model\SPP\RincianTagihan::whereMonth('bi_begin',$fixMonth)->whereYear('bi_begin',$fixYear)->where('upt',$value->office_name)->where('status_izin','Perpanjangan')->where('katagori_spp','Pokok')->where('status','not paid')->count(); ?> @endforeach
UPT Pengiriman Laporan
{{$value->office_name}} @if($checkingPengiriman != 0) YA @elseif($nihil == 0) NIHIL @else BELUM @endif
@endif
@if($getStatus == 'administrator')
 PRINT  DOWNLOAD AS PDF  DOWNLOAD AS XLS

REKAPITULASI DAN PERSENTASE AKSI PENCEGAHAN PIUTANG

@foreach($listUpt as $key => $value) whereYear('bi_begin',$fixYear)->where('status','paid')->where('status_izin','Perpanjangan')->where('katagori_spp','Pokok')->where('upt',$value->office_name)->count(); $nopaid_rts = \App\Model\SPP\RincianTagihan::whereMonth('bi_begin',$fixMonth)->whereYear('bi_begin',$fixYear)->where('status','not paid')->where('status_izin','Perpanjangan')->where('katagori_spp','Pokok')->where('upt',$value->office_name)->count(); $total_rts = $paid_rts + $nopaid_rts; if ($paid_rts == 0) { $rt_terbayar = 0; }else{ $rt_terbayar = $paid_rts / $total_rts * 100; } $sudah_tl = \App\Model\SPP\RincianTagihan::whereMonth('bi_begin',$fixMonth)->whereYear('bi_begin',$fixYear)->where('upt',$value->office_name)->where('status_izin','Perpanjangan')->where('katagori_spp','Pokok')->where('status','not paid')->where('active',1)->count(); $belum_tl = $nopaid_rts - $sudah_tl; if ($sudah_tl == 0) { $rt_yang_tl = 0; }else{ $rt_yang_tl = $sudah_tl / $nopaid_rts * 100; } $tanggal_upload = \App\Model\SPP\RincianTagihan::whereMonth('bi_begin',$fixMonth)->whereYear('bi_begin',$fixYear)->where('upt',$value->office_name)->where('active',1)->where('status_izin','Perpanjangan')->where('katagori_spp','Pokok')->select('updated_at')->distinct()->value('updated_at'); $jumlah_rt = \App\Model\SPP\RincianTagihan::whereMonth('bi_begin',$fixMonth)->whereYear('bi_begin',$fixYear)->where('status','not paid')->where('status_izin','Perpanjangan')->where('katagori_spp','Pokok')->where('upt',$value->office_name)->count(); $nihil2 = \App\Model\SPP\RincianTagihan::whereMonth('bi_begin',$fixMonth)->whereYear('bi_begin',$fixYear)->where('upt',$value->office_name)->where('status_izin','Perpanjangan')->where('katagori_spp','Pokok')->where('status','not paid')->count(); ?> @endforeach
RT BELUM TERBAYAR (H-30 s.d H) RT TIDAK TERBAYAR (MENJADI REMINDER)
UPT TOTAL RT TERBIT RT TERBAYAR % RT TERBAYAR JUMLAH RT YANG AKAN DI TL SUDAH DI-TL UPT BELUM DI-TL UPT % RT YANG DI TL Tanggal Upload
{{$value->office_name}} {{$total_rts}} {{$paid_rts}} {{number_format($rt_terbayar, 2)}} % {{$nopaid_rts}} {{$sudah_tl}} {{$belum_tl}} {{number_format($rt_yang_tl, 2)}} & @if($tanggal_upload) {{\Carbon\Carbon::parse($tanggal_upload) ->format('d, M Y')}} @elseif($nihil2 == 0) NIHIL @else Belum Mengirim @endif
@endif