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.7KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  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 | KHUSUS SUPER ADMIN</h6>
  11. <h2 class="mb-0">User Manage - Super Admin</h2>
  12. </div>
  13. @can('user-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">Action</th>
  29. </tr>
  30. </thead>
  31. <tbody>
  32. </tbody>
  33. </table>
  34. </div>
  35. </div>
  36. </div>
  37. </div>
  38. {{-- end pattern- --}}
  39. @endsection
  40. @push('js')
  41. <script src="{{ asset('assets') }}/js/blockUI.js"></script>
  42. <script src="{{ asset('assets') }}/js/sweetalert2.js"></script>
  43. <script src="{{ asset('assets') }}/js/custom.js"></script>
  44. <script src="{{ asset('assets') }}/js/custom_datatable.js"></script>
  45. <script>
  46. $(document).ready(function () {
  47. var id_datatable = "#data-table";
  48. var url_ajax = '{!! route('admin.user_management.user.get_data') !!}';
  49. var column = [
  50. { data: 'DT_RowIndex', searchable: false, orderable: false, className: 'dt-center' },
  51. { data: 'name', name: 'name' },
  52. { data: 'email', name: 'email' },
  53. { data: 'role_name', name: 'role_name' },
  54. { data: 'aksi', name: 'aksi' },
  55. ];
  56. global.init_datatable(id_datatable, url_ajax, column);
  57. });
  58. </script>
  59. @endpush