You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

32 lines
1.6 KiB
PHTML

2 years ago
@if ($paginator->hasPages())
<div class="card-footer pagination-box clearfix">
<ul class="pagination justify-content-center">
@if ($paginator->onFirstPage())
<li class="page-item disabled"><a class="page-link" href="#" title="이전 페이지">&laquo;</a></li>
@else
<li class="page-item"><a class="page-link" href="{{ $paginator->previousPageUrl() }}" title="이전 페이지">&laquo;</a></li>
@endif
@foreach ($elements as $element)
@if (is_string($element))
<li class="disabled"><span>{{ $element }}</span></li>
@endif
@if (is_array($element))
@foreach ($element as $page => $url)
@if ($page == $paginator->currentPage())
<li class="page-item active"><a class="page-link" href="#" title="현재 페이지">{{ $page }}</a></li>
@else
<li class="page-item"><a class="page-link" href="{{ $url }}" title="{{ $page }} 페이지">{{ $page }}</a></li>
@endif
@endforeach
@endif
@endforeach
@if ($paginator->hasMorePages())
<li class="page-item"><a class="page-link" href="{{ $paginator->nextPageUrl() }}" title="다음 페이지">&raquo;</a></li>
@else
<li class="page-item disabled"><a class="page-link" href="#" title="다음 페이지">&raquo;</a></li>
@endif
<ul>
</ul>
</div>
@endif