@if(app()->environment('testing') && str_starts_with((string)($snapshot['payload']['title'] ?? ''), 'SINTÉTICO'))

SINTÉTICO — QA · Exemplo fictício, sem validade oficial.

@endif
InvesteMoz

Recibo de submissão interna

Protocolo: {{ $record->protocol }}

Submetido em {{ \Illuminate\Support\Carbon::parse($record->submitted_at, 'UTC')->setTimezone('Africa/Maputo')->format('d/m/Y H:i') }} (CAT, UTC+2) · Versão {{ $record->version }}

Resumo

{{ $definition['title'] ?? 'Pedido no Balcão Virtual' }}

Este recibo comprova a submissão interna no portal. Não confirma aprovação, financiamento, licença ou recepção por uma entidade externa. Os dados abaixo são os declarados no momento da submissão.

Dados submetidos

@php $opportunityScope = json_decode($snapshot['payload']['context_opportunity_snapshot'] ?? '{}', true); @endphp @if(data_get($opportunityScope, 'choice.opportunity.key')) @endif @foreach(($snapshot['payload'] ?? []) as $key => $value) @continue(in_array($key, ['context_opportunity_snapshot', 'context_opportunity', 'context_reuse'], true)) @php $field = $definition['fields'][$key] ?? []; $empty = $value === null || $value === '' || $value === []; $display = $empty ? 'Não informado' : (is_bool($value) ? ($value ? 'Sim' : 'Não') : (is_scalar($value) ? ($field['options'][(string) $value] ?? (string) $value) : json_encode($value, JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES))); if (!$empty && in_array($key, ['investment_amount', 'own_finance', 'other_finance'], true) && is_numeric($value)) { $display = number_format((float)$value, 2, ',', ' ').' '.(($snapshot['payload']['currency'] ?? '') ?: '(moeda não informada)'); } @endphp @endforeach
Informação declarada pelo requerente
Oportunidade associada{{ data_get($opportunityScope, 'choice.opportunity.title') }} · {{ data_get($opportunityScope, 'choice.opportunity.key') }}
Contexto territorial guardado{{ data_get($opportunityScope, 'choice.territory.title') ?: 'Por definir' }} · {{ data_get($opportunityScope, 'choice.corridor_name') ?: 'Corredor por definir' }} · {{ data_get($opportunityScope, 'choice.park.title') ?: 'Sem zona/parque seleccionado' }} · Revisão {{ $opportunityScope['revision'] }}
{{ $field['label'] ?? \Illuminate\Support\Str::headline($key) }}{{ $display }}

Suportes documentais

@forelse(($snapshot['documents'] ?? []) as $document)

{{ data_get($document, 'source_reference') ?: 'Referência não informada' }} · Versão {{ data_get($document, 'version_no') ?? 'Não informada' }}

@empty

Sem documentos associados nesta submissão.

@endforelse