@if ($book->titre)

{{ $book->titre }} - {{ $book->auteur }}

{{ $book['description'] }}

Très utile en : @php $i = 0; $book_disc = \App\Models\Book_Discipline::all(); $disciplines = \App\Models\Discipline::all(); @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 .

@if ($book['edition']) Edition : {{ $book['edition'] }} - @endif ISBN : {{ $book['ISBN'] }} @php $user = unserialize(session('BOOKCASE_USER')); $emprunt = \App\Models\Book_Utilisateur::where([['book_id', $book->id], ['utilisateur_id', $user->id]])->first(); @endphp
@if (!$emprunt)
@else
@endif @else

{{ $book->nom }}

@endif

@if ($book->titre) @if (!$emprunt)
@else
@endif @endif