Categories (NN)

This commit is contained in:
Clément
2025-04-17 15:04:13 +02:00
parent dad50e035f
commit 338e803c5f
14 changed files with 398 additions and 1 deletions

View File

@@ -6,8 +6,22 @@
<a href="{{ route('billets.show', $billet->id) }}"><h1 class="titreBillet">{{ $billet->BIL_TITRE }}</h1></a>
<time>{{ $billet->BIL_DATE }}</time>
</header>
<p>
Dans :
@php
$counter = 0;
@endphp
@foreach($billet->categories as $categorie)
{{ $categorie->CAT_NOM }}
@php
$counter++;
@endphp
@if(count($billet->categories) > $counter)
/
@endif
@endforeach
</p>
<p>{{ $billet->BIL_CONTENU }}</p>
</article>
<hr />
@endforeach
@endsection