@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">

     @if(Auth::user()->hasAnyPermission(['All','Booking Details']))
     <a  href="{{route('booking.details',['id' => $id ])}}" content="View Details" class="dropdown-item"><i class="dropdown-icon fa fa-eye "></i> View Details</a>
     @endif

      @if(Auth::user()->hasAnyPermission(['All','Approve Booking']))
     @if($rows->status == "Unapprove")
     <a  onclick="update(event,'{{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>
     @endif
     @endif
     @if(Auth::user()->hasAnyPermission(['All','Delete Booking']))

     <a  href="{{route('booking.trash',['id' => $id])}}"  class="dropdown-item cls_delete" content="delete"><i class="dropdown-icon fa fa-trash "></i> Delete </a>
     @endif
     

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

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

     <a  href="{{route('booking.transfer',['id' => $id])}}" content="Transfer" class="dropdown-item"><i class="dropdown-icon fa fa-eye "></i>Transfer</a>
     @endif
     @endif

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

       @if(Auth::user()->hasAnyPermission(['All','View Document']))
        <a onclick="showDocument(event,'{{$id}}');" href="javascript:void(0)" class="dropdown-item"><i class="dropdown-icon fa fa-file"></i> Documents</a>
     @endif
   </div>
 </div>