ldc-le-gaulois-pro/resources/views/bo/modules/change-model-order.blade.php
2023-09-27 10:46:07 +02:00

18 lines
1.2 KiB
PHP

<td class="text-center align-middle">
<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-dark @if ($loop->first and $models->onFirstPage()) disabled @endif" data-bs-toggle="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-dark @if ($loop->last and $models->currentPage() === $models->lastPage()) disabled @endif ms-1" data-bs-toggle="tooltip"
type="submit" title="{{ __('crud.other.down') }}">
<i class="fas fa-arrow-down"></i>
</button>
</a>
</div>
</td>