<?php $__env->startSection('title','Secret Key'); ?>
<?php $__env->startSection('header_extra'); ?>
<?php $__env->stopSection(); ?>

<?php $__env->startSection('content'); ?>


<div class="row">
    <div class="col-12">
        <div class="card-box">
            <h4 class="m-t-0 header-title"><b>Secret Key</b></h4>
            

            <div class="row">
                <div class="col-12">
                    <div class="p-20">
                        <?php echo $__env->make('widget/notifications', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
                        <?php if(Auth::user()->secret_key !=""): ?>
                        <form class="form-horizontal validate" action="#">
                            <div class="form-group row">
                                <label class="col-2 col-form-label">Secret Key:</label>
                                <div class="col-8">
                                    <input disabled="" type="text" class="form-control" value="<?php echo e(Auth::user()->secret_key); ?>">
                                </div>
                            </div>
                            <div class="form-group row">
                                <div class="col-8 offset-4">
                                    
                                    <a href="<?php echo e(route('customer.key_generate')); ?>" class="btn btn-primary waves-effect waves-light">
                                        Re-Generate Key
                                    </a>
                                    
                                </div>
                            </div>
                        </form>
                        <?php else: ?>
                        <?php $active_subscription =  get_active_subscription(); ?>
                            <?php if(!empty($active_subscription)): ?>
                            <a href="<?php echo e(route('customer.key_generate')); ?>" class="btn btn-primary waves-effect waves-light">
                                Generate Key
                            </a>
                            <?php else: ?>
                            <h3>Please purchase a subscription to get a key</h3>
                            <?php endif; ?>
                        <?php endif; ?>
                        
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>

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

<?php $__env->startSection('footer_scripts'); ?>
<script type="text/javascript" src="<?php echo e(asset('assets/plugins/parsleyjs/parsley.min.js')); ?>"></script>
<script type="text/javascript" src="<?php echo e(asset('assets/js/custom.js')); ?>"></script>
<script type="text/javascript">
    $(function(){
        $(this).active_menu("secret_key");
    })
    
</script>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('layouts.default', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/mycindia/public_html/portal/project/resources/views/customer/secret_key.blade.php ENDPATH**/ ?>