Projekt

Obecné

Profil

Stáhnout (1.26 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

    
14
                <div class="d-flex flex-wrap justify-content-around">
15
                    @for($k = 0; $k < $count;$k++)
16

    
17
                        {{--                        <div class="d-flex cat-col-md-2">--}}
18
                        <div class="d-flex col-sm-12 col-md-6 col-lg-4 col-xl-3">
19
                            <a href="{{ url('/category/' . $categoryNames[$k]->id) }}"
20
                               class="btn btn-dark cat-tile w-100 mt-4">
21
                                {{$categoryNames[$k]->nameCZ}}
22
                            </a>
23
                        </div>
24

    
25
                    @endfor
26
                </div>
27
            </div>
28
        @else
29
            <ul class="list-group">
30
                <li class="list-group-item">
31
                    <h3>Not found the USER in the database with number id {{$user->id}}!</h3>
32
                </li>
33
            </ul>
34
        @endif
35
    </div>
36
@endsection
    (1-1/1)