Initial commit

This commit is contained in:
vsphim
2026-05-20 12:51:54 +07:00
commit 7e9bc5c8e0
57 changed files with 4180 additions and 0 deletions

View File

@@ -0,0 +1,42 @@
@php
$pageRange = 3;
@endphp
@if ($paginator->hasPages())
<ul class="stui-page text-center clearfix">
{{-- Previous Page Link --}}
@if ($paginator->onFirstPage())
@else
<li><a title="Trang trước" href="{{ $paginator->previousPageUrl() }}"> &lt;&lt; </a></li>
@endif
{{-- Pagination Elements --}}
@foreach ($elements as $element)
{{-- Array Of Links --}}
@if (is_array($element))
@foreach ($element as $page => $url)
@if ($page == $paginator->currentPage())
<li class="hidden-xs active"><a title="Trang {{ $page }}"
href="#">{{ $page }}</a></li>
<li class="active visible-xs">
<span class="num">{{ $page }}/{{ $paginator->total() }}</span>
</li>
@else
@if (
($page > $paginator->currentPage() && $page < $paginator->currentPage() + $pageRange) ||
($page < $paginator->currentPage() && $page > $paginator->currentPage() - $pageRange))
<li class="hidden-xs">
<a title="Trang {{ $page }}" href="{{ $url }}">{{ $page }}</a>
</li>
@endif
@endif
@endforeach
@endif
@endforeach
{{-- Next Page Link --}}
@if ($paginator->hasMorePages())
<li><a title="Trang tiếp" href="{{ $paginator->nextPageUrl() }}">&gt;&gt;</a></li>
@else
@endif
</ul>
@endif