@extends('layouts.app') @section('title', 'Blog') @section('content')

Les dernières actualités et articles

@forelse($posts as $post)
{{ $post->title }}
{{ $post->author->name }} {{ $post->published_at ? $post->published_at->format('d M Y') : $post->created_at->format('d M Y') }}

{{ $post->title }}

{{ Str::limit(strip_tags($post->content), 150) }}

Lire plus
@empty

Aucun article trouvé.

@endforelse
{{ $posts->links('vendor.pagination.custom') }}

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