
<!-- PAGE-INDEX-STARTS -->

<div class="breadcrumbs">
    <div class="breadcrumbs-inner">
        <div class="row m-0">
            <div class="col-sm-4">
                <div class="page-header float-left">
                    <div class="page-title">
                        <h1><?= $pTitle ?></h1>
                    </div>
                </div>
            </div>
            <div class="col-sm-8">
                <div class="page-header float-right">
                    <div class="page-title">
                        <ol class="breadcrumb text-right">
                            <li><a href="<?= base_url() ?>">Dashboard</a></li>
                            <li><a ><?= $menu ?></a></li>
                            <li class="active"><?= $smenu ?></li>
                        </ol>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>

<!-- PAGE-INDEX-ENDS -->

<!-- PAGE-CONTENT-STARTS -->

<div class="content">
   <div class="animated fadeIn">
      <div class="row">
         <div class="col-lg-12">
            <?php 
            $url = (!isset($subcat_id)||empty($subcat_id))
            ?'Sub_category/create_Subcategory':'Sub_category/edit_Subcategory/'.$subcat_id;
            if($this->session->flashdata('message')) { 
            $flashdata = $this->session->flashdata('message'); ?>
            <div class="alert alert-<?= $flashdata['class'] ?>">
              <button class="close" data-dismiss="alert" type="button">×</button>
              <?= $flashdata['message'] ?>
          </div>
          <?php } ?>
          <form method="post" class="validate" role="form" action="<?= base_url().'Settings/change_settings'?>" enctype="multipart/form-data" data-parsley-validate="">
            <div class="card">
              <div class="card-header">
                <strong><?= $pDescription ?></strong>
              </div>
              <div class="card-body card-block">
                <div class="form-group">
                  <div class="row">
                    <div class="col-md-6">
                      <label>Site Title</label>
                      <input type="text" name="title" class="form-control required" placeholder="Enter Site Title" value="<?= $data['title'] ?>">
                    </div>
                    <div class="col-md-6">
                      <label>Title Short</label>
                            <input type="text" name="title_short" class="form-control required" placeholder="Enter Site Title" value="<?= $data['title_short'] ?>">
                    </div>
                  </div>
                </div>
               <!--  <div class="form-group">
                  <div class="row">
                    <div class="col-md-6">
                     <label>Country Code</label>
                            <input type="text" name="country_flag" class="form-control required" placeholder="Enter SMTP Username" value="<?= $data['country_flag'] ?>">
                    </div>
                    <div class="col-md-6">
                      <label>Currency</label>
                      <input type="text" name="currency" class="form-control required" placeholder="Enter SMTP Password" value="<?= $data['currency'] ?>">
                    </div>
                  </div>
                </div> -->
                <div class="form-group">
                  <div class="row">
                    <div class="col-md-6">
                        <label>Site Logo</label><br>
                       <img id="site_logo" src="<?= base_url($data['site_logo']) ?>" onerror="this.src='<?=base_url("assets/images/no_image.png")?>';" height="75" width="75"><br><br>
                       <input name="site_logo" type="file" accept="image/*" onchange="setImg(this,'site_logo');" />
                    </div>
                     <div class="col-md-6">
                       <label>Favicon Icon</label><br>
                       <img id="fav_icon_image" src="<?= base_url($data['fav_icon']) ?>" onerror="this.src='<?=base_url("assets/images/no_image.png")?>';" height="75" width="75"><br><br>
                        <input name="fav_icon" type="file" accept="image/*" onchange="setImg(this,'fav_icon_image');" />
                     </div>
                  </div>
               </div>
               <div class="form-group">
                  <div class="row">
                    <div class="col-md-6">
                     <label>SMTP Username</label>
                            <input type="text" name="smtp_username" class="form-control required" placeholder="Enter SMTP Username" value="<?= $data['smtp_username'] ?>">
                    </div>
                    <div class="col-md-6">
                       <label>SMTP Password</label>
                            <input type="text" name="smtp_password" class="form-control required" placeholder="Enter SMTP Password" value="<?= $data['smtp_password'] ?>">
                    </div>
                  </div>
                </div>
                <div class="form-group">
                   <div class="row">
                    <div class="col-md-6">
                       <label>SMTP Host</label>
                            <input type="text" name="smtp_host" class="form-control required" placeholder="Enter SMTP Host" value="<?= $data['smtp_host'] ?>">
                      
                    </div>
                    <div class="col-md-6">
                       <label>API Key</label>
                            <input type="text" name="api_key" class="form-control required" placeholder="Enter API Key" value="<?= $data['api_key'] ?>">
                     
                    </div>
                  </div>
                </div>
                 <div class="form-group">
                  <div class="row">
                    <div class="col-md-6">
                     <label>Android Versions</label>
                            <input type="text" name="android_ver" class="form-control required" placeholder="Enter Android Versions" value="<?= $data['android_ver'] ?>">
                    </div>
                    <div class="col-md-6">
                       <label>IOS versions</label>
                            <input type="text" name="ios_ver" class="form-control required" placeholder="Enter IOS versions" value="<?= $data['ios_ver'] ?>">
                    </div>
                  </div>
                </div>
                <div class="form-group">
                   <div class="row">
                    <div class="col-md-6">
                       <label>Android URL</label>
                            <input type="text" name="android_url" class="form-control required" placeholder="Enter Android URL" value="<?= $data['android_url'] ?>">
                       </div>
                <div class="col-md-6">
                      <label>IOS URL</label>
              <input type="text" name="ios_url" class="form-control required" placeholder="Enter IOS URL" value="<?= $data['ios_url'] ?>">
                      </div>
                  </div>
                </div>
              <div class="form-group">
                 <div class="row">
                    <div class="col-md-12">
                      <button type="submit" class="btn btn-primary">Update</button>
                    </div>
                  </div>
              </div>
            </div>
          </form>
        </div>
      </div>
    </div>
</div>


<!-- PAGE-CONTENT-ENDS -->
        
        