@php
    $links = [];
@endphp
@can('allocate', $order)
    @php $links[] = ['href' => '#operational-allocate', 'label' => __('sales.orders.allocate.title'), 'icon' => 'fe fe-layers']; @endphp
@endcan
@can('fulfill', $order)
    @php $links[] = ['href' => '#operational-fulfill', 'label' => __('sales.orders.fulfill.title'), 'icon' => 'fe fe-package']; @endphp
@endcan
@can('cancel', $order)
    @php $links[] = ['href' => '#operational-cancel', 'label' => __('sales.orders.cancel.title'), 'icon' => 'fe fe-x-circle']; @endphp
@endcan
@if ($links !== [])
    <x-ui.operational.detail-quick-links :links="$links" />
@endif
