@extends('Vzdelavanie::layout.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ť test</h1>
                </div>
                <div class="col-auto text-right">
                    <a class="btn btn-primary" href="{{ route('vzdelavanie.sprava.testovanie.testy.otazky.index', $test) }}">Otázky</a>
                </div>
            </div>
        </div>
    </section>

    <section>
        <div class="container">
        @if($errors->any())
            <div class="row">
                <div class="col-12">
                    <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>
            </div>
        @endif
            <div class="row">
                <div class="col-12">
                    @include('Vzdelavanie::pages.sprava.testovanie.testy.partials.form', ['edit' => true])
                </div>
            </div>
        </div>
    </section>
@endsection