@php $leg = $legislacao ?? null; @endphp
{{-- DADOS PRINCIPAIS --}}
{{ __('Dados da legislação') }}
@php $boSelId = old('id_boletim_oficial', $leg->id_boletim_oficial ?? ''); $boSelLabel = $leg && $leg->boletim ? $leg->boletim->nr_bo : ''; @endphp
@if ($leg && (int) $leg->cd_status === 3) @endif
{{-- PDF --}}
{{ __('Documento em PDF') }}
@if ($leg && $leg->public_pdf_url) @endif
{{-- CATEGORIAS --}}
{{ __('Categorias relacionadas') }}
@php $selectedCategorias = old('categorias', isset($leg) ? $leg->categorias->pluck('id_categoria')->toArray() : []); $totalSelecionadas = count(array_filter(array_map('intval', $selectedCategorias))); @endphp @if ($totalSelecionadas > 0) {{ $totalSelecionadas }} @else 0 @endif
{{ __('Clique para abrir a lista. Selecione quantas categorias precisar.') }}
{{-- TEXTO --}}
{{ __('Texto compilado') }}
{{-- RELACIONAMENTOS --}}
{{ __('Relacionamentos de legislações') }}
@foreach (($leg?->acoes ?? collect()) as $acao) @endforeach
{{-- BOTÃO --}}