Я успешно извлек данные и отобразил их в списке таблиц, но в моем списке нет стр. страница. Мои данные поступают из API.
Мой контроллер
public function index()
{
$response = $this->client->get('getUserIndex')->getBody();
$content = json_decode($response->getContents(),true);
$collection = new \Illuminate\Support\Collection($content);
$total = count($collection['data']);
$paginationRecord = CollectionPaginate::paginate($collection, $total, 15);
return view('configuration.comuserprofiles.ComUserProfilesList', compact('paginationRecord'));
}
половина моего представления таблицы
@foreach($paginationRecord as $i=>$user)
@foreach($user as $i => $u)
@php
$currentRecordno = 1;
// dd($u['irel__com_access_level']['ID']);
@endphp
<tr>
<td>{{ $currentRecordno + $i }}</td>
<td>{{ $u['ID'] }}</td>
<td>{{ $u['NICK_NAME'] }}</td>
<td>{{ $u['PWD_INVALID_HIT'] }}</td>
</tr>
@endforeach
мой клинок для нумерации страниц
<div class="row row-pagination">
<div class="col-sm-6 text-left">
<small class="text-muted inline m-t-sm m-b-sm"><font color="#00000f">{{ $paginationRecord->total() }} record/s found </font></small>
</div>
<div class="col-md-6 text-right text-center-xs">
<ul>
{{ $paginationRecord->links() }}
</ul>
</div>
</div>
Я ожидаю отображения 15 записей на странице