<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">Application Settings</h1>
            </div>
            <!-- /.col -->
            <div class="col-sm-6">
               <ol class="breadcrumb float-sm-right">
                  <li class="breadcrumb-item"><a href="#">Dashboard</a></li>
                  <li class="breadcrumb-item"><a href="#">Setting</a></li>
                  <li class="breadcrumb-item active">Application Settings</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(base_url().'/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="#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 d-none"><a class="nav-link" href="#Captcha" data-toggle="tab">Captcha</a></li>
               <li class="nav-item d-none"><a class="nav-link" href="#Firebase" data-toggle="tab">Firebase Setting</a></li>
               <li class="nav-item d-none"><a class="nav-link" href="#cookies_setting" data-toggle="tab">Cookies Setting</a></li>
               <li class="nav-item"><a class="nav-link" href="#email" data-toggle="tab">Email 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</a></li>
               <li class="nav-item d-none"><a class="nav-link" href="#invoice_trams" data-toggle="tab">Invoice Details</a></li>
               <li class="nav-item d-none"><a class="nav-link" href="#app_setting" data-toggle="tab">App Setting</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"  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">Meta Description</label>
                        <div class="col-sm-9">
                           <textarea type="text" class="form-control"  name="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"><?php echo $app_setting->meta_keywords ?></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">Footer Shor About Content</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 d-none">
                        <label for="inputEmail" class="col-sm-3 col-form-label">GST Setting</label>
                        <div class="col-sm-9">
                           <select  class="form-control" name="gst_status"  required="required">
                              <option <?php if($app_setting->gst_status == '1'){echo 'selected';} ?> value="1">ON</option>
                              <option <?php if($app_setting->gst_status == '2'){echo 'selected';} ?> value="2">OFF</option>
                           </select>
                        </div>
                     </div>
                     <div class="form-group row d-none">
                        <label for="inputEmail" class="col-sm-3 col-form-label">Company GST No.</label>
                        <div class="col-sm-9">
                           <input type="text" class="form-control"  name="gst_no"  placeholder="Enter Copany GST No." value="<?php echo $app_setting->gst_no ?>">
                        </div>
                     </div>
                     
                     <div class="form-group row d-none">
                        <label for="inputEmail" class="col-sm-3 col-form-label">Company Pin Code ***</label>
                        <div class="col-sm-9">
                           <input type="number" class="form-control"  name="company_pin_code"  required="required" placeholder="Enter Company Pin Code For Delievery" value="<?php echo $app_setting->company_pin_code ?>">
                        </div>
                     </div>
                     <div class="form-group row d-none">
                        <label for="inputEmail" class="col-sm-3 col-form-label">Credit Limit</label>
                        <div class="col-sm-9">
                           <input type="number" class="form-control"  name="credit_limit" placeholder="Enter User Credit Limit" value="<?php echo $app_setting->credit_limit ?>" value="0">
                        </div>
                     </div>
                     <div class="form-group row d-none">
                        <label for="inputEmail" class="col-sm-3 col-form-label">Pin Code Popup</label>
                        <div class="col-sm-9">
                           <select  class="form-control" name="pin_code_popup"  required="required">
                              <option <?php if($app_setting->pin_code_popup == '1'){echo 'selected';} ?> value="1">ON</option>
                              <option <?php if($app_setting->pin_code_popup == '2'){echo 'selected';} ?> value="2">OFF</option>
                           </select>
                        </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"  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"  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"  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">Iframe Map Link</label>
                        <div class="col-sm-9">
                           <input type="text" class="form-control"  name="map"  placeholder="Enter Iframe Map Link" value="<?php echo $app_setting->map ?>">
                        </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" >
                        </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="fevicon" 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">Admin Panel Logo</label>
                        <div class="col-sm-9">
                           <input type="file" class="form-control"  name="admin_panel_logo" >
                        </div>
                     </div>
                     <div class="form-group row">
                        <label for="inputEmail" class="col-sm-3 col-form-label">Preview Admin Panel Logo</label>
                        <div class="col-sm-9">
                           <img id="fevicon" src="<?php echo base_url() ?><?php echo $app_setting->admin_panel_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">
                        <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" >
                              <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="text-editor"  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="email">
                     <div class="form-group row">
                        <label for="inputEmail" class="col-sm-3 col-form-label">Mail Protocol</label>
                        <div class="col-sm-9">
                           <select type="text" class="form-control"  name="protocol">
                              <option <?php if($app_setting->protocol == 'mail'){echo 'selected';} ?> value="mail">Mail</option>
                              <option <?php if($app_setting->protocol == 'sendmail'){echo 'selected';} ?> value="sendmail">Send Mail</option>
                              <option <?php if($app_setting->protocol == 'smtp'){echo 'selected';} ?> value="smtp">SMTP</option>
                           </select>
                        </div>
                     </div>
                     <div class="form-group row">
                        <label for="inputEmail" class="col-sm-3 col-form-label">Mail Host Name</label>
                        <div class="col-sm-9">
                           <input type="text" class="form-control"  name="host"  placeholder="Enter Mail Host Name" value="<?php echo $app_setting->host ?>">
                        </div>
                     </div>
                     <div class="form-group row">
                        <label for="inputEmail" class="col-sm-3 col-form-label">Mail Username</label>
                        <div class="col-sm-9">
                           <input type="text" class="form-control"  name="username"  placeholder="Enter Mail Username" value="<?php echo $app_setting->username ?>">
                        </div>
                     </div>
                     <div class="form-group row">
                        <label for="inputEmail" class="col-sm-3 col-form-label">Mail Password</label>
                        <div class="col-sm-9">
                           <input type="text" class="form-control"  name="password"  placeholder="Enter Mail Password" value="<?php echo $app_setting->password ?>">
                        </div>
                     </div>
                     <div class="form-group row">
                        <label for="inputEmail" class="col-sm-3 col-form-label">Mail Port</label>
                        <div class="col-sm-9">
                           <input type="text" class="form-control"  name="port"  placeholder="Enter Mail Port" value="<?php echo $app_setting->port ?>">
                        </div>
                     </div>
                     <div class="form-group row">
                        <label for="inputEmail" class="col-sm-3 col-form-label">Mail Crypto</label>
                        <div class="col-sm-9">
                           <select type="text" class="form-control"  name="crypto">
                              <option <?php if($app_setting->crypto == 'tls'){echo 'selected';} ?> value="tls">TLS</option>
                              <option <?php if($app_setting->crypto == 'ssl'){echo 'selected';} ?> value="ssl">SSL</option>
                           </select>
                        </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 Screct</label>
                        <div class="col-sm-9">
                           <input type="text" class="form-control"  name="rozar_key_secret"  placeholder="Enter Rozarpay Key Screct" 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 Details</label>
                        <div class="col-sm-9">
                           <textarea type="text" class="text-editor"  name="bank_details"   ><?php echo $app_setting->bank_details ?></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">Facebook Link</label>
                        <div class="col-sm-9">
                           <input type="text" class="form-control"  name="facebook"  placeholder="Enter Facebook Link" value="<?php echo $app_setting->facebook ?>">
                        </div>
                     </div>
                     <div class="form-group row">
                        <label for="inputEmail" class="col-sm-3 col-form-label">Instagram Link</label>
                        <div class="col-sm-9">
                           <input type="text" class="form-control"  name="instagram"  placeholder="Enter Instagram Link" value="<?php echo $app_setting->instagram ?>">
                        </div>
                     </div>
                     <div class="form-group row">
                        <label for="inputEmail" class="col-sm-3 col-form-label">Whatsapp Link</label>
                        <div class="col-sm-9">
                           <input type="text" class="form-control"  name="whatsapp"  placeholder="Enter Whatsapp Link" value="<?php echo $app_setting->whatsapp ?>">
                        </div>
                     </div>
                     <div class="form-group row">
                        <label for="inputEmail" class="col-sm-3 col-form-label">Twitter Link</label>
                        <div class="col-sm-9">
                           <input type="text" class="form-control"  name="twitter"  placeholder="Enter Twitter Link" value="<?php echo $app_setting->twitter ?>">
                        </div>
                     </div>
                     <div class="form-group row">
                        <label for="inputEmail" class="col-sm-3 col-form-label">Linkedin Link</label>
                        <div class="col-sm-9">
                           <input type="text" class="form-control"  name="linkdin"  placeholder="Enter Linkedin Link" value="<?php echo $app_setting->linkdin ?>">
                        </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="invoice_trams">
                     <div class="form-group row">
                        <label for="inputEmail" class="col-sm-3 col-form-label">Enter Invoice Trams</label>
                        <div class="col-sm-9">
                           <textarea type="text" class="text-editor"  name="invoice_trams"  placeholder="Enter Invoice Trams" rows="10"><?php echo $app_setting->invoice_trams ?></textarea>
                        </div>
                     </div>
                     <div class="form-group row">
                        <label for="inputEmail" class="col-sm-3 col-form-label">Invoice Format</label>
                        <div class="col-sm-9">
                           <select type="text" class="form-control"  name="invoice_format">
                              <option <?php if($app_setting->invoice_format == 1){echo 'selected';}; ?> value="1">Full</option>
                              <option <?php if($app_setting->invoice_format == 2){echo 'selected';}; ?> value="2">Half</option>
                           </select>
                        </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="app_setting">
                     <div class="form-group row">
                        <label for="inputEmail" class="col-sm-3 col-form-label">Enter Apple Store App Link</label>
                        <div class="col-sm-9">
                           <input type="text" class="form-control"  name="ios_app"  placeholder="Enter Apple Store App Link" value="<?php echo $app_setting->ios_app ?>">
                        </div>
                     </div>
                     <div class="form-group row">
                        <label for="inputEmail" class="col-sm-3 col-form-label">Enter Google Play Store App Link</label>
                        <div class="col-sm-9">
                           <input type="text" class="form-control"  name="and_app"  placeholder="Enter Google Play App Link" value="<?php echo $app_setting->and_app ?>">
                        </div>
                     </div>
                     <div class="form-group row">
                        <label for="inputEmail" class="col-sm-3 col-form-label">Enter Windows Store App Link</label>
                        <div class="col-sm-9">
                           <input type="text" class="form-control"  name="win_app"  placeholder="Enter Windows Store App Link" value="<?php echo $app_setting->win_app ?>">
                        </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>