public static function input($type = '', $model, $attribute, $labels, $options = [], $errors = [])
{
$type = $type == '' ? 'text' : $type;
if (empty($options)) {
$options = ['class' => 'form-control'];
}
$value = is_object($model) && isset($model->{$attribute}) ? $model->attribute : '';
$html = '<div class="form-group">';
$html .= '<label class="control-label">' . (isset($labels[$attribute]) ? $labels[$attribute] : '') . '</label><br>';
$html .= parent::input($type, $attribute, $value, $options);
$html .= self::errorBlock(isset($errors[$attribute]) ? $errors[$attribute] : []);
$html .= '</div>';
return $html;
}