Projekt

Obecné

Profil

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

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

    
5
@section('content')
6
    <div class="container">
7
    @if(isset($user))
8
        {{--<p><?php dd($categories); ?></p>--}}
9
        <div class="cat-main-div" onclick="resetEnter()">
10
            <div class="head-title text-center">
11
                <h1>choose a topic</h1>
12
            </div>
13
            {{--@for($k = 1; $k <= count($categories);$k++)--}}
14
            @for($k = 0; $k < $count;$k++)
15
                @if($k % 6 == 0)
16
                    <div class="row">
17
                @endif
18
                    <div class="col-md-2 cat-col-md-2">
19
                        <a href="{{ url('/category/' . $categoryNames[$k]->id) }}">
20
                            <button class="btn btn-dark cat-tile">
21
                                {{$categoryNames[$k]->nameCZ}}
22
                            </button>
23
                        </a>
24
                    </div>
25
                @if($k % 6 == 5 || $k + 1 == $count)
26
                    </div>
27
                @endif
28
            @endfor
29
        </div>
30
    @else
31
        <ul class="list-group">
32
            <li class="list-group-item">
33
                <h3>Not found the USER in the database with number id {{$user->id}}!</h3>
34
            </li>
35
        </ul>
36
    @endif
37
    </div>
38
@endsection
    (1-1/1)