@extends('Vzdelavanie::layout.integrated')

@section('content')
    @parent
    <section class="bg-white space-sm pb-4">
        <div class="container">
            <div class="row justify-content-between align-items-center">
                <div class="col-auto">
                    <h1 class="h2">@yield('titulok')</h1>
                    @include('flash::message')
                </div>
            </div>
        </div>
    </section>

    <section class="flush-with-above height-80 d-block">
        <div class="tab-content">
            <div class="tab-pane fade active show" id="general" role="tabpanel" aria-labelledby="general-tab">
                <div class="container">
                    <div class="row mb-4">
                        <div class="col">
                            <h5>Detaily kategórie učebného materiálu</h5>
                        </div>
                    </div>
                    <div class="row">
                        @if($errors->any())
                            <div class="col-12 col-md-4 order-md-2">
                                <div class="alert alert-danger text-small" role="alert">
                                    <i class="icon-shield mr-2"></i>
                                    <span>Skontrolujte si prosím zadané údaje, niečo nie je v poriadku.</span>
                                </div>
                            </div>
                        @endif
                        <div class="col-12 col-md-8 order-md-1">
                            @yield('form')
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </section>
@endsection
