print-search.blade.php 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <style>
  5. .table-bordered {
  6. border-collapse: collapse;
  7. width: 100%;
  8. }
  9. .table-bordered td, .table-bordered th {
  10. border: 1px solid black;
  11. padding: 8px;
  12. }
  13. .thead-light{
  14. background-color: #E9ECEF;
  15. }
  16. .table-bordered th {
  17. padding-top: 12px;
  18. padding-bottom: 12px;
  19. text-align: left;
  20. }
  21. </style>
  22. </head>
  23. <body>
  24. <center>
  25. <div>
  26. <hr>
  27. <h2 class="font-weight-bolder">Data Status Tagihan {{date('d F Y')}}</h2>
  28. <hr>
  29. <table id="example" class="table table-bordered align-items-center" style="width: 100%; font-size: 12px;">
  30. <thead class="thead-light">
  31. <tr>
  32. <th scope="col">#</th>
  33. <th scope="col">No.Tagihan</th>
  34. <th scope="col">No. Klien</th>
  35. <th scope="col">Nama Klien</th>
  36. <th scope="col">Jenis ST</th>
  37. <th scope="col">BHP (Rp)</th>
  38. <th scope="col">Tanggal ( BI CREATE DATE )</th>
  39. <th scope="col">Status Pembayaran</th>
  40. <th scope="col">Tgl Jatuh Tempo</th>
  41. <th scope="col">Tanggal Bayar</th>
  42. <th scope="col1">Tanggal Upload</th>
  43. <th scope="col">Service</th>
  44. </tr>
  45. </thead>
  46. <tbody>
  47. @foreach($rt as $key => $value)
  48. <tr>
  49. <td scope="col">{{$key+1}}</td>
  50. <th scope="row">{{$value->no_spp}}</th>
  51. <td>{{$value->no_klien}}</td>
  52. <td>{{$value->nama_perusahaan}}</td>
  53. <td>
  54. @if($value->bi_type == 1)<a class="btn btn-success btn-sm text-white">ST 1</a> @elseif($value->bi_type == 9)<a class="btn btn-success btn-sm text-white">ST 1 Paid</a> @elseif($value->bi_type == 2)<a class="btn btn-info btn-sm text-white">ST 2</a> @elseif($value->bi_type == 10) <a class="btn btn-info btn-sm text-white">ST 2 Paid</a> @elseif($value->bi_type == 3)<a class="btn btn-warning btn-sm text-white">ST 3</a> @elseif($value->bi_type == 11)<a class="btn btn-warning btn-sm text-white">ST 3 Paid</a> @elseif($value->bi_type == 16)<a class="btn btn-danger btn-sm text-white">STT</a> @elseif($value->bi_type == 49)<a class="btn btn-danger btn-sm text-white">STT Paid</a> @endif
  55. </td>
  56. <td>Rp. {{number_format($value->tagihan, 2)}}</td>
  57. <td>{{\Carbon\Carbon::parse($value->bi_create_date)
  58. ->format('d, M Y')}}</td>
  59. <td><center><a class="btn btn-success btn-sm text-white">Telah Bayar</a></center></td>
  60. <td>{{\Carbon\Carbon::parse($value->bi_end)
  61. ->format('d, M Y')}}</td>
  62. <td>{{\Carbon\Carbon::parse($value->bi_money_received)
  63. ->format('d, M Y')}}</td>
  64. <td>19/06/2019</td>
  65. <td>{{$value->service_name}}</td>
  66. </tr>
  67. @endforeach
  68. </tbody>
  69. </table>
  70. <hr>
  71. </div>
  72. </center>
  73. </body>
  74. </html>