<div class="container-fluid">
    <div class="row">
        <div class="col-lg-12 d-flex align-items-stretch">
            <div class="card w-100">
                <div class="card-body p-4">
                    <h2 class="mb-4">App Version</h2>
                    <form action="<?= site_url('/admin/versions/update_version') ?>" method="post" enctype="multipart/form-data">
                        <div class="form-group mb-3">
                            <label for="current_version">Current Version:</label>
                            <input type="number" class="form-control" id="current_version" name="current_version" value="<?= isset($current_version) ? $current_version : '' ?>" step="0.1">
                        </div>
                        <div class="form-group mb-3">
                            <label for="version_file">Upload New Version File:</label>
                            <input type="file" class="form-control" id="version_file" name="version_file" required>
                        </div>
                        <button type="submit" class="btn btn-primary">Update Version</button>
                    </form>

                    <?php if (isset($message)): ?>
                        <div class="alert alert-success mt-3"><?= $message; ?></div>
                    <?php elseif (isset($error)): ?>
                        <div class="alert alert-danger mt-3"><?= $error; ?></div>
                    <?php endif; ?>
                </div>
            </div>
        </div>
    </div>
