Updated datatables, using @pa instead of @js/@css, using conditionalPaging in datatables
This commit is contained in:
@@ -1,16 +1,16 @@
|
||||
<div class="card card-dark">
|
||||
<div class="card-header">
|
||||
<div class="card-header p-2">
|
||||
<h4 class="card-title">Accounts</h4>
|
||||
</div>
|
||||
|
||||
<div class="card-body">
|
||||
<div class="card-body p-2">
|
||||
@if($x=$o->accounts_all->count())
|
||||
<table class="table table-striped table-hover" id="accounts">
|
||||
<table class="table table-sm table-striped table-hover" id="accounts">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Profile</th>
|
||||
<th style="width: 10%;">Profile</th>
|
||||
<th>Name</th>
|
||||
<th class="text-right">Services</th>
|
||||
<th class="text-right" style="width: 10%;">Services</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@@ -40,15 +40,13 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@section('page-styles')
|
||||
@css(datatables,bootstrap4)
|
||||
@append
|
||||
@section('page-scripts')
|
||||
@js(datatables,bootstrap4)
|
||||
@pa(datatables,rowgroup|conditionalpaging)
|
||||
|
||||
@section('page-scripts')
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function() {
|
||||
$('#accounts').DataTable({
|
||||
conditionalPaging: true,
|
||||
language: {
|
||||
emptyTable: "No Active Clients"
|
||||
},
|
||||
|
Reference in New Issue
Block a user