<?php $__env->startSection('title'); ?>
<?php echo e(__('Members')); ?>

<?php $__env->stopSection(); ?>

<?php $__env->startSection('content'); ?>
<div class="page-content-wrapper">
    <div class="container-fluid">
        <div class="row">
            <div class="col-sm-12">
                <div class="page-title-box">

                    <h3>Edit user</h3>

                </div>
            </div>
        </div>
        <?php echo Form::model($user, ['method' => 'PATCH', 'route' => ['users.update', $user->id]]); ?>

        <div class="row">
            <div class="col-12">
                <div class="card">
                    <div class="card-body">
                        <div class="row">
                            <div class="col-12 mb-2">
                                <div class="form-group">
                                    <label>Username<span style="color:red !important;">*</span></label>
                                    <?php echo Form::text('username', null, ['placeholder' => __('Username'), 'class' => 'form-control']); ?>

                                </div>
                            </div>



                            <div class="col-12 mb-2">
                                <div class="form-group">
                                    <label>Mobile number<span style="color:red !important;">*</span></label>
                                    <?php echo Form::text('mobile_number', null, ['placeholder' => __('Mobile number'), 'class' => 'form-control']); ?>

                                </div>
                            </div>


                            <div class="col-12 mb-2">
                                <div class="form-group">
                                    <label>Password<span style="color:red !important;">*</span></label>
                                    <?php echo Form::text('password', '', ['placeholder' => __('Enter new Password'), 'class' => 'form-control']); ?>

                                </div>
                            </div>

                            <div class="col-12 mb-2">
                                <div class="form-group">
                                    <label>Referral by<span style="color:red !important;">*</span></label>
                                    <?php echo Form::select('referral_by', $users,$user->referral_by, ['placeholder' => __('Change referral'), 'class' => 'form-control']); ?>

                                </div>
                            </div>

                            <?php
                            $levels = ['1' => 'Level 1', '2' => 'Level 2', '3' => 'Level 3', '4' => 'Level 4', '5' => 'Level 5'];
                            ?>
                            <div class="col-12 mb-2">
                                <div class="form-group">
                                    <label>Level<span style="color:red !important;">*</span></label>
                                    <?php echo Form::select('level', $levels,$user->level, ['placeholder' => __('Change Level'), 'class' => 'form-control']); ?>

                                </div>
                            </div>





                        </div>

                        <button type="submit" class="btn btn-success waves-effect waves-light">Save User</button>
                        <a href="<?php echo e(route('users.index')); ?>" class="btn btn-danger waves-effect waves-light">Cancel Edit</a>
                    </div>
                </div>

            </div>
            <!-- end row -->
        </div>
        <?php echo Form::close(); ?>

        <!-- container -->
    </div>
    <!-- Page content Wrapper -->
</div>



<?php $__env->stopSection(); ?>

<?php $__env->startPush('css'); ?>
<?php $__env->stopPush(); ?>
<?php $__env->startPush('javascript'); ?>
<!-- <script src="<?php echo e(asset('assets/admin/lib/jquery/jquery-3.7.1.min.js')); ?>"></script> -->
<!-- <script src="<?php echo e(asset('assets/admin/lib/datatables/dataTables.js')); ?>"></script> -->


<?php $__env->stopPush(); ?>
<?php echo $__env->make('layouts.admin', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH C:\laragon\www\journey\resources\views/users/edit.blade.php ENDPATH**/ ?>