src/Http/Controllers/LasallecrmcontactController.php
public function multipleshow() {

        $displayTheseIDs = Config::get('lasallecrmcontact.multiple_contact_display_people_ids');

        $contacts = [];

        $i = 0;

        foreach ($displayTheseIDs as $displayThisID) {
            $people    = $this->peopleRepository->getFind($displayThisID);
            $email     = $this->peopleRepository->getFirstWorkEmail($displayThisID);
            $telephone = $this->peopleRepository->getFirstWorkTelephone($displayThisID);

            $contacts[$i]['first_name']     = $people->first_name;
            $contacts[$i]['middle_name']    = $people->middle_name;
            $contacts[$i]['surname']        = $people->surname;
            $contacts[$i]['link']           = $people->first_name.'@'.$people->middle_name.'@'.$people->surname;
            $contacts[$i]['position']       = $people->position;
            $contacts[$i]['featured_image'] = $people->featured_image;
            $contacts[$i]['email']          = $email ;
            $contacts[$i]['telephone']      = $telephone;

            $i++;
        }

        return view('lasallecrmcontact::multiple_crmcontact_basic', [
            'contacts'  => $contacts,
            'Config'    => Config::class,
        ]);
    }
public function multipleshow() {

        $displayTheseIDs = Config::get('lasallecrmcontact.multiple_contact_display_people_ids');

        $contacts = [];

        $i = 0;

        foreach ($displayTheseIDs as $displayThisID) {
            $people    = $this->peopleRepository->getFind($displayThisID);
            $email     = $this->peopleRepository->getFirstWorkEmail($displayThisID);
            $telephone = $this->peopleRepository->getFirstWorkTelephone($displayThisID);

            $contacts[$i]['first_name']     = $people->first_name;
            $contacts[$i]['middle_name']    = $people->middle_name;
            $contacts[$i]['surname']        = $people->surname;
            $contacts[$i]['link']           = $people->first_name.'@'.$people->middle_name.'@'.$people->surname;
            $contacts[$i]['position']       = $people->position;
            $contacts[$i]['featured_image'] = $people->featured_image;
            $contacts[$i]['email']          = $email ;
            $contacts[$i]['telephone']      = $telephone;

            $i++;
        }

        return view('lasallecrmcontact::multiple_crmcontact_basic', [
            'contacts'  => $contacts,
            'Config'    => Config::class,
        ]);
    }
public function multipleshow ( ) { $ displayTheseIDs = Config :: get ( 'lasallecrmcontact.multiple_contact_display_people_ids' ) ; $ contacts = [ ] ; $ i = 0 ; foreach ( $ displayTheseIDs as $ displayThisID ) { $ people = $ this -> peopleRepository -> getFind ( $ displayThisID ) ; $ email = $ this -> peopleRepository -> getFirstWorkEmail ( $ displayThisID ) ; $ telephone = $ this -> peopleRepository -> getFirstWorkTelephone ( $ displayThisID ) ; $ contacts [ $ i ] [ 'first_name' ] = $ people -> first_name ; $ contacts [ $ i ] [ 'middle_name' ] = $ people -> middle_name ; $ contacts [ $ i ] [ 'surname' ] = $ people -> surname ; $ contacts [ $ i ] [ 'link' ] = $ people -> first_name . '@' . $ people -> middle_name . '@' . $ people -> surname ; $ contacts [ $ i ] [ 'position' ] = $ people -> position ; $ contacts [ $ i ] [ 'featured_image' ] = $ people -> featured_image ; $ contacts [ $ i ] [ 'email' ] = $ email ; $ contacts [ $ i ] [ 'telephone' ] = $ telephone ; $ i ++ ; } return view ( 'lasallecrmcontact::multiple_crmcontact_basic' , [ 'contacts' => $ contacts , 'Config' => Config :: class , ] ) ; }
Display multiple contacts from the LaSalleCRM database

@return response
Display multiple contacts from the LaSalleCRM database