Projekt

Obecné

Profil

Stáhnout (1.27 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 cat-main-topic">
11
                    <h1>choose a topic</h1>
12
                </div>
13
                <div class="d-flex flex-wrap justify-content-around">
14
                    @for($k = 0; $k < $count;$k++)
15
                        {{--                        <div class="d-flex cat-col-md-2">--}}
16
                        <div class="d-flex col-sm-12 col-md-6 col-lg-4 col-xl-3">
17
                            <a href="{{ url('/category/' . $categoryNames[$k]->id) }}"
18
                               class="btn btn-dark cat-tile w-100 mt-4">
19
                                {{$categoryNames[$k]->nameCZ}}
20
                            </a>
21
                        </div>
22
                    @endfor
23
                </div>
24
            </div>
25
        @else
26
            <ul class="list-group">
27
                <li class="list-group-item">
28
                    <h3>Not found the USER in the database with number id {{$user->id}}!</h3>
29
                </li>
30
            </ul>
31
        @endif
32
    </div>
33
@endsection
    (1-1/1)