@extends('layout')
@inject('markdownHelper', 'App\Helpers\MarkdownHelper')
@inject('snippetRepository', 'App\Repositories\SnippetRepository')
@section('content')
{{ $page['data']['title'] }}
{!! $markdownHelper->parse($page['data']['content']) !!}
@foreach($snippetRepository->findByName('default')['data'] as $snippet)
{{ $snippet['title'] }}
{!! $markdownHelper->parse($snippet['content']) !!}
@endforeach
@endsection