@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í emailového serveru</div>
                <div class="card-body">
                    <form method="POST" action="{{ route('emailSet-add') }}">
                        @csrf

                        <div class="form-group row">
                            <label for="id_user" class="col-md-4 col-form-label text-md-right">{{ __('Driver: ') }}</label>
                            <div class="col-md-6">
                                <label for="driver"></label><input id="driver" type="text" class="form-control" name="driver" value="{{ old('driver')}}">
                            </div>
                        </div>
                        <div class="form-group row">
                            <label for="id_stanice" class="col-md-4 col-form-label text-md-right">{{ __('Host: ') }}</label>
                            <div class="col-md-6">
                                <label for="host"></label><input id="host" type="text" class="form-control" name="host" value="{{ old('host')}}">
                            </div>
                        </div>
                        <div class="form-group row">
                            <label for="port" class="col-md-4 col-form-label text-md-right">{{ __('Port') }}</label>
                            <div class="col-md-6">
                                <input id="port" type="text" class="form-control" name="port" value="{{ old('port')}}">
                            </div>
                        </div>
                        <div class="form-group row">
                            <label for="username_email" class="col-md-4 col-form-label text-md-right">{{ __('Přihlašovací jméno') }}</label>
                            <div class="col-md-6">
                                <input id="username_email" type="text" class="form-control" name="username_email" value="{{ old('username_email')}}">
                            </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="password" class="form-control" name="password" value="{{ old('password')}}">
                            </div>
                        </div>
                        <div class="form-group row">
                            <label for="encryption" class="col-md-4 col-form-label text-md-right">{{ __('Zabezpečení') }}</label>
                            <div class="col-md-6">
                                <input id="encryption" type="text" class="form-control" name="encryption" value="{{ old('encryption')}}">
                            </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
