<!-- Reinscrire ========================================================= -->
<div class="modal animate__animated animate__bounce" id="modal_reinscrire">
    <div onclick="closeForm('modal_reinscrire')" class="modal-background"></div>
    <div class="modal-card">
        <header class="modal-card-head">
            <p class="modal-card-title">Réinscription</p>
            <button type="button" onclick="closeForm('modal_reinscrire')" class="delete"
                aria-label="close"></button>
        </header>
        <section class="modal-card-body">
            <div class="content">
                <form id="form_reinscrire">
                    @csrf
                    <div class="field mb-5">
                        <label class="label title is-6" for="new_classe_id">Classe</label>
                        <div class="control">
                            <div class="select is-info is-rounded">
                                <select id="new_classe_id" name="new_classe"
                                    class="@error('new_classe') is-invalid
                                    @enderror"
                                    required>
                                    <option value="" disabled selected>Sélectionner</option>
                                    @foreach ($classes as $classe)
                                        <option value="{{ $classe->id }}">{{ $classe->libelle }}</option>
                                    @endforeach
                                </select>
                            </div>
                        </div>
                        @error('new_classe')
                            <div class="help is-danger error">{{ $message }}</div>
                        @enderror
                    </div>
                    <div class="field">
                        <label class="label title is-6" for="new_inscription_id">Montant de l'inscription</label>
                        <p class="control">
                            <input id="new_inscription_id"
                                class="input input-numeral is-info is-rounded
                                @error('new_inscription') is-invalid @enderror"
                                type="text" placeholder="Inscription de l'élève" name="new_inscription" required />
                        </p>
                        @error('new_inscription')
                            <div class="help is-danger error">{{ $message }}</div>
                        @enderror
                    </div>
                    <div class="field">
                        <label class="label title is-6" for="new_mensualite_id">Montant de la mensualité</label>
                        <p class="control">
                            <input id="new_mensualite_id"
                                class="input input-numeral is-info is-rounded
                                @error('new_mensualite') is-invalid @enderror"
                                type="text" placeholder="Mensualité de l'élève" name="new_mensualite" required />
                        </p>
                        @error('new_mensualite')
                            <div class="help is-danger error">{{ $message }}</div>
                        @enderror
                    </div>
                    <button id="submit_form_reinscrire" hidden></button>
                    <button type="reset" class="btn_reset" hidden></button>
                </form>
            </div>
        </section>
        <footer class="modal-card-foot">
            <button type="button" class="button is-light is-danger is-rounded"
                onclick="closeForm('modal_reinscrire')">Annuler</button>
            <button class="button is-info is-link is-rounded"
                onclick="get_eleve_id('{{ $eleve->id }}'); $('#submit_form_reinscrire').click();">Réinscrire</button>
        </footer>
    </div>
</div>
