@php $descricaoProjetoServico = $venda->orcamento?->descricao_projeto ?: ('Venda ' . $venda->codigo); $isPago = strtoupper((string) ($statusAtual['label'] ?? '')) === 'PAGO'; $encargosTexto = collect($encargos ?? [])->map(function ($encargo) { $label = strtolower((string) ($encargo['label'] ?? '')); $value = (string) ($encargo['value'] ?? ''); if ($label === '' || $value === '') { return null; } return $label . ' de ' . $value; })->filter()->values()->implode(' e '); $statusBadgeClass = match (strtoupper((string) ($statusAtual['label'] ?? ''))) { 'PAGO' => 'pago', 'PROCESSANDO' => 'processando', 'VENCIDO' => 'vencido', default => 'pendente', }; @endphp
Simbolo Root | ROOT DEVELOPERS
Resumo da Fatura
Cliente
{{ $cliente->razao_social }}
Projeto / Serviço
{{ $descricaoProjetoServico }}
Parcela
{{ $parcelaFracionadaAtual ?? '-' }}
Vencimento
{{ optional($cobranca->data_vencimento)->format('d/m/Y') }}
Status
{{ $statusAtual['label'] }}
@if(!empty($encargos))
Importante!
Em caso de atraso, serão cobrados {{ $encargosTexto }}.
@endif
Valor Total
R$ {{ number_format($cobranca->valor, 2, ',', '.') }}
Pague com Pix
Escaneie o codigo QR abaixo:
@if($cobranca->qr_code_image_src) QR Code PIX @else
QR Code indisponivel.
Use o codigo copia e cola.
@endif
Ou use o Copia e Cola:
@if($downloadPdfDisponivel) Baixar PDF do BolePix @endif