{{--
    Storefront simple-pagination — brand-styled override for `simpleLinks()`.

    See themes/Web/Protera/Resources/views/components/pagination.blade.php
    for the full-pagination contract; this view shares the same CSS hook
    (`.pagination-storefront`) and the same `[data-pagination-storefront]`
    marker so specs can target both shapes through a single locator.

    Expected variable: $paginator (\Illuminate\Contracts\Pagination\Paginator)
--}}
@if ($paginator->hasPages())
    <nav class="pagination-storefront" role="navigation"
         aria-label="{{ __('pagination.navigation') }}" data-pagination-storefront>
        <ul class="pagination">
            {{-- Previous --}}
            @if ($paginator->onFirstPage())
                <li class="page-item disabled" aria-disabled="true" aria-label="@lang('pagination.previous')">
                    <span class="page-link" aria-hidden="true">&lsaquo;</span>
                </li>
            @else
                <li class="page-item">
                    <a class="page-link" href="{{ $paginator->previousPageUrl() }}"
                       rel="prev" aria-label="@lang('pagination.previous')">&lsaquo;</a>
                </li>
            @endif

            {{-- Next --}}
            @if ($paginator->hasMorePages())
                <li class="page-item">
                    <a class="page-link" href="{{ $paginator->nextPageUrl() }}"
                       rel="next" aria-label="@lang('pagination.next')">&rsaquo;</a>
                </li>
            @else
                <li class="page-item disabled" aria-disabled="true" aria-label="@lang('pagination.next')">
                    <span class="page-link" aria-hidden="true">&rsaquo;</span>
                </li>
            @endif
        </ul>
    </nav>
@endif
