if ($count <= $this->active_step) { $status = ($count == $this->active_step) ? 'active' : 'finished'; } else { $status = ''; }