first(); if(!$meeting) { return abort(404, "Meeting no longer active"); } $participants = MeetingParticipant::where('meeting_id', $meeting->id)->get(); foreach ($participants as $participant) { $participant->proName = $participant->proName(); // eager-fill proName } return view('meeting', [ 'meetingID' => $meetingID, 'participantID'=> $participantID, 'participants' => $participants, 'guest' => true ]); } */ public function join(Request $request) { return view('join'); } public function checkin(Request $request) { return view('checkin'); } public function meet(Request $request) { return view('meet', [ 'guest' => true ]); } public function dashboard(Request $request) { $clientUid = $_COOKIE['clientUid']; $client = DB::table('client')->where('uid', $clientUid)->first(); return view('client-dashboard', [ "client" => $client ]); } public function getCheckinToken(Request $request, $uid) { $client = DB::table('client')->where('uid', $uid)->first(); return json_encode([ "data" => $client->check_in_token ]); } }