
<?php $__env->startSection('content'); ?>
<div class="row">
    <div class="col-lg-12" style="padding-left: 4px;padding-right: 4px;">
        <div class="card m-b-30" style="border-radius: 5px;">
            <div class="card-header">
                <h5 class="card-title" style="font-weight: bold; padding-top: 15px; font-size: 20px;">Member Info Edit</h5>
            </div>

            <div class="card-body" style="padding-bottom: 50px;">
                <form action="<?php echo e(url('admin/meminfoedit')); ?>" method="post"><?php echo csrf_field(); ?>

                    <input type="hidden" name="user_id" value="<?php echo e($member_data->id); ?>">
                
                    <div class="row">
                        <div class="col-md-6">
                            <input style="margin-bottom: 5px;margin-top: 10px;height: 38px;background: transparent;" class="form-control" type="text" value="<?php echo e($member_data->username); ?>" readonly>
                        </div>

                        <div class="col-md-6">
                            <input style="margin-bottom: 5px;margin-top: 10px;height: 38px;" class="form-control" type="text" name="name" value="<?php echo e($member_data->name); ?>" placeholder="Full Name" required>
                        </div>

                        <div class="col-md-6">
                            <input style="margin-bottom: 5px; margin-top: 10px; height: 38px;" class="form-control" type="email" name="email" value="<?php echo e($member_data->email); ?>" placeholder="Email Address" required>
                        </div> 

                        <div class="col-md-6">
                            <select style="margin-bottom: 5px; height: 38px;" class="select2-single" name="country" required>
                                <?php if(is_null($member_data->country)): ?>
                                <option value="">Select Country</option>
                                <?php else: ?>
                                <option value="<?php echo e($member_data->country); ?>"><?php echo e($member_data->country); ?></option>
                                <?php endif; ?>
                                <?php $__currentLoopData = $country; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $c): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                <option value="<?php echo e($c->country_name); ?>"><?php echo e($c->country_name); ?></option>
                                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                            </select>
                        </div>

                        <div class="col-md-6">
                            <textarea style="margin-bottom: 5px;margin-top: 10px;" rows="3" name="address" class="form-control" placeholder="Enter Address" required><?php echo $member_data->address; ?></textarea>
                        </div>

                        <div class="col-md-6">
                            <button style="height: 38px;margin-top: 10px;background: #ec1666;color: #fff;" type="submit" class="btn">Confirm Now</button>
                        </div>
                    </div>

                </form>
            </div>
        </div>
    </div> 


    <div class="col-lg-12" style="padding-left: 4px;padding-right: 4px;">
        <div class="card m-b-30" style="border-radius: 5px;">
            <div class="card-header">
                <h5 class="card-title" style="font-weight: bold; padding-top: 15px; font-size: 20px;">Password Update</h5>
            </div>

            <div class="card-body" style="padding-bottom: 50px;">
                <form action="<?php echo e(url('admin/passupdate')); ?>" method="post"><?php echo csrf_field(); ?>

                    <input type="hidden" name="user_id" value="<?php echo e($member_data->id); ?>">
                
                    <div class="row">

                        <div class="col-md-6">
                            <input style="margin-bottom: 10px;height: 38px;" class="form-control" type="password" name="password" id="password" placeholder="Enter New Password" required>
                        </div>

                        <div class="col-md-6">
                            <input style="margin-bottom: 10px;height: 38px;" class="form-control" type="password" name="conf_password" id="conf_password" placeholder="Enter Again" required>
                        </div>

                        <div class="col-md-6">
                            <button style="height: 38px;background: #ec1666;color: #fff;" type="submit" class="btn">Confirm Now</button>
                        </div>
                    </div>

                </form>
            </div>
        </div>
    </div>

    <div class="col-lg-12" style="padding-left: 4px;padding-right: 4px;">
        <div class="card m-b-30" style="border-radius: 5px;">
            <div class="card-header">
                <?php if(is_null($member_data->pin)): ?>
                <h5 class="card-title" style="font-weight: bold; padding-top: 15px; font-size: 20px;">PIN Generate</h5>
                <?php else: ?>
                <h5 class="card-title" style="font-weight: bold; padding-top: 15px; font-size: 20px;">PIN Update</h5>
                <?php endif; ?>
            </div>

            <div class="card-body" style="padding-bottom: 50px;">
                <?php if(is_null($member_data->pin)): ?>
                <form action="<?php echo e(url('admin/pingenerate')); ?>" method="post"><?php echo csrf_field(); ?>
                    <input type="hidden" name="user_id" value="<?php echo e($member_data->id); ?>">
                    <div class="row">
                        <div class="col-md-6">
                            <input style="margin-bottom: 10px;height: 38px;" class="form-control" type="password" name="pin" id="pin" placeholder="Enter New PIN" required>
                        </div>

                        <div class="col-md-6">
                            <input style="margin-bottom: 10px;height: 38px;" class="form-control" type="password" name="conf_pin" id="conf_pin" placeholder="Enter Again" required>
                        </div>

                        <div class="col-md-6">
                            <button style="height: 38px;background: #ec1666;color: #fff;" type="submit" class="btn">Confirm Now</button>
                        </div>
                    </div>
                </form>
                <?php else: ?>
                <form action="<?php echo e(url('admin/pinupdate')); ?>" method="post"><?php echo csrf_field(); ?>
                    <input type="hidden" name="user_id" value="<?php echo e($member_data->id); ?>">
                    <div class="row">

                        <div class="col-md-6">
                            <input style="margin-bottom: 10px;height: 38px;" class="form-control" type="password" name="pin" id="pin" placeholder="Enter New PIN" required>
                        </div>

                        <div class="col-md-6">
                            <input style="margin-bottom: 10px;height: 38px;" class="form-control" type="password" name="conf_pin" id="conf_pin" placeholder="Enter Again" required>
                        </div>

                        <div class="col-md-6">
                            <button style="height: 38px;background: #ec1666;color: #fff;" type="submit" class="btn">Confirm Now</button>
                        </div>
                    </div>

                </form>
                <?php endif; ?>
            </div>
        </div>
    </div>      
</div>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('admin.layout.main', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/ebs/public_html/resources/views/admin/editmem.blade.php ENDPATH**/ ?>