
<?php if(isset($inventory_list)): ?>
  <?php ($pass_data = []); ?>
        <?php $__currentLoopData = $inventory_list; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $rows): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
    
    <?php ($dimesnion = explode('X',$rows->dimensions)); ?>

     <?php if(isset($dimesnion[0]) && isset($dimesnion[1])): ?>
        
    <?php else: ?>
    <?php ($dimesnion[0] = 0); ?>
        <?php ($dimesnion[1] = 0); ?>
     <?php endif; ?>

     
      <?php (
        $pass_data = array(
            'inventory'                           => Crypt::encrypt($rows->id),
            $plot_labels['plot_name']             => $rows->plot_id,
            $plot_labels['block']                 => $rows->block_name,
            $plot_labels['floor']                 => $rows->floor,
            $plot_labels['size']                  => $rows->size,
            $plot_labels['category']              => $rows->category,
            $plot_labels['rate']                  => $rows->rate,
            $plot_labels['type']                  => $rows->type,
            $plot_labels['location']              => $rows->location,
            $plot_labels['feature_charges']       => $rows->featurecharges,
            'parking_check'                       => $rows->parking_check,
            $plot_labels['dimension_x']           => trim($dimesnion[0]),
            $plot_labels['dimension_y']           => trim($dimesnion[1]),




            $plot_labels['feature_description']       => $rows->feature_description,

            $plot_labels['branch']     => trim($rows->branch->code.' '.$rows->branch->name),

            'feature_charges_into_words' => EF::numberToWords($rows->featurecharges),

            'price_into_words' => EF::numberToWords($rows->rate),


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

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

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

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

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

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



                <td><?php echo e($rows->dimensions); ?></td>
        <td><?php echo e(EF::numberFormat($rows->featurecharges)); ?></td>


        <td><?php echo e(EF::numberFormat($rows->rate)); ?></td>
        <td><?php echo e($rows->status); ?></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','Update Inventory'])): ?>

                <a onclick="showUpdatePlotModel(event,'<?php echo e(Crypt::encrypt($rows->id)); ?>')" href="#" class="dropdown-item"><i class="dropdown-icon fa fa-edit"></i> Update </a>
                <?php endif; ?>
                    
                <?php if(Auth::user()->hasAnyPermission(['All','Remove Inventory']) && ($rows->bookings->count() == 0)): ?>

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