@extends('frontend.layouts.app') @section('content')
@if($posts->isNotEmpty()) @php $post = $posts->first(); @endphp

{{ $post->page->title }}

@if (!empty($post->page->content))

{{ $post->page->content }}

@endif
@else

Aucun article disponible pour le moment.

@endif
@if($posts->isNotEmpty() && isset($post->blocks[0]))

{{ $post->blocks[0]->title }}

{!! nl2br(e($post->blocks[0]->content)) !!}

Image
@endif @if($posts->isNotEmpty() && isset($post->blocks[1]))

{{ $post->blocks[1]->title }}

{!! nl2br(e($post->blocks[1]->content)) !!}

@if (!empty($post->blocks[1]->image)) Image @endif
@endif
@endsection