pagintation fix
This commit is contained in:
parent
e58dee440b
commit
d209d6bdbf
|
|
@ -450,6 +450,7 @@
|
|||
position: sticky;
|
||||
top: calc(100vh - 130%);
|
||||
height: fit-content;
|
||||
margin-bottom: 5rem;
|
||||
}
|
||||
|
||||
.product-block {
|
||||
|
|
@ -685,6 +686,7 @@
|
|||
-webkit-align-items: center;
|
||||
align-items: center;
|
||||
margin-bottom: 10rem;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.pagination-buttons {
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
.item-section-products {
|
||||
max-width: 100rem;
|
||||
max-width: 128rem;
|
||||
width: 100%;
|
||||
position: sticky;
|
||||
top: calc(100vh - 130%);
|
||||
|
|
|
|||
|
|
@ -154,9 +154,7 @@
|
|||
</div>
|
||||
@endforeach
|
||||
</div>
|
||||
<div class="product-section-pagination-wrapper">
|
||||
|
||||
@if($items->hasPages())
|
||||
@if($items->hasPages())
|
||||
<div class="product-section-pagination">
|
||||
<div class="pagination-buttons">
|
||||
@php
|
||||
|
|
@ -182,13 +180,9 @@
|
|||
</a>
|
||||
</form>
|
||||
</div>
|
||||
<span class="page-count">Всего {{ $items->lastPage() }} страниц</span>
|
||||
<span class="page-count">{{__('shop::app.products.total-pages',['total'=>$products->lastPage()])}}</span>
|
||||
</div>
|
||||
@endif
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
@endif
|
||||
</div>
|
||||
</div>
|
||||
@else
|
||||
|
|
|
|||
|
|
@ -2,24 +2,19 @@
|
|||
<link rel="stylesheet" href="{{bagisto_asset('styles/categories-tv.css')}}" />
|
||||
@endpush
|
||||
|
||||
@if ($results instanceof \Illuminate\Pagination\LengthAwarePaginator)
|
||||
<div class="product-section-pagination-wrapper">
|
||||
|
||||
@if($results->hasPages())
|
||||
<div class="product-section-pagination">
|
||||
<div class="pagination-buttons">
|
||||
<form method="get">
|
||||
<a class="pagination-button pagination-button-left" href="{{ $results->previousPageUrl() }}">
|
||||
<img src="{{bagisto_asset('icons/arrow-down-sign-to-navigate.svg')}}" alt="left">
|
||||
</a>
|
||||
<span class="mid-button-text">{{ $results->currentPage() }}</span>
|
||||
<a class="pagination-button pagination-button-right" href="{{ $results->nextPageUrl() }}">
|
||||
<div><img src="{{bagisto_asset('icons/arrow-down-sign-to-navigate.svg')}}" alt="right"></div>
|
||||
</a>
|
||||
</form>
|
||||
@if ($results instanceof \Illuminate\Pagination\LengthAwarePaginator and $results->hasPages())
|
||||
<div class="product-section-pagination">
|
||||
<div class="pagination-buttons">
|
||||
<form method="get">
|
||||
<a class="pagination-button pagination-button-left" href="{{ $results->previousPageUrl() }}">
|
||||
<img src="{{bagisto_asset('icons/arrow-down-sign-to-navigate.svg')}}" alt="left">
|
||||
</a>
|
||||
<span class="mid-button-text">{{ $results->currentPage() }}</span>
|
||||
<a class="pagination-button pagination-button-right" href="{{ $results->nextPageUrl() }}">
|
||||
<div><img src="{{bagisto_asset('icons/arrow-down-sign-to-navigate.svg')}}" alt="right"></div>
|
||||
</a>
|
||||
</form>
|
||||
</div>
|
||||
<span class="page-count">{{__('shop::app.products.total-pages',['total'=>$products->lastPage()])}}</span>
|
||||
</div>
|
||||
<span class="page-count">Всего {{ $results->lastPage() }} страниц</span>
|
||||
</div>
|
||||
@endif
|
||||
</div>
|
||||
@endif
|
||||
|
|
@ -170,9 +170,7 @@
|
|||
</div>
|
||||
@endforeach
|
||||
</div>
|
||||
<div class="product-section-pagination-wrapper">
|
||||
|
||||
@if($products->hasPages())
|
||||
@if($products->hasPages())
|
||||
<div class="product-section-pagination">
|
||||
<div class="pagination-buttons">
|
||||
<form method="get">
|
||||
|
|
@ -187,8 +185,7 @@
|
|||
</div>
|
||||
<span class="page-count">{{__('shop::app.products.total-pages',['total'=>$products->lastPage()])}}</span>
|
||||
</div>
|
||||
@endif
|
||||
</div>
|
||||
@endif
|
||||
@else
|
||||
<div class="item-section empty">
|
||||
<div class="empty_icon">
|
||||
|
|
|
|||
Loading…
Reference in New Issue