@include('components.buttons._headLineButtonsBackAdd', [
'headLine' => __("Novo Boletim"),
'routeBack' => 'admin.boletins.index',
'routeBackParams' => [],
'nameBack' => __("Voltar"),
])
@csrf
@include("errors.messageFlash")
@include('components.inputs._inputType',[
"for" => null,
"label" => "Data",
"name" => "publicationDate",
"id" => null,
"required" => true,
"type" => "date",
"old" => old('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'),
"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'),
"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'),
"oninput" => "javascript:this.value = this.value.toUpperCase()",
"readonly" => false,
"small" => null,
])
@include('components.inputs._inputType',[
"for" => null,
"label" => "Arquivo",
"name" => "url",
"id" => null,
"required" => true,
"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'),
"placeholder" => "Selecione o status...",
"small" => "Informe o status atual do usuário.",
"onchange" => null
])
@include('components.buttons._backAndSend', [
'textBack' => 'Voltar',
'textSend' => 'Enviar',
'routeBack' => 'admin.boletins.index'
])