Fetch Previous (Old) and Next (New) Listings
<!-- Next 3 Listings -->
<h1>Next 3 Listings</h1>
<?= template()->include('frontend/custom/jobs/partials/recommended-listings', [
'recommendedListings' => $listing->next(3)
]) ?>
<!-- Previous 3 Listings -->
<h1>Previous 3 Listings</h1>
<?= template()->include('frontend/custom/jobs/partials/recommended-listings', [
'recommendedListings' => $listing->previous(3)
]) ?>
#
#
#
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.