classes/Fields/ManyToManyChecklist.php
protected function generateBoxLabel($row)
    {
        // Generate the title
        $html = '<span class="title">'.$row->getAdminTitleHtmlAttribute().'</span>';

        // Add link to edit
        $url = '/'.Config::get('decoy.core.dir').'/'.Str::snake($this->name, '-')
            .'/'.$row->getKey().'/edit';
        if (app('decoy.user')->can('update', $url)) {
            $html .= '<a href="'.$url.'"><span class="glyphicon glyphicon-pencil edit"></span></a>';
        }

        // The str_replace fixes Former's auto conversion of underscores into spaces.
        $html = str_replace('_', '&#95;', $html);

        return $html;
    }
protected function generateBoxLabel($row)
    {
        // Generate the title
        $html = '<span class="title">'.$row->getAdminTitleHtmlAttribute().'</span>';

        // Add link to edit
        $url = '/'.Config::get('decoy.core.dir').'/'.Str::snake($this->name, '-')
            .'/'.$row->getKey().'/edit';
        if (app('decoy.user')->can('update', $url)) {
            $html .= '<a href="'.$url.'"><span class="glyphicon glyphicon-pencil edit"></span></a>';
        }

        // The str_replace fixes Former's auto conversion of underscores into spaces.
        $html = str_replace('_', '&#95;', $html);

        return $html;
    }
protected function generateBoxLabel ( $ row ) { // Generate the title $ html = '<span class="title">' . $ row -> getAdminTitleHtmlAttribute ( ) . '</span>' ; // Add link to edit $ url = '/' . Config :: get ( 'decoy.core.dir' ) . '/' . Str :: snake ( $ this -> name , '-' ) . '/' . $ row -> getKey ( ) . '/edit' ; if ( app ( 'decoy.user' ) -> can ( 'update' , $ url ) ) { $ html .= '<a href="' . $ url . '"><span class="glyphicon glyphicon-pencil edit"></span></a>' ; } // The str_replace fixes Former's auto conversion of underscores into spaces. $ html = str_replace ( '_' , '&#95;' , $ html ) ; return $ html ; }
Create the HTML label for a checkbox

@param  Illuminate\Database\Eloquent\Model $row
@return string                             HTML
Create the HTML label for a checkbox