Projekt

Obecné

Profil

Stáhnout (3.24 KB) Statistiky
| Větev: | Tag: | Revize:
1 d7feebff zabran
@extends('layouts.app')
2
3
@section('title', 'Charts')
4
5
@section('content')
6
    <div class="container">
7
        @if(isset($artefacts))
8
            @if(count($artefacts) >= 1)
9 49b1d48f zabran
                <div class="fav-cat-mybooks">
10
                    <h1>Charts</h1>
11
                </div>
12 d7feebff zabran
                @foreach($artefacts as $artefact)
13
                    <div class="artefacts-area mb-5">
14
                        <div class="card">
15 7c1c3ef3 zabran
                            <a href="{{ url('/artefact/' . $artefact->id) }}">
16
17
                            </a>
18 49b1d48f zabran
                            <div class="container card-cus-bottom">
19 7c1c3ef3 zabran
                                <div class="d-flex flex-row row-list">
20
                                    <div class="p-1 flex-fill bd-highlight left_panel_info">
21
                                        <a href="{{ url('/artefact/' . $artefact->id) }}">
22
                                            <h5 class="card-title ">{{$artefact->name}}</h5>
23
                                            <h6 class="card-title">{{$artefact->author}}</h6>
24
                                        </a>
25 d7feebff zabran
                                    </div>
26 7c1c3ef3 zabran
                                    <div class="p-1 flex-fill bd-highlight float-center">
27
                                        <div class="text-center right_panel_info">
28
29
                                            <div class="charts float-center">
30 49b1d48f zabran
                                                @if (!$artefact->favourite)
31 deebc8b6 zabran
                                                    <a href="{{  action('ArtefactController@like', ['id' => $artefact->id]) }}">
32
                                                        <button id="like_butt_{{$artefact->id}}" type="button"
33
                                                                class="btn btn-primary button-image inter_like"></button>
34
                                                    </a>
35 49b1d48f zabran
                                                @else
36 deebc8b6 zabran
                                                    <a href="{{  action('ArtefactController@unlike', ['id' => $artefact->id]) }}">
37
                                                        <button id="like_butt_{{$artefact->id}}" type="button"
38 7c1c3ef3 zabran
                                                                class="btn btn-primary button-image inter_like_filled"></button>
39 deebc8b6 zabran
                                                    </a>
40 49b1d48f zabran
                                                @endif
41 deebc8b6 zabran
                                                <h6 class="artefact-likes">{{$artefact->likes}}</h6>
42 49b1d48f zabran
                                            </div>
43
                                        </div>
44 d7feebff zabran
                                    </div>
45
                                </div>
46
                            </div>
47
                        </div>
48
                    </div>
49
                @endforeach
50
            @else
51
                <ul class="list-group">
52
                    <li class="list-group-item">
53 49b1d48f zabran
                        <h3>No artefacts were added!</h3>
54 d7feebff zabran
                    </li>
55
                </ul>
56
            @endif
57
        @else
58
            <ul class="list-group">
59
                <li class="list-group-item">
60
                    <h3>Not found the USER in the database with number id {{$user->id}}!</h3>
61
                </li>
62
            </ul>
63
        @endif
64 7c1c3ef3 zabran
    </div>
65 d7feebff zabran
@endsection