Sindbad~EG File Manager

Current Path : /home/zada/www/storage/framework/views/
Upload File :
Current File : /home/zada/www/storage/framework/views/6afb292c4d3f8987dc99512cc252db21.php


<?php $__env->startSection('content'); ?>
    <div class="row">
        <?php $__currentLoopData = $otp_configurations; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $otp_configuration): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
            <div class="col-lg-6">
                <div class="card">
                    <div class="card-header">
                        <div class="d-flex align-items-center">
                            <h5 class="mb-0 h6"><?php echo e(ucfirst(translate($otp_configuration->type))); ?></h5>
                        </div>
                        
                        <label class="aiz-switch aiz-switch-success mb-0">
                            <input type="checkbox" 
                                onchange='updateSettings(this, "<?php echo e($otp_configuration->type); ?>")' 
                                <?php if($otp_configuration->value == 1): ?> checked <?php endif; ?>
                                title="<?php echo e(translate('Activation')); ?>">
                            <span class="slider round"></span>
                        </label>
                    </div>
                    <div class="card-body">
                        <form class="form-horizontal" action="<?php echo e(route('update_credentials')); ?>" method="POST">
                            <input type="hidden" name="otp_method" value="<?php echo e($otp_configuration->type); ?>">
                            <?php echo csrf_field(); ?>
                            <?php echo $__env->make('backend.otp_systems.configurations.partials.'.$otp_configuration->type, \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
                        </form>
                    </div>
                </div>
            </div>
        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
    </div>
    
<?php $__env->stopSection(); ?>

<?php $__env->startSection('script'); ?>
    <script type="text/javascript">

        function updateSettings(el, type){
            if($(el).is(':checked')){
                var value = 1;
            }
            else{
                var value = 0;
            }
            $.post('<?php echo e(route('otp_configurations.update.activation')); ?>', {_token:'<?php echo e(csrf_token()); ?>', type:type, value:value}, function(data){
                if(data == 1){
                    AIZ.plugins.notify('success', '<?php echo e(translate('Settings updated successfully')); ?>');
                    location.reload();
                }
                else{
                    AIZ.plugins.notify('danger', '<?php echo e(translate('Something went wrong')); ?>');
                }
            });
        }

        $("#ZENDER_MODE").change(function() {
            var value = $(this).val();
            let changeVal = '';
            if (value == "devices") {
                changeVal = 'device';
            } else {
                changeVal = 'gateway';
            }
            $("#ZENDER_MODE_TYPE").val(changeVal).change();

        });
    </script>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('backend.layouts.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/zada/public_html/resources/views/backend/otp_systems/configurations/index.blade.php ENDPATH**/ ?>

Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists (>^ω^<)看过哭02teddd(>^ω^<)看过哭02teddd