<!-- Content Wrapper. Contains page content -->
<div class="content-wrapper">
   <section class="content-header">
      <div class="container-fluid">
         <div class="row mb-2">
            <div class="col-sm-6">
               <h4>Add Shop</h4>
            </div>
            <div class="col-sm-6">
               <ol class="breadcrumb float-sm-right">
                  <li class="breadcrumb-item"><a href="#">Home</a></li>
                  <li class="breadcrumb-item active">Add Shop</li>
               </ol>
            </div>
         </div>
      </div>
      <!-- /.container-fluid -->
   </section>

   <section class="content">
      <div class="container">
         <div class="row"> 
            <div class="col-md-12 col-lg-12">
               <div class="container-fluid">
                  
                  <div class="card card-default">
                     <div class="card-header">
                        <h3 class="card-title">Add New Shop</h3>
                        <div class="float-right">
                           <a href="<?php echo base_url() ?>/admin/vendor/view_all_users" class="btn btn-success btn-sm">View All Shop</a>
                        </div>
                     </div>
                     <?php echo form_open('admin/vendor/add_new_stock_point'); ?>
                     <div class="card-body">
                        <div class="row">
                           <div class="col-sm-12">
                              <div class="form-group row">
                                 <label for="inputName" class="col-sm-12 col-form-label">Shop Name <span style="color:red">*</span></label>
                                 <div class="col-sm-12">
                                    <input type="text" name="user_stock_point_name" class="form-control" placeholder="Enter Shop Name" required="required">
                                 </div>
                              </div>
                           </div>
                           <div class="col-sm-12">
                              <div class="form-group row">
                                 <label for="inputName" class="col-sm-12 col-form-label">Shop Owner Name <span style="color:red">*</span></label>
                                 <div class="col-sm-12">
                                    <input type="text" name="user_name" class="form-control" placeholder="Enter Shop Owner Name" required="required">
                                 </div>
                              </div>
                           </div>
                           <div class="col-sm-6">
                              <div class="form-group row">
                                 <label for="inputName" class="col-sm-12 col-form-label">Shop Email ID <span style="color:red">*</span></label>
                                 <div class="col-sm-12">
                                    <input type="email" name="user_email" class="form-control" placeholder="Enter Shop Email ID" required="required">
                                 </div>
                              </div>
                           </div>
                           <div class="col-sm-6">
                              <div class="form-group row">
                                 <label for="inputName" class="col-sm-12 col-form-label">Shop Mobile No. <span style="color:red">*</span></label>
                                 <div class="col-sm-12">
                                    <input type="number" name="user_mobile" class="form-control" placeholder="Enter Shop Mobile No. (** This is Login ID **)" required="required">
                                 </div>
                              </div>
                           </div>
                           
                           <script type="text/javascript">
                              $( document ).ready(function() {
                                 get_all_address_data_for_vendor_ad("Taluka Head");
                              });
                              </script>
                           <input type="hidden" name="user_work_leader" class="form-control">
                           <div class="col-sm-12" id="info-data"></div>
                          
                           <span id="alert-5"></span>
                           <div class="col-sm-12">
                              <div class="form-group row">
                                 <label for="inputName" class="col-sm-12 col-form-label">Shop Address </label>
                                 <div class="col-sm-12">
                                    <textarea type="text" name="user_address" class="form-control" placeholder="Enter Shop Address" ></textarea>
                                 </div>
                              </div>
                           </div>
                           <div class="col-sm-6">
                              <div class="form-group row">
                                 <label for="inputName" class="col-sm-12 col-form-label">Shop Code </label>
                                 <div class="col-sm-12">
                                    <input type="text" name="user_stock_point_code" class="form-control" placeholder="Enter Shop Owner Pan Card No" readonly value="<?php echo $code; ?>">
                                 </div>
                              </div>
                           </div>
                           <div class="col-sm-6">
                              <div class="form-group row">
                                 <label for="inputName" class="col-sm-12 col-form-label">Shop Owner Aadhar Card No </label>
                                 <div class="col-sm-12">
                                    <input type="text" name="user_aadhar_card" class="form-control" placeholder="Enter Shop Owner Aadhar Card No">
                                 </div>
                              </div>
                           </div>
                           <div class="col-sm-6">
                              <div class="form-group row">
                                 <label for="inputName" class="col-sm-12 col-form-label">Shop Owner Pan Card No </label>
                                 <div class="col-sm-12">
                                    <input type="text" name="user_pan_card" class="form-control" placeholder="Enter Shop Owner Pan Card No" >
                                 </div>
                              </div>
                           </div>
                           <div class="col-sm-6">
                              <div class="form-group row">
                                 <label for="inputName" class="col-sm-12 col-form-label">Shop Bank Acc No </label>
                                 <div class="col-sm-12">
                                    <input type="text" name="user_bank_acc" class="form-control" placeholder="Enter Shop Bank Acc No" >
                                 </div>
                              </div>
                           </div>
                           <div class="col-sm-6">
                              <div class="form-group row">
                                 <label for="inputName" class="col-sm-12 col-form-label">Shop Bank IFSC Code </label>
                                 <div class="col-sm-12">
                                    <input type="text" id="ifsc" name="user_bank_ifsc" class="form-control" placeholder="Enter Shop Bank IFSC Code" >
                                    <span id="alert_ifsc" class="text-danger"></span>
                                 </div>
                              </div>
                           </div>
                           <div class="col-sm-6">
                              <div class="form-group row">
                                 <label for="inputName" class="col-sm-12 col-form-label">Shop Bank Name </label>
                                 <div class="col-sm-12">
                                    <input type="text" name="user_bank_name" id="user_bank_name" class="form-control" placeholder="Enter Shop Bank Name" readonly>
                                 </div>
                              </div>
                           </div>
                           <div class="col-sm-6">
                              <div class="form-group row">
                                 <label for="inputName" class="col-sm-12 col-form-label">Shop Bank Branch Name </label>
                                 <div class="col-sm-12">
                                    <input type="text" name="user_bank_branch" id="user_bank_branch" class="form-control" placeholder="Enter Shop Bank Branch Name" readonly>
                                 </div>
                              </div>
                           </div>
                           <div class="col-sm-6">
                              <div class="form-group row">
                                 <label for="inputName" class="col-sm-12 col-form-label">Shop GST No. </label>
                                 <div class="col-sm-12">
                                    <input type="text" name="user_gst_no" class="form-control" placeholder="Enter Shop GST No." >
                                 </div>
                              </div>
                           </div>
                        </div>
                        <?php if(user()->user_role == 'Admin'): ?>
                           <div class="form-group row" id="submit_button-2">
                              <div class="offset-sm-0 col-sm-10">
                                 <button onclick="return confirm('Warning !!! Please Recheck Form Input Value. If you try to edit later, any error can come in the system !!!!')"  type="submit" class="btn btn-success setting-submit" name="submit">Save</button>
                              </div>
                           </div>   
                        <?php else: ?>
                           <div class="form-group row" id="submit_button-2">
                              <div class="offset-sm-0 col-sm-10">
                                 <button onclick="return confirm('Warning !!! Please Recheck Form Input Value. If you try to edit later, any error can come in the system !!!!')"  type="submit" class="btn btn-success setting-submit" name="submit">Save</button>
                              </div>
                           </div>   
                        <?php endif; ?>
                     </div>
                     <?php echo form_close(); ?>
                  </div>
               </div>
            </div>
          </div>
         </div>
      </div>
   </div>
</section>
</div>

<style type="text/css">
#alert3
{
   display: none;
}
</style>