Dashboard sipadu mbip
Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

report_payment_index.blade.php 4.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171
  1. @extends('layout.master', ['uid' => $user->_id, 'token' => $user->token_firebase])
  2. @section('page_title', 'Kompaun')
  3. @section('sub_page_title', '')
  4. @section('name', $user->StaffDetail->full_name)
  5. @section('img_profile', $user->StaffDetail->profile_img)
  6. @section('content')
  7. <style type="text/css">
  8. select.form-control, select.form-control:focus, select.form-control:hover {
  9. border: 1px solid #ccc !important;
  10. height: auto !important;
  11. }
  12. .panel-group .panel {
  13. margin-bottom: 0;
  14. overflow: hidden;
  15. border-radius: 4px;
  16. }
  17. .panel-default {
  18. border-color: #ddd;
  19. }
  20. .panel-default>.panel-heading {
  21. color: #333;
  22. background-color: #f5f5f5;
  23. border-color: #ddd;
  24. }
  25. .panel-title {
  26. margin-top: 0;
  27. margin-bottom: 0;
  28. font-size: 16px;
  29. color: inherit;
  30. }
  31. .panel-body .table>thead>tr>th, .panel-body .table>tbody>tr>th, .panel-body .table>tfoot>tr>th, .panel-body .table>thead>tr>td, .panel-body .table>tbody>tr>td, .panel-body .table>tfoot>tr>td {
  32. padding: 8px;
  33. line-height: 1.428571429;
  34. vertical-align: top;
  35. border-top: 1px solid #ddd;
  36. }
  37. .glyphicon { margin-right:10px; }
  38. .panel-body { padding:0px; }
  39. .panel-body table tr td { padding-left: 15px }
  40. .panel-body .table {margin-bottom: 0px; }
  41. th { font-weight: 600; }
  42. table.dataTable.nowrap th, table.dataTable.nowrap td {
  43. white-space: pre-line !important;
  44. }
  45. </style>
  46. <div class="inner-page">
  47. <div class="row">
  48. <div class="col-sm-12">
  49. <div class="card">
  50. <div class="card-header">
  51. <h5>Laporan Tunai (Bayaran kepada PenguatKuasa)</h5>
  52. </div>
  53. <div class="card-block">
  54. <div class="dt-responsive table-responsive">
  55. <table id="report" class="table table-sm table-striped table-bordered nowrap" style="width:100%">
  56. <thead>
  57. <tr>
  58. <th>#</th>
  59. <th>No.Kompaun</th>
  60. <th>Nama Kesalahan</th>
  61. <th>Nama</th>
  62. <th>Nric</th>
  63. <th>No.Telefon</th>
  64. <th>Emel</th>
  65. <th>Jumlah Bayar</th>
  66. <th>PenguatKuasa</th>
  67. </tr>
  68. </thead>
  69. <tfoot>
  70. <tr>
  71. <th>#</th>
  72. <th>No.Kompaun</th>
  73. <th>Nama Kesalahan</th>
  74. <th>Nama</th>
  75. <th>Nric</th>
  76. <th>No.Telefon</th>
  77. <th>Emel</th>
  78. <th>Jumlah Bayar</th>
  79. <th>PenguatKuasa</th>
  80. </tr>
  81. </tfoot>
  82. </table>
  83. </div>
  84. </div>
  85. </div>
  86. </div>
  87. </div>
  88. </div>
  89. @endsection
  90. @section('external_js')
  91. <script type="text/javascript">
  92. $.ajaxSetup({
  93. headers: {
  94. 'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')
  95. }
  96. });
  97. $(document).ready(function() {
  98. var origin = window.location.origin;
  99. $(".theme-loader").animate({
  100. opacity: "0"
  101. },1000);
  102. setTimeout(function() {
  103. $(".theme-loader").remove();
  104. }, 800);
  105. $('[data-toggle="tooltip"]').tooltip();
  106. var table = $('#report').DataTable({
  107. "dom": "Bfrtip",
  108. "ordering": false,
  109. "serverSide": true,
  110. "processing": true,
  111. "ajax": "{{ url('api/report/payment/list') }}",
  112. "columns": [
  113. { "data": "#","name": "#"},
  114. { "data": "kpd","name": "kpd"},
  115. { "data": "kesalahan","name": "kesalahan"},
  116. { "data": "nama","name": "nama"},
  117. { "data": "identity", "name": "identity" },
  118. { "data": "mobile", "name": "mobile"},
  119. { "data": "email", "name": "email"},
  120. { "data": "jumlah","name": "jumlah"},
  121. { "data": "no_badan","name": "no_badan"},
  122. ],
  123. "columnDefs": [{
  124. "render": function ( data, type, row ) {
  125. if (data.indexOf("Baru/") >= 0) {
  126. var split = data.split('/');
  127. return '<label class="label label-success">'+split[0]+'</label>&nbsp;'+split[1];
  128. }else {
  129. return data;
  130. }
  131. },
  132. "targets": 0,
  133. }],
  134. "language": {
  135. "paginate": {
  136. "previous": "Sebelum",
  137. "next": "Selepas"
  138. },
  139. "sLengthMenu": "Tunjukkan _MENU_ entri",
  140. "zeroRecords": "Tiada Data Ditemui",
  141. "infoEmpty": "Tiada Rekod Yang Wujud",
  142. "infoFiltered": "(Ditapis daripada _MAX_ jumlah rekod)",
  143. "info": "Tunjuk _START_ hingga _END_ daripada _TOTAL_ entri",
  144. "sSearch": "Cari:",
  145. },
  146. "buttons": [{
  147. "extend": "collection",
  148. "text": "Eksport",
  149. "buttons": [
  150. "copy",
  151. 'excel',
  152. 'csv',
  153. 'pdf',
  154. 'print'
  155. ]
  156. }]
  157. });
  158. });
  159. </script>
  160. @endsection