Projekt

Obecné

Profil

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

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

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