Projekt

Obecné

Profil

« Předchozí | Další » 

Revize 25ec2fab

Přidáno uživatelem Marek Lovčí před asi 4 roky(ů)

Code fixes II

Zobrazit rozdíly:

resources/views/categories/index.blade.php
4 4

  
5 5
@section('content')
6 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">
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 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
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
37 35
    </div>
38 36
@endsection

Také k dispozici: Unified diff