/** * Display the specified resource. * * @param int $id * @return Response */ public function show($id) { $log = PhoneLog::find($id); $geo = GeoAPI::getByIP($log->ip); //"77.66.238.201" $detail = null; if (!empty($log->call_id)) { $detail = MttAPI::getCallBackFollowmeCallInfo($log->call_id); } return view('callback.logs.show')->with(compact('log', 'geo', 'detail')); }