<div class="demo-inline-spacing justify-content-around ">

    <!-- view user btn -->

    <!-- <a type="button" class="btn btn-sm btn-warning action-row" title="<?php echo e(trans('general.view')); ?>" style="margin: 0px;" id="view_<?php echo e($id); ?>" href="route('admin.UserAccountDetails',$id) }}">
        <i class="far fa-eye "></i>
    </a> -->


    <!-- Edit user btn -->

    <a type="button" class="btn btn-sm btn-info action-row" title="<?php echo e(trans('general.edit')); ?>" style="margin: 0px;" id="edit_<?php echo e($id); ?>" href="<?php echo e(route('admin.users.update',$id)); ?>">
        <i class="far fa-edit "></i>
        <!-- <i data-feather='edit'></i> -->
    </a>

    <button type="button" onclick="confirm(`<?php echo e(trans('general.delete_record_confirmation')); ?>`) ? document.getElementById('delete-users-<?php echo e($id); ?>').submit() : false;" class="btn btn-sm btn-danger action-row" title="<?php echo e(trans('general.delete')); ?>" style="margin: 0px;" id="delete_<?php echo e($id); ?>">
        <i class="far fa-trash-alt "></i>
    </button>


    <?php if(!empty($settings)): ?>

    <?php if(json_decode($settings, true)['status'] == 0): ?>
    <button type="button" onclick="changeAccStatusConfirmation() ? document.getElementById('accountStatus-<?php echo e($id); ?>').submit() : false;" class="btn btn-sm btn-success action-row" title="<?php echo e(trans('general.Activate Account')); ?>" style="margin: 0px;" id="close_<?php echo e($id); ?>">
        <i class="fas fa-user-check"></i>
    </button>
    <?php else: ?>
    <button type="button" onclick="changeAccStatusConfirmation() ? document.getElementById('accountStatus-<?php echo e($id); ?>').submit() : false;" class="btn btn-sm btn-danger action-row" title="<?php echo e(trans('general.Deactivate Account')); ?>" style="margin: 0px;" id="close_<?php echo e($id); ?>">
        <i class="fas fa-user-alt-slash"></i>
    </button>
    <?php endif; ?>
    <?php else: ?>
    <button type="button" onclick="changeAccStatusConfirmation() ? document.getElementById('accountStatus-<?php echo e($id); ?>').submit() : false;" class="btn btn-sm btn-danger action-row" title="<?php echo e(trans('general.Deactivate Account')); ?>" style="margin: 0px;" id="close_<?php echo e($id); ?>">
        <i class="fas fa-user-alt-slash"></i>
    </button>
    <?php endif; ?>

    <!-- close account btn -->
</div>
<form role="form" id="accountStatus-<?php echo e($id); ?>" action="<?php echo e(route('admin.users.update.status', $id)); ?>" method="POST">
    <?php echo csrf_field(); ?>
    <input type="hidden" name="id" value="<?php echo e($id); ?>">
    <?php if(!empty($settings)): ?>
    <?php if(json_decode($settings, true)['status'] == 0): ?>
    <input required type="hidden" name="status" value="1" id="status">
    <?php else: ?>
    <input required type="hidden" name="status" value="0" id="status">
    <?php endif; ?>
    <?php else: ?>
    <input required type="hidden" name="status" value="0" id="status">
    <?php endif; ?>
</form>


<form id="delete-users-<?php echo e($id); ?>" action="<?php echo e(route('admin.users.delete')); ?>" method="POST">
    <?php echo csrf_field(); ?>
    <input type="hidden" name="id" value="<?php echo e($id); ?>">
</form>

<?php /**PATH C:\Users\nobalaa-dev\Desktop\New folde2r\portal\resources\views/admin/users/action.blade.php ENDPATH**/ ?>