/**
  * Removes the item from the loadout
  *
  * @param $loadout
  * @param Request $request
  */
 public function postLoadoutItemsRemove($loadout, $item_id, Request $request)
 {
     //TODO: Add logging
     //Remvoe the item from the loadout
     //Then redirect to the loadout edit page
     if ($loadout->owner_id == Session::get('store_user_id', 0)) {
         $item = StoreItem::findOrFail($item_id);
         //Get the item the user wants to add to the loadout
         //attach item to loadout
         $loadout->items()->detach($item->id);
         //redirect back to loadout edit page with success message
         return redirect()->route("userpanel.loadouts.edit", ["loadout" => $loadout->id])->with("flash_notification", array("message" => "The item has successfully been removed from the loadout", "level" => "success"));
     } else {
         abort(401);
     }
 }