Scope parks and downstream investment requests to the treated opportunity
This commit is contained in:
@@ -24,7 +24,15 @@ footer { margin-top:28px; border-top:1px solid #cbd8d3; padding-top:12px; }
|
||||
<header><div class="brand">InvesteMoz</div><h1>Recibo de submissão interna</h1><p><strong>Protocolo: {{ $record->protocol }}</strong></p><p>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 }}</p></header>
|
||||
<h2>Resumo</h2><p>{{ $definition['title'] ?? 'Pedido no Balcão Virtual' }}</p><p class="notice">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.</p>
|
||||
<h2>Dados submetidos</h2><table><caption>Informação declarada pelo requerente</caption><tbody>
|
||||
@php
|
||||
$opportunityScope = json_decode($snapshot['payload']['context_opportunity_snapshot'] ?? '{}', true);
|
||||
@endphp
|
||||
@if(data_get($opportunityScope, 'choice.opportunity.key'))
|
||||
<tr><th>Oportunidade associada</th><td>{{ data_get($opportunityScope, 'choice.opportunity.title') }} · {{ data_get($opportunityScope, 'choice.opportunity.key') }}</td></tr>
|
||||
<tr><th>Contexto territorial guardado</th><td>{{ 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'] }}</td></tr>
|
||||
@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 === [];
|
||||
|
||||
Reference in New Issue
Block a user