public function index($id = 1)
 {
     if (Auth::check() && Auth::user()->hasOnePrivelege(['Administrator'])) {
         $filters = filter::all();
         $filter_opties = filter_optie::where('filter_id', '=', $id)->where('id', '>', 5)->orderBy('naam')->get();
         return view::make('filters/index')->with(compact('filters', 'id', 'filter_opties', 'filter_count'));
     } else {
         return View::make('errors/' . HttpCode::Unauthorized);
     }
 }
 /**
  * Show the form for editing the specified resource.
  *
  * @param  string  $slug
  * @return Response
  */
 public function edit($slug)
 {
     // get the artwork
     $artwork = Artwork::where('slug', $slug)->first();
     // Does the artwork exist?
     if ($artwork) {
         // Get the selectbox options and pass them to the view via the compact function.
         $artists = Artist::orderBy('name')->get();
         $categories = filter_optie::where('filter_id', '=', 1)->where('id', '>', 5)->orderBy('naam')->get();
         $genres = filter_optie::where('filter_id', '=', 2)->where('id', '>', 5)->orderBy('naam')->get();
         $techniques = filter_optie::where('filter_id', '=', 3)->where('id', '>', 5)->orderBy('naam')->get();
         $materials = filter_optie::where('filter_id', '=', 4)->where('id', '>', 5)->orderBy('naam')->get();
         $colours = filter_optie::where('filter_id', '=', 5)->where('id', '>', 5)->orderBy('naam')->get();
         $formats = array('Klein', 'Middelgroot', 'Groot');
         $filterArray = ['artwork', 'artists', 'techniques', 'genres', 'materials', 'categories', 'formats', 'colours'];
         // Show the view
         return View::make('artworks/edit', compact($filterArray));
     } else {
         // Show the not found page
         return View::make('errors/' . HttpCode::NotFound);
     }
 }