Aucun livre correspondant...
@else @foreach ($result as $book){{ substr($book['description'], 0, 200) }}...
Très utile en : @php $i = 0; @endphp @foreach ($book_disc as $b_d) @if ($b_d['book_id'] == $book['id']) @foreach ($disciplines as $discipline) @if ($discipline['id'] == $b_d['discipline_id']) @if ($i == 0) {{ $discipline['nameDiscipline'] }} @php $i = 1; @endphp @else , {{ $discipline['nameDiscipline'] }} @endif @endif @endforeach @endif @endforeach .