@extends('layouts.admin.theme') @section("title", env("APP_NAME") . " :: Visite Angra - Nova Categoria") @section('content')
@php $headLine = " Visite Angra - Nova Categoria"; @endphp @include('components.buttons._headLineButtonsBackAdd', [ 'headLine' => __($headLine), 'routeBack' => 'admin.visiteAngra.categorias.index', 'routeBackParams' => [], 'nameBack' => __("Voltar"), "permission" => "GERENCIADOR_VISITE_ANGRA", ])
@csrf @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'), "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'), "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'), "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' => "Cadastrar", ])
@endsection