Projekt

Obecné

Profil

Stáhnout (3.25 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="container">
12
        <div class="jumbotron mt-5">
13
            <div class="text-center">
14
                <h1>Favorite artefacts</h1>
15
                <p>
16
                    Lorem ipsum dolor sit amet, consectetuer adipiscing elit.
17
                    Mauris dolor felis, sagittis at, luctus sed, aliquam non, tellus.
18
                    Fusce tellus odio, dapibus id fermentum quis, suscipit id erat.
19
                    Morbi scelerisque luctus velit. Vivamus porttitor turpis ac leo.
20
                    Morbi scelerisque luctus velit.
21
                    Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.
22
                </p>
23
            </div>
24
        </div>
25
        {{--<p>The id of the user is {{$user->id}}</p>--}}
26
        @if(isset($artefacts))
27
            @if(count($artefacts) >= 1)
28
                @foreach($artefacts as $artefact)
29
                    <div class="artefacts-area mb-5">
30
                        <div class="card">
31
                            <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>
32
                            <div class="card-body">
33
                                <h5 class="card-title"><a href="{{ url('/artefact/' . $artefact->id) }}">{{$artefact->name}}</a> - {{$artefact->author}}</h5>
34
                                <h6 class="card-subtitle mb-2 text-muted">{{$artefact->year}}, {{$artefact->pages}} pages</h6>
35
                                <p class="card-text">
36
                                    Lorem ipsum dolor sit amet, consectetuer adipiscing elit.
37
                                    Mauris dolor felis, sagittis at, luctus sed, aliquam non, tellus.
38
                                    Fusce tellus odio, dapibus id fermentum quis, suscipit id erat.
39
                                    Morbi scelerisque luctus velit. Vivamus porttitor turpis ac leo.
40
                                    Morbi scelerisque luctus velit.
41
                                    Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.
42
                                </p>
43
                            </div>
44
                        </div>
45
                    </div>
46
                @endforeach
47
            @else
48
                <ul class="list-group">
49
                    <li class="list-group-item">
50
                        <h3>No favorites were added!</h3>
51
                    </li>
52
                </ul>
53
            @endif
54
        @else
55
            <ul class="list-group">
56
                <li class="list-group-item">
57
                    <h3>Not found the USER in the database with number id {{$user->id}}!</h3>
58
                </li>
59
            </ul>
60
        @endif
61
    </div>
62
@endsection
    (1-1/1)