
<?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>Payout</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">View Payout</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">Payout</h3>
            
            </div>

            <form id = "quickForm" action = "SaveBank" method = "POST">
          
                    <?php echo csrf_field(); ?>

                    <input type =  "hidden" name = "_token" value   = "<?php echo e(csrf_token()); ?>" />
                    
                    <input type =  "hidden" name = "status"   value   =  "Active" />

                    <div class  = "row">

                   

                    <div class  = "col-6">

    <label for="emp"> Payout For </label>
      
        <select name="payFor" id="payFor" class="form-control">
            
            <option value="">Select Payout For</option>    
            <option value="chs">Channel Sourcer</option>                    
            <option value="dsa">DSA Channel</option>    
            <option value="emp">Employee Salary</option>    
    
        </select>

    </div>
    
     <div class  = "col-6"  id="chs"  style="display:none;">

    <label for="emp"> Channel Sourcer </label>
      
        <select name="chSourcer" class="form-control" >
            
            <option value="">Select Channel Sourcer</option>                    
             <?php $__currentLoopData = $channel_sourcer; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $cl): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>               
            <option value="<?php echo e($cl->id); ?>"><?php echo e($cl->name); ?></option>    
            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
    
        </select>

    </div>
    
    <div class  = "col-6"  id="emp" style="display:none;">

    <label for="emp"> Employee </label>
      
        <select name="emp"  class="form-control" >
            
            <option value="">Select Employee</option>       
             <?php $__currentLoopData = $employee; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $cl): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                        
            <option value="<?php echo e($cl->id); ?>"><?php echo e($cl->name); ?></option>                    
    
             <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
        </select>

    </div>
    
     <div class  = "col-6" id="dsa"  style = "display:none;">

         <label for="emp"> DSA Sourcer </label>
      
        <select name="dsa" class="form-control" >
            
            <option value="">Select DSA</option>  
             <?php $__currentLoopData = $dsaMaster; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $cl): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                              
            <option value="<?php echo e($cl->id); ?>"><?php echo e($cl->name); ?></option>                    
            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
        </select>

    </div>
    
        <div class  = "col-6">

    <label for="exampleInputEmail1">Month</label>
      
       <select name = "month" class="form-control" required>   

                        <option value = "">Select Month</option>
                    
                       <?php 
                        $month= array("01"=>"January","02"=>"February","03"=>"March","04"=>"April","05"=>"May","06"=>"June","07"=>"July","08"=>"Aujust","09"=>"September","10"=>"October","11"=>"November","12"=>"December")
                       ?> 

                        <?php $__currentLoopData = $month; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key=>$value): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                        
                        
                        <option value = "<?php echo e($key); ?>"><?php echo e($value); ?></option>
                          
                       <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>

                      </select>

    </div>
    
        <div class  = "col-6">

    <label for="exampleInputEmail1">Year</label>
      
            <select name = "year" class="form-control" required>   
            
                <option value = "">Select Year</option>
                <option value = "<?php echo e(date('Y')); ?>" <?php echo e((date('Y')==date('Y') ) ? 'selected':''); ?>  ><?php echo e(date('Y')); ?></option>
                <option value = "<?php echo e(date('Y')-1); ?>"><?php echo e(date('Y')-1); ?></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>


             <table id="example" class="table table-striped table-bordered" style="width:100%">
                    
                    <thead>
                                <tr>
            
                                        <th> No</th>
                                        <th>CUSTOMER NAME</th>
                                        <th>ORGANIZATION </th>    
                                        <th>NET DISBUSMENT AMOUNT</th>
                                        <th>TENURE</th>
                                        <th>BANK // NBFC</th>
                                        <th>PROMO CODE</th>
                                        <th>INDUSTRY</th>
                                        <th>LOCATION</th>
                                        <th>LOAN PRODUCT</th>
                                        <th>MONTH YEAR</th>
                                        <th>STATUS</th>
                                        <th>CHANNEL SOURCER</th>
                                        <th>PAYOUT</th>
                                        <th>COMMISION</th>
                                        <th>Action</th>
                                        
                                </tr>
                    
                    </thead>
                    
                    <tbody>
                    
                              <?php
                             $i=1
                            
                              ?>
                              <?php $__currentLoopData = $bankData; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $cl): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                      <tr>
                                
                                <td><?php echo e($i++); ?></td>
                                <td><?php echo e($cl->bank_name); ?></td>
                                <td><?php echo e($cl->FinancierType); ?></td>
                                <td><?php echo e($cl->FinancierType); ?></td>
                                <td><?php echo e($cl->FinancierType); ?></td>
                                <td><?php echo e($cl->FinancierType); ?></td>
                                <td><?php echo e($cl->FinancierType); ?></td>
                                <td><?php echo e($cl->FinancierType); ?></td>
                                <td><?php echo e($cl->FinancierType); ?></td>
                                <td><?php echo e($cl->FinancierType); ?></td>
                                <td><?php echo e($cl->FinancierType); ?></td>
                                <td><?php echo e($cl->FinancierType); ?></td>
                                <td><?php echo e($cl->FinancierType); ?></td>
                                 <td><?php echo e($cl->FinancierType); ?></td>
                                  <td><?php echo e($cl->FinancierType); ?></td>
            
                        <td>
            
                              <a href = "editBank/<?php echo e($cl->id); ?>" class="btn btn-warning">Edit</a>
            
                              <form action = "DeleteBank/<?php echo e($cl->id); ?>" method="POST"> 
            
                                 <?php echo csrf_field(); ?>
            
                                 <?php echo method_field('DELETE'); ?>
            
                                 <input type="submit" name="" class="btn btn-danger" onclick="return confirm('Are you sure want to delete Bank?')"  value="Delete">
                                
                                </form>
                       
                              </td>
                    
                            </tr>
                    
                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                    
                  </tbody>
                
                </table>
                
                


            </div>
            <!-- /.card -->
          </div>
          
          <!--/.col (left) -->
          <!-- right column -->
          
          <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 /home/bankbriz/public_html/crm/resources/views/layouts/Payout.blade.php ENDPATH**/ ?>