@include('components.buttons._headLineButtonsBackAdd', [
'headLine' => __("Atualizar Boletim"),
'routeBack' => 'admin.boletins.index',
'routeBackParams' => [],
'nameBack' => __("Voltar"),
])
@csrf
@method('patch')
@include("errors.messageFlash")
id) }}'>
@include('components.inputs._inputType',[
"for" => null,
"label" => "Data",
"name" => "publicationDate",
"id" => null,
"required" => true,
"type" => "date",
"old" => old('publicationDate', $boletim->publicationDate),
"oninput" => null,
"readonly" => false,
"small" => null,
])
@include('components.inputs._selectType', [
"for" => null,
"label" => "Mês",
"name" => "month",
"required" => true,
"readonly" => false,
"options" => collect(App\Enums\StatusMonth::cases())
->mapWithKeys(fn($status) => [$status->name => $status->value])
->toArray(),
"selected" => old('month', $boletim->month),
"placeholder" => "Selecione um mês...",
"small" => "Informe o do boletim.",
"onchange" => null
])
@include('components.inputs._inputType',[
"for" => null,
"label" => "Número",
"name" => "number",
"id" => null,
"required" => true,
"type" => null,
"old" => old('number', $boletim->number),
"oninput" => "javascript:this.value = this.value.replace(/\D/g, '')",
"readonly" => false,
"small" => null,
])
@include('components.inputs._inputType',[
"for" => null,
"label" => "Título",
"name" => "title",
"id" => null,
"required" => true,
"type" => null,
"old" => old('title', $boletim->title),
"oninput" => "javascript:this.value = this.value.toUpperCase()",
"readonly" => false,
"small" => null,
])
extraordinaryEdition) ? 'checked' : '' }}>
@include('components.inputs._inputType',[
"for" => null,
"label" => "Arquivo",
"name" => "url",
"id" => null,
"required" => false,
"type" => 'file',
"old" => null,
"oninput" => null,
"readonly" => true,
"small" => null,
"accept" => '.pdf',
])
@include('components.inputs._selectType', [
"for" => "status",
"label" => "Status",
"name" => "status",
"required" => true,
"readonly" => false,
"options" => collect(App\Enums\StatusEnum::cases())
->mapWithKeys(fn($status) => [$status->name => $status->value])
->toArray(),
"selected" => old('status', $boletim->status),
"placeholder" => "Selecione o status...",
"small" => "Informe o status atual do usuário.",
"onchange" => null
])
@include('components.buttons._backAndSend', [
'textBack' => 'Voltar',
'textSend' => 'Atualizar',
'routeBack' => 'admin.boletins.index'
]
)