403Webshell
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 :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/html/vinumday2_0/storage/framework/views/3025c91d02157a65aae8b76c1f0e35b6f3e25403.php
<tr class="detalhes-item head-detalhes">
	<td>Oferta</td>
	<td>PEDIDO</td>
	<td>Data Pedido</td>
	<td class="text-center">Quant.</td>
	<td>Valor Unitário</td>
	<td>Valor Total</td>	
	<td colspan="2"></td>
	<?php if($adega->status == 'A'): ?>
	<td class="text-center"><input type="checkbox" name="selecionar_todos"/></td>
	<?php endif; ?>
</tr>
<?php foreach ($meusVinhos as $produto): ?>
	<?php $produto->quantidade_na_adega = ($produto->agrupamento_produtos ? $produto->quantidade_na_adega : $produto->quantidade_na_adega / $produto->quantidade_na_oferta); ?>
	<?php //$valor_unitario = $produto->total_no_pedido / $produto->quantidade_na_adega; ?>
	<?php $valor_unitario = $produto->preco_oferta; ?>
	<tr class="detalhes-item">
		<td class="nome-produto">
			<a href="<?php echo url('/oferta/'.$produto->slug); ?>">
				<img src="<?php echo e($produto->thumbnail_principal); ?>" alt="<?php echo $produto->nome; ?>">
			</a>
			<?php if (count($produto->produtos) == 1){ ?>
				<a href="<?php echo url('/admin/produto/edit/'.$produto->produtos[0]->produto->slug); ?>" target="_blank">
					<?php echo $produto->titulo.' '.$produto->sub_titulo; ?>
				</a>
				<?php 
				if($produto->produtos[0]->produto->atributosVariacao){
					$atributosVariacao = $produto->produtos[0]->produto->atributosVariacao;
					echo "<br>";
					$atributos = [];
					foreach ($atributosVariacao as $item) {
						$atributos[] = substr($item->atributo->variacao->nome, 0, 3).". {$item->atributo->nome}";
					}
					echo implode(" , ", $atributos);
				}
				?>
			<?php }else{ ?>
				<?php echo $produto->titulo.' '.$produto->sub_titulo; ?>
			<?php } ?>
		</td>
		<td class="text-center" width="10%"><a target="_blank" href="<?php echo url('admin/pedido-venda/edit/'.$produto->id_pedido_venda) ?>"><?php echo $produto->id_pedido_venda; ?></a></td>
		<td><?php echo date('d/m/Y H:i', strtotime($produto->data_pedido_venda)); ?></td>
		<td class="text-center" width="10%"><?php echo number_format($produto->quantidade_na_adega,0,'',''); ?> <?php echo (count($produto->produtos) > 1) ? 'Un.' : 'Gr.' ?></td> 
		<td class="text-right" width="15%">
			<span class="valor">R$ <?php echo number_format($valor_unitario,2,',','.'); ?></span>
		</td>
		<td class="valor text-right" width="20%">R$ <?php echo number_format($valor_unitario * $produto->quantidade_na_adega,2,',','.'); ?></td>
		<td width="5%" style="padding:20px 15px;" colspan="2">
			<?php if (count($produto->produtos) > 1){ ?>
				<i class="fa fa-plus-circle ver-detalhes"></i>
			<?php }else{ ?>
				<div class="w-15">
					<?php if($produto->produtos[0]->produto->disponibilidade < 0):?>
						<span style="color: red; font-weight: bold;">Indisponível</span>
					<?php endif; ?>
				</div>
			<?php } ?>
		</td>
		<?php if($adega->status == 'A'): ?>
		<td style="padding: 10px 0;" class="text-center" width="5%">
			<input type="checkbox" name="item_produto[]" value="<?php echo ((count($produto->produtos) > 1) ? $produto->id_pedido_venda : "{$produto->id_produto}_{$produto->id_pedido_venda}")?>" />
		</td> 
		<?php endif; ?>
	</tr>
	<?php if (count($produto->produtos) > 1){ ?>
		<tr class="detalhes-combo detalhes-item" style="background: #e5e5e3; border-bottom: none!important; text-transform: uppercase; font-size: 12px;">
			<th style="padding:8px 10px;">Produto</th>
			<th class="text-center" width="10%" style="padding:8px 10px;"></th>
			<th class="text-center" width="10%" style="padding:8px 10px;"></th>
			<th class="text-center" width="10%" style="padding:8px 10px;">Quant.</th> 
			<th class="text-right" width="15%" style="padding:8px 10px;"></th>
			<th class="text-right" width="20%" style="padding:8px 10px;"></th>
			<th style="padding:8px 10px;" width="5%" colspan="2"></th>
		</tr>
	
		<?php foreach ($produto->produtos as $item): ?>
			<tr class="detalhes-combo detalhes-item" style="border-bottom: 1px solid #e1e1e1;">
				<td style="padding: 10px 20px;" class="nome-produto"><a target="_blank" href="<?php echo url('/produto/detalhe/'.$item->produto->slug);?>"><img src="<?php echo e($item->produto->thumbnail_principal); ?>" alt="<?php echo $item->produto->nome; ?>"></a><a target="_blank" href="<?php echo url('/produto/detalhe/'.$item->produto->slug) ?>"><?php echo $item->produto->nome; ?></a></td>
				<td style="padding: 10px 0;" class="text-center" width="10%"></td>
				<td style="padding: 10px 0;" class="text-center" width="10%"></td>
				<td style="padding: 10px 0;" class="text-center" width="10%">
					<?php echo $item->quantidade * $produto->quantidade_na_adega  ?> Gr.
					<span class="valor"></span>
				</td>
				<td style="padding: 10px 0;" class="valor text-right" width="15%"></td>
				<td style="padding: 10px 0;" class="text-center" width="20%"></td> 
				<td style="padding: 10px 0;" width="5%" colspan="2">
					<?php if($item->produto->disponibilidade < 0):?>
						<span style="color: red; font-weight: bold;">Indisponível</span>
					<?php endif; ?>
				</td>
			</tr>
		<?php endforeach ?>


	<?php } ?>
<?php endforeach ?>

<?php if($adega->status == 'A'): ?>
<script type="text/javascript">

	$(document).ready(function(){

		$('[name="selecionar_todos"]').click(function(){
            if($(this).is(':checked')){
                $('[name="item_produto[]"]').prop('checked', true);
            }else{
                $('[name="item_produto[]"]').prop('checked', false);
            }
        });

	});

</script>
<?php endif; ?>

Youez - 2016 - github.com/yon3zu
LinuXploit