Visite Angra - Editar Corredor Turístico"; @endphp
@include('components.buttons._headLineButtonsBackAdd', [
'headLine' => __($headLine),
'routeBack' => 'admin.visiteAngra.corredores.index',
'routeBackParams' => [],
'nameBack' => __("Voltar"),
"permission" => "GERENCIADOR_VISITE_ANGRA",
])
@csrf
@method('PUT')
@include("errors.messageFlash")
@include('components.inputs._inputType',[
"for" => null,
"label" => "Nome do corredor",
"name" => "corredor",
"id" => null,
"required" => true,
"type" => null,
"old" => old('corredor', $corredor->corredor),
"oninput" => null,
"readonly" => false,
"small" => null,
])
@include('components.inputs._inputType',[
"for" => null,
"label" => "Subtitulo",
"name" => "subtitulo",
"id" => null,
"required" => true,
"type" => null,
"old" => old('subtitulo', $corredor->subtitulo),
"oninput" => null,
"readonly" => false,
"small" => null,
])
@include('components.inputs._inputType',[
"for" => null,
"label" => "Foto Destaque",
"name" => "foto",
"id" => null,
"required" => false,
"type" => 'file',
"old" => null,
"oninput" => null,
"readonly" => true,
"small" => "Formatos permitidos: JPEG, PNG ou GIF. Tamanho máximo: 5 MB.",
"accept" => 'image/jpeg,image/jpg,image/png,image/gif',
])
@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', $corredor->status),
"placeholder" => "Selecione o status...",
"small" => "Informe o status atual do corredor turístico.",
"onchange" => null
])
@include('components.buttons._backAndSend',[
'routeBack' => 'admin.visiteAngra.corredores.index',
'textBack' => "Voltar",
'textSend' => "Atualizar",
])