diff --git a/resources/views/livewire/home/announcements.blade.php b/resources/views/livewire/home/announcements.blade.php index 40d21dc..e521fc5 100644 --- a/resources/views/livewire/home/announcements.blade.php +++ b/resources/views/livewire/home/announcements.blade.php @@ -31,11 +31,11 @@ class="bi bi-megaphone text-white icon-small me-10px">{{ $pageTitle }}
-
- {{ $announcements->links() }} + {{ $announcements->links('livewire.home.custom-pagination') }}
diff --git a/resources/views/livewire/home/custom-pagination.blade.php b/resources/views/livewire/home/custom-pagination.blade.php new file mode 100644 index 0000000..bb5d632 --- /dev/null +++ b/resources/views/livewire/home/custom-pagination.blade.php @@ -0,0 +1,57 @@ +@if ($paginator->hasPages()) + +@endif diff --git a/resources/views/livewire/home/news/index.blade.php b/resources/views/livewire/home/news/index.blade.php index f11ac5f..357b304 100644 --- a/resources/views/livewire/home/news/index.blade.php +++ b/resources/views/livewire/home/news/index.blade.php @@ -33,7 +33,7 @@ class="bi bi-megaphone text-white icon-small me-10px">{{ $pageTitle }} @forelse($news as $item) -
+
@if ($item->thumbnail)
@@ -78,7 +78,7 @@ class="bg-base-color"> @endforelse
- {{ $news->links() }} + {{ $news->links('livewire.home.custom-pagination') }}