    
    
    
    <?php $__env->startSection('content'); ?>  
    
    <!-- Content Wrapper. Contains page content -->

    <div class="content-wrapper">
    
    <!-- Content Header (Page header) -->
    
    <section class="content-header">
    
    <div class="container-fluid">
        <div class="row mb-2">
          <div class="col-sm-6">
            <h1> Edit Sales Manager </h1>
          </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"> Edit Sales Manager </li>
            </ol>
          </div>
        </div>
      </div><!-- /.container-fluid -->
     </section>
     <?php if(session('status')): ?>
     <div class="alert alert-success">
        <?php echo e(session('status')); ?>

     </div>
     <?php endif; ?>
    
     <section class="content">
    
     <div class="container-fluid">
    
     <div class="row">
    
     <!-- left column -->
    
     <div class="col-md-12">
    
     <!-- jquery validation -->
    
     <div class="card card-primary">
    
     <div class="card-header">
    
     <h3 class="card-title">  <b>Edit Sales Manager</b> </h3>
    
    </div>

    <!-- /.card-header -->
    <!-- form start -->      
    
    <form id = "quickForm" action = "<?php echo e(route('updateLoanProduct')); ?>" method = "POST" >

        <?php echo csrf_field(); ?>
        <?php
        //$smdata =  json_decode(json_encode($data),true);
        // print_r($data['id']);
        // die();
        ?>

    <input type = "hidden" name = "_token" value = "<?php echo e(csrf_token()); ?>" />
    <input type = "hidden" name = "id"     value = "<?php echo e($data['id']); ?>" />
            
    <div class  = "row">
                  
    <div class  = "col-6" >

    <label for  = "exampleInputPassword1"> Name </label>
    
        <input type  = "text" name = "name" class = "form-control"
        id      = "eml" value = "<?php echo e($data['name']); ?>" >      
    
    </div>

 
                 <div class="col-6">
                        
                            <label for  = "exampleInputPassword1">Bank</label>
                        
    <select  name="bk" class="form-control" id="LoanProduct" required>

        <option value =  ""  > Select Bank</option>

        <?php $__currentLoopData = $BankArray; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $value): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>

            <option value =  "<?php echo e($value['id']); ?>"  <?php echo e(($data['bk'] == $value['id'] ) ? 'selected' : ''); ?> > <?php echo e($value['bank_name']); ?> </option>

        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>  

    </select>    
                        
                        </div>


                        <div class="col-6">
                        
                        <label for  = "exampleInputPassword1">Status</label>
                    
<select  name="status" class="form-control" id="LoanProduct" required>

    <option value =  ""  > Select Status</option>

 
        <option value =  "active"  <?php echo e(($data['status'] == 'active' ) ? 'selected' : ''); ?> > Active</option>
        <option value =  "deactive"  <?php echo e(($data['status'] == 'deactive' ) ? 'selected' : ''); ?> > In-Active</option>
    

</select>    
                    
                    </div>



    

    <div class = "col-6" >
    
    <label for = "exampleInputPassword1"> </label>
    
    <br>
    
        <input type  = "submit" name = "submit" class = "btn btn-primary"
        id = "eml" required>      
    
    </div>
              
    </div>
              
                </form>

            </div>
            <!-- /.card -->
          </div>
       
          <div class = "col-md-6">
    
        </div>
    
          <!--/.col (right) -->
    
        </div>
    
        <!-- /.row -->
    
    </div>
    
    <!-- /.container-fluid -->
    
    </section>

    <!-- /.content -->
  
    </div>

  <!-- /.content-wrapper -->  
  <?php $__env->stopSection(); ?>
<?php echo $__env->make('layouts.main', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH D:\newpro\htdocs\laravel_ecommerce\resources\views/layouts/editLoanProduct.blade.php ENDPATH**/ ?>