@php $edital = $edital ?? null; @endphp
{{-- COLUNA ESQUERDA --}}
{{-- INFORMAÇÕES PRINCIPAIS --}}
{{ __('Informações do Edital') }}
@include('components.inputs._inputType', [ 'label' => __('Título'), 'name' => 'titulo', 'required' => true, 'old' => $edital?->titulo, ]) @include('components.inputs._textarea', [ 'label' => __('Descrição') . ' (' . __('opcional') . ')', 'name' => 'descricao', 'value' => $edital?->descricao ?? '', 'rows' => 4, ])
@include('components.inputs._inputType', [ 'label' => __('Data de publicação'), 'name' => 'data_publicacao', 'type' => 'date', 'old' => $edital?->data_publicacao?->format('Y-m-d'), ])
@include('components.inputs._inputType', [ 'label' => __('Ordem de exibição'), 'name' => 'ordem', 'type' => 'number', 'old' => (string) ($edital?->ordem ?? 0), ])
@include('components.inputs._inputType', [ 'label' => __('Link'), 'name' => 'link', 'type' => 'url', 'placeholder' => 'https://...', 'old' => $edital?->link, ])
{{-- ARQUIVO --}}
{{ __('Arquivo do Edital') }}
@if($edital?->arquivo)
{{ __('Arquivo atual:') }} {{ basename($edital->arquivo) }}
@endif @error('arquivo') {{ $message }} @enderror
{{-- COLUNA DIREITA --}}
{{-- STATUS --}}
{{ __('Configurações') }}
@error('status') {{ $message }} @enderror
{{-- FOTO --}}
{{ __('Imagem') }}
@if($edital?->foto)
{{ basename($edital->foto) }}
@endif @error('foto') {{ $message }} @enderror