public function show($type, $subtype, $slug)
 {
     $post = $this->posts->findSeoble($slug);
     $t = $this->posts->findSeoble($type)->subtypes->lists('id')->toarray();
     $posts = $this->posts->orderBy('post', 'einddatum', 'desc')->where('subtype_id', '=', $post->subtype_id)->whereNotIn('id', [$post->id])->get();
     $previous = $this->posts->orderBy('post', 'einddatum', 'desc')->whereIn('subtype_id', $t)->where('id', '<', $post->id)->first();
     $next = $this->posts->orderBy('post', 'einddatum', 'asc')->whereIn('subtype_id', $t)->where('id', '>', $post->id)->first();
     if (\Request::ajax()) {
         return response()->json(['url' => \Request::url(), 'title' => 'Portfolio | Jonas Vanderhaegen', 'path' => \Request::path(), 'view' => view('pages.posts.' . $type . '.show', compact('post', 'previous', 'next', 'posts'))->render()]);
     }
     $og = new \OpenGraph(true);
     $og->title($post->seo->first()->title . ' | ' . $type . ' | ' . $subtype . ' | Jonas Vanderhaegen')->type('article')->description($post->seo->first()->description)->url()->locale('nl_BE')->siteName('Jonas Vanderhaegen');
     $og->article(['author' => 'Jonas Vanderhaegen', 'published_time' => $post->created_at->format('Y-m-d H:m:s'), 'modified_time' => $post->updated_at->format('Y-m-d H:m:s'), 'section' => $post->subtype->type->seo->first()->title]);
     $og->image('images/portfolio/' . $post->seo->first()->slug . '/1.jpg', ['width' => 720, 'height' => 400]);
     return view('pages.posts.' . $type . '.show', compact('post', 'previous', 'next', 'posts', 'og'));
 }