@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;
}
?>
| UPT |
Pengiriman Laporan |
@foreach($listUpt as $key => $value)
|
{{$value->office_name}}
|
whereYear('bi_create_date',$fixYear)->where('upt',$value->office_name)->where('status_izin','Perpanjangan')->where('bi_type',$jenis_st)->where('active',1)->count();
?>
@if($checkingPengiriman != 0)
YA
@else
BELUM
@endif
|
@endforeach
@endif
@if($getStatus == 'administrator')
|
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 |
@foreach($listUpt as $key => $value)
| {{$value->office_name}} |
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;
}
?>
{{$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
|
@endforeach
@endif