<form method="post" action="/eagle_client_istanbulcups/api/caisses/ajouter.php">
<div class="modal fade" id="modalAjouterCaisse" tabindex="-1">
  <div class="modal-dialog">
    <div class="modal-content">

      <div class="modal-header bg-primary text-white">
        <h5 class="modal-title">Ajouter une caisse</h5>
        <button type="button" class="btn-close btn-close-white" 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"
            class="form-control"
            placeholder="Ex : Caisse principale"
            required>
        </div>

        <div class="mb-3">
          <label class="form-label">Solde initial (indicatif)</label>
          <input
            name="solde_initial"
            type="number"
            step="0.01"
            min="0"
            class="form-control"
            placeholder="0">
          <small class="text-muted">
            Le solde réel sera géré par les types de caisse (espèces, mobile money…)
          </small>
        </div>
      </div>

      <div class="modal-footer">
        <button class="btn btn-success">
          <i class="fa fa-save"></i> Enregistrer
        </button>
      </div>

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