Boilerplate to use a Directus Instance to Build a Custom Website, Content will be Manage by Directus
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.

29 lines
785 B

3 years ago
3 years ago
3 years ago
  1. @extends('layout')
  2. @inject('markdownHelper', 'App\Helpers\MarkdownHelper')
  3. @inject('snippetRepository', 'App\Repositories\SnippetRepository')
  4. @section('content')
  5. <h1>
  6. {{ $page['data']['title'] }}
  7. </h1>
  8. <div class="content">
  9. {!! $markdownHelper->parse($page['data']['content']) !!}
  10. </div>
  11. @foreach($snippetRepository->findByName('default')['data'] as $snippet)
  12. <div class="snippet">
  13. <h3>
  14. {{ $snippet['title'] }}
  15. </h3>
  16. <div class="snippet__media">
  17. <img src="{{ assetsUrl($snippet['file']['id']) }}" alt="{{ $snippet['file']['description'] }}" />
  18. </div>
  19. <div class="snippet__content content">
  20. {!! $markdownHelper->parse($snippet['content']) !!}
  21. </div>
  22. </div>
  23. @endforeach
  24. @endsection