<?php ($label_list = EF::getWhiteLabel()); ?>


<?php if(isset($transferbooking_list)): ?>
    <?php $__currentLoopData = $transferbooking_list; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $rows): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>

        <?php (
          $pass_data = array(
              'id'                  => Crypt::encrypt($rows->id),
            
              $label_list['transfer_fee']  => $rows->transfer_fee,
              'amount_in_words'            =>EF::numberToWords($rows->transfer_fee),
              'ms'            => $rows->ms,
              'plotid'        => $rows->booking->plot->plot_id,

              'blockname'     => $rows->booking->plot->block_name,
              
            )
        ); ?>

            <tr>
                <td><?php echo e($loop->iteration); ?></td>

                <td><?php echo e($rows->ms); ?></td>
                <td><?php echo e(ucfirst($rows->booking->user->name)); ?></td>
                <td><?php echo e(ucfirst($rows->getowner->name)); ?></td>
     
            

                <td><?php echo e(EF::showPlotFormat($rows->booking->plot)); ?> </td>


                  <td><?php echo e($rows->transfer_fee); ?></td>

                 <td><?php echo e($rows->status); ?></td>

                 <td><?php echo e($rows->booking->branch->name); ?></td>

                 <td><?php echo e(EF::dateFormat($rows->created_at)); ?></td>

                 <td class="text-center" height="35px"> 
                    <div class="item-action dropdown">
                        <a href="javascript:void(0)" data-toggle="dropdown" class="icon"><i class="fa fa-list-ul"></i></a>
                        <div class="dropdown-menu dropdown-menu-right">
                    <?php if($rows->status == "Unapprove"): ?>
                    <?php if(Auth::user()->hasAnyPermission(['All','Approve Transfer'])): ?>
                    <a  href="<?php echo e(route('transfer.approve',['id' => Crypt::encrypt($rows->id)])); ?>" class="dropdown-item cls_delete"  content="approve transfer  "><i class="dropdown-icon fa fa-check "></i> Approve Transfer</a>
                    <?php endif; ?>
                    <?php if(Auth::user()->hasAnyPermission(['All','Update Transfer'])): ?>
                    <a onclick="update(event,'<?php echo e(json_encode($pass_data)); ?>','form_update_transfer','md_update_transfer')" href="#" class="dropdown-item"><i class="dropdown-icon fa fa-edit"></i> Update </a>
                    <?php endif; ?>
                    <?php endif; ?>  
                        <?php if(Auth::user()->hasAnyPermission(['All','View Transfer Form'])): ?>
                        <a  href="<?php echo e(route('document.transferform',['id' => Crypt::encrypt($rows->id)])); ?>" class="dropdown-item "><i class="dropdown-icon fa fa-file "></i>  Transfer Document</a>
                        <?php endif; ?>

                    </div>
                </div>
                </td>
            </tr>

    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
<?php endif; ?>   
    
<?php /**PATH /home/ubuntu/rebmgisplus/skylite/resources/views/components/booking/table_transferbooking.blade.php ENDPATH**/ ?>