Viewing file: ce0a322da646f3cafd7c534180eb711f.php (4.23 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php $__env->startSection('title', 'Device Edit'); ?>
<?php $__env->startSection('extra-css'); ?> <link rel="stylesheet" href="<?php echo e(asset('plugins/select2/css/select2.min.css')); ?>"> <style> .modal-qr-code { height: 200px; width: 220px; margin: 0 auto; }
.modal-qr-code img { width: 100%; height: 100%; }
#qrcode { width: 100%; height: 100%; margin: 0 auto; text-align: center; }
#qrcode a { font-size: 0.8em; }
.qr-url, .qr-size { padding: 0.5em; border: 1px solid #ddd; border-radius: 2px; -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; }
canvas { height: 100%; width: 100%; } </style> <?php $__env->stopSection(); ?>
<?php $__env->startSection('content'); ?> <section class="content"> <div class="row"> <div class="col-12 mx-auto col-sm-10 mt-3"> <div class="card"> <div class="card-header"> <h2 class="card-title"><?php echo app('translator')->get('customer.device_edit'); ?> <?php if(isset($device) && $device->status == 'active'): ?> <img id="deviceStatus" src="<?php echo e(asset('images/online.png')); ?>" /> <?php else: ?> <img id="deviceStatus" src="<?php echo e(asset('images/offline.png')); ?>" /> <?php endif; ?> </h2> <a class="btn btn-primary float-right text-front-normal" href="<?php echo e(route('customer.device.index')); ?>"><?php echo app('translator')->get('customer.back'); ?></a> </div> <form method="post" role="form" action="<?php echo e(route('customer.device.update', [$device])); ?>"> <?php echo csrf_field(); ?> <?php echo method_field('put'); ?> <div class="card-body"> <?php echo $__env->make('customer.device.form', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?> </div> <div class="card-footer"> <button type="submit" class="btn btn-primary text-front-normal"><?php echo app('translator')->get('customer.update'); ?></button> </div> </form> </div> </div> </div> </section> <?php $__env->stopSection(); ?>
<?php $__env->startSection('extra-scripts'); ?> <script src="https://cdnjs.cloudflare.com/ajax/libs/qrious/4.0.2/qrious.min.js"></script> <script src="https://cdn.socket.io/4.7.2/socket.io.min.js" integrity="sha384-mZLF4UVrpi/QTWPA7BjNPEnkIfRFn4ZEO3Qt/HFklTJBj/gBOV8G3HcKn4NfQblz" crossorigin="anonymous"> </script> <?php if(isset($device) && $device->status == 'inactive'): ?> <script> const socket = io("<?php echo e(config('pico.wa_server_host')); ?>"); socket.on("connect", () => { console.log("Connected"); }); socket.on("qrcode", (res) => { if (!res.code) { notify('danger', 'Invalid qr code') retrn; } const code = res.code; new QRious({ element: document.getElementById("qrcode"), value: code, size: 200 }); });
socket.emit('scan', { id: '<?php echo e($device->device_unique_id); ?>' }) </script> <?php endif; ?> <?php $__env->stopSection(); ?>
<?php echo $__env->make('layouts.customer', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/picotech/domains/sender.picotech.app/public_html/resources/views/customer/device/edit.blade.php ENDPATH**/ ?>
|