| 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 : |
<?php $__env->startSection('content'); ?>
<!-- Content Wrapper. Contains page content -->
<div class="content-wrapper">
<!-- Content Header (Page header) -->
<section class="content-header">
<h1>
Requisição Compra
<small>Listagem</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">Requisição Compra</li>
</ol>
</section>
<!-- Main content -->
<section class="content">
<div class="row">
<div class="col-xs-12">
<div class="box">
<div class="box-header">
<?php if($current_role->hasAccess($current_module->nome_tabela.'.create')){ ?>
<a href="<?php echo e(url('admin/requisicao-compra/add')); ?>" class="btn btn-success"><i class="fa fa-plus"></i> Adicionar</a>
<?php } ?>
<hr>
</div>
<!-- /.box-header -->
<div class="box-body">
<div class="topmenu">
<?php foreach ($filtros as $filtro): ?>
<?php $width = 100/count($filtros); ?>
<?php $width = number_format($width, 2, '.', ''); ?>
<a href="<?php echo e(url('admin/requisicao-compra?filtro='.$filtro->id)); ?>" class="item <?php echo ($filtro->id == $filtro_atual) ? 'active' : (($filtro_atual) ? 'inactive' : '' ); ?>" style="width:<?php echo $width; ?>%">
<i class="fa fa-angle-double-right fa-fw"></i>
<?php echo $filtro->nome; ?>
<?php if($filtro->id == $filtro_atual){ ?>
<span data-href="<?php echo e(url('admin/requisicao-compra')); ?>" class="close"> <i class="fa fa-times"></i></span>
<?php } ?>
</a>
<?php endforeach ?>
</div>
<div class="row">
<div class="col-md-12">
<?php echo $requisicoes_compra->total() . " registro(s) encontrado(s)"; ?>
</div>
</div>
<div class="row">
<div class="col-md-12">
<form class="pull-right relatorio-pedidos-filtros" action="<?php echo url('admin/requisicao-compra'); ?>" method="GET">
<div class="row">
<div class="col-md-3">
<div class="row">
<div class="col-md-12">
<h5>Produto:</h5>
<select name="term_produto_id" id="term_produto_id" class="form-control select2">
<option value="0">Todas</option>
<?php foreach($produtos as $produto):
echo '<option value="' . $produto->id . '" '.(isset($termos['term_produto_id']) && $termos['term_produto_id'] == $produto->id ? 'selected="selected"' : '').'>' . $produto->nome . '</option>';
endforeach;
?>
</select>
</div>
</div>
</div>
<div class="col-md-3">
<div class="row">
<div class="col-md-12">
<h5>Tipo:</h5>
<select name="term_tipo" id="term_tipo" class="form-control">
<option value="0">Todos</option>
<?php foreach($tipos as $key => $tipo):
echo '<option value="' . $key . '" '.(isset($termos['term_tipo']) && $termos['term_tipo'] == $key ? 'selected="selected"' : '').'>' . $tipo . '</option>';
endforeach;
?>
</select>
</div>
</div>
</div>
<div class="col-md-2">
<h5>Quantidade:</h5>
<input value="<?php echo (isset($_GET['term_quantidade'])) ? $_GET['term_quantidade'] : '' ?>" type="text" name="term_quantidade" class="form-control">
</div>
<div class="col-md-2">
<h5>Observações:</h5>
<input type="hidden" name="filtro" value="<?php echo (isset($_GET['filtro'])) ? $_GET['filtro'] : '' ?>">
<input value="<?php echo (isset($_GET['term'])) ? $_GET['term'] : '' ?>" type="text" name="term" class="form-control">
</div>
<div class="col-md-1">
<h5> </h5>
<button class="btn btn-primary">Buscar</button>
</div>
</div>
</form>
</div>
</div>
<table class="table table-bordered table-striped">
<thead>
<tr>
<th>ID</th>
<th width="15%">Data \ Hora</th>
<th>SKU</th>
<th>Produto</th>
<th>Fornecedor</th>
<th>Quantidade</th>
<th width="10%">Tipo</th>
<th>Ordem</th>
<th>Status</th>
<th>Solicitante</th>
<th>Observações</th>
<th class="th-action">Ação</th>
</tr>
</thead>
<tbody>
<?php foreach ($requisicoes_compra as $item): ?>
<tr>
<td><?php echo $item->id; ?></td>
<td><?php echo date('d/m/Y H:i', strtotime($item->data_inclusao)); ?></td>
<td><?php echo $item->produto->sku; ?></td>
<td><a href="<?php echo e(url('admin/produto/edit/' . $item->produto->slug)); ?>" target="_blank"><?php echo $item->produto->nome; ?></a></td>
<td><?php echo $item->produto->fornecedor->nome; ?></td>
<td><?php echo $item->quantidade; ?></td>
<td><?php echo $item->descTipo(); ?></td>
<?php if($item->ordem): ?>
<td><a href="<?php echo e(url('admin/ordem-compra/edit/' . $item->ordem->id)); ?>" target="_blank"><?php echo $item->ordem->id ?> (<?php echo e($item->ordem->descStatus()); ?>)</a></td>
<?php else: ?>
<td></td>
<?php endif; ?>
<td><?php echo $item->descStatus(); ?></td>
<td><?php echo (isset($item->solicitante) ? $item->solicitante->first_name : ''); ?></td>
<td><?php echo $item->observacoes; ?></td>
<td>
<?php if($current_role->hasAccess($current_module->nome_tabela.'.update')){ ?>
<a href="/admin/requisicao-compra/edit/<?php echo $item->id; ?>" title="editar" class="btn btn-primary"><i class="fa fa-pencil-alt"></i></a>
<!--<a href="/admin/ordem-compra/gerador?requisicao=<?php echo $item->id; ?>" title="atender" class="btn btn-primary"><i class="fas fa-fw fa-wine-glass-alt"></i></a>-->
<?php } ?>
<?php if($current_role->hasAccess($current_module->nome_tabela.'.delete')){ ?>
<a href="/admin/requisicao-compra/delete/<?php echo $item->id; ?>" class="btn btn-danger deletar"><i class="fa fa-trash"></i></a>
<?php } ?>
</td>
</tr>
<?php endforeach ?>
</tbody>
<tfoot>
<tr>
<th>ID</th>
<th width="15%">Data \ Hora</th>
<th>SKU</th>
<th>Produto</th>
<th>Fornecedor</th>
<th>Quantidade</th>
<th width="10%">Tipo</th>
<th>Ordem</th>
<th>Status</th>
<th>Solicitante</th>
<th>Observações</th>
<th class="th-action">Ação</th>
</tr>
</tfoot>
</table>
<div class="text-center">
<?php
echo $requisicoes_compra->appends([
'term' => (isset($_GET['term'])) ? $_GET['term'] : '',
'filtro' => (isset($_GET['filtro'])) ? $_GET['filtro'] : '',
'term_tipo' => (isset($_GET['term_tipo'])) ? $_GET['term_tipo'] : '',
'term_quantidade' => (isset($_GET['term_quantidade'])) ? $_GET['term_quantidade'] : '',
'term_produto_id' => (isset($_GET['term_produto_id'])) ? $_GET['term_produto_id'] : '',
])->links();
?>
</div>
</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(); ?>