From 294de8149c16e9f359f81a1bc6b37d5736172856 Mon Sep 17 00:00:00 2001 From: Rangga Adithia Date: Mon, 18 Dec 2023 21:40:45 +0800 Subject: [PATCH] fixing history limit --- app/Livewire/BookingHistory.php | 1 - resources/views/livewire/booking-history.blade.php | 5 +---- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/app/Livewire/BookingHistory.php b/app/Livewire/BookingHistory.php index 91b2f68..c753990 100644 --- a/app/Livewire/BookingHistory.php +++ b/app/Livewire/BookingHistory.php @@ -43,7 +43,6 @@ public function mount() }); }) ->orderBy('booking_date', 'desc') - ->limit($this->loadAmount) ->get(); $this->totalRecords = LabsBooking::count(); diff --git a/resources/views/livewire/booking-history.blade.php b/resources/views/livewire/booking-history.blade.php index d068684..823aab6 100644 --- a/resources/views/livewire/booking-history.blade.php +++ b/resources/views/livewire/booking-history.blade.php @@ -68,7 +68,7 @@ class="text-left w-full bg-transparent px-4 py-2 text-sm font-normal text-neutra -
+

Riwayat Peminjaman Ruangan

@if (count($upcomingHistories) == 0 && count($expiredHistories) == 0) @@ -127,9 +127,6 @@ class="text-left w-full bg-transparent px-4 py-2 text-sm font-normal text-neutra
@endforeach @endif - - {{ $loadAmount }} - @push('scripts')