Sin descripción
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.3KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  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">{{ $sub_header }}</h6>
  11. <h2 class="mb-0">{{ $header }}</h2>
  12. </div>
  13. </div>
  14. </div>
  15. <div class="card-body">
  16. <table class="table align-items-center border table-responsive" id="data-table">
  17. <thead class="thead-light">
  18. <tr>
  19. <th width="5%" scope="col">No</th>
  20. <th scope="col">User</th>
  21. <th scope="col">Caption</th>
  22. <th scope="col">Status</th>
  23. <th scope="col">Aksi</th>
  24. </tr>
  25. </thead>
  26. </table>
  27. </div>
  28. </div>
  29. </div>
  30. </div>
  31. {{-- end pattern- --}}
  32. @endsection
  33. @push('js')
  34. <script src="{{ asset('assets') }}/js/blockUI.js"></script>
  35. <script src="{{ asset('assets') }}/js/sweetalert2.js"></script>
  36. <script src="{{ asset('assets') }}/js/custom.js"></script>
  37. <script src="{{ asset('assets') }}/js/custom_datatable.js"></script>
  38. <script>
  39. $(document).ready(function () {
  40. var id_datatable = "#data-table";
  41. var url_ajax = '{!! route($route.'get_data') !!}';
  42. console.log(url_ajax);
  43. var column = [
  44. { data: 'DT_RowIndex', searchable: false, orderable: false, className: 'dt-center' },
  45. { data: 'user', name: 'user' },
  46. { data: 'caption', name: 'caption' },
  47. { data: 'is_approved', name: 'is_approved' },
  48. { data: 'aksi', name: 'aksi' },
  49. ];
  50. global.init_datatable(id_datatable, url_ajax, column);
  51. });
  52. </script>
  53. @endpush