File: D:/HostingSpaces/SBogers10/honger.komma.pro/resources/views/site/pages/posts/show.blade.php
@extends('site.master')
@section('title', (!empty(($post->translation->meta_title)) ? $post->translation->meta_title : $post->translation->name . ' | Blog | Komma - Web & Branding Agency'))
@section('description', $post->translation->meta_description)
@section('metaTags')
<meta property="og:title" content=" {{ (!empty(($post->translation->meta_title)) ? $post->translation->meta_title : $post->translation->name . ' | Blog | Komma - Web & Branding Agency') }}" />
<meta property="og:description" content="{{ $post->translation->meta_description }}" />
@if(isset($post->images) && $post->images->count() != 0)
<meta property="og:image" content="{{ URL::to($post->images->first()->medium_image_url) }}" />
@endif
@stop
@section('content')
{{-- Header with large image --}}
<header class="main">
@include('site.partials.posts.postHeaderShow',[
'post' => $post
])
{{-- Drips around header --}}
@include('site.partials.headerDrips')
</header>
{{-- Article --}}
<section class="post-body contained-layout">
<div class="post-container">
@foreach($post->blocks as $block)
@if(View::exists($block->view))
@include($block->view,[
'block' => $block
])
@endif
@endforeach
</div>
</section>
{{-- Related posts --}}
<section class="contained-layout">
<div class="related-posts posts-container">
<a class="back-to-grid" href="/blog">Terug naar overzicht</a>
@if($relatedPosts->isNotEmpty())
<h2>Gerelateerde posts</h2>
<div class="post-grid">
@foreach($relatedPosts as $post)
@include('site.partials.posts.postThumb',[
'post' => $post
])
@endforeach
</div>
@endif
</div>
</section>
{{-- todo: Stay tuned (stage 2) --}}
@endsection