1 |
6c518068
|
rizir01
|
@extends('layouts.app')
|
2 |
34c0b905
|
rizir01
|
|
3 |
|
|
@section('title', 'Categories')
|
4 |
|
|
|
5 |
|
|
@section('content')
|
6 |
927fb559
|
zabran
|
<div class="container">
|
7 |
25ec2fab
|
Marek Lovčí
|
@if(isset($user))
|
8 |
eadc983d
|
rizir01
|
<div class="row">
|
9 |
|
|
<div class="col cat-main-menu">
|
10 |
|
|
<a href="{{ url('/') }}">
|
11 |
|
|
{{ __('general.home') }}
|
12 |
|
|
</a>
|
13 |
|
|
</div>
|
14 |
|
|
<div class="col cat-main-menu">
|
15 |
|
|
<a href="{{ url('/categories') }}">
|
16 |
|
|
{{ __('general.topics') }}
|
17 |
|
|
</a>
|
18 |
|
|
</div>
|
19 |
|
|
<div class="col cat-main-menu">
|
20 |
|
|
<a href="{{ url('/artefact') }}">
|
21 |
|
|
{{ __('general.artefacts') }}
|
22 |
|
|
</a>
|
23 |
|
|
</div>
|
24 |
|
|
<div class="col cat-main-menu">
|
25 |
|
|
<a href="{{ url('/favartefacts') }}">
|
26 |
|
|
{{ __('general.favourite_artefacts') }}
|
27 |
|
|
</a>
|
28 |
|
|
</div>
|
29 |
|
|
<div class="col cat-main-menu">
|
30 |
|
|
<a href="{{ url('/favmetadata') }}">
|
31 |
|
|
{{ __('general.favourite_metadata') }}
|
32 |
|
|
</a>
|
33 |
|
|
</div>
|
34 |
|
|
<div class="col cat-main-menu">
|
35 |
|
|
<a href="{{ url('/charts') }}">
|
36 |
|
|
{{ __('general.charts') }}
|
37 |
|
|
</a>
|
38 |
|
|
</div>
|
39 |
|
|
<div class="col cat-main-menu">
|
40 |
|
|
<a href="{{ url('/czech') }}">
|
41 |
|
|
{{ __('general.cs') }}
|
42 |
|
|
</a>
|
43 |
|
|
</div>
|
44 |
|
|
</div>
|
45 |
|
|
<div class="cat-main-div" {{--onclick="resetEnter()"--}}>
|
46 |
c74e9df8
|
rizir01
|
<div class="head-title text-center cat-main-topic">
|
47 |
25ec2fab
|
Marek Lovčí
|
<h1>choose a topic</h1>
|
48 |
|
|
</div>
|
49 |
eadc983d
|
rizir01
|
<div class="d-flex flex-wrap justify-content-around btn-group" data-toggle="buttons">
|
50 |
25ec2fab
|
Marek Lovčí
|
@for($k = 0; $k < $count;$k++)
|
51 |
|
|
<div class="d-flex col-sm-12 col-md-6 col-lg-4 col-xl-3">
|
52 |
eadc983d
|
rizir01
|
<a id="cat-but-id{{$categoryNames[$k]->id}}"{{--href="{{ url('/category/' . $categoryNames[$k]->id) }}"--}}
|
53 |
|
|
class="btn btn-dark cat-tile w-100 mt-4">
|
54 |
fb354d59
|
rizir01
|
{{$categoryNames[$k]->nameCZ}}
|
55 |
25ec2fab
|
Marek Lovčí
|
</a>
|
56 |
|
|
</div>
|
57 |
|
|
@endfor
|
58 |
|
|
</div>
|
59 |
|
|
</div>
|
60 |
|
|
@else
|
61 |
|
|
<ul class="list-group">
|
62 |
|
|
<li class="list-group-item">
|
63 |
|
|
<h3>Not found the USER in the database with number id {{$user->id}}!</h3>
|
64 |
|
|
</li>
|
65 |
|
|
</ul>
|
66 |
|
|
@endif
|
67 |
927fb559
|
zabran
|
</div>
|
68 |
eadc983d
|
rizir01
|
<div class="cat-wrapper">
|
69 |
|
|
<a class="btn button-square cat-enter-butt" onclick="test()" role="button">enter</a>
|
70 |
|
|
</div>
|
71 |
|
|
<div class="row justify-content-md-center">
|
72 |
|
|
<div class="col-md-auto">
|
73 |
|
|
{{--
|
74 |
|
|
<a class="btn button-square cat-enter-butt" onclick="test()" role="button">enter</a>
|
75 |
|
|
--}}
|
76 |
|
|
</div>
|
77 |
|
|
</div>
|
78 |
|
|
<script>
|
79 |
|
|
function test()
|
80 |
|
|
{
|
81 |
|
|
var btns = $(".btn-dark:not(:disabled):not(.disabled).active");
|
82 |
|
|
if(btns.length > 0)
|
83 |
|
|
{
|
84 |
|
|
var text = "";
|
85 |
|
|
for(var i = 0; i < btns.length;i++)
|
86 |
|
|
{
|
87 |
|
|
var idE = btns[i].id;
|
88 |
|
|
var num = idE.substring(10, idE.length);
|
89 |
|
|
text += num + ",";
|
90 |
|
|
}
|
91 |
|
|
window.location.href = "{{url('/category/multi/')}}/" + text;
|
92 |
|
|
}
|
93 |
|
|
}
|
94 |
|
|
</script>
|
95 |
34c0b905
|
rizir01
|
@endsection
|