public function loadPanels($list) { $panels = []; foreach ($list as $panel) { $panels[$panel] = $this->getPanel($panel); } return $panels; }