has($name)): $classes = 'form-group has-error has-feedback'; break; case (!is_null($warnings) && $warnings->has($name)): $classes = 'form-group has-warning has-feedback'; break; case (!is_null($successes) && $successes->has($name)): $classes = 'form-group has-success has-feedback'; break; default: $classes = 'form-group'; break; } /* * Add some HTML. */ $html = '
' . e($errors->first($name)) . '
'; } } unset($errors); /* * If warnings, respond to them: */ if (!is_null($warnings)) { if ($warnings->has($name)) { $html .= ''; $html .= '' . e($warnings->first($name)) . '
'; } } unset($warnings); /* * If successes, respond to them: */ if (!is_null($successes)) { if ($successes->has($name)) { $html .= ''; $html .= '' . e($successes->first($name)) . '
'; } } unset($successes); $html .= '