<!-- Begin Page Content -->
<div class="container-fluid">
    <div class="row column_title">
        <div class="col-md-12">
            <div class="page_title">
                <h2>Terms & Conditions</h2>
            </div>
        </div>
    </div>

    <?php if ($this->session->flashdata('success')): ?>
        <div class="alert alert-success"><?php echo $this->session->flashdata('success'); ?></div>
    <?php endif; ?>

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

    <div class="card">
        <div class="card-body">
            <form action="<?php echo base_url('customer/update_terms'); ?>" method="POST">
                <div class="form-group">
                    <label for="terms_content">Terms & Conditions</label>
                    <textarea class="form-control" name="content" id="terms_content" rows="20"><?php echo isset($terms) ? $terms : ''; ?></textarea>
                </div>
                <button type="submit" class="btn btn-primary">Update Terms</button>
            </form>
        </div>
    </div>
</div>
