upt-tahun.blade.php 45 KB

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