<?php $__currentLoopData = $members; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key=> $row): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<tr>
    <th scope="row">
        <?php if($row->role == 'sub_admin'): ?>
            <?php if(auth()->member()->id != $row->id): ?>
                <div class="custom-control custom-checkbox">
                    <input type="checkbox" class="custom-control-input selectOne deleteCheck" id="customCheck<?php echo e($row->id); ?>" value="<?php echo e($row->id); ?>" name="id[]">
                    <label class="custom-control-label" for="customCheck<?php echo e($row->id); ?>"></label>
                </div>
            <?php endif; ?>
        <?php endif; ?>

    </th>
    <td><?php echo e($row->name); ?></td>
    <td><?php echo e($row->phone); ?></td>
    <td><?php echo e(__('members.statuses.'.$row->role)); ?></td>
    <td colspan="2"><?php echo e(\Carbon\Carbon::parse($row->created_at)->format('Y/m/d')); ?></td>
    <td>

        <div class="dropdown">
            <button class="icon_dots dropdown-toggle" type="button" id="dropdownMenuButton" data-toggle="dropdown" aria-expanded="false">
                <i class="bi bi-three-dots-vertical"></i>
            </button>
            <div class="dropdown-menu" aria-labelledby="dropdownMenuButton">


                    <?php if($row->deleted_at): ?>
                        <?php if($row->role == 'sub_admin'): ?>
                                <a href="<?php echo e(route ('members.restore', $row->id)); ?>" data-method="put" class="dropdown-item rowAction" title="<?php echo e(__('dashboard.restore')); ?>"> <i class="bi bi-pen ml-1"></i> <?php echo e(__('dashboard.restore')); ?> </a>
                            <?php if(auth()->member()->id != $row->id): ?>

                            <?php endif; ?>
                        <?php endif; ?>

                    <?php else: ?>
                        <a href="<?php echo e(route ('members.edit', $row->id)); ?>" class="dropdown-item" title="<?php echo e(__('dashboard.edit')); ?>"> <i class="bi bi-pen ml-1"></i> <?php echo e(__('dashboard.edit')); ?> </a>
                        <a href="<?php echo e(route ('members.show', $row->id)); ?>" class="dropdown-item" title="<?php echo e(__('members.addresses')); ?>"> <i class="bi bi-pen ml-1"></i> <?php echo e(__('members.addresses')); ?> </a>
                        <a href="<?php echo e(route ('rates.index').'?user='.$row->name); ?>" class="dropdown-item" title="<?php echo e(__('members.rates')); ?>"> <i class="bi bi-pen ml-1"></i> <?php echo e(__('members.rates')); ?> </a>
                        <?php if($row->role == 'sub_admin'): ?>
                            <?php if(auth()->member()->id != $row->id): ?>
                             <a href="<?php echo e(route ('members.destroy', $row->id)); ?>" data-method="delete" class="dropdown-item rowAction" title="<?php echo e(__('dashboard.trash')); ?>"> <i class="bi bi-slash-circle ml-1"></i> <?php echo e(__('dashboard.trash')); ?> </a>                            <?php endif; ?>
                        <?php endif; ?>
                    <?php endif; ?>
            </div>
        </div>



    </td>
</tr>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>

<?php if( count( $members ) && $members->hasPages() ): ?>
<tr> <td></td><td> <?php echo e($members->links()); ?> </td> </tr>
<?php endif; ?>
<?php /**PATH /Applications/MAMP/htdocs/made/resources/views/admin/members/grid.blade.php ENDPATH**/ ?>