<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">Payment Key</h2>
                    <form action="<?= site_url('/admin/versions/update_payment_key') ?>" method="post">
                        <div class="form-group mb-3">
                            <label for="payment_key">Payment Gateway Key:</label>
                            <input type="text" class="form-control" id="payment_key" name="payment_key" 
                                   value="<?= isset($payment_key['key']) ? htmlspecialchars($payment_key['key']) : '' ?>" required>
                        </div>
                        
                        <button type="submit" class="btn btn-primary">Update</button>
                    </form>

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