@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í API přístupu') }}</div>
                <div class="card-body">
                    <form method="POST" action="{{ route('apiAuth-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">
                                <input id="nazev" type="text" class="form-control" name="nazev" value="{{ old('nazev')}}">
                            </div>
                        </div>

                        <div class="form-group row">
                            <label for="user" class="col-md-4 col-form-label text-md-right">User</label>

                            <div class="col-md-6">
                                <input id="user" type="text" class="form-control" name="user" value="{{ old('user')}}">
                            </div>
                        </div>
                        <div class="form-group row">
                            <label for="password" class="col-md-4 col-form-label text-md-right">Heslo</label>

                            <div class="col-md-6">
                                <input id="password" type="text" class="form-control" name="password" value="{{ old('password')}}">

                            </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
