@extends('layout') {{-- pretend duplicate content --}} @push('head') @endpush {{-- inject helper for content & repositories --}} @inject('markdownHelper', 'App\Helpers\MarkdownHelper') @inject('postRepository', 'App\Repositories\PostRepository') @php $posts = $postRepository->find(); @endphp @section('content')

{{ $page['data']['title'] }}

{!! $markdownHelper->parse($page['data']['content']) !!}
@if (count($posts) > 0) @foreach($posts['data'] as $post)

{{ $post['title'] }}

@include('partials.date', ['post' => $post]) @include('partials.readtime', ['post' => $post]) @if (isset($post['media_teaser']['id'])) @endif
{!! $markdownHelper->parse($post['lead']) !!}
@endforeach @else

Nothing!

@endif @endsection