Nav apraksta
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

index.blade.php 2.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  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 class="col text-right">
  14. <a href="{{ route($route.'create') }}" class="btn btn-success">Tambah</a>
  15. </div>
  16. </div>
  17. </div>
  18. <div class="card-body">
  19. <table class="table align-items-center border table-responsive" id="data-table">
  20. <thead class="thead-light">
  21. <tr>
  22. <th width="5%" scope="col">No</th>
  23. <th scope="col">Nama</th>
  24. <th scope="col">Nomor Kendaraan</th>
  25. <th scope="col">Tipe</th>
  26. <th scope="col">Aksi</th>
  27. </tr>
  28. </thead>
  29. </table>
  30. </div>
  31. </div>
  32. </div>
  33. </div>
  34. {{-- end pattern- --}}
  35. @endsection
  36. @push('js')
  37. <script src="{{ asset('assets') }}/js/blockUI.js"></script>
  38. <script src="{{ asset('assets') }}/js/sweetalert2.js"></script>
  39. <script src="{{ asset('assets') }}/js/custom.js"></script>
  40. <script src="{{ asset('assets') }}/js/custom_datatable.js"></script>
  41. <script>
  42. $(document).ready(function () {
  43. var id_datatable = "#data-table";
  44. var url_ajax = '{!! route($route.'get_data') !!}';
  45. var column = [
  46. { data: 'DT_RowIndex', searchable: false, orderable: false, className: 'dt-center' },
  47. { data: 'name', name: 'name' },
  48. { data: 'transportation_identity', name: 'transportation_identity' },
  49. { data: 'transportation_type', name: 'transportation_type' },
  50. { data: 'aksi', name: 'aksi' },
  51. ];
  52. global.init_datatable(id_datatable, url_ajax, column);
  53. });
  54. </script>
  55. @endpush