NULL]; } else if (!empty($session_role) && $session_role == "admin") { $where = ['isactive' => 1, 'business_id' => $session_bid]; } else { $where = []; } $model = new HomeModel(); $data['customer'] = $model->customers($where); $data['customer']['label'] = "Doners"; // echo '
';
            // print_r($data['customer'] ); die;

            // $data['invoice'] = $model->invoice();
            // $data['active_category'] = array_filter($model->schemes(), function ($element) {
            //     return $element['count'] !== '0' ;
            // });
            // $data['book_published'] = $model->book_published_list();
            $this->render_page('dashboard', $data);
            
    }

}