| Server IP : 54.233.248.239 / 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 : |
<?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">Logs Atualização Saldos: <?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">
<table class="table table-bordered table-striped">
<thead>
<tr>
<th>Data Atualização</th>
<th>Log</th>
<th>Empresas</th>
<th>Estoque</th>
<th>Adega</th>
<th>Em Processamento</th>
<th>Disponibilidade</th>
</tr>
</thead>
<tbody>
<?php if(count($estoquelog) > 0): ?>
<?php foreach ($estoquelog as $item): ?>
<tr>
<td>
<?php echo date('d/m/Y H:i:s', strtotime($item->data_ultima_atualizacao)); ?>
</td>
<td>
<?php
if(!empty($item->observacao)):
$empresas = json_decode($item->observacao);
$list = [];
foreach ($empresas as $key => $value) {
$response = json_decode($value->response);
if(isset($response->retorno->status_processamento)){
$retorno = '';
if(isset($response->retorno->codigo_erro) && isset($statusErro[$response->retorno->codigo_erro])){
$retorno = "(" . $statusErro[$response->retorno->codigo_erro] . ') <br>';
}
$list[] = "{$key} : {$response->retorno->status} {$retorno}";
}else{
$list[] = "{$key} : {$value->response}";
}
}
echo implode(" / ", $list);
endif;
?>
</td>
<td>
<?php
if(!empty($item->quantidade_empresa)):
$empresas = json_decode($item->quantidade_empresa);
$list = [];
foreach ($empresas as $key => $value) {
$list[] = "{$key} : {$value}";
}
echo implode(" / ", $list);
endif;
?>
</td>
<td style="text-align: center;"><?php echo $item->estoque; ?></td>
<td style="text-align: center;"><?php echo $item->adega; ?></td>
<td style="text-align: center;"><?php echo $item->em_processamento; ?></td>
<td style="text-align: center;"><?php echo $item->disponibilidade; ?></td>
</tr>
<?php endforeach; ?>
<?php else:; ?>
<tr>
<td colspan="7" class="text-center"><p>Nenhuma atualização de saldo encontrada! (Logs)</p></td>
</tr>
<?php endif; ?>
</tbody>
</table>
</div>
</div>
</div>
</div>
</section>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('layouts.admins.modal', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>