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

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. @extends('admin.layouts.app')
  2. @section('content')
  3. {{-- start patern --}}
  4. <div class="card shadow mt-2">
  5. <div class="card-header bg-transparent">
  6. <div class="row align-items-center">
  7. <div class="col">
  8. <h6 class="text-uppercase text-muted ls-1 mb-1">{{ $sub_header }}</h6>
  9. <h2 class="mb-0">{{ $header }}</h2>
  10. </div>
  11. <div class="col text-right">
  12. <a href="{{ route($route.'create') }}" class="btn btn-success">Tambah</a>
  13. </div>
  14. </div>
  15. </div>
  16. <div class="card-body table-responsive">
  17. <table class="table align-items-center border" id="data-table">
  18. <thead class="thead-light">
  19. <tr>
  20. <th width="5%" scope="col">No</th>
  21. <th scope="col">Start Date</th>
  22. <th scope="col">End Date</th>
  23. <th scope="col">Aksi</th>
  24. </tr>
  25. </thead>
  26. </table>
  27. </div>
  28. </div>
  29. {{-- end pattern- --}}
  30. @endsection
  31. @push('js')
  32. <script src="{{ asset('assets') }}/js/blockUI.js"></script>
  33. <script src="{{ asset('assets') }}/js/sweetalert2.js"></script>
  34. <script src="{{ asset('assets') }}/js/custom.js"></script>
  35. <script src="{{ asset('assets') }}/js/custom_datatable.js"></script>
  36. <script>
  37. $(document).ready(function () {
  38. var id_datatable = "#data-table";
  39. var url_ajax = '{!! route($route.'get_data') !!}';
  40. var column = [
  41. { data: 'DT_RowIndex', searchable: false, orderable: false, className: 'dt-center' },
  42. { data: 'start', name: 'start_date' },
  43. { data: 'end', name: 'end_date' },
  44. { data: 'aksi', name: 'aksi' },
  45. ];
  46. global.init_datatable(id_datatable, url_ajax, column);
  47. });
  48. </script>
  49. @endpush