Examples & interactive preview
Build a three-row table without a database, move a real catalog to SQL, then add a dashboard with joins and permissions. Each recipe shows what to put in Laravel, how to initialize the frontend and how to verify it works.
Jump to the interactive preview
Choose a recipe
| Level | Recipe | What you will build |
|---|---|---|
| 01 | Prepared data | An Ajax table from a PHP array, no database required. |
| 02 | Client-side catalog | A database-backed catalog that maps available stock and sorts in the browser. |
| 03 | Server-side catalog | SQL search, order and pagination, with a URL you can use to inspect one draw directly. |
| 04 | Employee leave dashboard | A three-table join, company scope, filters, a review action and a grouped report. |
| 05 | Metronic integration | The same responsive dashboard embedded in a Metronic card with an external toolbar. |
If you do not have a Laravel app yet, start with installation. You can use the preview below without one.
Try the dashboard
- Select Pending. The company and status filters leave 3 base rows (
recordsTotal). - Search for Vacation. The base count stays 3; the search matches 2 (
recordsFiltered). - Set Starts on or after to October 10, 2026. The base count becomes 2. The search matches only request 104, so
data.lengthis 1. - Select Clear filters and then Next to page through the full sample. There are 7 matches but only 3 rows per page.
INTERACTIVE SAMPLEEmployee leave requests
Company 10- recordsTotal
- 7
- recordsFiltered
- 7
- data.length
- 3
| Request | Employee | Type | Starts on | Status |
|---|---|---|---|---|
| #107 | Mina Ortega | Training | 2026-10-22 | pending |
| #106 | Noah Silva | Vacation | 2026-10-18 | approved |
| #105 | Mei Tan | Uncategorized | 2026-10-14 | approved |
The preview uses fixed rows and simulates a draw in your browser. It does not send requests to Laravel. To run the real queries and check permissions, follow the dashboard guide or browse the example source.
