<?php ($id = Crypt::encrypt($rows->id) ); ?>
<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','Booking Details'])): ?>
     <a  href="<?php echo e(route('booking.details',['id' => $id ])); ?>" content="View Details" class="dropdown-item"><i class="dropdown-icon fa fa-eye "></i> View Details</a>
     <?php endif; ?>

      <?php if(Auth::user()->hasAnyPermission(['All','Approve Booking'])): ?>
     <?php if($rows->status == "Unapprove"): ?>
     <a  onclick="update(event,'<?php echo e(json_encode($pass_data)); ?>','form_approve_booking','md_approve_booking')" href="javascript:void(0)" class="dropdown-item"><i class="dropdown-icon fa fa-check"></i>Approve </a>
     <?php endif; ?>
     <?php endif; ?>
     <?php if(Auth::user()->hasAnyPermission(['All','Delete Booking'])): ?>

     <a  href="<?php echo e(route('booking.trash',['id' => $id])); ?>"  class="dropdown-item cls_delete" content="delete"><i class="dropdown-icon fa fa-trash "></i> Delete </a>
     <?php endif; ?>
     

     <?php if($rows->status == "Approve"): ?>
      <?php if(Auth::user()->hasAnyPermission(['All','Cancel Booking Request'])): ?>

     <a  href="<?php echo e(route('showcancelbooking',['id' => $id])); ?>"  class="dropdown-item "><i class="dropdown-icon fas fa-times "></i> Cancel </a>
     <?php endif; ?>
      <?php if(Auth::user()->hasAnyPermission(['All','Transfer Booking Request'])): ?>

     <a  href="<?php echo e(route('booking.transfer',['id' => $id])); ?>" content="Transfer" class="dropdown-item"><i class="dropdown-icon fa fa-eye "></i>Transfer</a>
     <?php endif; ?>
     <?php endif; ?>

     <?php if(Auth::user()->hasAnyPermission(['All','Booking Ledger'])): ?>
     <a onclick="showBookingLedger(event,'<?php echo e($id); ?>');" href="javascript:void(0)" class="dropdown-item"><i class="dropdown-icon fa fa-money"></i> Booking Ledger</a>
     <?php endif; ?>

       <?php if(Auth::user()->hasAnyPermission(['All','View Document'])): ?>
        <a onclick="showDocument(event,'<?php echo e($id); ?>');" href="javascript:void(0)" class="dropdown-item"><i class="dropdown-icon fa fa-file"></i> Documents</a>
     <?php endif; ?>
   </div>
 </div><?php /**PATH /var/www/skylite/resources/views/booking/actions/booking_actions.blade.php ENDPATH**/ ?>