Skip to content

Instantly share code, notes, and snippets.

View Rdx11's full-sized avatar
:octocat:
Real Person

Fat Penguin Rdx11

:octocat:
Real Person
View GitHub Profile
@Rdx11
Rdx11 / tailwindcss.blade.php
Created March 19, 2021 14:02 — forked from mazedlx/tailwindcss.blade.php
Tailwind CSS template for Laravel pagination
@if ($paginator->hasPages())
<div class="flex items-center">
{{-- Previous Page Link --}}
@if ($paginator->onFirstPage())
<span class="rounded-l rounded-sm border border-brand-light px-3 py-2 cursor-not-allowed no-underline">&laquo;</span>
@else
<a
class="rounded-l rounded-sm border-t border-b border-l border-brand-light px-3 py-2 text-brand-dark hover:bg-brand-light no-underline"
href="{{ $paginator->previousPageUrl() }}"
rel="prev"