
    <?php if(isset($booking_list)): ?>
    <?php $__currentLoopData = $booking_list; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $rows): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
     <?php (
            $pass_data = array(
                'id'         => Crypt::encrypt($rows->id),
                'reg_date'   => EF::dateFormat(($rows->created_at)),
                'end_date'   => date('Y-m-d',strtotime($rows->reserve_edate)),

                'reg_number' => $rows->ms,
                'booking_detail' => $rows->plot->plot_id.' '.$rows->plot->type.' ('.ucfirst($rows->plot->status).')',



                )
            ); ?>

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

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

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

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

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

      </td>


      <td>
        <?php if($rows->plot->status == "reserve"): ?> 
          <span class="badge badge-primary"><?php echo e(ucfirst($rows->plot->status)); ?></span>
        <?php elseif($rows->plot->status == "sold"): ?> 
          <span class="badge badge-success"><?php echo e(ucfirst($rows->plot->status)); ?></span>
        <?php elseif($rows->plot->status == "unsold"): ?> 
          <span class="badge badge-danger"><?php echo e(ucfirst($rows->plot->status)); ?></span>
        <?php endif; ?>
      </td>
      <td><?php echo e($rows->branch->name); ?></td>

      <td>
        <?php if($rows->status == "Reserved"): ?> 
          <span class="badge badge-success"><?php echo e(EF::getstatus($rows->status)); ?></span>
        <?php elseif($rows->status == "Expired"): ?> 
          <span class="badge badge-danger"><?php echo e(EF::getstatus($rows->status)); ?></span>
        <?php endif; ?>
      </td>




      
      


      

   <td class="text-center"> 
       <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(Auth::user()->hasAnyPermission(['All','Mature Soft Booking'])): ?>
            <a  href="<?php echo e(route('booking.mature',['id' => Crypt::encrypt($rows->id)])); ?>"  class="dropdown-item cls_delete" content="mature booking"><i class="dropdown-icon fa fa-eye "></i> Mature Booking</a>
         <?php endif; ?>

         <?php if(Auth::user()->hasAnyPermission(['All','Update Soft Booking'])): ?>

           <?php if($rows->plot->status == "reserve" || $rows->plot->status == "unsold" ): ?>
            <a  onclick="update(event,'<?php echo e(json_encode($pass_data)); ?>','form_update_soft_booking','md_update_soft_booking')" href="javascript:void(0)" class="dropdown-item"><i class="dropdown-icon fa fa-check"></i>Update </a>
            <?php endif; ?>
         <?php endif; ?>

         <?php if(Auth::user()->hasAnyPermission(['All','Delete Booking'])): ?>

         <a  href="<?php echo e(route('booking.trash',['id' => Crypt::encrypt($rows->id)])); ?>"  class="dropdown-item cls_delete" content="delete"><i class="dropdown-icon fa fa-trash "></i> Delete </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_softbooking.blade.php ENDPATH**/ ?>