Projekt

Obecné

Profil

Stáhnout (3.24 KB) Statistiky
| Větev: | Tag: | Revize:
1
@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
                <div class="fav-cat-mybooks">
10
                    <h1>Charts</h1>
11
                </div>
12
                @foreach($artefacts as $artefact)
13
                    <div class="artefacts-area mb-5">
14
                        <div class="card">
15
                            <a href="{{ url('/artefact/' . $artefact->id) }}">
16

    
17
                            </a>
18
                            <div class="container card-cus-bottom">
19
                                <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
                                    </div>
26
                                    <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
                                                @if (!$artefact->favourite)
31
                                                    <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
                                                @else
36
                                                    <a href="{{  action('ArtefactController@unlike', ['id' => $artefact->id]) }}">
37
                                                        <button id="like_butt_{{$artefact->id}}" type="button"
38
                                                                class="btn btn-primary button-image inter_like_filled"></button>
39
                                                    </a>
40
                                                @endif
41
                                                <h6 class="artefact-likes">{{$artefact->likes}}</h6>
42
                                            </div>
43
                                        </div>
44
                                    </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
                        <h3>No artefacts were added!</h3>
54
                    </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
    </div>
65
@endsection
    (1-1/1)