| Nº Documento {{ $boleto->document_number ?? $boleto->code ?? '000000' }} |
| Vencimento {{ \Carbon\Carbon::parse($boleto->due_date ?? now())->format('d/m/Y') }} |
| Nosso Número @php $nn = $boleto->nosso_numero ?? $boleto->code; if(is_numeric($nn) && strlen($nn) >= 9) { $nn = substr($nn, 0, 2) . '/' . substr($nn, 2, 6) . '-' . substr($nn, 8); } @endphp {{ $nn }} |
| Ag/Cód. Beneficiário {{ $bank->agency_number ?? '0000' }}.{{ $bank->variation ?? '01' }}.{{ $bank->assignor_contract ?? '00000' }} |
| Valor do Documento {{ number_format($boleto->amount ?? $boleto->total_amount ?? 0, 2, ',', '.') }} |
| (-) Descontos / Abatimentos {{ number_format($boleto->discount ?? 0, 2, ',', '.') }} |
| (+) Mora / Multa 0,00 |
| (=) Valor Cobrado {{ number_format(($boleto->total_amount ?? 0) - ($boleto->discount ?? 0), 2, ',', '.') }} |
|
Pagador
@php
$pagador = $boleto->owner ?? optional($boleto->unit)->owner ?? null;
$pagadorName = $person->name ?? ($pagador->name ?? '---');
@endphp
{{ \Str::limit($pagadorName, 38) }}
{{ \Str::limit(($pagador->address->street ?? '') . ', ' . ($pagador->address->number ?? 'S/N'), 42) }} {{ $pagador->address->city->name ?? '' }} - {{ $pagador->address->state->uf ?? '' }} Unid: {{ $boleto->unit?->unit_name ?? '' }} Bloco: {{ $boleto->unit?->block ?? '' }} |