No Description
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.

index.blade.php 2.8KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. @extends('admin.layouts.app')
  2. @section('content')
  3. {{-- start patern --}}
  4. <div class="row">
  5. <div class="col-xl-12">
  6. <div class="card shadow">
  7. <div class="card-header bg-transparent">
  8. <div class="row align-items-center">
  9. <div class="col">
  10. <h6 class="text-uppercase text-muted ls-1 mb-1">User Management | Petugas Udd</h6>
  11. <h2 class="mb-0">Petugas UDD</h2>
  12. </div>
  13. @can('petugas_udd-create')
  14. <div class="col text-right">
  15. <a href="{{ route($route.'create') }}" class="btn btn-success">Tambah</a>
  16. </div>
  17. @endcan
  18. </div>
  19. </div>
  20. <div class="card-body">
  21. <table class="table align-items-center border table-responsive" id="data-table">
  22. <thead class="thead-light">
  23. <tr>
  24. <th width="5%" scope="col">No</th>
  25. <th scope="col">Nama</th>
  26. <th scope="col">Email</th>
  27. <th scope="col">Role</th>
  28. <th scope="col">Udd PMI</th>
  29. <th scope="col">Aksi</th>
  30. </tr>
  31. </thead>
  32. <tbody>
  33. </tbody>
  34. </table>
  35. </div>
  36. </div>
  37. </div>
  38. </div>
  39. {{-- end pattern- --}}
  40. @endsection
  41. @push('js')
  42. <script src="{{ asset('assets') }}/js/blockUI.js"></script>
  43. <script src="{{ asset('assets') }}/js/sweetalert2.js"></script>
  44. <script src="{{ asset('assets') }}/js/custom.js"></script>
  45. <script src="{{ asset('assets') }}/js/custom_datatable.js"></script>
  46. <script>
  47. $(document).ready(function () {
  48. var id_datatable = "#data-table";
  49. var url_ajax = '{!! route('admin.user_management.petugas_udd.get_data') !!}';
  50. var column = [
  51. { data: 'no', name: 'no' },
  52. { data: 'nama', name: 'nama' },
  53. { data: 'email', name: 'email' },
  54. { data: 'roles', name: 'roles' },
  55. { data: 'udd_pmi', name: 'udd_pmi' },
  56. { data: 'aksi', name: 'aksi' },
  57. ];
  58. global.init_datatable(id_datatable, url_ajax, column);
  59. });
  60. </script>
  61. @endpush