My problem is this, the application I'm developing has a client listing, which uses the following code to display:
<section class="content">
<div class="row">
<div class="col-xs-12">
<div class="box">
<div class="box-body">
<table id="data-table-clientes" class="table table-bordered table-hover">
<thead>
<tr>
<th class="col-xs-1">#</th>
<th class="col-xs-2">CNPJ</th>
<th class="col-xs-2">Razão Social</th>
<th class="col-xs-2">Nome Fantasia</th>
<th class="col-xs-2">Email</th>
<th class="col-xs-2"></th>
</tr>
</thead>
<tbody>
<?php $i = 0 ?>
@foreach( $clientes as $cliente )
<tr>
<td>{{(($clientes->currentPage() - 1 ) * $clientes->perPage() ) + (++$i)}}</td>
<td>{{$cliente->cnpj}}</td>
<td>{{$cliente->razao_social}}</td>
<td>{{$cliente->nome_fantasia}}</td>
<td>{{($cliente->email)}}</td>
<td>
<a class="btn-sm btn-warning margin" href="{{route('clientes.edit', ['id' => $cliente->id])}}" title="Editar">
<i class="fa fa-edit"></i>
</a>
<a class="btn-sm btn-danger" href="{{route('clientes.delete', ['id' => $cliente->id])}}" title="Excluir">
<i class="fa fa-edit"></i>
</a>
</td>
</tr>
@endforeach
</tbody>
</table>
{!! $clientes->render() !!}
</div>
</div>
</div>
</div>
</section>
But sometimes the page suffers a reload
(pagination is an example), the content is deformed as follows and only returns to normal giving reload
again.
I do not think it's AdminLTE
, because I rewritten everything without Laravel
for test purposes, with the same content, and the problem did not persist.
Could anyone help me solve this problem?
Thank you for your attention.