$result = $this->notification_model->where(array(
'deleted' => '0',
"company_id" => $this->session->userdata("company_id"),
"date(created_on) >= " => $range['fiscal']['start'],
"date(created_on) <= " => $range['fiscal']['end']
))
->order_by("created_on", "desc")
->find_all();
$top_notifications = array();
if (count($result) > 5) {
$top_notifications = array_slice($result, 0, 5);
} else {
$top_notifications = $result;
}