<div class="m-0 p-0">
    <section class="bg-white space-sm">
        <div class="container">
            <div class="row justify-content-between align-items-center">
                <div class="col-auto">
                    <h1 class="h2 mb-2">Upraviť informáciu</h1>
                    <span>Upraviť existujúcu informáciu</span>
                    @include('flash::message')
                </div>
                <div class="col-auto text-right">
                    <a href="{{ route('portal.informacie.show', $informacia) }}" class="btn btn-primary">Zobraziť
                        informáciu</a>
                </div>
            </div>
        </div>
    </section>

    <section class="flush-with-above space-0">
        <div class="bg-white">
            <div class="container">
                <div class="row">
                    <div class="col">
                        <ul class="nav nav-tabs" id="myTab" role="tablist">
                            <li class="nav-item">
                                <a class="nav-link active" href="" role="tab">Informácia</a>
                            </li>
                            <li class="nav-item">
                                <a class="nav-link"
                                   href="{{ route('portal.sprava.informacie.hodnotenia.index', $informacia) }}"
                                   role="tab">Hodnotenia <span
                                            class="badge badge-sm badge-light">{{$informacia->pocetHodnoteni() ?? 0}}</span></a>
                            </li>
                        </ul>
                    </div>
                </div>
            </div>
        </div>
    </section>

    <section class="flush-with-above">
        <div class="tab-content">
            <div class="tab-pane fade show active" role="tabpanel">
                <div class="container">
                    <div class="row">
                        <div class="col-12">
                            @livewire('pages.sprava.informacie.livewire.components.form', ['informacia' => $informacia])
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </section>
</div>