<div class="container-fluid">
  <div class="card">
    <div class="card-body">
      <h5 class="card-title fw-semibold mb-4">Add Question</h5>

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

      <form method="POST" action="">

        <div class="mb-3">
          <label for="question" class="form-label">Question</label>
          <input name="question" type="text" class="form-control" id="question" required>
        </div>

        <div class="mb-3">
          <label for="answer" class="form-label">Answer</label>
          <textarea name="answer" class="form-control" id="answer" rows="4" required></textarea>
        </div>

        <button type="submit" class="btn btn-primary">Submit</button>

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