403Webshell
Server IP : 54.94.228.101  /  Your IP : 172.28.1.13
Web Server : Apache
System : Linux ip-172-28-29-189 6.5.0-1014-aws #14~22.04.1-Ubuntu SMP Thu Feb 15 15:27:06 UTC 2024 x86_64
User : www-data ( 33)
PHP Version : 7.2.34-43+ubuntu22.04.1+deb.sury.org+1
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /var/www/html/vinumday2_0/storage/framework/views/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/html/vinumday2_0/storage/framework/views/fbce08b40799c96d071b6f321f323a29fdcf173f.php
<?php $__env->startSection('content'); ?>
	<section class="content">
		<div class="row">
			<div class="col-lg-12">
				<div class="box">

					<div class="box-header with-border">
		              <h2 class="box-title">Syncronização Produto: <?php echo e($produto->nome); ?> / <?php echo e($produto->sku); ?> / <?php echo e($produto->localizador); ?> <span class="small">(nome/sku/localizador)</span></h2>
		            </div>

					<div class="box-body">
						<?php if(!empty($log_error)):?>
							<p style="font-weight: bold;">ERRO AO TENTAR SINCRONIZAR:</p>
							<p style="color: red; font-weight: bold;"><?php echo $log_error?></p>
						<?php else:?>
						<table class="table table-bordered table-striped">
							<thead>
								<tr>
									<th class="no-sort"></th>
									<th>ID</th>
									<th>Nome</th>
									<th>SKU</th>
									<th>Localizador</th>
								</tr>
							</thead>
							<tbody>
								<?php foreach ($registros as $item): ?>
								<?php $item = $item->produto; ?>
									<tr>
										<td class="no-sort"><input type="radio" name="item_produto[]" value="<?php echo $item->id; ?>"/></td>
										<td><?php echo $item->id; ?></td>
										<td style="color: <?php echo ($item->nome == $produto->nome ? "green" : "red")?>"><?php echo $item->nome; ?></td>
										<td style="color: <?php echo ($item->codigo == $produto->sku ? "green" : "red")?>"><?php echo $item->codigo; ?></td>
										<td style="color: <?php echo ($item->localizacao == $produto->localizador ? "green" : "red")?>"><?php echo $item->localizacao; ?></td>
									</tr>
								<?php endforeach ?>
							</tbody>
						</table>
						<?php endif;?>
					</div>
					<div class="box-footer">
						<div class="text-left">
							<button id="sync-tiny-new" type="button" class="btn btn-primary">
								<i class="fa fa-btn fa-pencil-alt"></i> Gerar Novo
							</button>
							<?php if(count($registros) > 0): ?>
							<button id="sync-tiny-update" type="button" class="btn btn-primary pull-right">
								<i class="fa fa-fw fa-sync"></i> Sincronizar Tiny ERP
							</button>
							<?php endif;?>
						</div>
					</div>
				</div>
			</div>
		</div>
	</section>
	<script type="text/javascript">
		$(document).ready(function(){

			$('#sync-tiny-update').click(function(e){
				if(!confirm('Você tem certeza?')){
					e.preventDefault();
				}else{
					var produto_selecionado = $('[name="item_produto[]"]:checked');

					if(produto_selecionado.length > 0){
						$.ajax({
							url:'/admin/produto/sincronizar-tiny-produto',
							type:'POST',
							data:{
								id_tiny 	: produto_selecionado.val(),
								id_produto 	: '<?php echo $produto->id; ?>',
								id_empresa 	: '<?php echo $empresa; ?>',
								action      : 'alterar'
							},
							beforeSend:function(){
								$('.carregando').fadeIn();
							},
							success:function(data){
								if (data.status) {
									$('#modal-evento').modal('hide');
									alertUtil.alertSuccess(data.message);
									setTimeout(function(){
										window.location.href = window.location.href;
				                    }, 1000);
								}else{
									alertUtil.alertWarning(data.message);
								}
								$('.carregando').fadeOut();
							}
						});
					}else{
						alertUtil.alertError('Você deve selecionar ao menos um produto');
					}
					
				}
			});

			$('#sync-tiny-new').click(function(e){
				if(!confirm('Você tem certeza?')){
					e.preventDefault();
				}else{

					$.ajax({
						url:'/admin/produto/sincronizar-tiny-produto',
						type:'POST',
						data:{
							id_tiny 	: '0',
							id_produto 	: '<?php echo $produto->id; ?>',
							id_empresa 	: '<?php echo $empresa; ?>',
							action      : 'incluir'
						},
						beforeSend:function(){
							$('.carregando').fadeIn();
						},
						success:function(data){
							if (data.status) {
								$('#modal-evento').modal('hide');
								alertUtil.alertSuccess(data.message);
								setTimeout(function(){
									window.location.href = window.location.href;
			                    }, 1000);
							}else{
								alertUtil.alertWarning(data.message);
							}
							$('.carregando').fadeOut();
						}
					});
					
				}
			});

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

<?php echo $__env->make('layouts.admins.modal', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>

Youez - 2016 - github.com/yon3zu
LinuXploit