@extends('Terminy::layouts.integrated')

@section('content')
    @parent
    <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ť udalosť</h1>
                    <span>Zoznam všetkých registrácií používateľov na udalosť</span>
                    @include('flash::message')
                </div>
                <div class="col-auto text-right">
                    <a href="{{ route('modul.terminy.frontend.udalosti.udalost.show', $udalost) }}"
                       class="btn btn-primary">Zobraziť udalosť ›</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"
                                   href="{{ route('modul.terminy.backend.udalosti.udalost.edit', $udalost) }}"
                                   role="tab">Udalosť</a>
                            </li>
                            <li class="nav-item">
                                <a class="nav-link"
                                   href="{{ route('modul.terminy.backend.udalosti.udalost.moznosti.index', $udalost) }}"
                                   role="tab">Možnosti</a>
                            </li>
                            <li class="nav-item">
                                <a class="nav-link active" href="" role="tab">
                                    Registrácie
                                    <span class="badge badge-light">{{ $pocetRegistracii }}</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 justify-content-between">
                        <div class="col-12 col-md-4 col-lg-3 mb-5 order-md-1">
                            <livewire:Terminy.components.filtre.stav/>
                            <livewire:Terminy.components.filtre.pracoviska/>
                        </div>

                        <div class="col-12 col-md-8 col-lg-9 order-md-2">
                            <div class="card card-sm shadow">
                                <livewire:Terminy.backend.udalosti.components.registracie.components.form
                                        :udalost="$udalost"/>
                                <livewire:Terminy.backend.udalosti.components.registracie.components.zoznam
                                        :udalost="$udalost"/>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </section>
@endsection
