@include('templates.SPP.ST.export.preview_search') @include('templates.SPP.ST.export.export_search') @include('templates.SPP.ST.export.print_search') @include('templates.SPP.ST.dev.data') @if($getStatus == 'administrator') distinct()->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_create_date',$fixYear)->where('upt',$value->office_name)->where('status_izin','Perpanjangan')->where('bi_type',$jenis_st)->where('active',1)->count(); ?> @endforeach
UPT Pengiriman Laporan
{{$value->office_name}} @if($checkingPengiriman != 0) YA @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_create_date',$fixYear)->where('status','paid')->where('status_izin','Perpanjangan')->where('bi_type',$jenis_st)->where('upt',$value->office_name)->count(); $nopaid_rts = \App\Model\SPP\StatusTagihan::whereMonth('bi_create_date',$fixMonth)->whereYear('bi_create_date',$fixYear)->where('status','not paid')->where('status_izin','Perpanjangan')->where('bi_type',$jenis_st)->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; } $jumlah_rt_tl = $total_rts - $paid_rts; $sudah_tl = \App\Model\SPP\StatusTagihan::whereMonth('bi_create_date',$fixMonth)->whereYear('bi_create_date',$fixYear)->where('upt',$value->office_name)->where('status_izin','Perpanjangan')->where('bi_type',$jenis_st)->where('active',1)->count(); $belum_tl = $total_rts - $sudah_tl; $tanggal_upload = \App\Model\SPP\StatusTagihan::whereMonth('bi_create_date',$fixMonth)->whereYear('bi_create_date',$fixYear)->where('upt',$value->office_name)->where('active',1)->where('status_izin','Perpanjangan')->where('bi_type',$jenis_st)->select('updated_at')->distinct()->value('updated_at'); $jumlah_rt = \App\Model\SPP\StatusTagihan::whereMonth('bi_create_date',$fixMonth)->whereYear('bi_create_date',$fixYear)->where('status','not paid')->where('status_izin','Perpanjangan')->where('bi_type',$jenis_st)->where('upt',$value->office_name)->count(); if ($sudah_tl == 0) { $rt_yang_tl = 0; }else{ $rt_yang_tl = $sudah_tl / $nopaid_rts * 100; } ?> @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}} {{$rt_terbayar}} {{$jumlah_rt_tl}} {{$sudah_tl}} {{$belum_tl}} {{number_format($rt_yang_tl, 2)}} @if($tanggal_upload) {{\Carbon\Carbon::parse($tanggal_upload) ->format('d, M Y')}} @else Belum Mengirim @endif
@endif