getService()->getTotalServiceCount(array_key_exists('where', $params) ? $params['where'] : []); $template = array_key_exists('template', $params) ? $params['template'] : __FUNCTION__; return view('cells/server/' . $template, [ 'serviceCellDatas' => [ 'control' => $this->getService()->getControlDatas(), 'service' => $this->getService(), 'label' => $params['where']['serviceinfo.site'], 'totalCounts' => $totalCounts, ] ]); } }