<?php
$errors = $this->session->userdata('errors');
if (isset($errors)) {
?>
  <script>
    swal("Oops", "<?php echo $errors ?>", "error")
  </script>
  <?php echo $errors ?>
<?php
  $this->session->unset_userdata('errors');
}
$error = $this->session->userdata('error');
if (isset($error)) {
?>
  <script>
    swal("Oops", "<?php echo $error ?>", "error")
  </script>
<?php
  $this->session->unset_userdata('error');
}
$success = $this->session->userdata('success');
if (isset($success)) {
?>
  <script>
    swal({
      title: "Done!",
      text: "<?php echo $success ?>",
      icon: "success",
    });
  </script>
<?php
  $this->session->unset_userdata('success');
}
?>
<!-- Content Wrapper. Contains page content -->
<div class="content-wrapper">
  <!-- Content Header (Page header) -->
  <section class="content-header">
    <div class="container-fluid">
      <div class="row mb-2">
        <div class="col-sm-6">
          <h1>Edit Product</h1>
        </div>
        <div class="col-sm-6">
          <ol class="breadcrumb float-sm-right">
            <li class="breadcrumb-item"><a href="<?php echo admin_url() ?>admin">Home</a></li>
            <li class="breadcrumb-item ">Product</li>
            <li class="breadcrumb-item active">Edit Product</li>
          </ol>
        </div>
      </div>
    </div><!-- /.container-fluid -->
  </section>
  <div class="container">
    <div class="card card-primary card-outline">
      <div class="card-body">
        <div class="row">
  <div class="col-5 col-sm-3">
    <div class="nav flex-column nav-tabs h-100" id="vert-tabs-tab" role="tablist" aria-orientation="vertical">
      <a class="nav-link active" id="vert-tabs-basic-tab" data-toggle="pill" href="#vert-tabs-basic" role="tab" aria-controls="vert-tabs-basic" aria-selected="true">Basic</a>
      <a class="nav-link" id="vert-tabs-slider-tab" data-toggle="pill" href="#vert-tabs-slider" role="tab" aria-controls="vert-tabs-slider" aria-selected="false">Slider</a>
      <a class="nav-link" id="vert-tabs-section-1-tab" data-toggle="pill" href="#vert-tabs-section-1" role="tab" aria-controls="vert-tabs-section-1" aria-selected="false">Section 1</a>
      <a class="nav-link" id="vert-tabs-section-2-tab" data-toggle="pill" href="#vert-tabs-section-2" role="tab" aria-controls="vert-tabs-section-2" aria-selected="false">Section 2</a>
      <a class="nav-link" id="vert-tabs-section-3-tab" data-toggle="pill" href="#vert-tabs-section-3" role="tab" aria-controls="vert-tabs-section-3" aria-selected="false">Section 3</a>
      <a class="nav-link" id="vert-tabs-section-4-tab" data-toggle="pill" href="#vert-tabs-section-4" role="tab" aria-controls="vert-tabs-section-4" aria-selected="false">Section 4</a>
      <a class="nav-link" id="vert-tabs-section-5-tab" data-toggle="pill" href="#vert-tabs-section-5" role="tab" aria-controls="vert-tabs-section-5" aria-selected="false">Section 5</a>
      <a class="nav-link" id="vert-tabs-section-6-tab" data-toggle="pill" href="#vert-tabs-section-6" role="tab" aria-controls="vert-tabs-section-6" aria-selected="false">Section 6</a>
      <a class="nav-link" id="vert-tabs-section-7-tab" data-toggle="pill" href="#vert-tabs-section-7" role="tab" aria-controls="vert-tabs-section-7" aria-selected="false">Section 7</a>
      <a class="nav-link d-none" id="vert-tabs-section-8-tab" data-toggle="pill" href="#vert-tabs-section-8" role="tab" aria-controls="vert-tabs-section-8" aria-selected="false">Section 8</a>
      <a class="nav-link" id="vert-tabs-pricing-tab" data-toggle="pill" href="#vert-tabs-pricing" role="tab" aria-controls="vert-tabs-pricing" aria-selected="false">Pricing</a>
      <a class="nav-link" id="vert-tabs-faq-tab" data-toggle="pill" href="#vert-tabs-faq" role="tab" aria-controls="vert-tabs-faq" aria-selected="false">FAQ</a>
    </div>
  </div>

  <div class="col-7 col-sm-9">
    <div class="tab-content" id="vert-tabs-tabContent">

      <!-- Basic -->
      <div class="tab-pane fade show active" id="vert-tabs-basic" role="tabpanel" aria-labelledby="vert-tabs-basic-tab">
        <h4>Basic Settings</h4>
        <?php include 'basic.php';?>
      </div>

      <!-- Slider -->
      <div class="tab-pane fade" id="vert-tabs-slider" role="tabpanel" aria-labelledby="vert-tabs-slider-tab">
        <h4>Slider Settings</h4>
        <?php include 'slider.php';?>
      </div>

      <!-- Section 1 -->
      <div class="tab-pane fade" id="vert-tabs-section-1" role="tabpanel" aria-labelledby="vert-tabs-section-1-tab">
        <h4>Section 1 Content</h4>
        <?php include 'section_1.php';?>
      </div>

      <!-- Section 2 -->
      <div class="tab-pane fade" id="vert-tabs-section-2" role="tabpanel" aria-labelledby="vert-tabs-section-2-tab">
        <h4>Section 2 Content</h4>
        <?php include 'section_2.php';?>
      </div>

      <!-- Section 3 -->
      <div class="tab-pane fade" id="vert-tabs-section-3" role="tabpanel" aria-labelledby="vert-tabs-section-3-tab">
        <h4>Section 3 Content</h4>
        <?php include 'section_3.php';?>
      </div>

      <!-- Section 4 -->
      <div class="tab-pane fade" id="vert-tabs-section-4" role="tabpanel" aria-labelledby="vert-tabs-section-4-tab">
        <h4>Section 4 Content</h4>
        <?php include 'section_4.php';?>
      </div>

      <!-- Section 5 -->
      <div class="tab-pane fade" id="vert-tabs-section-5" role="tabpanel" aria-labelledby="vert-tabs-section-5-tab">
        <h4>Section 5 Content</h4>
        <?php include 'section_5.php';?>
      </div>

      <!-- Section 6 -->
      <div class="tab-pane fade" id="vert-tabs-section-6" role="tabpanel" aria-labelledby="vert-tabs-section-6-tab">
        <h4>Section 6 Content</h4>
        <?php include 'section_6.php';?>
      </div>

      <!-- Section 7 -->
      <div class="tab-pane fade" id="vert-tabs-section-7" role="tabpanel" aria-labelledby="vert-tabs-section-7-tab">
        <h4>Section 7 Content</h4>
        <?php include 'section_7.php';?>
      </div>

      <!-- Section 8 -->
      <!-- <div class="tab-pane fade d-none" id="vert-tabs-section-8" role="tabpanel" aria-labelledby="vert-tabs-section-8-tab">
        <h4>Section 8 Content</h4>
        <?php //include 'section_8.php';?>
      </div> -->

      <!-- Pricing -->
      <div class="tab-pane fade" id="vert-tabs-pricing" role="tabpanel" aria-labelledby="vert-tabs-pricing-tab">
        <h4>Pricing</h4>
        <?php include 'pricing.php';?>
      </div>

      <!-- FAQ -->
      <div class="tab-pane fade" id="vert-tabs-faq" role="tabpanel" aria-labelledby="vert-tabs-faq-tab">
        <h4>Frequently Asked Questions</h4>
        <?php include 'faq.php';?>
      </div>

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


      </div>
      <!-- /.card -->
    </div>
  </div>
</div>