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