@extends('layouts.app')
@section('title')录入-省份@endsection

@section('content')
    <div id="nav2">
        @component('maintenance.menu')@endcomponent
        @component('maintenance.province.menu')@endcomponent
    </div>
    <div class="container-fluid">
        <div class="card col-md-8 offset-md-2">
            <div class="card-body">
                <form method="POST" action="{{ url('maintenance/province') }}">
                    @csrf
                    <div class="form-group row">
                        <label for="name" class="col-2 col-form-label text-right">省份名称</label>
                        <div class="col-8">
                            <input type="text" class="form-control @error('Province.name') is-invalid @enderror"
                                   name="Province[name]" autocomplete="off" value="{{ old('Province')['name'] }}" required>
                            @error('Province.name')
                            <span class="invalid-feedback" role="alert">
                                        <strong>{{ $errors->first('Province.name') }}</strong>
                                    </span>
                            @enderror
                        </div>
                    </div>
                    <div class="form-group row">
                        <div class="col-8 offset-2">
                            <input type="submit" class="btn btn-success form-control">
                        </div>
                    </div>
                </form>
            </div>
        </div>
    </div>
@endsection
