src/Http/Controllers/LasallecrmcontactController.php
public function show($id) {

        // $id can be an integer -- the actual ID of the PEOPLES table; or,
        // $id can be a string, in the format "Firstname@Lastname"
        $peopleID = $this->helpers->determinePeopleID($id);

        if (!$this->helpers->isAllowedPeopleIdSingleContactDisplay($peopleID)) {
            return redirect()->back();
        }

        $people    = $this->peopleRepository->getFind($peopleID);
        $email     = $this->peopleRepository->getFirstWorkEmail($peopleID);
        $telephone = $this->peopleRepository->getFirstWorkTelephone($peopleID);

        return view('lasallecrmcontact::single_crmcontact_basic', [
            'people'                              => $people,
            'email'                               => $email,
            'telephone'                           => $telephone,
            'single_contact_display_contact_form' => Config::get('lasallecrmcontact.single_contact_display_contact_form'),
            'Config'                              => Config::class,
        ]);
    }
public function show($id) {

        // $id can be an integer -- the actual ID of the PEOPLES table; or,
        // $id can be a string, in the format "Firstname@Lastname"
        $peopleID = $this->helpers->determinePeopleID($id);

        if (!$this->helpers->isAllowedPeopleIdSingleContactDisplay($peopleID)) {
            return redirect()->back();
        }

        $people    = $this->peopleRepository->getFind($peopleID);
        $email     = $this->peopleRepository->getFirstWorkEmail($peopleID);
        $telephone = $this->peopleRepository->getFirstWorkTelephone($peopleID);

        return view('lasallecrmcontact::single_crmcontact_basic', [
            'people'                              => $people,
            'email'                               => $email,
            'telephone'                           => $telephone,
            'single_contact_display_contact_form' => Config::get('lasallecrmcontact.single_contact_display_contact_form'),
            'Config'                              => Config::class,
        ]);
    }
public function show ( $ id ) { // $id can be an integer -- the actual ID of the PEOPLES table; or, // $id can be a string, in the format "Firstname@Lastname" $ peopleID = $ this -> helpers -> determinePeopleID ( $ id ) ; if ( ! $ this -> helpers -> isAllowedPeopleIdSingleContactDisplay ( $ peopleID ) ) { return redirect ( ) -> back ( ) ; } $ people = $ this -> peopleRepository -> getFind ( $ peopleID ) ; $ email = $ this -> peopleRepository -> getFirstWorkEmail ( $ peopleID ) ; $ telephone = $ this -> peopleRepository -> getFirstWorkTelephone ( $ peopleID ) ; return view ( 'lasallecrmcontact::single_crmcontact_basic' , [ 'people' => $ people , 'email' => $ email , 'telephone' => $ telephone , 'single_contact_display_contact_form' => Config :: get ( 'lasallecrmcontact.single_contact_display_contact_form' ) , 'Config' => Config :: class , ] ) ; }
Display a single contact from the LaSalleCRM database

@param  mixed        $id        LaSalleCRM people ID (int) or "Firstname@Lastname" (text)
@return response
Display a single contact from the LaSalleCRM database