@extends('site.layouts.new.app') @php $lawSummaryText = $summaryText ?: 'Nenhuma ementa informada para este projeto.'; $hasAttachments = $attachments->isNotEmpty(); $hasProcessing = $processingItems->isNotEmpty(); $hasMeetings = $meetingItems->isNotEmpty(); @endphp @push('styles') @endpush @section('site_content')
@include('site.components.materials-tab', [ 'label' => 'Voltar para projetos', 'href' => $backUrl, 'active' => false, ]) @include('site.components.materials-tab', [ 'label' => 'Detalhes do projeto', 'href' => request()->fullUrl(), 'active' => true, ])
Ementa

{{ $lawHeadline }}

{{ $primaryAuthor }}

Abrir projeto
{!! nl2br(e($lawSummaryText)) !!}
Projeto {{ $lawTitle }} {{ $lawNumber }}
Data de publicação {{ $lawsProject->law_date ?? '-' }}
Protocolo {{ $protocolLabel }}
Status {{ $approvalLabel ?: 'Não informado' }}
Última movimentação {{ $updatedLabel }}
Resumo
Parecer atual

{{ $legalOpinionLabel }}

@if ($mandatoryAmendment)
Emenda impositiva
Projeto {{ $mandatoryAmendment->projectLaw->law_number ?? '_' }} / {{ $mandatoryAmendment->projectLaw->law_date ?? '—' }}
Autor {{ $mandatoryAmendment->assemblyman_name }}
Valor R$ {{ number_format($mandatoryAmendment->valor ?? 0, 2, ',', '.') }}
Área {{ $mandatoryAmendment->area ?? '—' }}
@endif
Arquivos e referências
@if ($hasAttachments)
@foreach ($attachments as $attachment) @endforeach
@else

Nenhum arquivo ou referência encontrado.

@endif
Tramitação
@if ($hasProcessing)
@foreach ($processingItems as $processingItem)
{{ $processingItem['status'] }} {{ $processingItem['date'] ?: '-' }}
@if (!empty($processingItem['destination_path']))

{{ $processingItem['destination_path']->implode(' -> ') }}

@endif
Prazo: {{ $processingItem['deadline'] ?: 'Não definido' }} Licitação: {{ $processingItem['number_bids'] ?: '—' }} Contrato: {{ $processingItem['number_contract'] ?: '—' }}
@if ($processingItem['description']) {{ $processingItem['description'] }} @endif @if ($processingItem['observation'])
@if ($processingItem['observation_is_long'])
{{ $processingItem['observation_preview'] }} Ver menos
{!! nl2br(e($processingItem['observation'])) !!}
@else {!! nl2br(e($processingItem['observation'])) !!} @endif
@endif
@endforeach
@else

Nenhuma tramitação encontrada.

@endif
Sessões relacionadas
@if ($hasMeetings)
@foreach ($meetingItems as $meetingItem) @endforeach
@else

Nenhuma sessão relacionada.

@endif
@endsection