22 lines
1.2 KiB
PHP
22 lines
1.2 KiB
PHP
<td class="text-center align-middle">
|
|
<div class="d-flex justify-content-center align-items-center">
|
|
<a href="{{ route('bo.' . $routeName . '.change-order', [Str::singular($routeName) => $model, 'direction' => 'up']) }}"
|
|
class="@if($loop->first and $models->onFirstPage()) invisible @endif">
|
|
<button type="submit"
|
|
class="btn btn-sm btn-outline-dark @if(($loop->first and $models->onFirstPage())) disabled @endif"
|
|
title="{{ __('crud.other.up') }}"
|
|
data-bs="tooltip">
|
|
<i class="fas fa-arrow-up"></i>
|
|
</button>
|
|
</a>
|
|
<a href="{{ route('bo.' . $routeName . '.change-order', [Str::singular($routeName) => $model, 'direction' => 'down']) }}"
|
|
class="@if($loop->last and $models->currentPage() === $models->lastPage()) invisible @endif">
|
|
<button type="submit"
|
|
class="btn btn-sm btn-outline-dark ms-1 @if($loop->last and $models->currentPage() === $models->lastPage()) disabled @endif"
|
|
title="{{ __('crud.other.down') }}"
|
|
data-bs="tooltip">
|
|
<i class="fas fa-arrow-down"></i>
|
|
</button>
|
|
</a>
|
|
</div>
|
|
</td>
|