public function getIndex($slug = null)
 {
     $resource = Resource::findBySlug($slug);
     return view('resources.show', ['resource' => $resource, 'template' => 'resource']);
 }