<?php echo Form::open(['route' => ['users.destroy', $id], 'method' => 'delete']); ?>

<div class='btn-group btn-group-sm'>
    
    
    <a data-toggle="tooltip" data-placement="left" title="<?php echo e(trans('lang.user_edit')); ?>" href="<?php echo e(route('users.edit', $id)); ?>" class='btn btn-link'>
        <i class="fas fa-edit"></i> </a>
    <?php echo Form::button('<i class="fas fa-trash"></i>', [
    'data-toggle' => 'tooltip',
    'data-placement' => 'bottom',
    'title' => trans('lang.user_delete'),
    'type' => 'submit',
    'class' => 'btn btn-link text-danger',
    'onclick' => "swal({title: ".trans('lang.error').", confirmButtonText: ".trans('lang.ok').",
                            text: data.message,type: 'error', confirmButtonClass: 'btn-danger'});"
    ]); ?>


    <div class="dropdown">
        <a class="btn btn-link btn-sm dropdown-toggle" data-toggle="dropdown" href="#" role="button" aria-haspopup="true" aria-expanded="false">
            <i class="fas fa-cog"></i> </a>
        <div class="dropdown-menu">
            <a class='dropdown-item' href="<?php echo e(route('users.login-as-user', $id)); ?>"> <i class="fas fa-sign-in mr-1"></i> <?php echo e(trans('lang.user_login_as_user')); ?>

            </a>

            <a onclick="return swal({title: '<?php echo e(trans('lang.error')); ?>'});" class='dropdown-item' href="<?php echo e(route('users.profile')); ?>"><i class="fas fa-user mr-1"></i> <?php echo e(trans('lang.user_profile')); ?>

            </a>

        </div>
    </div>

</div>
<?php echo Form::close(); ?>

<?php /**PATH /home/sabademoproject/burke.sabademoproject.com/home_services/resources/views/settings/users/datatables_actions.blade.php ENDPATH**/ ?>