@extends('admin')
@section('contentData')
    @if (session()->has('message-fail'))
        <div class="alert alert-warning">
            {{ session('message-fail') }}
        </div>
    @endif
    <div class="container">
        <div class="row" style="width: 650px;">
            <div class="card" style="width: 600px;">
                <div class="card-header">Vytvoření nového nastavení tématu (topic)</div>
                <div class="card-body">
                    <form method="POST" action="{{ route('topic-add') }}">
                        @csrf

                        <div class="form-group row">
                            <label for="nazev" class="col-md-4 col-form-label text-md-right">{{ __('Název: ') }}</label>
                            <div class="col-md-6">
                                <label for="nazev"></label><input id="nazev" type="text" class="form-control" name="nazev" value="{{ old('nazev')}}">
                            </div>
                        </div>
                        <div class="form-group row">
                            <label for="topic" class="col-md-4 col-form-label text-md-right">{{ __('Téma: ') }}</label>
                            <div class="col-md-6">
                                <label for="topic"></label><input id="topic" type="text" class="form-control" name="topic" value="{{ old('topic')}}">
                            </div>
                        </div>
                        <div class="form-group row mb-0">
                            <div class="col-md-6 offset-md-4">
                                <button type="submit" class="btn btn-primary">
                                    {{ __('Uložit') }}
                                </button>
                            </div>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
@endsection
