classes/Models/Base.php
protected function makeDeleteAction($data)
    {
        extract($data);

        // Check if this model can be deleted.  This mirrors code found in the table
        //  partial for generating the edit link on the title
        if (!(app('decoy.user')->can('destroy', $controller)
            || ($many_to_many && app('decoy.user')->can('update', $parent_controller)))) {
            return;
        }

        // If soft deleted, show a disabled icon
        if (method_exists($this, 'trashed') && $this->trashed()) {
            return '<span class="glyphicon glyphicon-trash"></span>';
        }

        // Make the label
        $label = $many_to_many ?
            __('decoy::base.action.remove') :
            $with_trashed ?
                __('decoy::base.action.soft_delete') :
                __('decoy::base.action.delete') ;

        // Return markup
        return sprintf('<a class="%s js-tooltip" data-placement="left" title="%s">
                <span class="glyphicon glyphicon-%s"></span>
            </a>',
            $many_to_many ? 'remove-now' : 'delete-now',
            $label,
            $many_to_many ? 'remove' : 'trash'
        );
    }
protected function makeDeleteAction($data)
    {
        extract($data);

        // Check if this model can be deleted.  This mirrors code found in the table
        //  partial for generating the edit link on the title
        if (!(app('decoy.user')->can('destroy', $controller)
            || ($many_to_many && app('decoy.user')->can('update', $parent_controller)))) {
            return;
        }

        // If soft deleted, show a disabled icon
        if (method_exists($this, 'trashed') && $this->trashed()) {
            return '<span class="glyphicon glyphicon-trash"></span>';
        }

        // Make the label
        $label = $many_to_many ?
            __('decoy::base.action.remove') :
            $with_trashed ?
                __('decoy::base.action.soft_delete') :
                __('decoy::base.action.delete') ;

        // Return markup
        return sprintf('<a class="%s js-tooltip" data-placement="left" title="%s">
                <span class="glyphicon glyphicon-%s"></span>
            </a>',
            $many_to_many ? 'remove-now' : 'delete-now',
            $label,
            $many_to_many ? 'remove' : 'trash'
        );
    }
protected function makeDeleteAction ( $ data ) { extract ( $ data ) ; // Check if this model can be deleted.  This mirrors code found in the table //  partial for generating the edit link on the title if ( ! ( app ( 'decoy.user' ) -> can ( 'destroy' , $ controller ) || ( $ many_to_many && app ( 'decoy.user' ) -> can ( 'update' , $ parent_controller ) ) ) ) { return ; } // If soft deleted, show a disabled icon if ( method_exists ( $ this , 'trashed' ) && $ this -> trashed ( ) ) { return '<span class="glyphicon glyphicon-trash"></span>' ; } // Make the label $ label = $ many_to_many ? __ ( 'decoy::base.action.remove' ) : $ with_trashed ? __ ( 'decoy::base.action.soft_delete' ) : __ ( 'decoy::base.action.delete' ) ; // Return markup return sprintf ( '<a class="%s js-tooltip" data-placement="left" title="%s">
                <span class="glyphicon glyphicon-%s"></span>
            </a>' , $ many_to_many ? 'remove-now' : 'delete-now' , $ label , $ many_to_many ? 'remove' : 'trash' ) ; }
Make the delete action

@param  array  $data The data passed to a listing view
@return string
Make the delete action