<div class="modal fade" id="ModalEdit">
    <div class="modal-dialog modal-lg modal-dialog-centered">
        <div class="modal-content ">
            <form action="{{ route('update-Unite') }}" data-toggle="validator" role="form" method="POST">
                @csrf
                @method('PUT')
                <div class="modal-header py-1" style="background-color:#00563B;">
                    <h4 class="modal-title text-white">Modification</h4>
                    <button type="button" class="close" data-dismiss="modal" aria-label="Close">
                        <span aria-hidden="true">&times;</span></button>
                </div>
                <div class="modal-body">
                    <div class="container">
                        <div class="row ">
                            <div class="col-sm-6">
                                <div class="form-group">
                                    <label class="control-label" for="code_Unite">Nom</label>
                                    <input type="text" id="code_Unite" class="form-control" value=""
                                        name="code_Unite" style=" height:43px;" required />
                                    <input type="hidden" id="id" name="id" />
                                </div>
                            </div>
                            <div class="col-sm-6">
                                <div class="form-group">
                                    <label class="control-label" for="typeUnite_id">Nom Type</label>
                                    <select class="form-control" id="typeUnite_id" value="" name="typeUnite_id"
                                        style="height:43px;">
                                        <option selected>Choisir un type</option>
                                        @foreach ($typeUnite as $key)
                                            <option value="{{ $key->id }}">{{ $key->nomType }}</option>
                                        @endforeach
                                    </select>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="modal-footer justify-content-between">
                        <button type="button" class="btn btn-danger pull-left" data-dismiss="modal">Fermer</button>
                        <button type="submit" class="btn  btn-primary" id="btnFormEnreg">Modifier</button>
                    </div>
                </div>
            </form>
        </div>
        <!-- /.modal-content -->
    </div>
    <!-- /.modal-dialog -->
</div>
