simple-tailwind.blade.php (1699B)
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 14 {{-- Next Page Link --}} 15 @if ($paginator->hasMorePages()) 16 <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"> 17 {!! __('pagination.next') !!} 18 </a> 19 @else 20 <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"> 21 {!! __('pagination.next') !!} 22 </span> 23 @endif 24 </nav> 25 @endif