Dashboard sipadu mbip
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

user_index.blade.php 4.5KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178
  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. </style>
  42. <div class="inner-page">
  43. <div class="row">
  44. <div class="col-md-12">
  45. <div class="fluid">
  46. @if(count($errors) > 0)
  47. <div class="alert alert-danger icons-alert">
  48. @foreach($errors->all() as $error)
  49. <p>{{$error}}</p>
  50. @endforeach
  51. </div>
  52. @endif
  53. @if(Session::get('error_msg'))
  54. <div class="alert alert-danger icons-alert">
  55. {!! Session::get('error_msg') !!}
  56. </div>
  57. @elseif(Session::get('success_msg'))
  58. <div class="alert alert-success icons-alert">
  59. {!! Session::get('success_msg') !!}
  60. </div>
  61. @endif
  62. </div>
  63. </div>
  64. </div>
  65. <div class="row">
  66. <div class="col-sm-12">
  67. <div class="card">
  68. <div class="card-header">
  69. <h5>Senarai Penguna Aplikasi</h5>
  70. </div>
  71. <div class="card-block">
  72. <div class="dt-responsive table-responsive">
  73. <table id="user_app" class="table table-sm table-striped table-bordered nowrap" style="width:100%">
  74. <thead>
  75. <tr>
  76. <th>#</th>
  77. <th>Name</th>
  78. <th>No.Kp</th>
  79. <th>Emel</th>
  80. <th>No.Telefon</th>
  81. <th>Tarikh Daftar</th>
  82. <th>Kategori</th>
  83. <th>Status</th>
  84. </tr>
  85. </thead>
  86. <tfoot>
  87. <tr>
  88. <th>#</th>
  89. <th>Name</th>
  90. <th>No.Kp</th>
  91. <th>Emel</th>
  92. <th>No.Telefon</th>
  93. <th>Tarikh Daftar</th>
  94. <th>Kategori</th>
  95. <th>Status</th>
  96. </tr>
  97. </tfoot>
  98. </table>
  99. </div>
  100. </div>
  101. </div>
  102. </div>
  103. </div>
  104. </div>
  105. @endsection
  106. @section('external_js')
  107. <script type="text/javascript">
  108. $.ajaxSetup({
  109. headers: {
  110. 'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')
  111. }
  112. });
  113. $(document).ready(function() {
  114. var origin = window.location.origin;
  115. $(".theme-loader").animate({
  116. opacity: "0"
  117. },1000);
  118. setTimeout(function() {
  119. $(".theme-loader").remove();
  120. }, 800);
  121. $('[data-toggle="tooltip"]').tooltip();
  122. var table = $('#user_app').DataTable({
  123. "ordering": false,
  124. "serverSide": true,
  125. "processing": true,
  126. "ajax": "{{ url('api/user/app/list') }}",
  127. "columns": [
  128. { "data": "#","name": "#"},
  129. { "data": "nama","name": "nama"},
  130. { "data": "identity", "name": "identity" },
  131. { "data": "email", "name": "email"},
  132. { "data": "mobile", "name": "mobile"},
  133. { "data": "daftar","name": "daftar"},
  134. { "data": "kategori","name": "kategori"},
  135. { "data": "status","name": "status"}
  136. ],
  137. "columnDefs": [{
  138. "render": function ( data, type, row ) {
  139. if (data.indexOf("Baru/") >= 0) {
  140. var split = data.split('/');
  141. return '<label class="label label-success">'+split[0]+'</label>&nbsp;'+split[1];
  142. }else {
  143. return data;
  144. }
  145. },
  146. "targets": 0,
  147. }
  148. ],
  149. "language": {
  150. "paginate": {
  151. "previous": "Sebelum",
  152. "next": "Selepas"
  153. },
  154. "sLengthMenu": "Tunjukkan _MENU_ entri",
  155. "zeroRecords": "Tiada Data Ditemui",
  156. "infoEmpty": "Tiada Rekod Yang Wujud",
  157. "infoFiltered": "(Ditapis daripada _MAX_ jumlah rekod)",
  158. "info": "Tunjuk _START_ hingga _END_ daripada _TOTAL_ entri",
  159. "sSearch": "Cari:",
  160. }
  161. });
  162. });
  163. </script>
  164. @endsection