<div class="modal fade" id="ModalEdit">
    <div class="modal-dialog modal-lg modal-dialog-centered">
        <div class="modal-content">
            <form action="{{ route('update-InfraBatiment') }}" 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="batiment_id">Nom Batiment</label>
                                    <select class="form-control" id="batiment_id" value="" name="batiment_id" style="height:43px;">
                                        <option selected>Choisir un type</option>
                                        @foreach ($batiment as $key)
                                        <option value="{{ $key->id }}">{{ $key->nomBatiment }}</option>
                                        @endforeach
                                    </select>
                                    <input type="hidden" id="id" name="id" />
                                </div>
                            </div>
                            <div class="col-sm-6">
                                <div class="form-group">
                                    <label class="control-label" for="infrastructure_id">Nom Infrastructure</label>
                                    <select class="form-control" id="infrastructure_id" value="" name="infrastructure_id" style="height:43px;">
                                        <option selected>Choisir un type</option>
                                        @foreach ($infrastructure as $key)
                                        <option value="{{ $key->id }}">{{ $key->nomInfra }}</option>
                                        @endforeach
                                    </select>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="modal-footer justify-content-between">
                    <button type="button" class="btn btn-danger" data-dismiss="modal">Fermer</button>
                    <button type="submit" class="btn btn-primary" id="btnFormEnreg">Modifier</button>
                </div>
            </form>
        </div>
        <!-- /.modal-content -->
    </div>
    <!-- /.modal-dialog -->
</div>
