Projekt

Obecné

Profil

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

    
3
@section('title', 'Favorite artefacts')
4

    
5
@section('breadcrumb')
6
    <li class="breadcrumb-item"><a href="{{ url('/') }}">Home</a></li>
7
    <li class="breadcrumb-item active" aria-current="page">Favorite artefacts</li>
8
@endsection
9

    
10
@section('content')
11
    <div class="jumbotron">
12
        <div class="text-center">
13
            <h1>Favorite artefacts</h1>
14
            <p>
15
                Lorem ipsum dolor sit amet, consectetuer adipiscing elit.
16
                Mauris dolor felis, sagittis at, luctus sed, aliquam non, tellus.
17
                Fusce tellus odio, dapibus id fermentum quis, suscipit id erat.
18
                Morbi scelerisque luctus velit. Vivamus porttitor turpis ac leo.
19
                Morbi scelerisque luctus velit.
20
                Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.
21
            </p>
22
        </div>
23
    </div>
24
    {{--<p>The id of the user is {{$user->id}}</p>--}}
25
    @if(isset($artefacts))
26
        @if(count($artefacts) >= 1)
27
            @foreach($artefacts as $artefact)
28
                <div class="artefacts-area mb-5">
29
                    <div class="card">
30
                        <svg class="bd-placeholder-img card-img-top" width="100%" height="180" xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="xMidYMid slice" focusable="false" role="img" aria-label="Placeholder: Image cap"><title>Placeholder</title><rect width="100%" height="100%" fill="#868e96"></rect><text x="45%" y="50%" fill="#dee2e6" dy=".3em">Artefact image</text></svg>
31
                        <div class="card-body">
32
                            <h5 class="card-title"><a href="{{ url('/artefact/' . $artefact->id) }}">{{$artefact->name}}</a> - {{$artefact->author}}</h5>
33
                            <h6 class="card-subtitle mb-2 text-muted">{{$artefact->year}}, {{$artefact->pages}} pages</h6>
34
                            <p class="card-text">
35
                                Lorem ipsum dolor sit amet, consectetuer adipiscing elit.
36
                                Mauris dolor felis, sagittis at, luctus sed, aliquam non, tellus.
37
                                Fusce tellus odio, dapibus id fermentum quis, suscipit id erat.
38
                                Morbi scelerisque luctus velit. Vivamus porttitor turpis ac leo.
39
                                Morbi scelerisque luctus velit.
40
                                Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.
41
                            </p>
42
                        </div>
43
                    </div>
44
                </div>
45
            @endforeach
46
        @else
47
            <ul class="list-group">
48
                <li class="list-group-item">
49
                    <h3>No favorites were added!</h3>
50
                </li>
51
            </ul>
52
        @endif
53
    @else
54
        <ul class="list-group">
55
            <li class="list-group-item">
56
                <h3>Not found the USER in the database with number id {{$user->id}}!</h3>
57
            </li>
58
        </ul>
59
    @endif
60
@endsection
    (1-1/1)