@extends('layouts.layoutMaster') @section('title', 'Contas a Pagar') @section('vendor-style') @endsection @section('content')

{{ $stats['total'] ?? 0 }}

Total de Contas
Pendentes

{{ $stats['pendentes'] ?? 0 }}

Pagas

{{ $stats['pagas'] ?? 0 }}

Vencidas

{{ $stats['vencidas'] ?? 0 }}

Total a Pagar (Pendente)

R$ {{ number_format($stats['valor_total_pendente'] ?? 0, 2, ',', '.') }}

Total Pago

R$ {{ number_format($stats['valor_total_pago'] ?? 0, 2, ',', '.') }}

Filtros de Busca
Relatórios @pode('financeiro.contas-pagar.criar') Nova Conta a Pagar @endpode
Limpar
Contas a Pagar
@pode('financeiro.contas-pagar.excluir') @endpode
@forelse($contas as $conta) @if($conta->isParcelada()) @endif @if($conta->is_recorrente) @endif @empty @endforelse
Descrição Fornecedor Valor Total Valor Pago Vencimento Status Ações
{{ $conta->descricao }}
@if($conta->documento) Doc: {{ $conta->documento }} @endif @if($conta->isParcelada()) {{ $conta->numero_parcela }}/{{ $conta->total_parcelas }} @endif @if($conta->is_recorrente) {{ ucfirst($conta->tipo_recorrencia) }} @endif
{{ $conta->fornecedor->nome ?? '-' }} @if($conta->isParcelada()) R$ {{ number_format($conta->valor_total * $conta->total_parcelas, 2, ',', '.') }}
Parcela: R$ {{ number_format($conta->valor_total, 2, ',', '.') }} @else R$ {{ number_format($conta->valor_total, 2, ',', '.') }} @endif
@if($conta->valor_pago > 0) R$ {{ number_format($conta->valor_pago, 2, ',', '.') }} @if($conta->valor_pago < $conta->valor_total)
Restante: R$ {{ number_format($conta->valor_total - $conta->valor_pago, 2, ',', '.') }} @endif @else R$ 0,00 @endif
{{ \Carbon\Carbon::parse($conta->data_vencimento)->format('d/m/Y') }} @if($conta->isVencida())
Vencida @endif
{{ $conta->status_label }}
@if($conta->isParcelada()) @endif @if($conta->is_recorrente) @endif

Nenhuma conta a pagar encontrada

{{-- Paginação customizada --}}
@endsection @section('vendor-script') @endsection @section('page-script') @endsection