<div class="modal fade" id="ModalEdit">
    <div class="modal-dialog modal-lg modal-dialog-centered">
        <div class="modal-content ">
            <form action="{{ route('update-Contrats') }}" 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="codeContrat">Code Contrat </label>
                                      <input type="text" id="codeContrat" class="form-control" value=""
                                        name="codeContrat" 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="debutContrat">Début Contrat</label>
                                      <input type="date" id="debutContrat" class="form-control" value=""
                                        name="debutContrat" style=" height:43px;" required />
                                </div>
                            </div>
                        </div>
                        <div class="row ">
                            <div class="col-sm-6">
                                <div class="form-group">
                                    <label class="control-label" for="dureeContrat">Durée Contrat </label>
                                      <input type="text" id="dureeContrat" class="form-control" value=""
                                        name="dureeContrat" style=" height:43px;" required />
                                </div>
                            </div>
                            <div class="col-sm-6">
                                <div class="form-group">
                                    <label class="control-label" for="typeContrat_id">Type Contrat</label>
                                    <select class="form-control" id="typeContrat_id" value="" name="typeContrat_id"
                                        style="height:43px;">
                                        <option selected>Choisir un type</option>
                                        @foreach ($typeContrat as $key)
                                            <option value="{{ $key->id }}">{{ $key->nomTypeContrat }}</option>
                                        @endforeach
                                    </select>
                                </div>
                            </div>
                        </div>
                        <div class="row ">
                            <div class="col-sm-6">
                                <div class="form-group">
                                    <label class="control-label" for="client_id">Nom client </label>
                                     <select class="form-control" id="client_id" value="" name="client_id"
                                        style="height:43px;">
                                        <option selected>Choisir un type</option>
                                        @foreach ($client as $key)
                                            <option value="{{ $key->id }}">{{ $key->nomClient }}</option>
                                        @endforeach
                                    </select>
                                </div>
                            </div>
                            <div class="col-sm-6">
                                <div class="form-group">
                                    <label class="control-label" for="unite_id">Type unité</label>
                                    <select class="form-control" id="unite_id" value="" name="unite_id"
                                        style="height:43px;">
                                        <option selected>Choisir un type</option>
                                        @foreach ($unite as $key)
                                            <option value="{{ $key->id }}">{{ $key->code_Unite }}</option>
                                        @endforeach
                                    </select>
                                </div>
                            </div>
                        </div>
                        <div class="row ">
                            <div class="col-sm">
                                <div class="form-group">
                                    <label class="control-label" for="montantTotal">Montant Total</label>
                                      <input type="text" id="montantTotal" class="form-control" value=""
                                        name="montantTotal" style=" height:43px;" required />
                                </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>
