- Replace hardcoded database names (online_arrahn, master_krk, kaunterpkb)
with configurable values across the codebase
- Rename tennant_master.php to tennant_database.php for clearer naming
- Update config keys: 'database' → 'master_db', add 'kaunter_db'
- Update env variables: TENNANT_MASTER_DB and TENNANT_KAUNTER_DB
- Modify Helper.php to use dynamic database references in
getOnlineArrahnConnection(), getActiveCawanganDbConnection(),
and getInactiveCawanganDbConnection() methods
- Update database JOIN queries in CustomerController and MarhunController
to use config values instead of hardcoded database names
- Simplify migration logic by removing redundant hardcoded database checks
- Update debug messages in CawanganDebugConnections to show actual
configured database name
- Update bootstrap/app.php to load tennant_database config
This change improves multi-environment flexibility and eliminates
environment-specific hardcoded values, making the application more
configurable for different deployment scenarios (KRK, KGMK, etc).
- Implement dynamic field assignment for Kelulusan Pengeluaran Pampasan status
- Add peloperasi field only when status matches and request parameter exists
- Improve data structure handling in approval creation workflow
- Enhance conditional logic for pampasan-specific approval requirements
- Add conditional audit data enrichment for specific approval actions
- Implement namapelulus and norujukan tracking for pampasan approvals
- Improve audit data structure handling for scalar and array values
- Add user field validation with fallback defaults for audit records
- Optimize approval controller with better request parameter handling
- Add agreement_printed_at timestamp to pampasan table for tracking printed agreements
- Update jenis handling for semporna v2 processing logic
- Refactor barangkes controller eager loading for improved performance
- Remove obsolete jenis migration files and consolidate schema changes
- Update related models and controllers for semporna v2 compatibility