<!-- edit_modal.blade.php -->

<div class="modal fade" id="editapplicationModal" tabindex="-1" role="dialog" aria-labelledby="editapplicationModalLabel" aria-hidden="true">
    <div class="modal-dialog modal-dialog-centered" role="document">
        <div class="modal-content border-0">
            <div class="modal-header bg-info text-white">
                <h5 class="modal-title text-white">Modifier le projet</h5>
                <button type="button" class="btn-close btn-close-white" data-bs-dismiss="modal" aria-label="Close"  ></button>
            </div>
            <div class="modal-body">
                <!-- Formulaire d'édition -->
                <form id="editapplicationForm">
                    @csrf
                    @method('PUT')

                    <div class="mb-3">
                        <label for="edit-libelle" class="form-label">Libellé</label>
                        <input type="text" class="form-control" id="edit-libelle" name="libelle" required>
                    </div>

                    <div class="mb-3">
                        <label for="edit-price" class="form-label">Price</label>
                        <input type="text" class="form-control" id="edit-price" name="price">
                    </div>

                    <div class="mb-3 form-check">
                        <input type="checkbox" class="form-check-input" id="edit-disabled" name="disabled">
                        <label class="form-check-label" for="edit-disabled">Désactiver</label>
                    </div>

                    <button type="submit" class="btn btn-primary">Enregistrer les modifications</button>
                </form>
            </div>
        </div>
    </div>
</div>
