<form method="post" action="/eagle_client_istanbulcups/api/caisses/modifier.php">
<input type="hidden" name="id" id="edit_id">

<div class="modal fade" id="modalModifierCaisse" tabindex="-1">
  <div class="modal-dialog">
    <div class="modal-content">

      <div class="modal-header bg-warning">
        <h5 class="modal-title">Modifier la caisse</h5>
        <button type="button" class="btn-close" data-bs-dismiss="modal"></button>
      </div>

      <div class="modal-body">
        <div class="mb-3">
          <label class="form-label">Nom de la caisse</label>
          <input
            name="nom"
            id="edit_nom"
            class="form-control"
            required>
        </div>

        <div class="mb-3">
          <label class="form-label">Statut</label>
          <select name="actif" id="edit_actif" class="form-select">
            <option value="1">Active</option>
            <option value="0">Inactive</option>
          </select>
        </div>

        <div class="mb-3">
          <label class="form-label">Solde actuel (indicatif)</label>
          <input
            type="number"
            step="0.01"
            min="0"
            name="solde_actuel"
            id="edit_solde"
            class="form-control">
          <small class="text-muted">
            Le solde réel sera géré par les types de caisse.
          </small>
        </div>
      </div>

      <div class="modal-footer">
        <button class="btn btn-warning">
          <i class="fa fa-edit"></i> Mettre à jour
        </button>
      </div>

    </div>
  </div>
</div>
</form>
