| Server IP : 54.233.248.239 / Your IP : 172.28.20.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 : |
<table class="table table-bordered">
<thead>
<tr>
<th width="20%" class="produto__nome">Nome Produto</th>
<th width="5%" class="text-center">Qtd.</th>
<th width="7%" class="text-center">Disp.</th>
<th width="8%" class="text-right">P.Custo</th>
<th width="6%" class="text-right">Caixa</th>
<th width="8%" class="text-right">Qtd Cxa</th>
<th width="8%" class="text-right">P.Merc.</th>
<th width="10%" class="text-center">P.Venda</th>
<th width="10%">Ord.</th>
<th width="5%"></th>
</tr>
</thead>
<tbody>
<?php if(isset($oferta) && count($oferta->produtos) > 0): ?>
<?php $__currentLoopData = $oferta->produtos; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $produto): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<tr>
<td class="produto__nome">
<input type="hidden" name="produto-checkbox[]" value="<?php echo $produto->id_produto; ?>"/>
<input type="hidden" name="produto-quantidade-checkbox[]" value="<?php echo $produto->quantidade; ?>"/>
<input type="hidden" name="produto-preco-mercado[]" value="<?php echo $produto->produto->preco_mercado; ?>"/>
<input type="hidden" name="produto-preco-custo[]" value="<?php echo $produto->produto->preco_custo; ?>"/>
<input type="hidden" name="produto-custo-efetivo[]" value="<?php echo $produto->produto->custo_efetivo; ?>"/>
<span><a target="_blank" href="<?php echo e(url('admin/produto/edit/'.$produto->produto->slug)); ?>"><?php echo $produto->produto->nome; ?></a></span>
<br/>
</td>
<td class="text-center"><?php echo $produto->quantidade; ?></td>
<?php
$estoque = $produto->estoque;
if(!$produto->oferta->agrupamento_produtos && $produto->estoque == 0 && $produto->oferta->estoque > 0):
$estoque = $produto->oferta->estoque;
endif;
?>
<td class="text-center"><input type="number" class="form-control" name="produto-estoque[]" value="<?php echo ($estoque); ?>"/></td>
<td class="text-right"><?php echo number_format($produto->produto->preco_custo,2,',','.'); ?></td>
<td class="text-right">
<select name="valor_caixa_status[]">
<option value="1" <?php echo $produto->valor_caixa_status == 1 ? 'selected' : '' ?>>Sim</option>
<option value="0" <?php echo $produto->valor_caixa_status == 0 ? 'selected' : '' ?>>Não</option>
</select>
</td>
<td class="text-right">
<input name="qtd_produtos_caixa[]" type="number" min="0" value="<?php echo $produto->qtd_produtos_caixa ? $produto->qtd_produtos_caixa : '0' ?>" class="form-control" />
</td>
<td class="text-right"><?php echo number_format($produto->produto->preco_mercado,2,',','.'); ?></td>
<td class="text-right"><input type="number" class="form-control" name="produto-preco-venda[]" value="<?php echo ($produto->valor_unitario); ?>"/></td>
<td class="text-right"><input type="number" class="form-control" name="produto-ordem[]" value="<?php echo $produto->ordem; ?>"/></td>
<td>
<button type="button" data-id="<?php echo $produto->id_produto; ?>" class="btn btn-danger removeProduto"><i class="fa fa-trash fa-fw"></i></button>
</td>
</tr>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
<?php endif; ?>
</tbody>
</table>