@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
| Vencimento | Tipo | Descrição | Pessoa | Valor | Status | Açõ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')@else—@endif |
| Nenhum lançamento financeiro. | ||||||