item.blade.php 989 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. @props([
  2. 'active' => false,
  3. 'ariaLabel' => null,
  4. 'disabled' => false,
  5. 'icon' => null,
  6. 'iconAlias' => null,
  7. 'label' => null,
  8. ])
  9. <li
  10. {{
  11. $attributes->class([
  12. 'fi-pagination-item',
  13. 'fi-disabled' => $disabled,
  14. 'fi-active' => $active,
  15. ])
  16. }}
  17. >
  18. <button
  19. aria-label="{{ $ariaLabel }}"
  20. @disabled($disabled)
  21. type="button"
  22. class="fi-pagination-item-btn"
  23. >
  24. @if (filled($icon))
  25. {{
  26. \Filament\Support\generate_icon_html($icon, $iconAlias, attributes: (new \Illuminate\View\ComponentAttributeBag)->class([
  27. 'fi-pagination-item-icon',
  28. ]))
  29. }}
  30. @endif
  31. @if (filled($label))
  32. <span class="fi-pagination-item-label">
  33. {{ is_numeric($label) ? \Illuminate\Support\Number::format($label) : ($label ?? '...') }}
  34. </span>
  35. @endif
  36. </button>
  37. </li>