# Render simplePaginate without a last page

> simplePaginate omits the total and last_page. The Vue footer uses previous and next only.

- URL: https://laravel-vuejs.space/simple-paginate-vue
- Author: Anass Ez-zouaine (https://laravel-vuejs.space/author/anass-ez-zouaine)
- Published: 2026-10-11
- Topics: Laravel, VueJs, Inertia

People searching “Laravel simplePaginate Vue” copy a footer that prints `last_page` and then the control is blank. `simplePaginate` does not count the table. The [pagination guide](https://laravel-vuejs.space/laravel-vue-pagination) compares the three objects. This page is the footer that matches this one.

> **TL;DR**
>
> -   simplePaginate omits the total and last\_page.
> -   The Vue footer uses previous and next only.
> -   Do not compute “page 2 of undefined” in the template.
> -   Do not run a second `count()` query in the controller “just for the label” and think you kept simple pagination.
>
> **Who it's for:** Laravel + Vue developers on Inertia
>
> **Applies to:** Laravel 13 · Inertia 3 · Vue 3

## The fix

```php
$posts = Post::query()->orderBy('id')->simplePaginate(12)->withQueryString();
```

You get `data`, `current_page`, `prev_page_url`, and `next_page_url`. You do not get `total` or `last_page`.

```vue
<Link v-if="posts.prev_page_url" :href="posts.prev_page_url">Previous</Link>
<Link v-if="posts.next_page_url" :href="posts.next_page_url">Next</Link>
```

## What to avoid

> **Gotcha**
>
> Do not compute “page 2 of undefined” in the template. If the product needs the count, use `paginate` and pay for the count. Do not run a second `count()` query in the controller “just for the label” and think you kept simple pagination.

## FAQ

**Q: How do I render simplePaginate without a last page?**

simplePaginate omits the total and last\_page. The Vue footer uses previous and next only.

**Q: What goes wrong with Laravel simplePaginate Vue?**

Many developers copy a footer that prints `last_page` and then the control is blank. Do not compute "page 2 of undefined" in the template.
