update
This commit is contained in:
@@ -1,29 +1,36 @@
|
||||
@extends('layout.master')
|
||||
@extends('administrator.layout.master')
|
||||
|
||||
@push('plugin-styles')
|
||||
<!-- Plugin css import here -->
|
||||
<link href="{{ asset('build/plugins/sweetalert2/sweetalert2.min.css') }}" rel="stylesheet" />
|
||||
<link href="{{ asset('build/plugins/datatables.net-bs5/dataTables.bootstrap5.min.css') }}" rel="stylesheet" />
|
||||
@endpush
|
||||
|
||||
@section('content')
|
||||
<!-- Page content here -->
|
||||
<x-datatable id="usersTable" ajax="{{ route('admin.users.datatable') }}" :columns="[
|
||||
['key' => 'id', 'label' => 'ID'],
|
||||
['key' => 'name', 'label' => 'Name'],
|
||||
['key' => 'email', 'label' => 'Email'],
|
||||
['key' => 'created_at', 'label' => 'Created'],
|
||||
// ['key' => 'actions', 'label' => 'Actions', 'orderable' => false, 'searchable' => false],
|
||||
]" />
|
||||
<div class="row">
|
||||
<div class="col-md-12 grid-margin stretch-card">
|
||||
<div class="card">
|
||||
<div class="card-body">
|
||||
<h6 class="card-title">Test Page</h6>
|
||||
<x-datatable id="usersTable" ajax="{{ route('admin.users.datatable') }}" :columns="[
|
||||
['key' => 'id', 'label' => 'ID'],
|
||||
['key' => 'name', 'label' => 'Name'],
|
||||
['key' => 'email', 'label' => 'Email'],
|
||||
['key' => 'created_at', 'label' => 'Created'],
|
||||
]" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
@push('plugin-scripts')
|
||||
<!-- Plugin js import here -->
|
||||
<script src="{{ asset('build/plugins/sweetalert2/sweetalert2.min.js') }}"></script>
|
||||
<script src="{{ asset('build/plugins/jquery/jquery.min.js') }}"></script>
|
||||
<script src="{{ asset('build/plugins/datatables.net/dataTables.min.js') }}"></script>
|
||||
<script src="{{ asset('build/plugins/datatables.net-bs5/dataTables.bootstrap5.min.js') }}"></script>
|
||||
@endpush
|
||||
|
||||
@push('custom-scripts')
|
||||
<!-- Custom js here -->
|
||||
@vite(['resources/js/pages/data-table.js'])
|
||||
@vite(['resources/js/pages/sweet-alert.js'])
|
||||
@vite(['resources/js/pages/data-table.js'])
|
||||
@endpush
|
||||
|
||||
Reference in New Issue
Block a user