Projekt

Obecné

Profil

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

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

    
5
@section('breadcrumb')
6
    <li class="breadcrumb-item"><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 active" aria-current="page">Artefact</li>
9
@endsection
10

    
11

    
12
@section('content')
13
    <div class="container py-4">
14
        @if (is_null($artefact))
15
            <div class="text-center">
16
                <h2>Currently no artefacts available.</h2>
17
            </div>
18
        @else
19
            <div class="artefact-area mb-5">
20
                <div class="card">
21
                    <a href="#imageModal" data-toggle="modal">
22
                        <img class="card-img-top" src="{{asset('images/artefacts/book_cover_01.jpg')}}" width="100%" height=auto alt="book_cover">
23
                    </a>
24
                    <div class="card-cus-bottom">
25
                        <div class="col-xs-2 float-left left_panel_info">
26
                            <h5 class="artefact-name">{{$artefact->name}}</h5>
27
                            <h6 class="artefact-author">{{$artefact->author}}</h6>
28
                        </div>
29
                        <div class="col-xs-2 float-right right_panel_info">
30
                            <div class="float-left">
31
                                <button type="button" class="btn btn-primary button-image inter_info" data-toggle="modal" data-target="#informationModal"></button>
32
                            </div>
33
                            <div class="float-right text-center">
34
                                @if ($artefact->favourite)
35
                                    <a href="{{  action('ArtefactController@unlike', ['id' => $artefact->id]) }}">
36
                                        <button id="like_butt_{{$artefact->id}}" type="button" class="btn btn-primary button-image inter_like_filled"></button>
37
                                    </a>
38
                                @else
39
                                    <a href="{{  action('ArtefactController@like', ['id' => $artefact->id]) }}">
40
                                        <button id="like_butt_{{$artefact->id}}" type="button" class="btn btn-primary button-image inter_like"></button>
41
                                    </a>
42
                                @endif
43
                                <h6 class="artefact-likes">{{$artefact->likes}}</h6>
44
                            </div>
45
                        </div>
46
                    </div>
47
                </div>
48
            </div>
49
        @endif
50
    </div>
51

    
52
    <!-- Image modal -->
53
    <div class="modal image-modal fade" id="imageModal" tabindex="-1" role="dialog">
54
        <div class="modal-dialog modal-dialog-centered" role="document">
55
            <button type="button" class="close" data-dismiss="modal" aria-label="Close">
56
                <span aria-hidden="true">&times;</span>
57
            </button>
58
            <div class="modal-content">
59
                <img class="card-img-top" src="{{asset('images/artefacts/book_cover_01.jpg')}}" width="100%" height=auto alt="book_cover">
60
            </div>
61
        </div>
62
    </div>
63

    
64
    <!-- Information modal -->
65
    <div class="modal fade" id="informationModal" tabindex="-1" role="dialog">
66
        <div class="modal-dialog modal-dialog-centered" role="document">
67
            <div class="modal-content">
68
                <div class="modal-header">
69
                    <h5 class="modal-title">{{$artefact->name}} - {{$artefact->author}}</h5>
70
                    <button type="button" class="close" data-dismiss="modal" aria-label="Close">
71
                        <span aria-hidden="true">&times;</span>
72
                    </button>
73
                </div>
74
                <div class="modal-body">
75
                    Addition information about book.
76
                </div>
77
                <div class="modal-footer">
78
                    <button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
79
                </div>
80
            </div>
81
        </div>
82
    </div>
83
@endsection
(3-3/3)