init commit
All checks were successful
build-api-image / build (push) Successful in 51s

This commit is contained in:
Antonio Lopes dos Santos
2026-08-04 16:52:02 -03:00
commit afec302c3e
11594 changed files with 1636728 additions and 0 deletions

View File

@@ -0,0 +1,212 @@
@extends('impressoes.layout1.content')
@section('conteudo')
<style>
.table-balancete > thead > tr > th,
.table-balancete > tfoot > tr > th { text-align: center; white-space: nowrap; }
.col-min { width: 1%; }
</style>
<fieldset>
<legend>Filtros</legend>
<div class="row">
<div class="col-6">
<strong>Período:</strong>
</div>
<div class="col-6">
<strong>Grupo:</strong>
</div>
</div>
<div class="row">
<div class="col-6">
De {{ $inicio }} até {{ $fim }}
</div>
<div class="col-6">
{{ $grupo ?? 'Todos' }}
</div>
</div>
<div class="row">
<div class="col-6">
<strong>Subgrupo:</strong>
</div>
</div>
<div class="row">
<div class="col-6">
{{ $subgrupo ?? 'Todos' }}
</div>
</div>
</fieldset>
<table class="table table-balancete">
<thead>
<tr>
<th colspan="{{ $colunas->contains('material')
? ($colunas->contains('subgrupo') ? 4 : 3)
: ($colunas->contains('subgrupo') ? 2 : 1)
}}"></th>
<th colspan="{{ $colunas->contains('saldoFisico') && $colunas->contains('saldoFinanceiro') ? 2 : 1 }}">
Saldo anterior
</th>
<th colspan="{{ $colunas->contains('saldoFisico') && $colunas->contains('saldoFinanceiro') ? 2 : 1 }}">
Entrada
</th>
<th colspan="{{ $colunas->contains('saldoFisico') && $colunas->contains('saldoFinanceiro') ? 2 : 1 }}">
Saída
</th>
<th colspan="{{ $colunas->contains('saldoFisico') && $colunas->contains('saldoFinanceiro') ? 2 : 1 }}">
Saldo atual
</th>
</tr>
<tr>
@if($colunas->contains('material'))
<th class="col-min">Código</th>
<th>Material</th>
@endif
<th>Grupo</th>
@if($colunas->contains('subgrupo'))
<th>Subgrupo</th>
@endif
@if($colunas->contains('saldoFisico'))
<th class="col-min">Físico</th>
@endif
@if($colunas->contains('saldoFinanceiro'))
<th class="col-min">Financeiro</th>
@endif
@if($colunas->contains('saldoFisico'))
<th class="col-min">Físico</th>
@endif
@if($colunas->contains('saldoFinanceiro'))
<th class="col-min">Financeiro</th>
@endif
@if($colunas->contains('saldoFisico'))
<th class="col-min">Físico</th>
@endif
@if($colunas->contains('saldoFinanceiro'))
<th class="col-min">Financeiro</th>
@endif
@if($colunas->contains('saldoFisico'))
<th class="col-min">Físico</th>
@endif
@if($colunas->contains('saldoFinanceiro'))
<th class="col-min">Financeiro</th>
@endif
</tr>
</thead>
<tbody>
@foreach ($itens->all() as $item)
<tr>
<tr>
@if($colunas->contains('material'))
<td>{{ $item->material_codigo }}</td>
<td>{{ $item->material_descricao }}</td>
@endif
<td>{{ $item->grupo_nome }}</td>
@if($colunas->contains('subgrupo'))
<td>{{ $item->subgrupo_nome }}</td>
@endif
@if($colunas->contains('saldoFisico'))
<td class="text-center">{{ $item->saldo_anterior_fisico }}</td>
@endif
@if($colunas->contains('saldoFinanceiro'))
<td class="text-center">{{ $item->saldo_anterior_financeiro }}</td>
@endif
@if($colunas->contains('saldoFisico'))
<td class="text-center">{{ $item->saldo_entrada_fisico }}</td>
@endif
@if($colunas->contains('saldoFinanceiro'))
<td class="text-center">{{ $item->saldo_entrada_financeiro }}</td>
@endif
@if($colunas->contains('saldoFisico'))
<td class="text-center">{{ $item->saldo_saida_fisico }}</td>
@endif
@if($colunas->contains('saldoFinanceiro'))
<td class="text-center">{{ $item->saldo_saida_financeiro }}</td>
@endif
@if($colunas->contains('saldoFisico'))
<td class="text-center">{{ $item->saldo_atual_fisico }}</td>
@endif
@if($colunas->contains('saldoFinanceiro'))
<td class="text-center">{{ $item->saldo_atual_financeiro }}</td>
@endif
</tr>
</tr>
@endforeach
</tbody>
<tfoot>
<tr>
@if($colunas->contains('material') && $colunas->contains('subgrupo'))
<th colspan="4"></th>
@elseif($colunas->contains('material') && !$colunas->contains('subgrupo'))
<th colspan="3"></th>
@elseif(!$colunas->contains('material') && $colunas->contains('subgrupo'))
<th colspan="2"></th>
@else
<th></th>
@endif
@if($colunas->contains('saldoFisico'))
<th>{{ $totalizadores['saldo_anterior_fisico'] }}</th>
@endif
@if($colunas->contains('saldoFinanceiro'))
<th>{{ $totalizadores['saldo_anterior_financeiro'] }}</th>
@endif
@if($colunas->contains('saldoFisico'))
<th>{{ $totalizadores['saldo_entrada_fisico'] }}</th>
@endif
@if($colunas->contains('saldoFinanceiro'))
<th>{{ $totalizadores['saldo_entrada_financeiro'] }}</th>
@endif
@if($colunas->contains('saldoFisico'))
<th>{{ $totalizadores['saldo_saida_fisico'] }}</th>
@endif
@if($colunas->contains('saldoFinanceiro'))
<th>{{ $totalizadores['saldo_saida_financeiro'] }}</th>
@endif
@if($colunas->contains('saldoFisico'))
<th>{{ $totalizadores['saldo_atual_fisico'] }}</th>
@endif
@if($colunas->contains('saldoFinanceiro'))
<th>{{ $totalizadores['saldo_atual_financeiro'] }}</th>
@endif
</tr>
</tfoot>
</table>
@endsection