 <div class="content-wrapper">
   <!-- Content Header (Page header) -->
   <div class="content-header">
     <div class="container-fluid">
       <div class="row mb-2">
         <div class="col-sm-6">
           <h1 class="m-0 text-dark"><?php echo $title ?></h1>
         </div><!-- /.col -->
         <div class="col-sm-6">
           <ol class="breadcrumb float-sm-right">
             <li class="breadcrumb-item"><a href="<?php echo base_url() ?>admin/admin/dashboard">Dashboard</a></li>
             <li class="breadcrumb-item"><a href="#"><?php echo ucwords(str_replace("_", " ", $this->uri->segment(2))); ?></a></li>
             <li class="breadcrumb-item active"><?php echo ucwords(str_replace("_", " ", $title)); ?></li>

           </ol>
         </div><!-- /.col -->
       </div><!-- /.row -->
     </div><!-- /.container-fluid -->
   </div>
   <!-- /.content-header -->

   <!-- Main content -->
   <section class="content">
     <div class="container-fluid">
       <!-- Info boxes -->
       <?php echo form_open_multipart('admin/setting/update_application_setting'); ?>
       <div class="card card-default">
         <ul class="nav nav-tabs">
           <li class="nav-item"><a class="nav-link active" href="#general_setting" data-toggle="tab">General Setting</a></li>
           <li class="nav-item"><a class="nav-link" href="#special_group" data-toggle="tab">Special Group</a></li>
           <li class="nav-item"><a class="nav-link" href="#contact_setting" data-toggle="tab">Contact Setting</a></li>
           <li class="nav-item"><a class="nav-link" href="#logo_setting" data-toggle="tab">Logo Setting</a></li>

           <li class="nav-item"><a class="nav-link" href="#Captcha" data-toggle="tab">Captcha</a></li>
           <li class="nav-item"><a class="nav-link" href="#Firebase" data-toggle="tab">Firebase Setting</a></li>
           <li class="nav-item"><a class="nav-link" href="#cookies_setting" data-toggle="tab">Cookies Setting</a></li>
           <li class="nav-item"><a class="nav-link" href="#payment_setting" data-toggle="tab">Payment Setting</a></li>
           <li class="nav-item"><a class="nav-link" href="#html_head_code_setting" data-toggle="tab">HTML Head Code Setting</a></li>
           <li class="nav-item"><a class="nav-link" href="#social_media_plugin" data-toggle="tab">Social Media Plugin</a></li>
           <li class="nav-item"><a class="nav-link" href="#product_footer_notice" data-toggle="tab">Product Footer Notice</a></li>
           <li class="nav-item"><a class="nav-link" href="#drip_content" data-toggle="tab">Drip Content</a></li>
         </ul>
         <!-- /.card-header -->

         <div class="card-body">
           <div class="tab-content">
             <div class="tab-pane active" id="general_setting">
               <div class="form-group row">
                 <label for="inputEmail" class="col-sm-3 col-form-label">Application Name</label>
                 <div class="col-sm-9">
                   <input type="text" class="form-control" name="application_name" required="required" placeholder="Enter Application Name" value="<?php echo $app_setting->application_name ?>">
                 </div>
               </div>
               <div class="form-group row">
                 <label for="inputEmail" class="col-sm-3 col-form-label">Home Title</label>
                 <div class="col-sm-9">
                   <input type="text" class="form-control" name="home_title" placeholder="Enter Home Title" value="<?php echo $app_setting->home_title ?>">
                 </div>
               </div>
               <div class="form-group row">
                 <label for="inputEmail" class="col-sm-3 col-form-label">Time Zone</label>
                 <div class="col-sm-9">
                   <select class="form-control" name="time_zone" required="required">
                     <option value="">Select Time Zone</option>
                     <?php foreach ($get_all_time_zone as $key => $time_zone): ?>
                       <option value="<?php echo $time_zone->zone_name ?>" <?php if ($time_zone->zone_name == $app_setting->time_zone) {
                                                                              echo 'selected';
                                                                            } ?>><?php echo $time_zone->zone_name ?></option>
                     <?php endforeach; ?>
                   </select>
                 </div>
               </div>
               <div class="form-group row">
                 <label for="inputEmail" class="col-sm-3 col-form-label">Meta Title</label>
                 <div class="col-sm-9">
                   <input type="text" class="form-control" name="meta_title" value="<?php echo $app_setting->meta_title ?>" placeholder="Enter Meta Title">
                 </div>
               </div>
               <div class="form-group row">
                 <label for="inputEmail" class="col-sm-3 col-form-label">Meta Description</label>
                 <div class="col-sm-9">
                   <textarea type="text" class="form-control" name="meta_description" placeholder="Enter Meta Description"><?php echo $app_setting->meta_description ?></textarea>
                 </div>
               </div>

               <div class="form-group row">
                 <label for="inputEmail" class="col-sm-3 col-form-label">Meta Keyword <span style="font-size: 12px;">(Separate with comma(,))</span></label>
                 <div class="col-sm-9">
                   <textarea type="text" class="form-control" name="meta_keywords" placeholder="Enter Meta Keywords"><?php echo $app_setting->meta_keywords ?></textarea>
                 </div>
               </div>


               <div class="form-group row">
                 <label for="inputEmail" class="col-sm-3 col-form-label">Footer About Us</label>
                 <div class="col-sm-9">
                   <textarea type="text" class="text-editor" name="footer_about_us"><?php echo $app_setting->footer_about_us ?></textarea>
                 </div>
               </div>
               <div class="form-group row">
                 <label for="inputEmail" class="col-sm-3 col-form-label">Copyright Content</label>
                 <div class="col-sm-9">
                   <textarea type="text" class="text-editor" name="copywrite"><?php echo $app_setting->copywrite ?></textarea>
                 </div>
               </div>

               <!--<div class="form-group row">
                  <label for="inputEmail" class="col-sm-3 col-form-label">Login Popup</label>
                  <div class="col-sm-9">
                   <select class="form-control" name="login_op_up">
                     <option <?php if ($app_setting->login_op_up == 1) {
                                echo 'selected';
                              } ?> value="1">On</option>
                     <option <?php if ($app_setting->login_op_up == 2) {
                                echo 'selected';
                              } ?> value="2">Off</option>
                   </select>
                  </div>
                </div>-->
               <div class="form-group row">
                 <label for="inputEmail" class="col-sm-3 col-form-label">Product Page First Popup</label>
                 <div class="col-sm-9">
                   <select class="form-control" name="prd_first_pop_up">
                     <option value="1" <?php if ($app_setting->prd_first_pop_up == 1) {
                                          echo 'selected';
                                        } ?>>On</option>
                     <option value="0" <?php if ($app_setting->prd_first_pop_up == 0) {
                                          echo 'selected';
                                        } ?>>Off</option>
                   </select>
                 </div>
               </div>
               <div class="form-group row">
                 <label for="inputEmail" class="col-sm-3 col-form-label">Home Page Slider</label>
                 <div class="col-sm-9">
                   <select class="form-control" name="slider">
                     <option value="1" <?php if ($app_setting->slider == 1) {
                                          echo 'selected';
                                        } ?>>Image Slider</option>
                     <option value="2" <?php if ($app_setting->slider == 2) {
                                          echo 'selected';
                                        } ?>>Video Slider</option>
                   </select>
                 </div>
               </div>
               <div class="form-group row d-none">
                 <label for="inputEmail" class="col-sm-3 col-form-label">Product page banner</label>
                 <div class="col-sm-9">
                   <input type="file" class="form-control" name="product_page_banner_image">
                 </div>
               </div>

               <div class="form-group row d-none">
                 <label for="inputEmail" class="col-sm-3 col-form-label">Product page banner Preview</label>
                 <div class="col-sm-9">
                   <img src="<?php echo base_url() ?><?php echo $app_setting->product_page_banner_image ?>" width="75px">
                 </div>
               </div>
               <div class="form-group row">
                 <div class="offset-sm-2 col-sm-10">
                   <button style="float: right;" type="submit" class="btn btn-success setting-submit" name="submit">Save</button>
                 </div>
               </div>
             </div>

             <div class="tab-pane" id="contact_setting">

               <div class="form-group row">
                 <label for="inputEmail" class="col-sm-3 col-form-label">Address</label>
                 <div class="col-sm-9">
                   <textarea type="text" class="form-control" name="address" required="required" placeholder="Enter Address"><?php echo $app_setting->address ?></textarea>
                 </div>
               </div>

               <div class="form-group row">
                 <label for="inputEmail" class="col-sm-3 col-form-label">Mobile No</label>
                 <div class="col-sm-9">
                   <input type="number" class="form-control" name="mobile" required="required" placeholder="Enter Mobile No" value="<?php echo $app_setting->mobile ?>">
                 </div>
               </div>

               <div class="form-group row">
                 <label for="inputEmail" class="col-sm-3 col-form-label">Email ID</label>
                 <div class="col-sm-9">
                   <input type="email" class="form-control" name="email" required="required" placeholder="Enter Email ID" value="<?php echo $app_setting->email ?>">
                 </div>
               </div>

               <div class="form-group row">
                 <label for="inputEmail" class="col-sm-3 col-form-label">Product Inquery Whatsapp No</label>
                 <div class="col-sm-9">
                   <input type="text" class="form-control" name="prd_whatsapp_no" placeholder="Enter Product Inquery Whatsapp No" value="<?php echo $app_setting->prd_whatsapp_no ?>">
                 </div>
               </div>
               <div class="form-group row">
                 <label for="inputEmail" class="col-sm-3 col-form-label">Whatsapp No</label>
                 <div class="col-sm-9">
                   <input type="text" class="form-control" name="whatsapp_no" placeholder="Enter Whatsapp No" value="<?php echo $app_setting->whatsapp_no ?>">
                 </div>
               </div>
               <div class="form-group row">
                 <label for="inputEmail" class="col-sm-3 col-form-label">Timing</label>
                 <div class="col-sm-9">
                   <input type="text" class="form-control" name="timing" placeholder="Enter Contact Timing" value="<?php echo $app_setting->timing ?>">
                 </div>
               </div>
               <div class="form-group row">
                 <label for="inputEmail" class="col-sm-3 col-form-label">Mobile Menu Description</label>
                 <div class="col-sm-9">
                   <textarea type="text" class="form-control" name="mobile_menu_description" placeholder="Enter Menu Description"><?php echo $app_setting->mobile_menu_description ?></textarea>
                 </div>
               </div>
               <div class="form-group row">
                 <div class="offset-sm-2 col-sm-10">
                   <button style="float: right;" type="submit" class="btn btn-success setting-submit" name="submit">Save</button>
                 </div>
               </div>
             </div>

             <div class="tab-pane" id="special_group">
               <div class="form-group row">
                 <label for="inputEmail" class="col-sm-3 col-form-label">Special Facebook Group</label>
                 <div class="col-sm-9">
                   <input type="text" class="form-control" name="special_fb_product_group" placeholder="Enter Product Facebook Group Link" value="<?php echo $app_setting->special_fb_product_group ?>">
                 </div>
               </div>

               <div class="form-group row">
                 <label for="inputEmail" class="col-sm-3 col-form-label">Special Whatsapp Group</label>
                 <div class="col-sm-9">
                   <input type="text" class="form-control" name="special_fb_course_group" placeholder="Enter Course Facebook Group Link" value="<?php echo $app_setting->special_fb_course_group ?>">
                 </div>
               </div>

               <div class="form-group row">
                 <div class="offset-sm-2 col-sm-10">
                   <button style="float: right;" type="submit" class="btn btn-success setting-submit" name="submit">Save</button>
                 </div>
               </div>
             </div>

             <div class="tab-pane" id="logo_setting">
               <div class="form-group row">
                 <label for="inputEmail" class="col-sm-3 col-form-label">Application Header Logo</label>
                 <div class="col-sm-9">
                   <input type="file" class="form-control" name="header_logo" id="logo_header">
                 </div>
               </div>

               <div class="form-group row">
                 <label for="inputEmail" class="col-sm-3 col-form-label">Preview Application Header Logo</label>
                 <div class="col-sm-9">
                   <img id="header_logo" src="<?php echo base_url() ?><?php echo $app_setting->header_logo ?>" width="100px" style="border:1px solid #333">
                 </div>
               </div>

               <div class="form-group row">
                 <label for="inputEmail" class="col-sm-3 col-form-label">Application Footer Logo</label>
                 <div class="col-sm-9">
                   <input type="file" class="form-control" name="footer_logo" id="logo_footer">
                 </div>
               </div>

               <div class="form-group row">
                 <label for="inputEmail" class="col-sm-3 col-form-label">Preview Application Footer Logo</label>
                 <div class="col-sm-9">
                   <img id="footer_logo" src="<?php echo base_url() ?><?php echo $app_setting->footer_logo ?>" width="100px" style="border:1px solid #333">
                 </div>
               </div>

               <div class="form-group row">
                 <label for="inputEmail" class="col-sm-3 col-form-label">Application Fevicon</label>
                 <div class="col-sm-9">
                   <input type="file" class="form-control" name="fevicon" id="fevicon_icon">
                 </div>
               </div>

               <div class="form-group row">
                 <label for="inputEmail" class="col-sm-3 col-form-label">Preview Application Fevicon</label>
                 <div class="col-sm-9">
                   <img id="fevicon" src="<?php echo base_url() ?><?php echo $app_setting->fevicon ?>" width="100px" style="border:1px solid #333">
                 </div>
               </div>

               <div class="form-group row">
                 <label for="inputEmail" class="col-sm-3 col-form-label"> Application Video Player Logo</label>
                 <div class="col-sm-9">
                   <input type="file" class="form-control" name="video_player_logo" id="logo_footer">
                 </div>
               </div>

               <div class="form-group row">
                 <label for="inputEmail" class="col-sm-3 col-form-label">Preview Application Video Player Logo</label>
                 <div class="col-sm-9">
                   <img src="<?php echo base_url() ?><?php echo $app_setting->video_player_logo ?>" width="100px" style="border:1px solid #333">
                 </div>
               </div>
               <div class="form-group row">
                 <div class="offset-sm-2 col-sm-10">
                   <button style="float: right;" type="submit" class="btn btn-success setting-submit" name="submit">Save</button>
                 </div>
               </div>
             </div>



             <div class="tab-pane" id="Firebase">



               <div class="form-group row">
                 <label for="inputEmail" class="col-sm-3 col-form-label">Api Key</label>
                 <div class="col-sm-9">
                   <input type="text" class="form-control" name="apiKey" placeholder="Enter Firebase API Key" value="<?php echo $app_setting->apiKey ?>">
                 </div>
               </div>

               <div class="form-group row">
                 <label for="inputEmail" class="col-sm-3 col-form-label">Auth Domain</label>
                 <div class="col-sm-9">
                   <input type="text" class="form-control" name="authDomain" placeholder="Enter Firebase Auth Domain" value="<?php echo $app_setting->authDomain ?>">
                 </div>
               </div>

               <div class="form-group row">
                 <label for="inputEmail" class="col-sm-3 col-form-label">Project ID</label>
                 <div class="col-sm-9">
                   <input type="text" class="form-control" name="projectId" placeholder="Enter Firebase Project ID" value="<?php echo $app_setting->projectId ?>">
                 </div>
               </div>

               <div class="form-group row">
                 <label for="inputEmail" class="col-sm-3 col-form-label">Storage Bucket</label>
                 <div class="col-sm-9">
                   <input type="text" class="form-control" name="storageBucket" placeholder="Enter Firebase Storage Bucket" value="<?php echo $app_setting->storageBucket ?>">
                 </div>
               </div>

               <div class="form-group row">
                 <label for="inputEmail" class="col-sm-3 col-form-label">Messaging Sender ID</label>
                 <div class="col-sm-9">
                   <input type="text" class="form-control" name="messagingSenderId" placeholder="Enter Firebase Messaging Sender ID" value="<?php echo $app_setting->messagingSenderId ?>">
                 </div>
               </div>

               <div class="form-group row">
                 <label for="inputEmail" class="col-sm-3 col-form-label">App ID</label>
                 <div class="col-sm-9">
                   <input type="text" class="form-control" name="appId" placeholder="Enter Firebase App ID" value="<?php echo $app_setting->appId ?>">
                 </div>
               </div>

               <div class="form-group row">
                 <label for="inputEmail" class="col-sm-3 col-form-label">Measurement ID</label>
                 <div class="col-sm-9">
                   <input type="text" class="form-control" name="measurementId" placeholder="Enter Firebase Measurement ID" value="<?php echo $app_setting->measurementId ?>">
                 </div>
               </div>

               <div class="form-group row">
                 <div class="offset-sm-2 col-sm-10">
                   <button style="float: right;" type="submit" class="btn btn-success setting-submit" name="submit">Save</button>
                 </div>
               </div>
             </div>


             <div class="tab-pane" id="Captcha">

               <div class="form-group row">
                 <label for="inputEmail" class="col-sm-3 col-form-label">Captcha</label>
                 <div class="col-sm-9">
                   <select class="form-control" name="captcha" required="required">
                     <option value="Active" <?php if ($app_setting->captcha == 'Active') {
                                              echo 'selected';
                                            } ?>>Active</option>
                     <option value="Inactive" <?php if ($app_setting->captcha == 'Inactive') {
                                                echo 'selected';
                                              } ?>>Inactive</option>
                   </select>
                 </div>
               </div>

               <div class="form-group row">
                 <label for="inputEmail" class="col-sm-3 col-form-label">Captcha Site Key</label>
                 <div class="col-sm-9">
                   <input type="text" class="form-control" name="captcha_site_key" placeholder="Enter Captcha Site Key" value="<?php echo $app_setting->captcha_site_key ?>">
                 </div>
               </div>

               <div class="form-group row">
                 <label for="inputEmail" class="col-sm-3 col-form-label">Captcha Secret Key</label>
                 <div class="col-sm-9">
                   <input type="text" class="form-control" name="secret_key" placeholder="Enter Secret Key" value="<?php echo $app_setting->secret_key ?>">
                 </div>
               </div>

               <div class="form-group row">
                 <div class="offset-sm-2 col-sm-10">
                   <button style="float: right;" type="submit" class="btn btn-success setting-submit" name="submit">Save</button>
                 </div>
               </div>
             </div>

             <div class="tab-pane" id="cookies_setting">
               <div class="form-group row">
                 <label for="inputEmail" class="col-sm-3 col-form-label">Cookies Content</label>
                 <div class="col-sm-9">
                   <textarea type="text" class="form-control" name="cookies"><?php echo $app_setting->cookies ?></textarea>
                 </div>
               </div>
               <div class="form-group row">
                 <div class="offset-sm-2 col-sm-10">
                   <button style="float: right;" type="submit" class="btn btn-success setting-submit" name="submit">Save</button>
                 </div>
               </div>
             </div>

             <div class="tab-pane" id="payment_setting">
               <div class="form-group row">
                 <label for="inputEmail" class="col-sm-3 col-form-label">Rozarpay Key ID</label>
                 <div class="col-sm-9">
                   <input type="text" class="form-control" name="rozar_key_id" placeholder="Enter Rozarpay Key ID" value="<?php echo $app_setting->rozar_key_id ?>">
                 </div>
               </div>
               <div class="form-group row">
                 <label for="inputEmail" class="col-sm-3 col-form-label">Rozarpay Key Secret</label>
                 <div class="col-sm-9">
                   <input type="text" class="form-control" name="rozar_key_secret" placeholder="Enter Rozarpay Key Secret" value="<?php echo $app_setting->rozar_key_secret ?>">
                 </div>
               </div>
               <div class="form-group row">
                 <label for="inputEmail" class="col-sm-3 col-form-label">Bank Payment Info (Saparate By Comma(,))</label>
                 <div class="col-sm-9">
                   <textarea type="text" class="form-control" name="bank_payment_info" placeholder="Enter Bank Payment Info"><?php echo $app_setting->bank_payment_info; ?></textarea>
                 </div>
               </div>

               <div class="form-group row">
                 <div class="offset-sm-2 col-sm-10">
                   <button style="float: right;" type="submit" class="btn btn-success setting-submit" name="submit">Save</button>
                 </div>
               </div>
             </div>

             <div class="tab-pane" id="html_head_code_setting">
               <div class="form-group row">
                 <label for="inputEmail" class="col-sm-3 col-form-label">Enter Header Code</label>
                 <div class="col-sm-9">
                   <textarea type="text" class="form-control" name="head_code" placeholder="Enter Secret Key" rows="10"><?php echo $app_setting->head_code ?></textarea>
                 </div>
               </div>
               <div class="form-group row">
                 <div class="offset-sm-2 col-sm-10">
                   <button style="float: right;" type="submit" class="btn btn-success setting-submit" name="submit">Save</button>
                 </div>
               </div>
             </div>

             <div class="tab-pane" id="social_media_plugin">
               <div class="form-group row">
                 <label for="inputEmail" class="col-sm-3 col-form-label">Enter Facebook URL</label>
                 <div class="col-sm-9">
                   <input type="text" class="form-control" name="facebook" placeholder="Enter facebook Url" value="<?php echo $app_setting->facebook ?>">
                 </div>
               </div>

               <div class="form-group row">
                 <label for="inputEmail" class="col-sm-3 col-form-label">Enter Twitter URL</label>
                 <div class="col-sm-9">
                   <input type="text" class="form-control" name="twitter" placeholder="Enter Twitter Url" value="<?php echo $app_setting->twitter ?>">
                 </div>
               </div>

               <div class="form-group row">
                 <label for="inputEmail" class="col-sm-3 col-form-label">Enter Youtube URL</label>
                 <div class="col-sm-9">
                   <input type="text" class="form-control" name="youtube" placeholder="Enter Youtube Url" value="<?php echo $app_setting->youtube ?>">
                 </div>
               </div>

               <div class="form-group row">
                 <label for="inputEmail" class="col-sm-3 col-form-label">Enter Instagram URL</label>
                 <div class="col-sm-9">
                   <input type="text" class="form-control" name="instagram" placeholder="Enter Instagram Url" value="<?php echo $app_setting->instagram ?>">
                 </div>
               </div>

               <div class="form-group row">
                 <label for="inputEmail" class="col-sm-3 col-form-label">Enter Telegram URL</label>
                 <div class="col-sm-9">
                   <input type="text" class="form-control" name="telegram" placeholder="Enter Telegram Url" value="<?php echo $app_setting->telegram ?>">
                 </div>
               </div>

               <div class="form-group row">
                 <div class="offset-sm-2 col-sm-10">
                   <button style="float: right;" type="submit" class="btn btn-success setting-submit" name="submit">Save</button>
                 </div>
               </div>
             </div>
             <div class="tab-pane" id="product_footer_notice">
               <div class="form-group row">
                 <label for="inputEmail" class="col-sm-3 col-form-label">Enter Product Footer Notice</label>
                 <div class="col-sm-9">
                   <textarea type="text" class="form-control text-editor" name="product_footer_notice" placeholder="Enter Product Footer Notice" rows="10"><?php echo $app_setting->product_footer_notice ?></textarea>
                 </div>
               </div>
               <div class="form-group row">
                 <div class="offset-sm-2 col-sm-10">
                   <button style="float: right;" type="submit" class="btn btn-success setting-submit" name="submit">Save</button>
                 </div>
               </div>
             </div>

             <div class="tab-pane" id="drip_content">
               <div class="form-group row">
                 <div class="form-group">
                   <label>Lesson completion role<span class="required">*</span></label>
                   <br>
                   <input type="radio" onchange="$('.toggleMinimumWatchField').toggleClass('d-none');" value="percentage" id="video_percentage_wise" name="lesson_completion_role">
                   <label for="video_percentage_wise">Video percentage wise</label>
                   &nbsp;&nbsp;
                   <input type="radio" onchange="$('.toggleMinimumWatchField').toggleClass('d-none');" value="duration" id="video_duration_wise" name="lesson_completion_role" checked="">
                   <label for="video_duration_wise">Video duration wise</label>
                 </div>
               </div>
               <div class="form-group row">
                 <div class="offset-sm-2 col-sm-10">
                   <button style="float: right;" type="submit" class="btn btn-success setting-submit" name="submit">Save</button>
                 </div>
               </div>
             </div>
             <?php echo form_close() ?>

           </div>
           <!-- /.row -->
         </div>
         <!-- /.card-body -->
       </div>
       <!-- /.row -->
     </div><!--/. container-fluid -->
   </section>
   <!-- /.content -->
 </div>
 <!-- /.content-wrapper -->
 <script>
   function logo_header(input) {
     if (input.files && input.files[0]) {
       var reader = new FileReader();
       reader.onload = function(e) {
         $('#header_logo').attr('src', e.target.result);
       }
       reader.readAsDataURL(input.files[0]);
     }
   }
   $("#logo_header").change(function() {
     logo_header(this);
   });

   function logo_footer(input) {
     if (input.files && input.files[0]) {
       var reader = new FileReader();
       reader.onload = function(e) {
         $('#footer_logo').attr('src', e.target.result);
       }
       reader.readAsDataURL(input.files[0]);
     }
   }
   $("#logo_footer").change(function() {
     logo_footer(this);
   });

   function fevicon_icon(input) {
     if (input.files && input.files[0]) {
       var reader = new FileReader();
       reader.onload = function(e) {
         $('#fevicon').attr('src', e.target.result);
       }
       reader.readAsDataURL(input.files[0]);
     }
   }
   $("#fevicon_icon").change(function() {
     fevicon_icon(this);
   });

   function admin_panel_logo(input) {
     if (input.files && input.files[0]) {
       var reader = new FileReader();
       reader.onload = function(e) {
         $('#admin_logo').attr('src', e.target.result);
       }
       reader.readAsDataURL(input.files[0]);
     }
   }
   $("#admin_panel_logo").change(function() {
     admin_panel_logo(this);
   });
 </script>