Skip to content

Commit

Permalink
Merge pull request #74 from ranggaadithia/history
Browse files Browse the repository at this point in the history
fixing history limit
  • Loading branch information
ranggaadithia authored Dec 18, 2023
2 parents ec51208 + 294de81 commit 0de2b2e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
1 change: 0 additions & 1 deletion app/Livewire/BookingHistory.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ public function mount()
});
})
->orderBy('booking_date', 'desc')
->limit($this->loadAmount)
->get();

$this->totalRecords = LabsBooking::count();
Expand Down
5 changes: 1 addition & 4 deletions resources/views/livewire/booking-history.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ class="text-left w-full bg-transparent px-4 py-2 text-sm font-normal text-neutra
</div>
</nav>

<div class="mt-24 px-4 md:px-8">
<div class="mt-24 px-4 md:px-8 pb-11">
<h1 class="text-center mx-auto text-xl font-bold">Riwayat Peminjaman Ruangan </h1>

@if (count($upcomingHistories) == 0 && count($expiredHistories) == 0)
Expand Down Expand Up @@ -127,9 +127,6 @@ class="text-left w-full bg-transparent px-4 py-2 text-sm font-normal text-neutra
</div>
@endforeach
@endif
<!-- Load More button -->
{{ $loadAmount }}
<button wire:click="loadMore">Load More</button>

@push('scripts')
<script src="https://cdn.jsdelivr.net/npm/sweetalert2@11"></script>
Expand Down

0 comments on commit 0de2b2e

Please sign in to comment.