public function getPeopleIdForIndexListing($id) {
        // Does the PEOPLES table exist?
        if (Schema::hasTable('peoples')) {
            $person = DB::table('peoples')->where('user_id', '=', $id)->first();

            if (!$person) return "Not in LaSalleCRM";

            $full_url = route('admin.crmpeoples.edit', $person->id);

            $html  = '<a href="';
            $html .= $full_url;
            $html .= '">';
            $html .= 'Edit this LaSalle Customer';
            $html .= '</a>';

            return $html;
        }

        return "LaSalleCRM is not installed";
    }
public function getPeopleIdForIndexListing($id) {
        // Does the PEOPLES table exist?
        if (Schema::hasTable('peoples')) {
            $person = DB::table('peoples')->where('user_id', '=', $id)->first();

            if (!$person) return "Not in LaSalleCRM";

            $full_url = route('admin.crmpeoples.edit', $person->id);

            $html  = '<a href="';
            $html .= $full_url;
            $html .= '">';
            $html .= 'Edit this LaSalle Customer';
            $html .= '</a>';

            return $html;
        }

        return "LaSalleCRM is not installed";
    }
public function getPeopleIdForIndexListing ( $ id ) { // Does the PEOPLES table exist? if ( Schema :: hasTable ( 'peoples' ) ) { $ person = DB :: table ( 'peoples' ) -> where ( 'user_id' , '=' , $ id ) -> first ( ) ; if ( ! $ person ) return "Not in LaSalleCRM" ; $ full_url = route ( 'admin.crmpeoples.edit' , $ person -> id ) ; $ html = '<a href="' ; $ html .= $ full_url ; $ html .= '">' ; $ html .= 'Edit this LaSalle Customer' ; $ html .= '</a>' ; return $ html ; } return "LaSalleCRM is not installed" ; }
Get the ID from the PEOPLES table

@param  int     $id      Users table ID
@return mixed
Get the ID from the PEOPLES table