@extends('layouts.layoutMaster') @section('title', 'Boletos') @php $podeOperarBoletos = \Perm::pode(auth()->user(), 'financeiro.boletos'); @endphp @section('vendor-style') @endsection @section('content')

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

Total de Boletos
Pendentes

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

Pagos

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

Vencidos

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

Total Emitido

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

Total Recebido

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

Pendente Recebimento

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

Filtros de Busca
Boletos Gerados
@if(request()->hasAny(['status', 'id_bancos', 'data_inicio', 'data_fim', 'busca'])) Limpar Filtros @endif
@forelse($boletos as $boleto) @empty @endforelse
Nosso Número Conta a Receber Cliente Valor Vencimento Banco Status Ações
{{ $boleto->nosso_numero ?? '-' }} @if($boleto->linha_digitavel)
{{ Str::limit($boleto->linha_digitavel, 25) }} @endif
@if($boleto->contaAReceber) #{{ $boleto->contaAReceber->id_contas }}
{{ Str::limit($boleto->contaAReceber->descricao ?? '', 25) }} @else - @endif
{{ $boleto->contaAReceber->cliente->nome ?? '-' }} R$ {{ number_format($boleto->valor_nominal, 2, ',', '.') }} @if($boleto->status === 'pago' && $boleto->valor_pago)
R$ {{ number_format($boleto->valor_pago, 2, ',', '.') }} @endif
{{ $boleto->data_vencimento ? \Carbon\Carbon::parse($boleto->data_vencimento)->format('d/m/Y') : '-' }} @if($boleto->isVencido())
Vencido @endif
@php $nomeBanco = $boleto->banco->nome_banco ?? null; $isInter = $nomeBanco && (stripos($nomeBanco, 'inter') !== false); @endphp @if($nomeBanco) {{ $nomeBanco }} @else - @endif {{ $boleto->status_label }} @if($boleto->data_pagamento)
{{ \Carbon\Carbon::parse($boleto->data_pagamento)->format('d/m/Y H:i') }} @endif
@if($podeOperarBoletos) @if($boleto->status !== 'cancelado') @endif @if($boleto->linha_digitavel && $boleto->status !== 'cancelado') @endif @if(!in_array($boleto->status, ['pago', 'cancelado'])) @endif @endif @if(auth()->user()->is_suporte ?? false) @endif
Nenhum boleto encontrado
@if($boletos->hasPages()) @endif
@endsection @section('vendor-script') @endsection @section('page-script') @endsection