public function render() { Admin::script($this->script); return view($this->getView(), $this->variables()); }
public function render() { $this->options['format'] = $this->format; $this->options['locale'] = 'zh-cn'; $this->script = "\$('#{$this->id}').datetimepicker(" . json_encode($this->options) . ");"; return parent::render(); }