/** * Show the form for editing the specified resource. * * @param int $id * @return \Illuminate\Http\Response */ public function edit($id) { $alertType = AlertType::find($id); $color = UtilsController::getColorButtonList(); $icons = FontAwesome::lists('font', 'id'); $columnsNumber = 5; $fontPixelSize = 30; $html = UtilsController::generateFontAwesomeHtml($icons, $columnsNumber, $fontPixelSize); $icon = $alertType->font_awesome_id; return view('alertType.edit', compact('alertType', 'color', 'icon', 'html')); }