upt-bulan-tahun.blade.php 43 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707
  1. <?php
  2. $getStatus = \App\Model\Privillage\Role::where('id',Auth::user()->role_id)->value('akses');
  3. ?>
  4. @include('templates.SPP.ST.export.export_search')
  5. @include('templates.SPP.ST.export.preview_search')
  6. @include('templates.SPP.ST.export.print_search')
  7. @include('templates.SPP.ST.dev.data')
  8. <style>
  9. #example_filter {width: 990px !important;}
  10. .dataTables_wrapper{overflow-y: hidden;}
  11. .dataTables_filter{position: absolute; right: 13px;}
  12. .dataTables_length{position: sticky; left: 10px;}
  13. .previous {color: #87a5d8 !important; border:1px solid #87a5d8; border-radius: 20px; padding:3px;}
  14. .previous:hover{color: #fff !important; border:1px solid #fff;}
  15. .next{color: #87a5d8 !important; border:1px solid #87a5d8; border-radius: 20px; padding:3px;}
  16. .next:hover{color: #fff !important; border:1px solid #fff;}
  17. .processing{color: red !important;}
  18. </style>
  19. @if($getStatus == 'administrator')
  20. <div class="col text-left" style="margin-top: 10px;margin-bottom: -20px;">
  21. <a class="btn btn-sm btn-success" style="color: white;" id="getPreview" data-toggle="modal" data-target="#previewModal" data-status-pembayaran="paid"><i class="ni ni-single-copy-04"></i>&nbsp;PRINT</a>
  22. <a class="btn btn-sm btn-info" style="color: white;" id="getPrint" data-toggle="modal" data-target="#printModal" data-status-pembayaran="paid"><i class="ni ni-single-copy-04"></i>&nbsp;DOWNLOAD AS PDF</a>
  23. <a class="btn btn-sm btn-danger" style="color: white;" id="getDownload" data-toggle="modal" data-target="#downloadModal" data-status-pembayaran="paid"><i class="ni ni-cloud-download-95"></i>&nbsp;DOWNLOAD AS XLS</a>
  24. </div>
  25. <div class="col-xl-12 mt-5">
  26. <div class="card shadow">
  27. <div class="card-header border-0" style="background-color: #5f5f5f;">
  28. <div class="row align-items-center">
  29. <div class="col">
  30. <h3 class="mb-0" style="color: #fff;">REKAP PENGIRIMAN LAPORAN @if($jenis_st == 'First Reminder') ST-1 @elseif($jenis_st == 'Second Reminder') ST-2 @elseif($jenis_st == 'Third Reminder') ST-3 @elseif($jenis_st == 'Last Reminder') STT @endif</h3>
  31. </div>
  32. </div>
  33. </div>
  34. <div class="">
  35. <div class="">
  36. <table id="example" class="table table-dark table-striped align-items-center table-flush data-table">
  37. <thead class="thead-light">
  38. <tr>
  39. <th scope="col">UPT</th>
  40. <th scope="col">Jan</th>
  41. <th scope="col">Feb</th>
  42. <th scope="col">Mar</th>
  43. <th scope="col">Apr</th>
  44. <th scope="col">Mei</th>
  45. <th scope="col">Jun</th>
  46. <th scope="col">Jul</th>
  47. <th scope="col">Aug</th>
  48. <th scope="col">Sep</th>
  49. <th scope="col">Okt</th>
  50. <th scope="col">Nov</th>
  51. <th scope="col">Des</th>
  52. </tr>
  53. </thead>
  54. <tbody>
  55. <tr>
  56. <th scope="row">
  57. {{$getUptName}}
  58. </th>
  59. <?php
  60. $januari = \App\Model\SPP\StatusTagihan::whereMonth('bi_create_date',12)->whereYear('bi_create_date',$year)->where('upt', $getUptName)->where('status_izin','Perpanjangan')->where('bi_type',$jenis_st)->where('active',1)->count();
  61. $februari = \App\Model\SPP\StatusTagihan::whereMonth('bi_create_date',1)->whereYear('bi_create_date',$year)->where('upt', $getUptName)->where('status_izin','Perpanjangan')->where('bi_type',$jenis_st)->where('active',1)->count();
  62. $maret = \App\Model\SPP\StatusTagihan::whereMonth('bi_create_date',2)->whereYear('bi_create_date',$year)->where('upt', $getUptName)->where('status_izin','Perpanjangan')->where('bi_type',$jenis_st)->where('active',1)->count();
  63. $april = \App\Model\SPP\StatusTagihan::whereMonth('bi_create_date',3)->whereYear('bi_create_date',$year)->where('upt', $getUptName)->where('status_izin','Perpanjangan')->where('bi_type',$jenis_st)->where('active',1)->count();
  64. $mei = \App\Model\SPP\StatusTagihan::whereMonth('bi_create_date',4)->whereYear('bi_create_date',$year)->where('upt', $getUptName)->where('status_izin','Perpanjangan')->where('bi_type',$jenis_st)->where('active',1)->count();
  65. $juni = \App\Model\SPP\StatusTagihan::whereMonth('bi_create_date',5)->whereYear('bi_create_date',$year)->where('upt', $getUptName)->where('status_izin','Perpanjangan')->where('bi_type',$jenis_st)->where('active',1)->count();
  66. $juli = \App\Model\SPP\StatusTagihan::whereMonth('bi_create_date',6)->whereYear('bi_create_date',$year)->where('upt', $getUptName)->where('status_izin','Perpanjangan')->where('bi_type',$jenis_st)->where('active',1)->count();
  67. $agustus = \App\Model\SPP\StatusTagihan::whereMonth('bi_create_date',7)->whereYear('bi_create_date',$year)->where('upt', $getUptName)->where('status_izin','Perpanjangan')->where('bi_type',$jenis_st)->where('active',1)->count();
  68. $september = \App\Model\SPP\StatusTagihan::whereMonth('bi_create_date',8)->whereYear('bi_create_date',$year)->where('upt', $getUptName)->where('status_izin','Perpanjangan')->where('bi_type',$jenis_st)->where('active',1)->count();
  69. $oktober = \App\Model\SPP\StatusTagihan::whereMonth('bi_create_date',9)->whereYear('bi_create_date',$year)->where('upt', $getUptName)->where('status_izin','Perpanjangan')->where('bi_type',$jenis_st)->where('active',1)->count();
  70. $november = \App\Model\SPP\StatusTagihan::whereMonth('bi_create_date',10)->whereYear('bi_create_date',$year)->where('upt', $getUptName)->where('status_izin','Perpanjangan')->where('bi_type',$jenis_st)->where('active',1)->count();
  71. $desember = \App\Model\SPP\StatusTagihan::whereMonth('bi_create_date',11)->whereYear('bi_create_date',$year)->where('upt', $getUptName)->where('status_izin','Perpanjangan')->where('bi_type',$jenis_st)->where('active',1)->count();
  72. ?>
  73. <td>
  74. @if($januari != 0)
  75. <a class="btn btn-success btn-sm text-white">YA</a>
  76. @else
  77. <a class="btn btn-danger btn-sm text-white">BELUM</a>
  78. @endif
  79. </td>
  80. <td>
  81. @if($februari != 0)
  82. <a class="btn btn-success btn-sm text-white">YA</a>
  83. @else
  84. <a class="btn btn-danger btn-sm text-white">BELUM</a>
  85. @endif
  86. </td>
  87. <td>
  88. @if($maret != 0)
  89. <a class="btn btn-success btn-sm text-white">YA</a>
  90. @else
  91. <a class="btn btn-danger btn-sm text-white">BELUM</a>
  92. @endif
  93. </td>
  94. <td>
  95. @if($april != 0)
  96. <a class="btn btn-success btn-sm text-white">YA</a>
  97. @else
  98. <a class="btn btn-danger btn-sm text-white">BELUM</a>
  99. @endif
  100. </td>
  101. <td>
  102. @if($mei != 0)
  103. <a class="btn btn-success btn-sm text-white">YA</a>
  104. @else
  105. <a class="btn btn-danger btn-sm text-white">BELUM</a>
  106. @endif
  107. </td>
  108. <td>
  109. @if($juni != 0)
  110. <a class="btn btn-success btn-sm text-white">YA</a>
  111. @else
  112. <a class="btn btn-danger btn-sm text-white">BELUM</a>
  113. @endif
  114. </td>
  115. <td>
  116. @if($juli != 0)
  117. <a class="btn btn-success btn-sm text-white">YA</a>
  118. @else
  119. <a class="btn btn-danger btn-sm text-white">BELUM</a>
  120. @endif
  121. </td>
  122. <td>
  123. @if($agustus != 0)
  124. <a class="btn btn-success btn-sm text-white">YA</a>
  125. @else
  126. <a class="btn btn-danger btn-sm text-white">BELUM</a>
  127. @endif
  128. </td>
  129. <td>
  130. @if($september != 0)
  131. <a class="btn btn-success btn-sm text-white">YA</a>
  132. @else
  133. <a class="btn btn-danger btn-sm text-white">BELUM</a>
  134. @endif
  135. </td>
  136. <td>
  137. @if($oktober != 0)
  138. <a class="btn btn-success btn-sm text-white">YA</a>
  139. @else
  140. <a class="btn btn-danger btn-sm text-white">BELUM</a>
  141. @endif
  142. </td>
  143. <td>
  144. @if($november != 0)
  145. <a class="btn btn-success btn-sm text-white">YA</a>
  146. @else
  147. <a class="btn btn-danger btn-sm text-white">BELUM</a>
  148. @endif
  149. </td>
  150. <td>
  151. @if($desember != 0)
  152. <a class="btn btn-success btn-sm text-white">YA</a>
  153. @else
  154. <a class="btn btn-danger btn-sm text-white">BELUM</a>
  155. @endif
  156. </td>
  157. </tr>
  158. </tbody>
  159. </table>
  160. </div>
  161. </div>
  162. </div>
  163. </div>
  164. @endif
  165. <br>
  166. @if($getStatus == 'administrator')
  167. <div class="col text-left" style="margin-top: 10px;margin-bottom: -20px;">
  168. <a class="btn btn-sm btn-success" style="color: white;" id="getPreview" data-toggle="modal" data-target="#previewModal" data-status-pembayaran="not_paid"><i class="ni ni-single-copy-04"></i>&nbsp;PRINT</a>
  169. <a class="btn btn-sm btn-info" style="color: white;" id="getPrint" data-toggle="modal" data-target="#printModal" data-status-pembayaran="not_paid"><i class="ni ni-single-copy-04"></i>&nbsp;DOWNLOAD AS PDF</a>
  170. <a class="btn btn-sm btn-danger" style="color: white;" id="getDownload" data-toggle="modal" data-target="#downloadModal" data-status-pembayaran="not_paid"><i class="ni ni-cloud-download-95"></i>&nbsp;DOWNLOAD AS XLS</a>
  171. </div>
  172. <div class="col-xl-12 mt-5">
  173. <div class="card shadow">
  174. <div class="card-header border-0">
  175. <div class="row align-items-center">
  176. <div class="col">
  177. <h3 class="mb-0" style="color: #ffff;">REKAPITULASI DAN PERSENTASE AKSI PENCEGAHAN PIUTANG @if($jenis_st == 'First Reminder') ST-1 @elseif($jenis_st == 'Second Reminder') ST-2 @elseif($jenis_st == 'Third Reminder') ST-3 @elseif($jenis_st == 'Last Reminder') STT @endif</h3>
  178. </div>
  179. </div>
  180. </div>
  181. <div class="">
  182. <table id="example" class="table table-dark table-striped align-items-center table-flush data-table">
  183. <thead class="thead-light">
  184. <tr>
  185. <th class="tg-0pky" colspan="3"></th>
  186. <th class="tg-0lax" colspan="4" style="background-color: #63a53a; color: #fff; text-align: center;">ST BELUM TERBAYAR (H-30 s.d H)</th>
  187. <th class="tg-0lax" colspan="3" style="background-color: #ff1228; color: #fff;">ST TIDAK TERBAYAR (MENJADI REMINDER)</th>
  188. </tr>
  189. <tr>
  190. <td class="tg-0lax">BULAN</td>
  191. <td class="tg-0lax">TOTAL ST TERBIT</td>
  192. <td class="tg-0lax">ST TERBAYAR</td>
  193. <td class="tg-0lax">SUDAH DI-TL UPT</td>
  194. <td class="tg-0lax">%</td>
  195. <td class="tg-0lax">BELUM DI-TL UPT</td>
  196. <td class="tg-0lax">%</td>
  197. <td class="tg-0lax">JUMLAH RT</td>
  198. <td class="tg-0lax">%</td>
  199. <td class="tg-0lax">Tanggal Upload</td>
  200. </tr>
  201. </thead>
  202. <?php
  203. //Januari
  204. $paid_rts_januari = \App\Model\SPP\StatusTagihan::whereMonth('bi_create_date',12)->whereYear('bi_create_date',$year)->where('status','paid')->where('status_izin','Perpanjangan')->where('bi_type',$jenis_st_paid)->where('upt',$getUptName)->count();
  205. $nopaid_rts_januari = \App\Model\SPP\StatusTagihan::whereMonth('bi_create_date',12)->whereYear('bi_create_date',$year)->where('status','not paid')->where('status_izin','Perpanjangan')->where('bi_type',$jenis_st)->where('upt',$getUptName)->count();
  206. $total_rts_januari = $paid_rts_januari + $nopaid_rts_januari;
  207. $sudah_tl_januari = \App\Model\SPP\StatusTagihan::whereMonth('bi_create_date',12)->whereYear('bi_create_date',$year)->where('status_izin','Perpanjangan')->where('bi_type',$jenis_st)->where('upt',$getUptName)->where('active',1)->count();
  208. $belum_tl_januari = $total_rts_januari - $sudah_tl_januari;
  209. if ($total_rts_januari) {
  210. $percent_sudah_tl_januari = $sudah_tl_januari / $total_rts_januari * 100;
  211. $percent_belum_tl_januari = $belum_tl_januari / $total_rts_januari * 100;
  212. }else{
  213. $percent_belum_tl_januari = 0;
  214. $percent_sudah_tl_januari = 0;
  215. }
  216. $jumlah_rt_januari = \App\Model\SPP\StatusTagihan::whereMonth('bi_create_date',12)->whereYear('bi_create_date',$year)->where('status','not paid')->where('status_izin','Perpanjangan')->where('bi_type',$jenis_st)->where('upt',$getUptName)->count();
  217. if ($jumlah_rt_januari != 0) {
  218. $percent_jumlah_rt_januari = $jumlah_rt_januari / $total_rts_januari * 100;
  219. }else{
  220. $percent_jumlah_rt_januari = 0;
  221. }
  222. $tanggal_upload_januari = \App\Model\SPP\StatusTagihan::whereMonth('bi_create_date',12)->whereYear('bi_create_date',$year)->where('active',1)->where('status_izin','Perpanjangan')->where('bi_type',$jenis_st)->where('upt',$getUptName)->select('updated_at')->distinct()->value('updated_at');
  223. //Februari
  224. $paid_rts_februari = \App\Model\SPP\StatusTagihan::whereMonth('bi_create_date',1)->whereYear('bi_create_date',$year)->where('status','paid')->where('status_izin','Perpanjangan')->where('bi_type',$jenis_st_paid)->where('upt',$getUptName)->count();
  225. $nopaid_rts_februari = \App\Model\SPP\StatusTagihan::whereMonth('bi_create_date',1)->whereYear('bi_create_date',$year)->where('status','not paid')->where('status_izin','Perpanjangan')->where('bi_type',$jenis_st)->where('upt',$getUptName)->count();
  226. $total_rts_februari = $paid_rts_februari + $nopaid_rts_februari;
  227. $sudah_tl_februari = \App\Model\SPP\StatusTagihan::whereMonth('bi_create_date',1)->whereYear('bi_create_date',$year)->where('status_izin','Perpanjangan')->where('bi_type',$jenis_st)->where('upt',$getUptName)->where('active',1)->count();
  228. $belum_tl_februari = $total_rts_februari - $sudah_tl_februari;
  229. if ($total_rts_februari) {
  230. $percent_sudah_tl_februari = $sudah_tl_februari / $total_rts_februari * 100;
  231. $percent_belum_tl_februari = $belum_tl_februari / $total_rts_februari * 100;
  232. }else{
  233. $percent_belum_tl_februari = 0;
  234. $percent_sudah_tl_februari = 0;
  235. }
  236. $jumlah_rt_februari = \App\Model\SPP\StatusTagihan::whereMonth('bi_create_date',1)->whereYear('bi_create_date',$year)->where('status','not paid')->where('status_izin','Perpanjangan')->where('bi_type',$jenis_st)->where('upt',$getUptName)->count();
  237. if ($jumlah_rt_februari != 0) {
  238. $percent_jumlah_rt_februari = $jumlah_rt_februari / $total_rts_februari * 100;
  239. }else{
  240. $percent_jumlah_rt_februari = 0;
  241. }
  242. $tanggal_upload_februari = \App\Model\SPP\StatusTagihan::whereMonth('bi_create_date',1)->whereYear('bi_create_date',$year)->where('status_izin','Perpanjangan')->where('bi_type',$jenis_st)->where('upt',$getUptName)->where('active',1)->select('updated_at')->distinct()->value('updated_at');
  243. //Maret
  244. $paid_rts_maret = \App\Model\SPP\StatusTagihan::whereMonth('bi_create_date',2)->whereYear('bi_create_date',$year)->where('status','paid')->where('status_izin','Perpanjangan')->where('bi_type',$jenis_st_paid)->where('upt',$getUptName)->count();
  245. $nopaid_rts_maret = \App\Model\SPP\StatusTagihan::whereMonth('bi_create_date',2)->whereYear('bi_create_date',$year)->where('status','not paid')->where('status_izin','Perpanjangan')->where('bi_type',$jenis_st)->where('upt',$getUptName)->count();
  246. $total_rts_maret = $paid_rts_maret + $nopaid_rts_maret;
  247. $sudah_tl_maret = \App\Model\SPP\StatusTagihan::whereMonth('bi_create_date',2)->whereYear('bi_create_date',$year)->where('status_izin','Perpanjangan')->where('bi_type',$jenis_st)->where('upt',$getUptName)->where('active',1)->count();
  248. $belum_tl_maret = $total_rts_maret - $sudah_tl_maret;
  249. if ($total_rts_maret) {
  250. $percent_sudah_tl_maret = $sudah_tl_maret / $total_rts_maret * 100;
  251. $percent_belum_tl_maret = $belum_tl_maret / $total_rts_maret * 100;
  252. }else{
  253. $percent_belum_tl_maret = 0;
  254. $percent_sudah_tl_maret = 0;
  255. }
  256. $jumlah_rt_maret = \App\Model\SPP\StatusTagihan::whereMonth('bi_create_date',2)->whereYear('bi_create_date',$year)->where('status','not paid')->where('status_izin','Perpanjangan')->where('bi_type',$jenis_st)->where('upt',$getUptName)->count();
  257. if ($jumlah_rt_maret != 0) {
  258. $percent_jumlah_rt_maret = $jumlah_rt_maret / $total_rts_maret * 100;
  259. }else{
  260. $percent_jumlah_rt_maret = 0;
  261. }
  262. $tanggal_upload_maret = \App\Model\SPP\StatusTagihan::whereMonth('bi_create_date',2)->whereYear('bi_create_date',$year)->select('updated_at')->where('active',1)->where('status_izin','Perpanjangan')->where('bi_type',$jenis_st)->where('upt',$getUptName)->distinct()->value('updated_at');
  263. //April
  264. $paid_rts_april = \App\Model\SPP\StatusTagihan::whereMonth('bi_create_date',3)->whereYear('bi_create_date',$year)->where('status','paid')->where('status_izin','Perpanjangan')->where('bi_type',$jenis_st_paid)->where('upt',$getUptName)->count();
  265. $nopaid_rts_april = \App\Model\SPP\StatusTagihan::whereMonth('bi_create_date',3)->whereYear('bi_create_date',$year)->where('status','not paid')->where('status_izin','Perpanjangan')->where('bi_type',$jenis_st)->where('upt',$getUptName)->count();
  266. $total_rts_april = $paid_rts_april + $nopaid_rts_april;
  267. $sudah_tl_april = \App\Model\SPP\StatusTagihan::whereMonth('bi_create_date',3)->whereYear('bi_create_date',$year)->where('status_izin','Perpanjangan')->where('bi_type',$jenis_st)->where('upt',$getUptName)->where('active',1)->count();
  268. $belum_tl_april = $total_rts_april - $sudah_tl_april;
  269. if ($total_rts_april) {
  270. $percent_sudah_tl_april = $sudah_tl_april / $total_rts_april * 100;
  271. $percent_belum_tl_april = $belum_tl_april / $total_rts_april * 100;
  272. }else{
  273. $percent_belum_tl_april = 0;
  274. $percent_sudah_tl_april = 0;
  275. }
  276. $jumlah_rt_april = \App\Model\SPP\StatusTagihan::whereMonth('bi_create_date',3)->whereYear('bi_create_date',$year)->where('status','not paid')->where('status_izin','Perpanjangan')->where('bi_type',$jenis_st)->where('upt',$getUptName)->count();
  277. if ($jumlah_rt_april != 0) {
  278. $percent_jumlah_rt_april = $jumlah_rt_april/ $total_rts_april * 100;
  279. }else{
  280. $percent_jumlah_rt_april = 0;
  281. }
  282. $tanggal_upload_april = \App\Model\SPP\StatusTagihan::whereMonth('bi_create_date',3)->whereYear('bi_create_date',$year)->select('updated_at')->where('active',1)->where('status_izin','Perpanjangan')->where('bi_type',$jenis_st)->where('upt',$getUptName)->distinct()->value('updated_at');
  283. //Mei
  284. $paid_rts_mei = \App\Model\SPP\StatusTagihan::whereMonth('bi_create_date',4)->whereYear('bi_create_date',$year)->where('status','paid')->where('status_izin','Perpanjangan')->where('bi_type',$jenis_st_paid)->where('upt',$getUptName)->count();
  285. $nopaid_rts_mei = \App\Model\SPP\StatusTagihan::whereMonth('bi_create_date',4)->whereYear('bi_create_date',$year)->where('status','not paid')->where('status_izin','Perpanjangan')->where('bi_type',$jenis_st)->where('upt',$getUptName)->count();
  286. $total_rts_mei = $paid_rts_mei + $nopaid_rts_mei;
  287. $sudah_tl_mei = \App\Model\SPP\StatusTagihan::whereMonth('bi_create_date',4)->whereYear('bi_create_date',$year)->where('status_izin','Perpanjangan')->where('bi_type',$jenis_st)->where('upt',$getUptName)->where('active',1)->count();
  288. $belum_tl_mei = $total_rts_mei - $sudah_tl_mei;
  289. if ($total_rts_mei) {
  290. $percent_sudah_tl_mei = $sudah_tl_mei / $total_rts_mei * 100;
  291. $percent_belum_tl_mei = $belum_tl_mei / $total_rts_mei * 100;
  292. }else{
  293. $percent_belum_tl_mei = 0;
  294. $percent_sudah_tl_mei = 0;
  295. }
  296. $jumlah_rt_mei = \App\Model\SPP\StatusTagihan::whereMonth('bi_create_date',4)->whereYear('bi_create_date',$year)->where('status','not paid')->where('status_izin','Perpanjangan')->where('bi_type',$jenis_st)->where('upt',$getUptName)->count();
  297. if ($jumlah_rt_mei != 0) {
  298. $percent_jumlah_rt_mei = $jumlah_rt_mei / $total_rts_mei * 100;
  299. }else{
  300. $percent_jumlah_rt_mei = 0;
  301. }
  302. $tanggal_upload_mei = \App\Model\SPP\StatusTagihan::whereMonth('bi_create_date',4)->whereYear('bi_create_date',$year)->select('updated_at')->where('active',1)->where('status_izin','Perpanjangan')->where('bi_type',$jenis_st)->where('upt',$getUptName)->distinct()->value('updated_at');
  303. //Juni
  304. $paid_rts_juni = \App\Model\SPP\StatusTagihan::whereMonth('bi_create_date',5)->whereYear('bi_create_date',$year)->where('status','paid')->where('status_izin','Perpanjangan')->where('bi_type',$jenis_st_paid)->where('upt',$getUptName)->count();
  305. $nopaid_rts_juni = \App\Model\SPP\StatusTagihan::whereMonth('bi_create_date',5)->whereYear('bi_create_date',$year)->where('status','not paid')->where('status_izin','Perpanjangan')->where('bi_type',$jenis_st)->where('upt',$getUptName)->count();
  306. $total_rts_juni = $paid_rts_juni + $nopaid_rts_juni;
  307. $sudah_tl_juni = \App\Model\SPP\StatusTagihan::whereMonth('bi_create_date',5)->whereYear('bi_create_date',$year)->where('status_izin','Perpanjangan')->where('bi_type',$jenis_st)->where('upt',$getUptName)->where('active',1)->count();
  308. $belum_tl_juni = $total_rts_juni - $sudah_tl_juni;
  309. if ($total_rts_juni) {
  310. $percent_sudah_tl_juni = $sudah_tl_juni / $total_rts_juni * 100;
  311. $percent_belum_tl_juni = $belum_tl_juni / $total_rts_juni * 100;
  312. }else{
  313. $percent_belum_tl_juni = 0;
  314. $percent_sudah_tl_juni = 0;
  315. }
  316. $jumlah_rt_juni = \App\Model\SPP\StatusTagihan::whereMonth('bi_create_date',5)->whereYear('bi_create_date',$year)->where('status','not paid')->where('status_izin','Perpanjangan')->where('bi_type',$jenis_st)->where('upt',$getUptName)->count();
  317. if ($jumlah_rt_juni != 0) {
  318. $percent_jumlah_rt_juni = $jumlah_rt_juni / $total_rts_juni * 100;
  319. }else{
  320. $percent_jumlah_rt_juni = 0;
  321. }
  322. $tanggal_upload_juni = \App\Model\SPP\StatusTagihan::whereMonth('bi_create_date',5)->whereYear('bi_create_date',$year)->select('updated_at')->where('active',1)->where('status_izin','Perpanjangan')->where('bi_type',$jenis_st)->where('upt',$getUptName)->distinct()->value('updated_at');
  323. //Juli
  324. $paid_rts_juli = \App\Model\SPP\StatusTagihan::whereMonth('bi_create_date',6)->whereYear('bi_create_date',$year)->where('status','paid')->where('status_izin','Perpanjangan')->where('bi_type',$jenis_st_paid)->where('upt',$getUptName)->count();
  325. $nopaid_rts_juli = \App\Model\SPP\StatusTagihan::whereMonth('bi_create_date',6)->whereYear('bi_create_date',$year)->where('status','not paid')->where('status_izin','Perpanjangan')->where('bi_type',$jenis_st)->where('upt',$getUptName)->count();
  326. $total_rts_juli = $paid_rts_juli + $nopaid_rts_juli;
  327. $sudah_tl_juli = \App\Model\SPP\StatusTagihan::whereMonth('bi_create_date',6)->whereYear('bi_create_date',$year)->where('status_izin','Perpanjangan')->where('bi_type',$jenis_st)->where('upt',$getUptName)->where('status',1)->count();
  328. $belum_tl_juli = $total_rts_juli - $sudah_tl_juli;
  329. if ($total_rts_juli) {
  330. $percent_sudah_tl_juli = $sudah_tl_juli / $total_rts_juli * 100;
  331. $percent_belum_tl_juli = $belum_tl_juli / $total_rts_juli * 100;
  332. }else{
  333. $percent_belum_tl_juli = 0;
  334. $percent_sudah_tl_juli = 0;
  335. }
  336. $jumlah_rt_juli = \App\Model\SPP\StatusTagihan::whereMonth('bi_create_date',6)->whereYear('bi_create_date',$year)->where('status','not paid')->where('status_izin','Perpanjangan')->where('bi_type',$jenis_st)->where('upt',$getUptName)->count();
  337. if ($jumlah_rt_juli != 0) {
  338. $percent_jumlah_rt_juli = $jumlah_rt_juli / $total_rts_juli * 100;
  339. }else{
  340. $percent_jumlah_rt_juli = 0;
  341. }
  342. $tanggal_upload_juli = \App\Model\SPP\StatusTagihan::whereMonth('bi_create_date',6)->whereYear('bi_create_date',$year)->select('updated_at')->where('active',1)->where('status_izin','Perpanjangan')->where('bi_type',$jenis_st)->where('upt',$getUptName)->distinct()->value('updated_at');
  343. //Agustus
  344. $paid_rts_agustus = \App\Model\SPP\StatusTagihan::whereMonth('bi_create_date',7)->whereYear('bi_create_date',$year)->where('status','paid')->where('status_izin','Perpanjangan')->where('bi_type',$jenis_st_paid)->where('upt',$getUptName)->count();
  345. $nopaid_rts_agustus = \App\Model\SPP\StatusTagihan::whereMonth('bi_create_date',7)->whereYear('bi_create_date',$year)->where('status','not paid')->where('status_izin','Perpanjangan')->where('bi_type',$jenis_st)->where('upt',$getUptName)->count();
  346. $total_rts_agustus = $paid_rts_agustus + $nopaid_rts_agustus;
  347. $sudah_tl_agustus = \App\Model\SPP\StatusTagihan::whereMonth('bi_create_date',7)->whereYear('bi_create_date',$year)->where('status_izin','Perpanjangan')->where('bi_type',$jenis_st)->where('upt',$getUptName)->where('active',1)->count();
  348. $belum_tl_agustus = $total_rts_agustus - $sudah_tl_agustus;
  349. if ($total_rts_agustus) {
  350. $percent_sudah_tl_agustus = $sudah_tl_agustus / $total_rts_agustus * 100;
  351. $percent_belum_tl_agustus = $belum_tl_agustus / $total_rts_agustus * 100;
  352. }else{
  353. $percent_belum_tl_agustus = 0;
  354. $percent_sudah_tl_agustus = 0;
  355. }
  356. $jumlah_rt_agustus = \App\Model\SPP\StatusTagihan::whereMonth('bi_create_date',7)->whereYear('bi_create_date',$year)->where('status','not paid')->where('status_izin','Perpanjangan')->where('bi_type',$jenis_st)->where('upt',$getUptName)->count();
  357. if ($jumlah_rt_agustus != 0) {
  358. $percent_jumlah_rt_agustus = $jumlah_rt_agustus / $total_rts_agustus * 100;
  359. }else{
  360. $percent_jumlah_rt_agustus = 0;
  361. }
  362. $tanggal_upload_agustus = \App\Model\SPP\StatusTagihan::whereMonth('bi_create_date',7)->whereYear('bi_create_date',$year)->select('updated_at')->where('active',1)->where('status_izin','Perpanjangan')->where('bi_type',$jenis_st)->where('upt',$getUptName)->distinct()->value('updated_at');
  363. //September
  364. $paid_rts_september = \App\Model\SPP\StatusTagihan::whereMonth('bi_create_date',8)->whereYear('bi_create_date',$year)->where('status','paid')->where('status_izin','Perpanjangan')->where('bi_type',$jenis_st_paid)->where('upt',$getUptName)->count();
  365. $nopaid_rts_september = \App\Model\SPP\StatusTagihan::whereMonth('bi_create_date',8)->whereYear('bi_create_date',$year)->where('status','not paid')->where('status_izin','Perpanjangan')->where('bi_type',$jenis_st)->where('upt',$getUptName)->count();
  366. $total_rts_september = $paid_rts_september + $nopaid_rts_september;
  367. $sudah_tl_september = \App\Model\SPP\StatusTagihan::whereMonth('bi_create_date',8)->whereYear('bi_create_date',$year)->where('status_izin','Perpanjangan')->where('bi_type',$jenis_st)->where('upt',$getUptName)->where('active',1)->count();
  368. $belum_tl_september = $total_rts_september - $sudah_tl_september;
  369. if ($total_rts_september) {
  370. $percent_sudah_tl_september = $sudah_tl_september / $total_rts_september * 100;
  371. $percent_belum_tl_september = $belum_tl_september / $total_rts_september * 100;
  372. }else{
  373. $percent_belum_tl_september = 0;
  374. $percent_sudah_tl_september = 0;
  375. }
  376. $jumlah_rt_september = \App\Model\SPP\StatusTagihan::whereMonth('bi_create_date',8)->whereYear('bi_create_date',$year)->where('status','not paid')->where('status_izin','Perpanjangan')->where('bi_type',$jenis_st)->where('upt',$getUptName)->count();
  377. if ($jumlah_rt_september != 0) {
  378. $percent_jumlah_rt_september = $jumlah_rt_september / $total_rts_september * 100;
  379. }else{
  380. $percent_jumlah_rt_september = 0;
  381. }
  382. $tanggal_upload_september = \App\Model\SPP\StatusTagihan::whereMonth('bi_create_date',8)->whereYear('bi_create_date',$year)->select('updated_at')->where('active',1)->where('status_izin','Perpanjangan')->where('bi_type',$jenis_st)->where('upt',$getUptName)->distinct()->value('updated_at');
  383. //Oktober
  384. $paid_rts_oktober = \App\Model\SPP\StatusTagihan::whereMonth('bi_create_date',9)->whereYear('bi_create_date',$year)->where('status','paid')->where('status_izin','Perpanjangan')->where('bi_type',$jenis_st_paid)->where('upt',$getUptName)->count();
  385. $nopaid_rts_oktober = \App\Model\SPP\StatusTagihan::whereMonth('bi_create_date',9)->whereYear('bi_create_date',$year)->where('status','not paid')->where('status_izin','Perpanjangan')->where('bi_type',$jenis_st)->where('upt',$getUptName)->count();
  386. $total_rts_oktober = $paid_rts_oktober + $nopaid_rts_oktober;
  387. $sudah_tl_oktober = \App\Model\SPP\StatusTagihan::whereMonth('bi_create_date',9)->whereYear('bi_create_date',$year)->where('status_izin','Perpanjangan')->where('bi_type',$jenis_st)->where('upt',$getUptName)->where('active',1)->count();
  388. $belum_tl_oktober = $total_rts_oktober - $sudah_tl_oktober;
  389. if ($total_rts_oktober) {
  390. $percent_sudah_tl_oktober = $sudah_tl_oktober / $total_rts_oktober * 100;
  391. $percent_belum_tl_oktober = $belum_tl_oktober / $total_rts_oktober * 100;
  392. }else{
  393. $percent_belum_tl_oktober = 0;
  394. $percent_sudah_tl_oktober = 0;
  395. }
  396. $jumlah_rt_oktober = \App\Model\SPP\StatusTagihan::whereMonth('bi_create_date',9)->whereYear('bi_create_date',$year)->where('status','not paid')->where('status_izin','Perpanjangan')->where('bi_type',$jenis_st)->where('upt',$getUptName)->count();
  397. if ($jumlah_rt_oktober != 0) {
  398. $percent_jumlah_rt_oktober = $jumlah_rt_oktober / $total_rts_oktober * 100;
  399. }else{
  400. $percent_jumlah_rt_oktober = 0;
  401. }
  402. $tanggal_upload_oktober = \App\Model\SPP\StatusTagihan::whereMonth('bi_create_date',9)->whereYear('bi_create_date',$year)->select('updated_at')->where('active',1)->where('status_izin','Perpanjangan')->where('bi_type',$jenis_st)->where('upt',$getUptName)->distinct()->value('updated_at');
  403. //November
  404. $paid_rts_november = \App\Model\SPP\StatusTagihan::whereMonth('bi_create_date',10)->whereYear('bi_create_date',$year)->where('status','paid')->where('status_izin','Perpanjangan')->where('bi_type',$jenis_st_paid)->where('upt',$getUptName)->count();
  405. $nopaid_rts_november = \App\Model\SPP\StatusTagihan::whereMonth('bi_create_date',10)->whereYear('bi_create_date',$year)->where('status','not paid')->where('status_izin','Perpanjangan')->where('bi_type',$jenis_st)->where('upt',$getUptName)->count();
  406. $total_rts_november = $paid_rts_november + $nopaid_rts_november;
  407. $sudah_tl_november = \App\Model\SPP\StatusTagihan::whereMonth('bi_create_date',10)->whereYear('bi_create_date',$year)->where('status_izin','Perpanjangan')->where('bi_type',$jenis_st)->where('upt',$getUptName)->where('active',1)->count();
  408. $belum_tl_november = $total_rts_november - $sudah_tl_november;
  409. if ($total_rts_november) {
  410. $percent_sudah_tl_november = $sudah_tl_november / $total_rts_november * 100;
  411. $percent_belum_tl_november = $belum_tl_november / $total_rts_november * 100;
  412. }else{
  413. $percent_belum_tl_november = 0;
  414. $percent_sudah_tl_november = 0;
  415. }
  416. $jumlah_rt_november = \App\Model\SPP\StatusTagihan::whereMonth('bi_create_date',10)->whereYear('bi_create_date',$year)->where('status','not paid')->where('status_izin','Perpanjangan')->where('bi_type',$jenis_st)->where('upt',$getUptName)->count();
  417. if ($jumlah_rt_november != 0) {
  418. $percent_jumlah_rt_november = $jumlah_rt_november / $total_rts_november * 100;
  419. }else{
  420. $percent_jumlah_rt_november = 0;
  421. }
  422. $tanggal_upload_november = \App\Model\SPP\StatusTagihan::whereMonth('bi_create_date',10)->whereYear('bi_create_date',$year)->select('updated_at')->where('active',1)->where('status_izin','Perpanjangan')->where('bi_type',$jenis_st)->where('upt',$getUptName)->distinct()->value('updated_at');
  423. //Desember
  424. $paid_rts_desember = \App\Model\SPP\StatusTagihan::whereMonth('bi_create_date',11)->whereYear('bi_create_date',$year)->where('status','paid')->where('status_izin','Perpanjangan')->where('bi_type',$jenis_st_paid)->where('upt',$getUptName)->count();
  425. $nopaid_rts_desember = \App\Model\SPP\StatusTagihan::whereMonth('bi_create_date',11)->whereYear('bi_create_date',$year)->where('status','not paid')->where('status_izin','Perpanjangan')->where('bi_type',$jenis_st)->where('upt',$getUptName)->count();
  426. $total_rts_desember = $paid_rts_desember + $nopaid_rts_desember;
  427. $sudah_tl_desember = \App\Model\SPP\StatusTagihan::whereMonth('bi_create_date',11)->whereYear('bi_create_date',$year)->where('status_izin','Perpanjangan')->where('bi_type',$jenis_st)->where('upt',$getUptName)->where('active',1)->count();
  428. $belum_tl_desember = $total_rts_desember - $sudah_tl_desember;
  429. if ($total_rts_desember) {
  430. $percent_sudah_tl_desember = $sudah_tl_desember / $total_rts_desember * 100;
  431. $percent_belum_tl_desember = $belum_tl_desember / $total_rts_desember * 100;
  432. }else{
  433. $percent_belum_tl_desember = 0;
  434. $percent_sudah_tl_desember = 0;
  435. }
  436. $jumlah_rt_desember = \App\Model\SPP\StatusTagihan::whereMonth('bi_create_date',11)->whereYear('bi_create_date',$year)->where('status','not paid')->where('status_izin','Perpanjangan')->where('bi_type',$jenis_st)->where('upt',$getUptName)->count();
  437. if ($jumlah_rt_desember != 0) {
  438. $percent_jumlah_rt_desember = $jumlah_rt_desember / $total_rts_desember * 100;
  439. }else{
  440. $percent_jumlah_rt_desember = 0;
  441. }
  442. $tanggal_upload_desember = \App\Model\SPP\StatusTagihan::whereMonth('bi_create_date',11)->whereYear('bi_create_date',$year)->select('updated_at')->where('active',1)->where('status_izin','Perpanjangan')->where('bi_type',$jenis_st)->where('upt',$getUptName)->distinct()->value('updated_at');
  443. ?>
  444. <tr>
  445. <td class="tg-0lax">JAN</td>
  446. <td>{{$total_rts_januari}}</td>
  447. <td>{{$paid_rts_januari}}</td>
  448. <td>{{$sudah_tl_januari}}</td>
  449. <td>{!! substr(strip_tags($percent_sudah_tl_januari), 0, 5) !!} %</td>
  450. <td>{{$belum_tl_januari}}</td>
  451. <td>{!! substr(strip_tags($percent_belum_tl_januari), 0, 5) !!} %</td>
  452. <td>{{$jumlah_rt_januari}}</td>
  453. <td>{!! substr(strip_tags($percent_jumlah_rt_januari), 0, 5) !!} %</td>
  454. <td>
  455. @if($tanggal_upload_januari)
  456. {{\Carbon\Carbon::parse($tanggal_upload_januari)
  457. ->format('d, M Y')}}
  458. @else
  459. Belum Mengirim
  460. @endif
  461. </td>
  462. </tr>
  463. <tr>
  464. <td class="tg-0lax">FEB</td>
  465. <td>{{$total_rts_februari}}</td>
  466. <td>{{$paid_rts_februari}}</td>
  467. <td>{{$sudah_tl_februari}}</td>
  468. <td>{!! substr(strip_tags($percent_sudah_tl_februari), 0, 5) !!} %</td>
  469. <td>{{$belum_tl_februari}}</td>
  470. <td>{!! substr(strip_tags($percent_belum_tl_februari), 0, 5) !!} %</td>
  471. <td>{{$jumlah_rt_februari}}</td>
  472. <td>{!! substr(strip_tags($percent_jumlah_rt_februari), 0, 5) !!} %</td>
  473. <td>
  474. @if($tanggal_upload_februari)
  475. {{\Carbon\Carbon::parse($tanggal_upload_februari)
  476. ->format('d, M Y')}}
  477. @else
  478. Belum Mengirim
  479. @endif
  480. </td>
  481. </tr>
  482. <tr>
  483. <td class="tg-0lax">MAR</td>
  484. <td>{{$total_rts_maret}}</td>
  485. <td>{{$paid_rts_maret}}</td>
  486. <td>{{$sudah_tl_maret}}</td>
  487. <td>{!! substr(strip_tags($percent_sudah_tl_maret), 0, 5) !!} %</td>
  488. <td>{{$belum_tl_maret}}</td>
  489. <td>{!! substr(strip_tags($percent_belum_tl_maret), 0, 5) !!} %</td>
  490. <td>{{$jumlah_rt_maret}}</td>
  491. <td>{!! substr(strip_tags($percent_jumlah_rt_maret), 0, 5) !!} %</td>
  492. <td>
  493. @if($tanggal_upload_maret)
  494. {{\Carbon\Carbon::parse($tanggal_upload_maret)
  495. ->format('d, M Y')}}
  496. @else
  497. Belum Mengirim
  498. @endif
  499. </td>
  500. </tr>
  501. <tr>
  502. <td class="tg-0lax">APR</td>
  503. <td>{{$total_rts_april}}</td>
  504. <td>{{$paid_rts_april}}</td>
  505. <td>{{$sudah_tl_april}}</td>
  506. <td>{!! substr(strip_tags($percent_sudah_tl_april), 0, 5) !!} %</td>
  507. <td>{{$belum_tl_april}}</td>
  508. <td>{!! substr(strip_tags($percent_belum_tl_april), 0, 5) !!} %</td>
  509. <td>{{$jumlah_rt_april}}</td>
  510. <td>{!! substr(strip_tags($percent_jumlah_rt_april), 0, 5) !!} %</td>
  511. <td>
  512. @if($tanggal_upload_april)
  513. {{\Carbon\Carbon::parse($tanggal_upload_april)
  514. ->format('d, M Y')}}
  515. @else
  516. Belum Mengirim
  517. @endif
  518. </td>
  519. </tr>
  520. <tr>
  521. <td class="tg-0lax">MEI</td>
  522. <td>{{$total_rts_mei}}</td>
  523. <td>{{$paid_rts_mei}}</td>
  524. <td>{{$sudah_tl_mei}}</td>
  525. <td>{!! substr(strip_tags($percent_sudah_tl_mei), 0, 5) !!} %</td>
  526. <td>{{$belum_tl_mei}}</td>
  527. <td>{!! substr(strip_tags($percent_belum_tl_mei), 0, 5) !!} %</td>
  528. <td>{{$jumlah_rt_mei}}</td>
  529. <td>{!! substr(strip_tags($percent_jumlah_rt_mei), 0, 5) !!} %</td>
  530. <td>
  531. @if($tanggal_upload_mei)
  532. {{\Carbon\Carbon::parse($tanggal_upload_mei)
  533. ->format('d, M Y')}}
  534. @else
  535. Belum Mengirim
  536. @endif
  537. </td>
  538. </tr>
  539. <tr>
  540. <td class="tg-0lax">JUN</td>
  541. <td>{{$total_rts_juni}}</td>
  542. <td>{{$paid_rts_juni}}</td>
  543. <td>{{$sudah_tl_juni}}</td>
  544. <td>{!! substr(strip_tags($percent_sudah_tl_juni), 0, 5) !!} %</td>
  545. <td>{{$belum_tl_juni}}</td>
  546. <td>{!! substr(strip_tags($percent_belum_tl_juni), 0, 5) !!} %</td>
  547. <td>{{$jumlah_rt_juni}}</td>
  548. <td>{!! substr(strip_tags($percent_jumlah_rt_juni), 0, 5) !!} %</td>
  549. <td>
  550. @if($tanggal_upload_juni)
  551. {{\Carbon\Carbon::parse($tanggal_upload_juni)
  552. ->format('d, M Y')}}
  553. @else
  554. Belum Mengirim
  555. @endif
  556. </td>
  557. </tr>
  558. <tr>
  559. <td class="tg-0lax">JUL</td>
  560. <td>{{$total_rts_juli}}</td>
  561. <td>{{$paid_rts_juli}}</td>
  562. <td>{{$sudah_tl_juli}}</td>
  563. <td>{!! substr(strip_tags($percent_sudah_tl_juli), 0, 5) !!} %</td>
  564. <td>{{$belum_tl_juli}}</td>
  565. <td>{!! substr(strip_tags($percent_belum_tl_juli), 0, 5) !!} %</td>
  566. <td>{{$jumlah_rt_juli}}</td>
  567. <td>{!! substr(strip_tags($percent_jumlah_rt_juli), 0, 5) !!} %</td>
  568. <td>
  569. @if($tanggal_upload_juli)
  570. {{\Carbon\Carbon::parse($tanggal_upload_juli)
  571. ->format('d, M Y')}}
  572. @else
  573. Belum Mengirim
  574. @endif
  575. </td>
  576. </tr>
  577. <tr>
  578. <td class="tg-0lax">AUG</td>
  579. <td>{{$total_rts_agustus}}</td>
  580. <td>{{$paid_rts_agustus}}</td>
  581. <td>{{$sudah_tl_agustus}}</td>
  582. <td>{!! substr(strip_tags($percent_sudah_tl_agustus), 0, 5) !!} %</td>
  583. <td>{{$belum_tl_agustus}}</td>
  584. <td>{!! substr(strip_tags($percent_belum_tl_agustus), 0, 5) !!} %</td>
  585. <td>{{$jumlah_rt_agustus}}</td>
  586. <td>{!! substr(strip_tags($percent_jumlah_rt_agustus), 0, 5) !!} %</td>
  587. <td>
  588. @if($tanggal_upload_agustus)
  589. {{\Carbon\Carbon::parse($tanggal_upload_agustus)
  590. ->format('d, M Y')}}
  591. @else
  592. Belum Mengirim
  593. @endif
  594. </td>
  595. </tr>
  596. <tr>
  597. <td class="tg-0lax">SEP</td>
  598. <td>{{$total_rts_september}}</td>
  599. <td>{{$paid_rts_september}}</td>
  600. <td>{{$sudah_tl_september}}</td>
  601. <td>{!! substr(strip_tags($percent_sudah_tl_september), 0, 5) !!} %</td>
  602. <td>{{$belum_tl_september}}</td>
  603. <td>{!! substr(strip_tags($percent_belum_tl_september), 0, 5) !!} %</td>
  604. <td>{{$jumlah_rt_september}}</td>
  605. <td>{!! substr(strip_tags($percent_jumlah_rt_september), 0, 5) !!} %</td>
  606. <td>
  607. @if($tanggal_upload_september)
  608. {{\Carbon\Carbon::parse($tanggal_upload_september)
  609. ->format('d, M Y')}}
  610. @else
  611. Belum Mengirim
  612. @endif
  613. </td>
  614. </tr>
  615. <tr>
  616. <td class="tg-0lax">OKT</td>
  617. <td>{{$total_rts_oktober}}</td>
  618. <td>{{$paid_rts_oktober}}</td>
  619. <td>{{$sudah_tl_oktober}}</td>
  620. <td>{!! substr(strip_tags($percent_sudah_tl_oktober), 0, 5) !!} %</td>
  621. <td>{{$belum_tl_oktober}}</td>
  622. <td>{!! substr(strip_tags($percent_belum_tl_oktober), 0, 5) !!} %</td>
  623. <td>{{$jumlah_rt_oktober}}</td>
  624. <td>{!! substr(strip_tags($percent_jumlah_rt_oktober), 0, 5) !!} %</td>
  625. <td>
  626. @if($tanggal_upload_oktober)
  627. {{\Carbon\Carbon::parse($tanggal_upload_oktober)
  628. ->format('d, M Y')}}
  629. @else
  630. Belum Mengirim
  631. @endif
  632. </td>
  633. </tr>
  634. <tr>
  635. <td class="tg-0lax">NOV</td>
  636. <td>{{$total_rts_november}}</td>
  637. <td>{{$paid_rts_november}}</td>
  638. <td>{{$sudah_tl_november}}</td>
  639. <td>{!! substr(strip_tags($percent_sudah_tl_november), 0, 5) !!} %</td>
  640. <td>{{$belum_tl_november}}</td>
  641. <td>{!! substr(strip_tags($percent_belum_tl_november), 0, 5) !!} %</td>
  642. <td>{{$jumlah_rt_november}}</td>
  643. <td>{!! substr(strip_tags($percent_jumlah_rt_november), 0, 5) !!} %</td>
  644. <td>
  645. @if($tanggal_upload_november)
  646. {{\Carbon\Carbon::parse($tanggal_upload_november)
  647. ->format('d, M Y')}}
  648. @else
  649. Belum Mengirim
  650. @endif
  651. </td>
  652. </tr>
  653. <tr>
  654. <td class="tg-0lax">DES</td>
  655. <td>{{$total_rts_desember}}</td>
  656. <td>{{$paid_rts_desember}}</td>
  657. <td>{{$sudah_tl_desember}}</td>
  658. <td>{!! substr(strip_tags($percent_sudah_tl_desember), 0, 5) !!} %</td>
  659. <td>{{$belum_tl_desember}}</td>
  660. <td>{!! substr(strip_tags($percent_belum_tl_desember), 0, 5) !!} %</td>
  661. <td>{{$jumlah_rt_desember}}</td>
  662. <td>{!! substr(strip_tags($percent_jumlah_rt_desember), 0, 5) !!} %</td>
  663. <td>
  664. @if($tanggal_upload_desember)
  665. {{\Carbon\Carbon::parse($tanggal_upload_desember)
  666. ->format('d, M Y')}}
  667. @else
  668. Belum Mengirim
  669. @endif
  670. </td>
  671. </tr>
  672. </table>
  673. </div>
  674. </div>
  675. @endif