1 |
c66c7237
|
rizir01
|
@extends('layouts.app')
|
2 |
|
|
|
3 |
|
|
@section('content')
|
4 |
|
|
<h1>{{$arrArtefact->name}}</h1>
|
5 |
|
|
<p>The id of the book is {{$id}}</p>
|
6 |
|
|
@if(isset($arrArtefact))
|
7 |
|
|
<p>{{$arrArtefact->author}}, {{$arrArtefact->year}}, {{$arrArtefact->pages}} pages, {{count($likes)}} likes</p>
|
8 |
|
|
{{-- <p><?php dd($metadata); ?></p>--}}
|
9 |
|
|
@if(count($metadata) >= 1)
|
10 |
|
|
<ul class="list-group">
|
11 |
|
|
@foreach($metadata as $meta)
|
12 |
|
|
<li class="list-group-item">
|
13 |
|
|
On {{$meta->page}} page:<br>
|
14 |
|
|
{{$meta->noteCZ}}<br>
|
15 |
|
|
{{$meta->noteEN}}<br>
|
16 |
|
|
</li>
|
17 |
|
|
<br>
|
18 |
|
|
@endforeach
|
19 |
|
|
</ul>
|
20 |
|
|
@else
|
21 |
|
|
<ul class="list-group">
|
22 |
|
|
<li class="list-group-item">
|
23 |
|
|
<h3>No notes for this BOOK were found!</h3>
|
24 |
|
|
</li>
|
25 |
|
|
</ul>
|
26 |
|
|
@endif
|
27 |
|
|
@else
|
28 |
|
|
<ul class="list-group">
|
29 |
|
|
<li class="list-group-item">
|
30 |
|
|
<h3>Not found the Artefact in the database with number id {{$id}}!</h3>
|
31 |
|
|
</li>
|
32 |
|
|
</ul>
|
33 |
|
|
@endif
|
34 |
|
|
@endsection
|