<!-- begin:: Subheader -->
<div class="kt-subheader   kt-grid__item" id="kt_subheader">
<div class="kt-container  kt-container--fluid ">
    <div class="kt-subheader__main">       
        <div class="kt-subheader__breadcrumbs">
            <a  class="kt-subheader__breadcrumbs-link">
                Leads </a>
            <span class="kt-subheader__breadcrumbs-separator"></span>
            <a class="kt-subheader__breadcrumbs-link">
                Upload Leads </a>
            <span class="kt-subheader__breadcrumbs-separator"></span>
            
        </div>
    </div>                                        
</div>
</div>
<!-- end:: Subheader -->
<!-- begin:: Content -->
<div class="kt-container  kt-container--fluid  kt-grid__item kt-grid__item--fluid">
   <div class="kt-portlet">
      <div class="kt-portlet__body kt-portlet__body--fit">
         <div class="kt-grid  kt-wizard-v1 kt-wizard-v1--white" id="kt_projects_add" data-ktwizard-state="first">            
            <div class="kt-grid__item kt-grid__item--fluid kt-wizard-v1__wrapper">
               <!--begin: Form Wizard Form-->
               <form class="kt-form" id="kt_form" action="<?=base_url();?>leads/process_upload_leads" method="post" novalidate="novalidate" enctype="multipart/form-data">
                  <!--begin: Form Wizard Step 1-->
                  <div class="kt-wizard-v1__content" data-ktwizard-type="step-content" data-ktwizard-state="current">
                     <div class="kt-heading kt-heading--md">Upload csv File:</div>
                     <div class="kt-section kt-section--first">
                        <div class="kt-wizard-v1__form">
                           <div class="row">
                              <div class="col-xl-12">
                                 <div class="kt-section__body"> 
                                 <div class="form-group row">
                                    <div class="alert-success">
                                        <?php if(session()->getFlashdata('success_message')) { ?>
                                        <?=session()->getFlashdata('success_message')?>
                                        <?php } ?> 
                                        <?php $validation = \Config\Services::validation(); ?>
                                    </div>  
                                    </div>                                 
                                    <div class="form-group row <?= $validation->hasError('upload_lead') ? 'has-error' : ''; ?>">
                                        <label class="col-xl-3 col-lg-3 col-form-label">Choose CSV File
                                            <span class="required"> * </span>
                                        </label>
                                        <div class="col-lg-9 col-xl-9">
                                            <input type="file" name="upload_lead" id="upload_lead" class="form-control input-height" value="<?=old('upload_lead');?>" required/> 
                                            <span class="help-block"> <?= $validation->getError('upload_lead'); ?> </span>
                                            </div>
                                    </div>                                   
                                                  
                                 </div>
                              </div>
                           </div>
                        </div>
                     </div>
                  </div>
                  <!--end: Form Wizard Step 1-->         
                 <!--begin: Form Actions -->
                  <div class="kt-form__actions">                    
                     <button type="Submit" class="btn btn-brand btn-md btn-tall btn-wide kt-font-bold kt-font-transform-u" data-ktwizard-type="action-next">
                        Submit
                     </button>
                  </div>
                  <!--end: Form Actions -->
               </form>
               <!--end: Form Wizard Form-->
            </div>
         </div>
      </div>
   </div>
</div>