@foreach($articles as $index => $article)
{{--
LOGIQUE VOIR PLUS :
On ajoute la classe 'hidden' et 'article-hidden' si l'index est >= 6 (donc à partir du 7ème article).
$index commence à 0.
--}}
{{ strtoupper($article->category ?? 'Actu') }}
{{-- LOGIQUE DE DATE CORRIGÉE --}}
@if($article->created_at->diffInMinutes() < 60)
Maintenant
@elseif($article->created_at->diffInHours() < 24)
Il y a {{ (int) $article->created_at->diffInHours() }} {{ Str::plural('heure', (int) $article->created_at->diffInHours()) }}
@else
Il y a {{ (int) $article->created_at->diffInDays() }} {{ Str::plural('jour', (int) $article->created_at->diffInDays()) }}
@endif
{{ Str::ucfirst(Str::lower($article->rage_title)) }}
{{ Str::limit($article->rage_intro ?? strip_tags($article->body), 160) }}