<?php $__env->startSection('content'); ?>
    <div class="card">

        <div class="card-body">
                <form action="<?php echo e(route('user.update', $r->id)); ?>" method="POST">
                    <?php echo method_field('put'); ?>
                    <?php echo csrf_field(); ?>
                    <div class="row">
                        <div class="form-group col-md-4">
                            <label for="name">
                                Name
                            </label>
                            <input value="<?php echo e($r->name); ?>" class="form-control" name="name" id="name" type="text">
                            <?php $__errorArgs = ['name'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
                                <div class="text-red-500 mt-2 text-sm"><?php echo e($message); ?></div>
                            <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                        </div>

                        <div class="form-group col-md-4">
                            <label for="email">
                                E-Mail Address
                            </label>
                            <input value="<?php echo e($r->email); ?>" class="form-control" name="email" id="email" type="email">
                            <?php $__errorArgs = ['email'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
                                <div class="alert alert-danger"><?php echo e($message); ?></div>
                            <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                        </div>

                        <div class="form-group col-md-4">

                            <label class="block text-gray-700 text-sm font-bold mb-2" for="company">
                                Company Name
                            </label>
                            <input value="<?php echo e($r->userdetails->company ?? ''); ?>" class="form-control" name="company"
                                id="company" type="text">
                            <?php $__errorArgs = ['company'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
                                <div class="text-red-500 mt-2 text-sm"><?php echo e($message); ?></div>
                            <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                        </div>

                        <div class="form-group col-md-4">

                            <label class="block text-gray-700 text-sm font-bold mb-2" for="message">
                                Message
                            </label>

                            <input value="<?php echo e($r->userdetails->message ?? ''); ?>" class="form-control" name="message"
                                id="message" type="text">
                            <?php $__errorArgs = ['message'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
                                <div class="text-red-500 mt-2 text-sm"><?php echo e($message); ?></div>
                            <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                        </div>

                        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('assign-permission')): ?>
                            <div class="form-group col-md-4">

                                <label class="block text-gray-700 text-sm font-bold mb-2" for="user_accounting_status">
                                    User Accounting
                                </label>

                                <select name="user_accounting_status" id="user_accounting_status" class="form-control select2">
                                    <option value="yes" <?php if($r->user_accounting_status == 'yes'): ?> selected <?php endif; ?>>Yes</option>
                                    <option value="no" <?php if($r->user_accounting_status == 'no'): ?> selected <?php endif; ?>>No</option>
                                </select>
                                <?php $__errorArgs = ['message'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
                                    <div class="text-red-500 mt-2 text-sm"><?php echo e($message); ?></div>
                                <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                            </div>

                            <div class="form-group col-md-4">

                                <label class="block text-gray-700 text-sm font-bold mb-2" for="user_status">
                                    Status
                                </label>

                                <select name="user_status" id="user_status" class="form-control select2">
                                    <option value="pending" <?php if($r->userdetails->user_status == 'pending'): ?> selected <?php endif; ?>>Pending</option>
                                    <option value="active" <?php if($r->userdetails->user_status == 'active'): ?> selected <?php endif; ?>>Active</option>
                                    <option value="deactive" <?php if($r->userdetails->user_status == 'deactive'): ?> selected <?php endif; ?>>Deactive</option>
                                </select>
                                <?php $__errorArgs = ['message'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
                                    <div class="text-red-500 mt-2 text-sm"><?php echo e($message); ?></div>
                                <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                            </div>
                        <?php endif; ?>

                        <div class="form-group col-md-4">

                            <label for="company">
                                Mobile Number
                            </label>
                            <input value="<?php echo e($r->mobile_number); ?>" class="form-control" name="mobile_number" id="mobile_number"
                                type="text" autocomplete="off" placeholder="01733344466">
                            <?php $__errorArgs = ['mobile_number'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
                                <div class="alert alert-danger"><?php echo e($message); ?></div>
                            <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                        </div>
                        <?php if(checkSettings('reseller-client-dynamic-recharge') == 'enable'): ?>
                            <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check("minimum_recharge_day")): ?>
                                <div class="form-group col-md-4">
                                    <label for="company">Client Recharge Days(Minimum)</label>
                                    <input value="<?php echo e($r->minimum_recharge_day); ?>" class="form-control" name="minimum_recharge_day" id="minimum_recharge_day"
                                        type="number" autocomplete="off" placeholder="Recharge Day">
                                    <?php $__errorArgs = ['minimum_recharge_day'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
                                        <div class="alert alert-danger"><?php echo e($message); ?></div>
                                    <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                                </div>
                            <?php endif; ?>
                        <?php endif; ?>
                    </div>


                    <div class="form-group">

                        <a href="<?php echo e(route('user.index')); ?>" class="btn btn-default"><i class="fa fa-arrow-left"></i>
                            Back</a>

                        <button type="submit" class="btn btn-primary float-right">
                            Update
                        </button>

                    </div>


                </form>
        </div>
    </div>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('layout.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /var/www/html/spacewalker/radius-circle/resources/views/user/edit.blade.php ENDPATH**/ ?>