@extends('layouts.app') @section('title','Financeiro') @section('content') @php $typeLabels=['payable'=>'A pagar','receivable'=>'A receber']; $statusLabels=['open'=>'Em aberto','paid'=>'Pago','cancelled'=>'Cancelado']; $methodLabels=['cash'=>'Dinheiro','pix'=>'Pix','debit_card'=>'Débito','credit_card'=>'Crédito','bank_transfer'=>'Transferência','bank_slip'=>'Boleto','other'=>'Outro']; @endphp

Financeiro

Contas, vencimentos e visão consolidada com o crediário.
Ver inadimplência
Contas a pagar

R$ {{ number_format($openPayables,2,',','.') }}

Em aberto
A pagar vencido

R$ {{ number_format($overduePayables,2,',','.') }}

Exige atenção
Recebíveis avulsos

R$ {{ number_format($openManualReceivables,2,',','.') }}

Crediário em aberto

R$ {{ number_format($creditReceivable,2,',','.') }}

Controlado nas parcelas dos clientes

Novo lançamento

@csrf
@forelse($entries as $entry)@empty@endforelse
VencimentoTipoDescriçãoPessoaValorStatusAções
{{ $entry->due_date->format('d/m/Y') }}@if($entry->status==='open' && $entry->due_date->lt(today()))
Vencido
@endif
{{ $typeLabels[$entry->type] ?? $entry->type }}{{ $entry->description }}@if($entry->category)
{{ $entry->category }}
@endif
{{ $entry->supplier?->trade_name ?: $entry->supplier?->name ?: $entry->customer?->name ?: '—' }}R$ {{ number_format((float)$entry->amount,2,',','.') }}{{ $statusLabels[$entry->status] ?? $entry->status }}@if($entry->paid_at)
{{ $entry->paid_at->format('d/m/Y H:i') }}
@endif
@if($entry->status==='open')
@csrf @method('PATCH')
@csrf @method('PATCH')
@else—@endif
Nenhum lançamento financeiro.
{{ $entries->links() }}
@endsection