Projekt

Obecné

Profil

Stáhnout (3.19 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
                            <div class="container card-cus-bottom">
16
                                <div class="d-flex flex-row row-list">
17
                                    <div class="p-1 flex-fill bd-highlight left_panel_info">
18
                                        <a href="{{ action('ArtefactController@view', ['id' => $artefact->id]) /*url('/artefact/' . $artefact->id) */}}">
19
                                            <h5 class="card-title highlight-white">{{$artefact->name}}</h5>
20
                                        </a>
21
                                        <h6 class="card-title ">{{$artefact->author}}</h6>
22
                                    </div>
23
                                    <div class="p-1 flex-fill bd-highlight">
24
                                        <div class="text-center right_panel_info">
25
                                            <div class="charts float-right">
26
                                                @if (!$artefact->favourite)
27
                                                    <a href="{{  action('ArtefactController@like', ['id' => $artefact->id]) }}">
28
                                                        <button id="like_butt_{{$artefact->id}}" type="button"
29
                                                                class="btn btn-primary button-image inter_like"></button>
30
                                                    </a>
31
                                                @else
32
                                                    <a href="{{  action('ArtefactController@unlike', ['id' => $artefact->id]) }}">
33
                                                        <button id="like_butt_{{$artefact->id}}" type="button"
34
                                                                class="btn btn-primary button-image inter_like_filled"></button>
35
                                                    </a>
36
                                                @endif
37
                                                <h6 class="artefact-likes">{{$artefact->likes}}</h6>
38
                                            </div>
39
                                        </div>
40
                                    </div>
41
                                </div>
42
                            </div>
43
                        </div>
44
                    </div>
45
                @endforeach
46
            @else
47
                <ul class="list-group">
48
                    <li class="list-group-item">
49
                        <h3>No artefacts 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
    </div>
61
@endsection
    (1-1/1)