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

 

Command :


[ Back ]     

Current File : /var/www/html/vinumday2_0/storage/framework/views/838e0835420f6eec01b37b185ba40c662f23b20c.php
<?php $__env->startSection('content'); ?>

<!-- Content Wrapper. Contains page content -->
<div class="content-wrapper">
	<!-- Content Header (Page header) -->
	<section class="content-header">
		<h1>
			Pedido Entrega
			<small>Relatório</small>
		</h1>
		<ol class="breadcrumb">
			<li><a href="<?php echo e(url('admin')); ?>"><i class="fa fa-dashboard"></i> Dashboard</a></li>
			<li class="active">Pedido Entrega</li>
		</ol>
	</section>

	<!-- Main content -->
	<section class="content">
		<div class="row">
			<div class="col-xs-12">

				<div class="box">
					<div class="box-header no-print">
						<h4>Filtros</h4>
						<form method="GET" action="<?php echo url('admin/pedido-entrega/relatorio'); ?>">
							<div class="row">
								<div class="col-md-6">
									<div class="row">
										<div class="col-md-6">
											<h5>Situação:</h5>
											<select name="id_pedido_entrega_status" class="form-control select2">
												<option <?php echo (isset($id_pedido_entrega_status) && '' == $id_pedido_entrega_status) ? 'selected' : ''; ?> value="">Todos</option>
												<?php foreach ($listaStatus as $status): ?>
													<option <?php echo (isset($id_pedido_entrega_status) && $status->id == $id_pedido_entrega_status) ? 'selected' : ''; ?> value="<?php echo $status->id; ?>"><?php echo $status->nome; ?></option>
												<?php endforeach ?>
											</select>
										</div>
										<div class="col-md-6">
											<h5>Cliente:</h5>
											<input type="text" value="<?php echo (isset($cliente)) ? $cliente : ''; ?>" class="form-control" name="cliente">
										</div>
										<div class="col-md-6">
											<h5>Empresa:</h5>
											<select name="empresa_id" id="empresa_id" class="form-control select2">
												<option value="0">Todas</option>
												<?php foreach($empresas as $empresa):
													echo '<option value="' . $empresa->id . '" '.(isset($empresa_id) && $empresa_id == $empresa->id ? 'selected="selected"' : '').'>' . $empresa->nome . '</option>';
												endforeach; 
												?>
											</select>
										</div>
										<div class="col-md-6">
											<h5>Unidade:</h5>
											<select name="unidade_negocio_id" id="unidade_negocio_id" class="form-control select2">
												<option value="0">Todas</option>
												<?php foreach($unidades as $unidade):
													echo '<option value="' . $unidade->id . '" '.(isset($unidade_negocio_id) && $unidade_negocio_id == $unidade->id ? 'selected="selected"' : '').'>' . $unidade->nome . '</option>';
												endforeach; 
												?>
											</select>
										</div>
									</div>
								</div>
								<div class="col-md-6">
									<div class="row">
										<div class="col-md-6">
											<h5>Data Inicial:</h5>
											<input type="date" value="<?php echo (isset($data_inicial)) ? $data_inicial : ''; ?>" class="form-control" name="data_inicial">
										</div>
										<div class="col-md-6">
											<h5>Data Final:</h5>
											<input type="date" value="<?php echo (isset($data_final)) ? $data_final : ''; ?>" class="form-control" name="data_final">
										</div>
										<div class="col-md-6">
											<h5>Ordernar por:</h5>
											<input type="hidden" name="order_by_produtos" id="order_by_produtos" value="produto.localizador">
											<select name="order_by" class="form-control">
												<option <?php echo (isset($order_by) && $order_by == 'pedido_entrega.id') ? 'selected' : ''; ?> value="pedido_entrega.id">Código do Pedido</option>
												<option <?php echo (isset($order_by) && $order_by == 'pedido_entrega.data_solicitacao') ? 'selected' : ''; ?> value="pedido_entrega.data_solicitacao">Data / Hora</option>
												<option <?php echo (isset($order_by) && $order_by == 'transportadora.nome') ? 'selected' : ''; ?> value="transportadora.nome">Transportadora</option>
												<option <?php echo (isset($order_by) && $order_by == 'cadastro.nome') ? 'selected' : ''; ?> value="cadastro.nome">Cliente</option>
											</select>
										</div>
										<div class="col-md-6">
											<h5>Ordem:</h5>
											<select name="ordem" class="form-control">
												<option <?php echo (isset($ordem) && $ordem == 'DESC') ? 'selected' : ''; ?> value="DESC">Decrescente</option>
												<option <?php echo (isset($ordem) && $ordem == 'ASC') ? 'selected' : ''; ?> value="ASC">Crescente</option>
											</select>
										</div>
									</div>
									
								</div>
								<div class="col-md-3">
									<button type="submit" class="btn btn-block btn-primary" style="margin-top:15px;">Filtrar</button>
								</div>
							</div>
						</form>
						
						
					</div>
					<!-- /.box-header -->
					<div class="box-body relatorio-pedidos">
						<h5>Número de Registros: <?php echo count($pedidos); ?></h5>

						<?php foreach ($pedidos as $pedido): ?>
							<div class="item">
								<div class="dados-pedido">
									<table class="table table-bordered">
										<tr>
											<td width="20%"><strong>Código</strong></td>
											<td width="30"><?php echo $pedido->id; ?></td>
											<td width="20%"><strong>Status</strong></td>
											<td width="30%"><?php echo $pedido->nome_status; ?></td>
										</tr>
										<tr>
											<td><strong>Data / Hora</strong></td>
											<td><?php echo date('d/m/Y H:i:s', strtotime($pedido->data_solicitacao)); ?></td>
											<td><strong>Frete</strong></td>
											<?php $status = ($pedido->status_frete == 2 || $pedido->status_frete == 7 || $pedido->status_frete == 3) ? 'Aprovado' : 'Em aberto'; ?>
											<td>
												<?php 
												if($pedido->retirada_local){
													echo "<strong>RETIRADA NO LOCAL: " . date('d/m/Y', strtotime($pedido->data_retirada)) . " - " . date('H:i', strtotime($pedido->data_retirada))."h</strong>";
												}else{
													echo $pedido->valor_frete ? 'R$ '.number_format($pedido->valor_frete,2,',','.').' ('.$status.')' : 'Gratuito';
													echo ($pedido->cotacaoValor ? ' | ' . $pedido->cotacaoValor->transportadora->nome : '') . ' ' . ($pedido->cotacaoValor ? ' | R$ ' . number_format($pedido->cotacaoValor->valor, 2, ',', '.') : '');
												}
												?>
											</td>
										</tr>
										<tr>
											<td><strong>Cliente</strong></td>
											<td>
												<?php echo $pedido->nome_cliente; ?> <?php echo $pedido->sobrenome_cliente; ?>
												<?php if(count($pedido->pedidos) == 1): ?>
													<span style="color: red; font-weight: bold; padding-left: 5px; font-size: 16px;">(PRIMEIRA ENTREGA)</span>
												<?php endif;?>
											</td>
											<td><strong>NF</strong></td>
											<td><?php echo $pedido->nota_fiscal_erp; ?></td>
										</tr>
										<tr>
											<td><strong>Endereço</strong></td>
											<td>
												<?php if($pedido->endereco): ?>
													<?php echo $pedido->logradouro; ?>, <?php echo $pedido->numero; ?> <?php echo $pedido->complemento ? ', '.$pedido->complemento : ''; ?>, <?php echo $pedido->bairro; ?>
												<?php elseif($pedido->enderecoPrincipalCliente): ?>
													<?php echo $pedido->enderecoPrincipalCliente->logradouro; ?>, <?php echo $pedido->enderecoPrincipalCliente->numero; ?> <?php echo $pedido->enderecoPrincipalCliente->complemento ? ', '.$pedido->enderecoPrincipalCliente->complemento : ''; ?>, <?php echo $pedido->enderecoPrincipalCliente->bairro; ?>
												<?php endif; ?>
											</td>
											<td><strong>Total NF</strong></td>
											<td>
												<?php 
												$garrafas    = 0;
												$total_valor = 0;
												foreach ($pedido->produtos as $produto) {
													$garrafas    += (int) number_format($produto->quantidade_produto,0);
													$total_valor += $produto->valor_total_produto;
												}

												if($pedido->valor_frete){
													$total_valor += $pedido->valor_frete;
												}

												echo 'R$ ' . number_format($total_valor,2,',','.');

												?>
											</td>
										</tr>
										<tr>
											<td><strong>Cidade / UF</strong></td>
											<td>
												<?php if($pedido->endereco): ?>
													<?php echo $pedido->nome_cidade; ?> / <?php echo $pedido->nome_estado; ?>
												<?php elseif($pedido->enderecoPrincipalCliente): ?>
													<?php echo ($pedido->enderecoPrincipalCliente->cidade ? $pedido->enderecoPrincipalCliente->cidade->nome : ''); ?> / <?php echo ($pedido->enderecoPrincipalCliente->estado ? $pedido->enderecoPrincipalCliente->estado->nome : ''); ?>
												<?php endif; ?>
											</td>
											<td><strong>Qtde. de Volumes</strong></td>
											<td>
												<?php
												$volumes = $garrafas / 9;
												echo ceil($volumes);
												?>
											</td>
										</tr>
										<tr>
											<td><strong>CEP</strong></td>
											<td>
												<?php if($pedido->endereco): ?>
													<?php echo $pedido->cep; ?>
												<?php elseif($pedido->enderecoPrincipalCliente): ?>
													<?php echo $pedido->enderecoPrincipalCliente->cep; ?>
												<?php endif; ?>
											</td>
											<td><strong>Peso NF</strong></td>
											<td><?php echo (!empty($pedido->peso_nota_fiscal_erp) ? number_format($pedido->peso_nota_fiscal_erp, 2, ',', '.') : '')?></td>
										</tr>
										<tr>
											<td><strong>Empresa</strong></td>
											<td><?php echo (isset($pedido->empresa) ? $pedido->empresa->sigla : '')?></td>
											<td><strong>Observações do Cliente</strong></td>
											<td><?php echo e($pedido->observacoes); ?></td>
										</tr>
										<tr>
											<td><strong>Unidade</strong></td>
											<td><?php echo (isset($pedido->unidadeNegocio) ? $pedido->unidadeNegocio->nome : '')?></td>
											<td><strong>Observações Internas</strong></td>
											<td><?php echo e(isset($pedido->observacoes_internas) ? $pedido->observacoes_internas : ''); ?></td>
										</tr>
										<tr>
											<td><strong>Confraria</strong></td>
											<td><?php echo (isset($pedido->confraria) ? $pedido->confraria->nome : '')?></td>
											<td><strong>Observação do Pedido</strong></td>
											<td><?php echo e(isset($pedido->observacoes_pedido) ? $pedido->observacoes_pedido : ''); ?></td>
										</tr>
									</table>
								</div>
								<div class="items-pedido">
									<table class="table table-bordered">
										<thead>
											<tr>
												<th>Descrição do item</th>
												<th>Código</th>
												<th>Localizador</th>
												<th>Pd. Venda</th>
												<th>Qtd.</th>
												<th class="text-right">Preço Unitário</th>
											</tr>
										</thead>
										<tbody>
											<?php $total_quantidade = 0; ?>
											<?php $total_valor = 0; ?>
											<?php foreach ($pedido->produtos as $produto): ?>
												<tr>
													<td>
														<?php echo $produto->nome; ?>
													</td>
													<td><?php echo $produto->id_estoque; ?></td>
													<td><?php echo $produto->localizador; ?></td>
													<td><?php echo $produto->id_pedido_venda; ?></td>
													<td><?php echo number_format($produto->quantidade_produto,0); ?></td>
													<td class="text-right">
														<?php $valor_produto = (!empty($produto->quantidade_produto) && $produto->quantidade_produto > 0) ? ($produto->valor_total_produto / $produto->quantidade_produto) : 0; ?>
														R$ <?php echo number_format($valor_produto,2,',','.'); ?>
													</td>
												</tr>
												<?php $total_quantidade += $produto->quantidade_produto; ?>
												<?php $total_valor += $produto->valor_total_produto; ?>
											<?php endforeach ?>
											<tr>
												<td colspan="4">Total:</td>
												<td><?php echo number_format($total_quantidade,0); ?></td>
												<td class="text-right">R$ <?php echo number_format($total_valor,2,',','.'); ?></td>
											</tr>
										</tbody>
									</table>
								</div>
							</div>
						<?php endforeach ?>

					</div>
					<!-- /.box-body -->
					<div class="box-footer">
						
					</div>
				</div>
				<!-- /.box -->
			</div>
			<!-- /.col -->
		</div>
		<!-- /.row -->
	</section>
	<!-- /.content -->
</div>
<!-- /.content-wrapper -->
<script type="text/javascript">
	$(document).ready(function(){
		$('.select2').select2();
	});
</script>
<?php $__env->stopSection(); ?>

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

Youez - 2016 - github.com/yon3zu
LinuXploit