classes/Models/Admin.php
public function getAdminStatusAttribute()
    {
        $html ='';

        // Add the role
        if (($roles = static::getRoleTitles()) && count($roles)) {
            $html .= '<span class="label label-primary">'.$roles[$this->role].'</span>';
        }

        // If row is you
        if ($this->id == app('decoy.user')->id) {
            $html .= '<span class="label label-info">' . __('decoy::admins.standard_list.you') . '</span>';
        }

        // If row is disabled
        if ($this->disabled()) {
            $html .= '<a href="' . URL::to(DecoyURL::relative('enable', $this->id)) . '" class="label label-warning
                js-tooltip" title="' . __('decoy::admins.standard_list.click') . '">' .
                __('decoy::admins.standard_list.disabled') . '</a>';
        }

        // Return HTML
        return $html;
    }
public function getAdminStatusAttribute()
    {
        $html ='';

        // Add the role
        if (($roles = static::getRoleTitles()) && count($roles)) {
            $html .= '<span class="label label-primary">'.$roles[$this->role].'</span>';
        }

        // If row is you
        if ($this->id == app('decoy.user')->id) {
            $html .= '<span class="label label-info">' . __('decoy::admins.standard_list.you') . '</span>';
        }

        // If row is disabled
        if ($this->disabled()) {
            $html .= '<a href="' . URL::to(DecoyURL::relative('enable', $this->id)) . '" class="label label-warning
                js-tooltip" title="' . __('decoy::admins.standard_list.click') . '">' .
                __('decoy::admins.standard_list.disabled') . '</a>';
        }

        // Return HTML
        return $html;
    }
public function getAdminStatusAttribute ( ) { $ html = '' ; // Add the role if ( ( $ roles = static :: getRoleTitles ( ) ) && count ( $ roles ) ) { $ html .= '<span class="label label-primary">' . $ roles [ $ this -> role ] . '</span>' ; } // If row is you if ( $ this -> id == app ( 'decoy.user' ) -> id ) { $ html .= '<span class="label label-info">' . __ ( 'decoy::admins.standard_list.you' ) . '</span>' ; } // If row is disabled if ( $ this -> disabled ( ) ) { $ html .= '<a href="' . URL :: to ( DecoyURL :: relative ( 'enable' , $ this -> id ) ) . '" class="label label-warning
                js-tooltip" title="' . __ ( 'decoy::admins.standard_list.click' ) . '">' . __ ( 'decoy::admins.standard_list.disabled' ) . '</a>' ; } // Return HTML return $ html ; }
Show a badge if the user is the currently logged in

@return string
Show a badge if the user is the currently logged in