Projekt

Obecné

Profil

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