暫無描述
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

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