Мы внедрили simplePaginate в нашем приложении, но наша версия laravel - 5.5, а lastPage () пока недоступна.
Вопрос: Любое руководство, где я могу получить последнюю страницу моей нумерации страниц?
Просмотр
<div class="row">
<div class="col-md-12 col-sm-12 col-xs-12 col-lg-12">
<div class="table-responsive">
<table class="table table-striped table-bordered table-hover general-journal-report-table" id="gj-report">
<thead class="thead-global">
<tr>
<th id="pj_sequence">Sequence No.</th>
<th id="pj_date">Posting Date</th>
<th id="pj_op">Transaction No.</th>
<th id="4">Document Reference</th>
<th id="5">Remarks</th>
<th id="6">Amount Due</th>
</tr>
</thead>
<tbody class="general-journal-report-details">
@if($defined_gj)
<?php $counter = 0; ;?>
<?php $total_debit = 0; ?>
@foreach($defined_gj as $key => $value)
<?php $counter++;?>
<?php $total_debit += $value->debit ;?>
<tr>
<td class="pj_sequence">{{$counter}}</td>
<td class="pj_date">{{$value->posting_date}}</td>
<td class="pj_op">{!! $value->number !!}</td>
<td>{{$value->doc_ref}}</td>
<td>{{$value->remarks}}</td>
@if($value->debit == '0')
<td></td>
@else
<td align="right"> {{number_format($value->debit,2)}}</td>
@endif
</tr>
@endforeach
<tr>
<td><b>Total</b></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td align="right"> {{number_format($total_debit)}}</td>
</tr>
@endif
</tbody>
</table>
</div>
<p style="font-size: 12px;"><i>page {{ $general_journals->currentPage() }} out of</i></p>
{{ $general_journals->links() }}
</div>