@extends('admin.template') @section('sidebar') @endsection @section('main')

Résultat de la recherche : {{ $key }}

@if(count($result)) Environ {{ count($result) }} résultat(s) @endif
@if (!count($result))

Aucun livre correspondant...

@else @foreach ($result as $book)

{{ $book['titre'] }} - {{ $book['auteur'] }}

@if ($book['etat'] == 0)
@csrf
@endif

{{ substr($book['description'], 0, 200) }}...

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'] }}
@endforeach @endif
@endsection