@php($label_list = EF::getWhiteLabel())


@isset($transferbooking_list)
    @foreach($transferbooking_list as $rows)

        @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>{{$loop->iteration}}</td>

                <td>{{$rows->ms}}</td>
                <td>{{ucfirst($rows->booking->user->name)}}</td>
                <td>{{ucfirst($rows->getowner->name)}}</td>
     
            

                <td>{{EF::showPlotFormat($rows->booking->plot)}} </td>


                  <td>{{$rows->transfer_fee}}</td>

                 <td>{{$rows->status}}</td>

                 <td>{{$rows->booking->branch->name}}</td>

                 <td>{{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">
                    @if($rows->status == "Unapprove")
                    @if(Auth::user()->hasAnyPermission(['All','Approve Transfer']))
                    <a  href="{{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>
                    @endif
                    @if(Auth::user()->hasAnyPermission(['All','Update Transfer']))
                    <a onclick="update(event,'{{json_encode($pass_data)}}','form_update_transfer','md_update_transfer')" href="#" class="dropdown-item"><i class="dropdown-icon fa fa-edit"></i> Update </a>
                    @endif
                    @endif  
                        @if(Auth::user()->hasAnyPermission(['All','View Transfer Form']))
                        <a  href="{{route('document.transferform',['id' => Crypt::encrypt($rows->id)])}}" class="dropdown-item "><i class="dropdown-icon fa fa-file "></i>  Transfer Document</a>
                        @endif

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

    @endforeach
@endisset   
    
