/** * */ protected function createOrganizations() { $this->misc['statuses'] = Status::all()->keyBy('name'); $this->misc['opfs'] = Opf::all()->keyBy('name'); $this->misc['cities'] = City::all()->keyBy('name'); $this->misc['types'] = Type::all()->keyBy('name'); foreach ($this->data as $row) { $this->createOrganization($row); } }
/** * Главная страница админки ОПФ * * @return \Illuminate\Contracts\View\Factory|\Illuminate\View\View */ public function main() { return view('admin.opf.main', ['opfs' => Opf::all()]); }