Follow the steps only if you have purchased the Simplicity Home Page design from GoClixy Marketplace.
Open the application/libraries/layouts.php file using FTP and paste the code below before the last curly bracket.
Note: Please check the method existence before pasting it to the Layout file. If the method already exists, do not make any changes.
/** * Display counts on the Home Page * @return string[][]|NULL[][] */ public function widget_counter() { $data = array( 'listings' => array( 'count' => $this->CI->db->where(array('deleted' => 0, 'status' => 1))->count_all_results('listings'), 'icon' => 'fas fa-' . gc_module_icon('listings') ), 'users' => array( 'count' => $this->CI->db->where(array('deleted' => 0, 'active' => 1))->count_all_results('users'), 'icon' => 'fas fa-users' ), 'categories' => array( 'count' => $this->CI->db->where(array('active' => 1))->count_all_results('categories'), 'icon' => 'fas fa-list' ), 'cities' => array( 'count' => $this->CI->db->where(array('active' => 1))->count_all_results('cities'), 'icon' => 'fas fa-map-marker-alt' ) ); return $data; }