<div class="row justify-content-center">
    <div class="col-md-6">
        <h4 class="mb-4">Nová statistika</h4>

        <form method="POST" action="<?= BASE_URL ?>/statistictype/store">
            <input type="hidden" name="team_id" value="<?= $team->id ?>">

            <div class="mb-3">
                <label for="nazev" class="form-label">Název statistiky</label>
                <input type="text" class="form-control" id="nazev" name="nazev" placeholder="Např. Gól, Asistence, Faul..." required>
                <small class="text-muted">Jakou metriku chcete měřit?</small>
            </div>

            <div class="d-flex gap-2">
                <button type="submit" class="btn btn-success" title="Uložit">
                    <i class="ti ti-device-floppy fs-4"></i>
                </button>
                <a href="<?= BASE_URL ?>/team/show?id=<?= $team->id ?>" class="btn btn-outline-secondary" title="Zpět">
                    <i class="ti ti-arrow-back-up fs-4"></i>
                </a>
            </div>
        </form>
    </div>
</div>
