where('dropdown', $group)->where('is_active', 1)->findAll(); } // Fetch a specific dropdown entry public function getDropdownByKey($key) { return $this->where('dropdown_key', $key)->first(); } // Insert a new dropdown value public function insertDropdown($data) { return $this->insert($data); } // Update a dropdown value public function updateDropdown($key, $data) { return $this->where('dropdown_key', $key)->set($data)->update(); } // Soft delete (deactivate) a dropdown entry public function deactivateDropdown($key) { return $this->where('dropdown_key', $key)->set(['is_active' => 0])->update(); } }