public function render()
    {
        if (is_callable($this->builder)) {
            call_user_func($this->builder, $this);
        }

        if ($this->fields->isEmpty()) {
            $this->all();
        }

        if (is_array($this->builder)) {
            $this->fields($this->builder);
        }

        $this->fields->each->setValue($this->model);
        $this->relations->each->setModel($this->model);

        $data = [
            'panel'     => $this->panel->fill($this->fields),
            'relations' => $this->relations,
        ];

        return view('admin::show', $data)->render();
    }
public function render()
    {
        if (is_callable($this->builder)) {
            call_user_func($this->builder, $this);
        }

        if ($this->fields->isEmpty()) {
            $this->all();
        }

        if (is_array($this->builder)) {
            $this->fields($this->builder);
        }

        $this->fields->each->setValue($this->model);
        $this->relations->each->setModel($this->model);

        $data = [
            'panel'     => $this->panel->fill($this->fields),
            'relations' => $this->relations,
        ];

        return view('admin::show', $data)->render();
    }
public function render ( ) { if ( is_callable ( $ this -> builder ) ) { call_user_func ( $ this -> builder , $ this ) ; } if ( $ this -> fields -> isEmpty ( ) ) { $ this -> all ( ) ; } if ( is_array ( $ this -> builder ) ) { $ this -> fields ( $ this -> builder ) ; } $ this -> fields -> each -> setValue ( $ this -> model ) ; $ this -> relations -> each -> setModel ( $ this -> model ) ; $ data = [ 'panel' => $ this -> panel -> fill ( $ this -> fields ) , 'relations' => $ this -> relations , ] ; return view ( 'admin::show' , $ data ) -> render ( ) ; }
Render the show panels.

@return string
Render the show panels .