/**
  * Shows the view to edit an ItemType
  * 
  * @param  $id the id of the ItemType to view
  */
 public function edit($id)
 {
     $itemtype = Itemtype::findOrFail($id);
     $marcfields = Marcfield::all();
     $marcfields_in_itemtype = $itemtype->marcfields()->pluck('id')->toArray();
     return view('admin.itemtypes.edit', compact('itemtype', 'marcfields', 'marcfields_in_itemtype'));
 }
 /**
  * Show the view with the details of all Marcfields
  */
 public function index()
 {
     $marcfields = Marcfield::all();
     return view('admin.marcfields.index', ['marcfields' => $marcfields]);
 }