public function edit($id)
 {
     $element = ElementPrice::findOrFail($id);
     $storageTypes = StorageType::whereActive('1')->get();
     $elements = ['CPU' => 'CPU Cores', 'RAM' => "RAM"];
     foreach ($storageTypes as $st) {
         $elements[$st->tag] = "{$st->storage_type} - {$st->tag}";
     }
     return view('prices.edit')->with(compact('element', 'elements'));
 }
 /**
  * Display a listing of the resource.
  *
  * @return Response
  */
 public function index()
 {
     //
     $storageTypes = StorageType::whereActive('1')->get();
     return view('storagetypes.index')->with(compact('storageTypes'));
 }