RTRW PHP7.4 Demo App with Dashboard & Charts
===========================================

Files included:
- db.php           : Database credentials (edit before use)
- functions.php    : Helper functions
- index.php        : Main page (listing) - uses index_list.php
- index_list.php   : Listing & filters implementation
- detail.php       : Detail page for a single object
- api_summary.php  : API endpoints returning JSON for summaries (wadmkk, namobj, category)
- dashboard.php    : Dashboard with Chart.js charts (Jumlah per wilaya, Top namobj, Komposisi kategori)
- style.css        : Simple styling
- rtrw_pr_adm_object_inserts.sql : SQL file to import data (if not in same folder)
- rtrw_pr_full_db.sql : Full DB SQL that creates database and populates summary tables
- README.md        : this file

Installation:
1. Ensure MySQL has imported the SQL (rtrw_pr_full_db.sql) or run rtrw_pr_adm_object_inserts.sql then create DB and summary tables.
2. Place these PHP files into your web server document root (Apache/nginx + PHP7.4).
3. Edit db.php with DB credentials.
4. Open dashboard.php in the browser to see charts.

Notes:
- Chart.js is loaded from CDN in dashboard.php.
- API endpoints: api_summary.php?action=wadmkk|namobj|category
- For category summary, supply &category=kkop_1 (or other category keys) and optional &wadmkk_id=<id>.
