@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">Editace nastvení přístupu k WU stanice: {{$data->id_stanice}}</div>
                <div class="card-body">
                    <form method="POST" action="{{ route('nastaveniWu-edit', $data->idwu_definice_pristupu) }}">
                        @csrf


                        <div class="form-group row">
                            <label for="id_wu_station" class="col-md-4 col-form-label text-md-right">{{ __('Název (WU ID)') }}</label>

                            <div class="col-md-6">
                                <input id="id_wu_station" type="text" class="form-control" name="id_wu_station" value="{{ old('id_wu_station') ?? $data->id_wu_station }}">
                            </div>
                        </div>
                        <div class="form-group row">
                            <label for="pass" class="col-md-4 col-form-label text-md-right">{{ __('Heslo (WU Key)') }}</label>
                            <div class="col-md-6">
                                <input id="pass" type="text" class="form-control" name="pass" value="{{ old('pass') ?? $data->pass}}">
                            </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
