<section>
    <div class="container">
        <div class="row justify-content-center mb-5">
            <div class="col-auto">
                <h3 class="h4">{{ $titulok }}</h3>
            </div>
        </div>
        <div class="row justify-content-center">
            <div class="col-12 col-lg-10">
                <ul class="feature-list feature-list-sm row justify-content-center">
                    @foreach($zoznamKategorii as $kategoria)
                    <li class="col-sm-12 col-md-4">
                        <a class="card" href="{{ route('vzdelavanie.kniznica.kategoria.ucebnice.index', $kategoria) }}">
                            <div class="card-body text-center">
                                <i class="fa {{ $kategoria->obrazok }} fa-4x p-2"></i>
                                <h6 class="title-decorative">{{ $kategoria->nazov }}</h6>
                            </div>
                        </a>
                    </li>
                    @endforeach
                </ul>
            </div>
            @if($zoznamKategorii->isEmpty())
            <div class="alert alert-primary text-small">
                <i class="icon-info mr-2"></i>
                Zatiaľ nebola vytvorená žiadna kategória učebného materiálu.
            </div>
            @endif
        </div>
    </div>
</section>