説明なし
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

index.blade.php 1.9KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  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">Title</th>
  22. <th scope="col">Aksi</th>
  23. </tr>
  24. </thead>
  25. </table>
  26. </div>
  27. </div>
  28. {{-- end pattern- --}}
  29. @endsection
  30. @push('js')
  31. <script src="{{ asset('assets') }}/js/blockUI.js"></script>
  32. <script src="{{ asset('assets') }}/js/sweetalert2.js"></script>
  33. <script src="{{ asset('assets') }}/js/custom.js"></script>
  34. <script src="{{ asset('assets') }}/js/custom_datatable.js"></script>
  35. <script>
  36. $(document).ready(function () {
  37. var id_datatable = "#data-table";
  38. var url_ajax = '{!! route($route.'get_data') !!}';
  39. var column = [
  40. { data: 'DT_RowIndex', searchable: false, orderable: false, className: 'dt-center' },
  41. { data: 'title', name: 'title' },
  42. { data: 'aksi', name: 'aksi' },
  43. ];
  44. global.init_datatable(id_datatable, url_ajax, column);
  45. });
  46. </script>
  47. @endpush