You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
785 B
30 lines
785 B
@extends('layout')
|
|
|
|
@inject('markdownHelper', 'App\Helpers\MarkdownHelper')
|
|
@inject('snippetRepository', 'App\Repositories\SnippetRepository')
|
|
|
|
@section('content')
|
|
|
|
<h1>
|
|
{{ $page['data']['title'] }}
|
|
</h1>
|
|
<div class="content">
|
|
{!! $markdownHelper->parse($page['data']['content']) !!}
|
|
</div>
|
|
|
|
@foreach($snippetRepository->findByName('default')['data'] as $snippet)
|
|
<div class="snippet">
|
|
<h3>
|
|
{{ $snippet['title'] }}
|
|
</h3>
|
|
<div class="snippet__media">
|
|
<img src="{{ assetsUrl($snippet['file']['id']) }}" alt="{{ $snippet['file']['description'] }}" />
|
|
</div>
|
|
<div class="snippet__content content">
|
|
{!! $markdownHelper->parse($snippet['content']) !!}
|
|
</div>
|
|
</div>
|
|
@endforeach
|
|
|
|
@endsection
|