@php $decretoLei = $decretoLei ?? null; @endphp
{{-- INFORMAÇÕES PRINCIPAIS --}}
{{ __('Informações do Decreto/Lei') }}
@include('components.inputs._inputType', [ 'label' => __('Título'), 'name' => 'titulo', 'required' => true, 'old' => $decretoLei?->titulo, ])
@include('components.inputs._inputType', [ 'label' => __('Número da lei'), 'name' => 'numero_lei', 'old' => $decretoLei?->numero_lei, ])
@include('components.inputs._textarea', [ 'label' => __('Descrição'), 'name' => 'descricao', 'value' => $decretoLei?->descricao ?? '', 'rows' => 4, ])
@include('components.inputs._inputType', [ 'label' => __('Data de publicação'), 'name' => 'data_publicacao', 'type' => 'date', 'old' => $decretoLei?->data_publicacao?->format('Y-m-d'), ])
@error('status') {{ $message }} @enderror
@include('components.inputs._inputType', [ 'label' => __('Ordem de exibição'), 'name' => 'ordem', 'type' => 'number', 'old' => (string) ($decretoLei?->ordem ?? 0), ])
{{-- ARQUIVO --}}
{{ __('Arquivo') }}
{{ __('Formatos aceitos: PDF, Word, Excel, OpenDocument') }} @if($decretoLei?->arquivo)
{{ basename($decretoLei->arquivo) }}
@endif @error('arquivo') {{ $message }} @enderror