@extends('layouts.app', ['title' => 'Caixa']) @section('css') @endsection @section('content')
@if(__countLocalAtivo() > 1)
Local: {{ $item->localizacao ? $item->localizacao->descricao : '' }}
@endif @if($item->contaEmpresa)
Conta: {{ $item->contaEmpresa->nome }}
@endif
Usuário
{{ $item->usuario->name }}
Data de Abertura
{{ __data_pt($item->created_at) }}
Data de Fechamento
{{ __data_pt($item->data_fechamento) }}
Valor de Abertura
{{ __moeda($item->valor_abertura) }}
Valor de fechamento
{{ __moeda($item->valor_fechamento) }}
Valor em dinheiro
{{ __moeda($item->valor_dinheiro) }}
Valor em cheque
{{ __moeda($item->valor_cheque) }}
Valor outros
{{ __moeda($item->valor_outros) }}
@if($item->contaEmpresa)
Conta
{{ $item->contaEmpresa->nome }}
@endif
@if($item->observacao)
{{ $item->observacao }}
@endif
Total por Tipo de Pagamento Vendas
@foreach($somaTiposPagamento as $key => $tp) @if($tp > 0)
{{App\Models\Nfce::getTipoPagamento($key)}}
@php if($key == '01') $somaDinheiro = $tp; @endphp
R$ {{ __moeda($tp) }}
@endif @endforeach
Movimentações de Vendas
@forelse ($vendas as $i) @empty @endforelse
ID TIPO CLIENTE DATA FORMA(S) DE PAGAMENTO VALOR TOTAL
{{ $i->numero_sequencial }} {{ $i->tipo }} {{ $i->cliente ? $i->cliente->razao_social : 'NÃO IDENTIFICADO' }} {{ __data_pt($i->created_at) }} @foreach($i->fatura as $f) {{ App\Models\Nfce::getTipoPagamento($f->tipo_pagamento) }} R$ {{ __moeda($f->valor) }}
@endforeach
R$ {{ __moeda($i->total) }}
Nenhum registro
Movimentações de Compras
@forelse ($compras as $i) @empty @endforelse
ID FORNECEDOR DATA FORMA(S) DE PAGAMENTO VALOR TOTAL
{{ $i->numero_sequencial }} {{ $i->fornecedor ? $i->fornecedor->razao_social : 'NÃO IDENTIFICADO' }} {{ __data_pt($i->created_at) }} @foreach($i->fatura as $f) {{ App\Models\Nfce::getTipoPagamento($f->tipo_pagamento) }} R$ {{ __moeda($f->valor) }}
@endforeach
R$ {{ __moeda($i->total) }}
Nenhum registro
Movimentações de Recebimentos
@forelse ($contasReceber as $c) @empty @endforelse
CLIENTE DESCRIÇÃO DATA VENCIMENTO DATA RECEBIMENTO FORMA DE PAGAMENTO VALOR TOTAL VALOR RECEBIDO
{{ $c->cliente ? $c->cliente->razao_social : '--' }} {{ $c->descricao ?? '--' }} {{ __data_pt($c->data_vencimento, 0) }} {{ __data_pt($c->data_recebimento, 0) }} {{ App\Models\Nfce::getTipoPagamento($c->tipo_pagamento) }} {{ __moeda($c->valor_integral) }} {{ __moeda($c->valor_recebido) }}
Nenhum registro
Movimentações de Pagamentos
@forelse ($contasPagar as $c) @empty @endforelse
FORNECEDOR DESCRIÇÃO DATA VENCIMENTO DATA RECEBIMENTO FORMA DE PAGAMENTO VALOR TOTAL VALOR RECEBIDO
{{ $c->fornecedor ? $c->fornecedor->razao_social : '--' }} {{ $c->descricao ?? '--' }} {{ __data_pt($c->data_vencimento, 0) }} {{ __data_pt($c->data_pagamento, 0) }} {{ App\Models\Nfce::getTipoPagamento($c->tipo_pagamento) }} {{ __moeda($c->valor_integral) }} {{ __moeda($c->valor_pago) }}
Nenhum registro
Devoluções e Trocas
@forelse ($trocas as $t) @empty @endforelse
# VENDA CLIENTE DATA FORMA DE PAGAMENTO VALOR TROCA/DEVOLUÇÃO VALOR ORIGINAL DA VENDA
{{ $t->numero_sequencial }} {{ $t->nfe ? ($t->nfe ? $t->nfe->numero_sequencial : '--') : ($t->nfce ? $t->nfce->numero_sequencial : '--') }} {{ $t->nfce ? ($t->nfce->cliente ? $t->nfce->cliente->razao_social : '--') : ($t->nfe ? $t->nfe->cliente->razao_social : '--') }} {{ __data_pt($t->created_at) }} {{ App\Models\Nfce::getTipoPagamento($t->tipo_pagamento) }} {{ __moeda($t->valor_troca) }} {{ __moeda($t->valor_original) }}
Nenhum registro
Demonstrativo Financeiro do Caixa
Entradas
Valor de Abertura R$ {{ __moeda($item->valor_abertura) }}
Vendas R$ {{ __moeda($somaVendas) }}
Contas Recebidas R$ {{ __moeda($somaContasReceber) }}
Suprimentos R$ {{ __moeda($somaSuprimentos) }}
Trocas - Entradas (Diferenças pagas pelo cliente) R$ {{ __moeda($trocasPagasPorCliente) }}
Total de Entradas @php $totalEntradas = $trocasPagasPorCliente + $somaSuprimentos + $item->valor_abertura + $somaVendas + $somaContasReceber; @endphp R$ {{__moeda($totalEntradas) }}
Saídas
Contas Pagas R$ {{ __moeda($somaContasPagar) }}
Compras R$ {{ __moeda($somaCompras) }}
Sangrias R$ {{ __moeda($somaSangrias) }}
Trocas - Saídas (Diferenças pagas ao cliente) R$ {{ __moeda($trocasPagasAoCliente) }}
Total de Saídas @php $totalSaidas = $somaCompras + $somaContasPagar + $somaSangrias + $trocasPagasAoCliente; @endphp R$ {{ __moeda($totalSaidas) }}
Saldos e Pendências
Saldo em Caixa R$ {{ __moeda($totalEntradas - $totalSaidas) }}
Vendas Pendentes (Crediário) R$ {{ __moeda($somaPendentesCrediario) }}
Vendas Pendentes (Boleto) R$ {{ __moeda($somaPendentBoleto) }}
Vendas Pendentes (Crédito Loja) R$ {{ __moeda($somaPendentesCreditoLoja) }}
Total Vendas Pendentes R$ {{ __moeda($somaPendentesCrediario + $somaPendentBoleto + $somaPendentesCreditoLoja) }}
@endsection