@if (!empty($productData['items']))
@foreach ($productData['items'] as $index => $item)
@php $cate = $item['detail'] ?? ''; $price = $item['price'] ?? ''; $status = $item['status'] ?? ''; @endphp
@endforeach
@if ($productData['page']['lastPage'] > 0)
    {{--
  1. --}} @if ($productData['page']['currentPage'] > 1)
  2. @else
  3. @endif {{--
  4. 1
  5. 2
  6. 3
  7. 4
  8. --}} @php $page = 1; @endphp @while ($page <= $productData['page']['lastPage']) @if ($page > $productData['page']['currentPage'] + 5) @break @endif @if ($page > $productData['page']['currentPage'] - 6) @if ($productData['page']['currentPage'] == $page)
  9. {{ $page }}
  10. @else
  11. {{ $page }}
  12. @endif @endif @php $page++; @endphp @endwhile @if ($productData['page']['currentPage'] < $productData['page']['lastPage'])
  13. @else
  14. @endif
@endif @endif
@script @endscript {{-- --}}