/**
  * Define the response Html for field.
  *
  * @param $name string
  * @param $value integer
  * @param $default integer/string
  * @param $attr array
  * 
  * @return string
  */
 public function getHtml($name, $value = null, $default, array $attr = null)
 {
     $format = "\n\t\t\t@if(isset(%s)) \n\t\t\t\t{!! Form::select('%s', %s, %s, %s) !!} \n\t\t\t@else \n\t\t\t\t{!! Form::select('%s', %s, %s, %s) !!} \n\t\t\t@endif";
     if (substr($name, -3) == '_id') {
         $nameE = explode("_", $name);
         $entity = $nameE[0];
         return sprintf($format, "\$status", $name, "\$" . $entity . "s", "\$" . strtolower($this->commandData->modelName) . "->" . $name, FieldHelper::arrayToString($attr), $name, "\$" . $entity . "s", $default, FieldHelper::arrayToString($attr));
     } else {
         return sprintf($format, "\$status", $name, FieldHelper::arrayToString($value), "\$" . strtolower($this->commandData->modelName) . "->" . $name, FieldHelper::arrayToString($attr), $name, FieldHelper::arrayToString($value), $default, FieldHelper::arrayToString($attr));
     }
 }
 /**
  * Define the response Html for field.
  *
  * @param $name string
  * @param $value integer
  * @param $default integer/string
  * @param $attr array
  * 
  * @return string
  */
 public function getHtml($name, $value = null, $default = null, array $attr = null)
 {
     $attr['class'] = "ckeditor";
     $format = "@section('js')\n\t\t\t<script src='/../theme/ckeditor/ckeditor.js'></script>\n    \t\t<script src='/../theme/ckeditor/config.js'></script>\n    \t\t<script src='/../theme/ckeditor/styles.js'></script>\n\t\t@stop\n\t\t{!! Form::textarea('%s', null, %s) !!}";
     return sprintf($format, $name, FieldHelper::arrayToString($attr));
 }
 /**
  * Define the response Html for field.
  *
  * @param $name string
  * @param $value integer
  * @param $default integer/string
  * @param $attr array
  * 
  * @return string
  */
 public function getHtml($name, $value = null, $default = null, array $attr = null)
 {
     $format = "{!! Form::number('%s', %s, %s) !!}";
     return sprintf($format, $name, $value, FieldHelper::arrayToString($attr));
 }
 /**
  * Define the response Html for field.
  *
  * @param $name string
  * @param $value integer
  * @param $default integer/string
  * @param $attr array
  * 
  * @return string
  */
 public function getHtml($name, $value = null, $default = null, array $attr = null)
 {
     $attr['class'] = "date";
     $format = "@section('css')\n\t\t\t<link href='/theme/bootstrap-datepicker/dist/css/bootstrap-datepicker3.min.css' rel='stylesheet' type='text/css' />\n\t\t@stop\n\n\t\t@section('js')\n    \t\t<script src='/theme/bootstrap-datepicker/dist/js/bootstrap-datepicker.js'></script>\n    \t\t<script src='/theme/bootstrap-datepicker/dist/locales/bootstrap-datepicker.eu.min.js'></script>\n    \t\t<script>\n\t         \t\$(document).ready(function() {\n    \t        \t\$('.date').datepicker({\n        \t    \tformat: 'yyyy-mm-dd 00:00:00',\n\t\t\t\t    weekStart: 1,\n\t\t\t    \tlanguage: 'eu',\n\t\t\t    \tautoclose: true,\n\t\t\t    \ttodayHighlight: true\n\t\t\t\t});\n\t\t\t});\n    \t\t</script>\n\t\t@stop\n\t\t{!! Form::text('%s', null, %s) !!}";
     return sprintf($format, $name, FieldHelper::arrayToString($attr));
 }