<form action="<?php echo e(route('chief.post.edit.user')); ?>" method="post" class="mb-5">
    <?php echo e(csrf_field()); ?>

    <div class="row mt-3">
        <input type="hidden" name="userid" id="userid" value=" <?php echo e($user_selected->id); ?>">
        <div class="col-12 col-lg-6">
            <div class="form-group">
                <label for="first_name" class="mb-2">نام</label>
                <input type="text" class=" form-control" name="first_name" id="first_name" placeholder="نام" value=" <?php echo e($user_selected->first_name); ?>">
            </div>
        </div>
        <div class="col-12 col-lg-6 mt-3 mt-lg-0">
            <div class="form-group">
                <label for="last_name" class="mb-2">نام خانوادگی</label>
                <input type="text" class=" form-control" name="last_name" id="last_name" placeholder="نام خانوادگی" value=" <?php echo e($user_selected->last_name); ?>">
            </div>
        </div>
    </div>
    <div class="mt-3 d-flex justify-content-between">
        <span class="btn btn-danger" data-bs-toggle="modal" data-bs-target="#removeModal">حذف کاربر</span>
        <button type="submit" class=" btn btn-success">ویرایش کاربر</button>
    </div>
</form>

<div class="modal fade" id="removeModal" tabindex="-1" aria-labelledby="removeModalLabel" aria-hidden="true">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <h5 class="modal-title" id="removeModalLabel">حذف کاربر</h5>
                <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
            </div>
            <div class="modal-body">
                <p class="text-danger text-center">آیا مطمئن هستید که کاربر حذف شود؟</p>
                <form action="<?php echo e(route('chief.post.delete.user')); ?>" method="post">
                    <?php echo e(csrf_field()); ?>

                    <input type="hidden" name="userId" value="<?php echo e($user_selected->id); ?>">
                    <div class="d-flex justify-content-center">
                        <button type="submit" class="btn btn-danger" id="CancelOrderBtn">حذف کاربر</button>
                    </div>
                </form>
            </div>
        </div>
    </div>
</div><?php /**PATH /home1/zarborji/public_html/resources/views/chiefWorker/user/edit.blade.php ENDPATH**/ ?>