@csrf
@method('PUT')
@include("errors.messageFlash")
@include('components.inputs._selectType', [
"for" => "tipo",
"label" => "Tipo",
"name" => "tipo",
"required" => true,
"readonly" => false,
"options" => collect(App\Enums\StatusTipoCategoriaVisiteAngra::cases())
->mapWithKeys(fn($status) => [$status->name => $status->value])
->toArray(),
"selected" => old('status', $categoria->status),
"placeholder" => "Selecione o tipo...",
"small" => "Informe o tipo de categoria.",
"onchange" => null
])
@include('components.inputs._inputType',[
"for" => null,
"label" => "Categoria",
"name" => "categoria",
"id" => null,
"required" => true,
"type" => null,
"old" => old('categoria', $categoria->categoria),
"oninput" => null,
"readonly" => false,
"small" => null,
])
@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', $categoria->status),
"placeholder" => "Selecione o status...",
"small" => "Informe o status atual da categoria.",
"onchange" => null
])
@include('components.buttons._backAndSend',[
'routeBack' => 'admin.visiteAngra.categorias.index',
'textBack' => "Voltar",
'textSend' => "Atualizar",
])