File manager - Edit - /var/www/html/portal/resources/views/admin/contas/create.blade.php
Back
@extends('layouts.admin.theme') @section("title", env("APP_NAME") . " :: " . __("Novo Usuário")) @section('content') <div class="container mt-5"> <div class="row"> <div class="col-12"> <div class="card shadow"> @php $headLine = "<i class='fa-solid fa-user-gear'></i> Novo Usuário"; @endphp @include('components.buttons._headLineButtonsBackAdd', [ 'headLine' => __($headLine), 'routeBack' => 'admin.contas.index', 'routeBackParams' => [], 'nameBack' => __("Voltar"), "permission" => "SYSADMIN", ]) <div class="card-body"> <form action="{{ route('admin.contas.store') }}" method="post" enctype="multipart/form-data"> @csrf @include("errors.messageFlash") <div class="row"> <div class="col-sm-12 col-md-6 d-flex align-items-center justify-content-center"> <div class="mb-3"> @include('components.tables._openPhoto', [ 'asset' => "pmar/assets/img/icons/usuario.png", 'alt' => "Novo usuário", 'title' => "Novo usuário", 'text' => 'Visualizar foto', 'index' => 1, 'style' => "width: 200px;", ]) </div> </div> <div class="col-sm-12 d-flex align-items-end"> <div style="width: 100%"> <!-- Campo Foto --> @include('components.inputs._inputType',[ "for" => null, "label" => "Foto", "name" => "photo", "id" => null, "required" => false, "type" => 'file', "old" => null, "oninput" => null, "readonly" => true, "small" => null, "accept" => 'image/jpeg,image/jpg,image/png,image/gif', ]) </div> </div> </div> <hr/> <div class="row"> <div class="col-sm-12 col-md-6"> <!-- Campo Nome completo --> @include('components.inputs._inputType',[ "for" => null, "label" => "Nome completo", "name" => "fullName", "id" => null, "required" => true, "type" => null, "old" => old('fullName'), "oninput" => "javascript:this.value = this.value.toLocaleUpperCase('pt-BR').replace(/[^\p{L}\s]+/gu, '').replace(/\s{2,}/g,' ').trimStart()", "readonly" => false, "small" => null, ]) </div> <div class="col-sm-12 col-md-6"> <!-- Campo CPF --> @include('components.inputs._inputType',[ "for" => null, "label" => "CPF", "name" => "cpf", "id" => null, "required" => true, "type" => null, "old" => old('cpf'), "oninput" => "javascript:aplicarMascaraCPF(this)", "readonly" => false, "small" => null, ]) </div> </div> <div class="row"> <div class="col-sm-12 col-md-6"> <!-- Campo Matrícula --> @include('components.inputs._inputType',[ "for" => null, "label" => "Matrícula", "name" => "matriculation", "id" => null, "required" => false, "type" => null, "old" => old('matriculation'), "oninput" => "javascript:this.value = this.value.replace(/\D/g, '')", "readonly" => false, "small" => null, ]) </div> <div class="col-sm-12 col-md-6"> <!-- Campo Telefone --> @include('components.inputs._inputType',[ "for" => null, "label" => "Telefone", "name" => "phoneNumber", "id" => null, "required" => true, "type" => null, "old" => old('phoneNumber'), "oninput" => "javascript:aplicarMascaraTelefone(this)", "readonly" => false, "small" => null, ]) </div> </div> <div class="row"> <div class="col-sm-12 col-md-6"> <!-- Campo Email --> @include('components.inputs._inputType',[ "for" => null, "label" => "Email", "name" => "email", "id" => null, "required" => false, "type" => 'email', "old" => old('email'), "oninput" => "javascript:this.value = this.value.toLowerCase()", "readonly" => false, "small" => null, "placeholder" => "nome@email.com", ]) </div> <div class="col-sm-12 col-md-6"> <!-- Campo Senha --> @include('components.inputs._inputType',[ "for" => null, "label" => "Senha", "name" => "password", "id" => null, "required" => true, "type" => 'password', "old" => old('password', 'mudar123'), "oninput" => null, "readonly" => true, "small" => '* A senha padrão é: <strong>mudar123</strong><br>', "inputGroup" => false, ]) </div> </div> <div class="row"> <div class="col-sm-12 col-md-6"> <!-- Campo Secretaria --> @include('components.inputs._selectType', [ "for" => "structure_id", "label" => "Pertence a", "name" => "structure_id", "id" => "structureID", "required" => false, "readonly" => false, "placeholder" => "Selecione uma secretaria...", "options" => $secretarias->mapWithKeys(fn($s) => [ $s->id => "{$s->name} ({$s->abbreviation})" ])->toArray(), "selected" => old('structure_id', $user->structure_id ?? ''), "small" => "Opcional. Selecione a secretaria à qual o usuário pertence.", ]) </div> <div class="col-sm-12 col-md-6"> <!-- Campo Status --> @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', $user->status ?? ''), "placeholder" => "Selecione o status...", "small" => "Informe o status atual do usuário.", "onchange" => null ]) </div> </div> <div class="row"> <div class="col-12"> @include('components.inputs._unidadesSelector', [ 'unidades' => $unidades, 'selectedUnidades' => old('unidades', []), ]) </div> </div> <div class="row"> <div class="col-12"> @include('components.inputs._empresasSelector', [ 'empresas' => $empresas, 'selectedEmpresas' => old('empresas', []), ]) </div> </div> <div class="mb-3"> <div class="list-group mb-3"> <a class="list-group-item list-group-item-action active" aria-current="true"> <h5 class="mb-1">{{ __('* Permissão') }}</h5> <small onclick="javascript:selectAllCheckboxCategoriasNoticias(this)" class="text-warning" style="cursor: pointer">{{ __('* selecionar todas as categorias') }}</small> </a> <div class="list-group-item list-group-item-action"> @include('components.contas._permissionsMatrix', [ 'mode' => 'create', 'permissoesDisponiveis' => \App\Enums\StatusPermission::cases(), ]) </div> </div> </div> @include('components.buttons._backAndSend', [ 'textBack' => 'Voltar', 'textSend' => 'Cadastrar', 'routeBack' => 'admin.contas.index' ] ) </form> </div> </div> </div> </div> </div> @endsection
| ver. 1.4 |
Github
|
.
| PHP 8.3.28 | Generation time: 0.02 |
proxy
|
phpinfo
|
Settings