simple-tailwind.blade.php 1.7 KB

12345678910111213141516171819202122232425
  1. @if ($paginator->hasPages())
  2. <nav role="navigation" aria-label="Pagination Navigation" class="flex justify-between">
  3. {{-- Previous Page Link --}}
  4. @if ($paginator->onFirstPage())
  5. <span class="relative inline-flex items-center px-4 py-2 text-sm font-medium text-gray-500 bg-white border border-gray-300 cursor-default leading-5 rounded-md">
  6. {!! __('pagination.previous') !!}
  7. </span>
  8. @else
  9. <a href="{{ $paginator->previousPageUrl() }}" rel="prev" class="relative inline-flex items-center px-4 py-2 text-sm font-medium text-gray-700 bg-white border border-gray-300 leading-5 rounded-md hover:text-gray-500 focus:outline-none focus:ring ring-gray-300 focus:border-blue-300 active:bg-gray-100 active:text-gray-700 transition ease-in-out duration-150">
  10. {!! __('pagination.previous') !!}
  11. </a>
  12. @endif
  13. {{-- Next Page Link --}}
  14. @if ($paginator->hasMorePages())
  15. <a href="{{ $paginator->nextPageUrl() }}" rel="next" class="relative inline-flex items-center px-4 py-2 text-sm font-medium text-gray-700 bg-white border border-gray-300 leading-5 rounded-md hover:text-gray-500 focus:outline-none focus:ring ring-gray-300 focus:border-blue-300 active:bg-gray-100 active:text-gray-700 transition ease-in-out duration-150">
  16. {!! __('pagination.next') !!}
  17. </a>
  18. @else
  19. <span class="relative inline-flex items-center px-4 py-2 text-sm font-medium text-gray-500 bg-white border border-gray-300 cursor-default leading-5 rounded-md">
  20. {!! __('pagination.next') !!}
  21. </span>
  22. @endif
  23. </nav>
  24. @endif