Projekt

Obecné

Profil

Stáhnout (2.49 KB) Statistiky
| Větev: | Tag: | Revize:
1
@extends('layouts.app')
2

    
3
@section('title', 'Detail')
4

    
5
@section('breadcrumb')
6
    <li class="breadcrumb-item" aria-current="page"><a href="{{ url('/') }}">Home</a></li>
7
    <li class="breadcrumb-item" aria-current="page"><a href="{{ url('/artefact') }}">Artefacts</a></li>
8
    <li class="breadcrumb-item" aria-current="page"><a href="{{ url('/artefact/' . $id) }}">Artefact</a></li>
9
    <li class="breadcrumb-item active" aria-current="page">Notes</li>
10
@endsection
11

    
12
@section('content')
13
    <div class="container">
14
        <div class="jumbotron mt-5">
15
            <div class="text-center">
16
                @if (isset($arrArtefact))
17
                    <h1>Notes list</h1>
18
                    <p>
19
                        Lorem ipsum dolor sit amet, consectetuer adipiscing elit.
20
                        Mauris dolor felis, sagittis at, luctus sed, aliquam non, tellus.
21
                        Fusce tellus odio, dapibus id fermentum quis, suscipit id erat.
22
                        Morbi scelerisque luctus velit. Vivamus porttitor turpis ac leo.
23
                        Morbi scelerisque luctus velit.
24
                        Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.
25
                    </p>
26
                @else
27
                    <h2>Given artefact does not exist!</h2>
28
                @endif
29
            </div>
30
        </div>
31
        @if(isset($arrArtefact))
32
            <div class="artefact-area text-center mb-4">
33
                <h2>{{$arrArtefact->name}}</h2>
34
                <h4>{{$arrArtefact->author}}, {{$arrArtefact->year}}</h4>
35
                <h5 class="text-muted">{{$arrArtefact->pages}} pages, <i class="fas fa-thumbs-up"></i> {{$likes}}</h5>
36
            </div>
37
            @if(count($metadata) > 0)
38
                <ul class="list-group">
39
                    @foreach($metadata as $meta)
40
                        <div class="note-area mb-3">
41
                            <li class="list-group-item">
42
                                On {{$meta->page}} page:<br>
43
                                {{$meta->noteCZ}}<br>
44
                                {{$meta->noteEN}}<br>
45
                            </li>
46
                        </div>
47
                    @endforeach
48
                </ul>
49
            @else
50
                <ul class="list-group">
51
                    <li class="list-group-item">
52
                        <h3>No notes for this BOOK were found!</h3>
53
                    </li>
54
                </ul>
55
            @endif
56
        @endif
57
    </div>
58
@endsection
    (1-1/1)