<div wire:ignore.self
class="modal fade bs-example-modal-md"
id="ModalNumberDigitCompte"
tabindex="-1"
role="dialog"
data-backdrop="static"
aria-labelledby="Modal_Number"
aria-hidden="true"
>
<div class="modal-dialog modal-sm modal-dialog-top">
    <div class="modal-content">
        <div class="modal-header">
            <h6 class="modal-title" id="Modal_Number">
               Taille de Compte
            </h6>
            <button
                type="button"
                class="close"
                wire:click.prevent="closeModal"
                data-dismiss="modal"
                aria-hidden="true"
            >
                ×
            </button>
        </div>
        <form method="POST"  action="">
        <div class="modal-body">
     
        
        <div class="row">
            <div class="col-md-12">
                <div class="form-group">
                    <label for="">Nombre de Caractere <span style="color:red;">*</span></label>
                    
                    <select wire:model="numberDigit" class="form-control form-control-sm" >
                        <option value="3">3</option>
                        <option value="4">4</option>
                        <option value="5">5</option>
                        <option value="6">6</option>
                        <option value="7">7</option>
                        <option value="8">8</option>
                    </select>
                    @error('numberDigit')
                    <small class="form-text text-danger">{{ $message }}</small>
                    @enderror
                </div>
            </div>
        </div>
      
        
        </div>
        <div class="modal-footer">
                <button type="button" class="btn btn-success btn-sm" wire:click="saveNumberDigit"
                wire:loading.attr="disabled" style=""
                >
                    <div class="spinner-border spinner-border-sm"  role="status" wire:loading wire:target="saveNumberDigit">
                        <span class="visually-hidden"></span>
                    </div>
    
                    <div wire:loading.remove wire:target="saveNumberDigit">
                         Enregistrer 
                    </div>
                </button>
        </div>
    </form>
    </div>
</div>
</div>

@push('scripts')

<script>
    	window.addEventListener('hideModalModalNumberDigitCompte', event => {
					$('#ModalNumberDigitCompte').modal('hide');
				})

        window.addEventListener('showModalModalNumberDigitCompte', event => {
					$('#ModalNumberDigitCompte').modal('show');
				})
   
</script>
    
@endpush

