@extends('layouts.app') @section('title', $post->title) @section('content')

{{ $post->title }}

{{ $post->author->name }} {{ $post->author->name }}
{{ $post->published_at ? $post->published_at->format('d M Y') : $post->created_at->format('d M Y') }}
@if ($post->category)
{{ $post->category->name }}
@endif
{!! $post->content !!}
@if ($post->tags->count() > 0)
Tags:
@foreach ($post->tags as $tag) {{ $tag->name }} @endforeach
Partager:
@endif

Articles connexes

@foreach ($relatedPosts as $relatedPost)
{{ $relatedPost->title }}
{{ $relatedPost->author->name }} {{ $relatedPost->published_at ? $relatedPost->published_at->format('d M Y') : $relatedPost->created_at->format('d M Y') }}
{{ $relatedPost->title }}

{{ Str::limit(strip_tags($relatedPost->content), 100) }}

Lire plus
@endforeach

Catégories

@foreach ($categories as $category) {{ $category->name }} ({{ $category->posts_count }}) @endforeach

Articles récents

@foreach ($recentPosts as $recentPost)
{{ $recentPost->title }}
{{ Str::limit($recentPost->title, 25) }} {{ $recentPost->published_at ? $recentPost->published_at->format('d M Y') : $recentPost->created_at->format('d M Y') }}
@endforeach

Tags

@foreach ($tags as $tag) {{ $tag->name }} @endforeach
@endsection