classes/Fields/Listing.php
protected function wrapInControlGroup()
    {
        // Add generic stuff
        $this->addGroupClass('list-form-group');

        // Use the controller description for blockhelp
        if (!$this->hasHelp()) {
            $this->blockhelp($this->controller->description());
        }

        // Show no results if there is no parent specified
        if (empty($this->parent_item)) {
            $this->addGroupClass('note');

            return $this->group->wrapField(Former::note($this->label_text, trans('decoy::form.listing.pending_save', ['model' => $this->label_text, 'description' => $this->controller->description()])));
        }

        // Add create button if we have permission and if there is a parent item
        if (app('decoy.user')->can('create', $this->controller)) {
            $this->group->setLabel(
                '<a href="'.$this->getIndexURL().'">'
                .$this->label_text
                .'</a>'
                .$this->makeCreateBtn()
            );
        }

        // Return the wrapped field
        return $this->group->wrapField($this);
    }
protected function wrapInControlGroup()
    {
        // Add generic stuff
        $this->addGroupClass('list-form-group');

        // Use the controller description for blockhelp
        if (!$this->hasHelp()) {
            $this->blockhelp($this->controller->description());
        }

        // Show no results if there is no parent specified
        if (empty($this->parent_item)) {
            $this->addGroupClass('note');

            return $this->group->wrapField(Former::note($this->label_text, trans('decoy::form.listing.pending_save', ['model' => $this->label_text, 'description' => $this->controller->description()])));
        }

        // Add create button if we have permission and if there is a parent item
        if (app('decoy.user')->can('create', $this->controller)) {
            $this->group->setLabel(
                '<a href="'.$this->getIndexURL().'">'
                .$this->label_text
                .'</a>'
                .$this->makeCreateBtn()
            );
        }

        // Return the wrapped field
        return $this->group->wrapField($this);
    }
protected function wrapInControlGroup ( ) { // Add generic stuff $ this -> addGroupClass ( 'list-form-group' ) ; // Use the controller description for blockhelp if ( ! $ this -> hasHelp ( ) ) { $ this -> blockhelp ( $ this -> controller -> description ( ) ) ; } // Show no results if there is no parent specified if ( empty ( $ this -> parent_item ) ) { $ this -> addGroupClass ( 'note' ) ; return $ this -> group -> wrapField ( Former :: note ( $ this -> label_text , trans ( 'decoy::form.listing.pending_save' , [ 'model' => $ this -> label_text , 'description' => $ this -> controller -> description ( ) ] ) ) ) ; } // Add create button if we have permission and if there is a parent item if ( app ( 'decoy.user' ) -> can ( 'create' , $ this -> controller ) ) { $ this -> group -> setLabel ( '<a href="' . $ this -> getIndexURL ( ) . '">' . $ this -> label_text . '</a>' . $ this -> makeCreateBtn ( ) ) ; } // Return the wrapped field return $ this -> group -> wrapField ( $ this ) ; }
Add customization to the control group rendering

@return string HTML
Add customization to the control group rendering