/**
  * Returns all serialnumbers found from Ajax call
  *
  * @param Request          $request (Ajax)
  *
  * @return json array
  */
 public function instantSearchSerialnr(Request $request)
 {
     $results = array();
     $items = Inventory::fuzzySearch('inventories', 'serialnr', $request->input('query'));
     foreach ($items as $item) {
         $results[] = $item->serialnr;
     }
     return json_encode($results);
 }