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

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

Total de Contas
Pendentes

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

Recebidas

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

Vencidas

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

Total a Receber (Pendente)

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

Total Recebido

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

Filtros de Busca
Relatórios @pode('financeiro.contas-receber.criar') Nova Conta a Receber @endpode
Limpar
Contas a Receber
@pode('financeiro.contas-receber.excluir') @endpode
@forelse($contas as $conta) @if($conta->isParcelada()) @endif @if($conta->is_recorrente) @endif @empty @endforelse
@pode('financeiro.contas-receber.excluir') @endpode Descrição Cliente Valor Total Valor Recebido Vencimento Status Ações
@pode('financeiro.contas-receber.excluir') @endpode {{ $conta->descricao }} #{{ $conta->id_contas }}
@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->cliente->nome ?? '-' }} R$ {{ number_format($conta->valor_total, 2, ',', '.') }} @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 receber encontrada

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