<?php foreach($records as $record ): ?>

    <tr>
        <td><?php echo e($records->recordno->getNext()); ?></td>
        <td><?php echo e($record->ref_employee_id); ?></td>
        <td width="50%" height="50" data-source="employee" data-id="<?php echo e($record->id); ?>" class="qrd-editable qrd-editable-id-<?php echo e($record->id); ?>" ><?php echo e($record->name); ?></td>
        <td>
            <div class="qrd-listtable-actions">
                <?php if( $record->is_blocked !=  0 ) { ?>
                <a href="javascript:;" onclick="actionFlag('<?php echo e(action('EmployeeController@block', [@$record->id] )); ?>', {}, null, null, null, onAjaxResult )" title="Unlock" ><i class="fa fa-ban"> </i></a>
                <?php } else { ?>
                <a href="javascript:;" onclick="actionFlag('<?php echo e(action('EmployeeController@block', [@$record->id] )); ?>', {}, null, null, null, onAjaxResult )" title="Block" ><i class="fa fa-circle-thin"> </i></a>
                <?php } ?>
            </div>
        </td>
    </tr>

<?php endforeach; ?>