@extends('layouts.app') @section('title') {{ config('app.name') }} | Nuevo usuario @endsection @section('header') Home Usuarios @endsection @section('content') @php extract($_REQUEST); if(!isset($cuenta)) { $cuenta = null; } @endphp
@if(\Auth::user()->rol->rol_nombre == 'Administrador' || \Auth::user()->rol->rol_nombre == 'Manager')

Sistema de Correos Institucionales

Nota: La información aquí presente, corresponde a la información almacenada en el sistema de Correos Institucioanales; para acutalizar sus datos debe ingresar a este sistema, o contactar al Área TIC para el respectivo soporte. {!! Form::open(['route' => ['erc.usuarios.create', $cuenta], 'method' => 'get']) !!}

{{ Form::label('cuenta', 'Seleccione una cuenta*') }} {{ Form::select('cuenta', $cuentas->pluck('cuenta_cuenta', 'cuenta_id'), null, ['class' => 'w3-input w3-border w3-border-theme w3-round', 'placeholder' => 'Seleccionar', 'required']) }}

{!! Form::close() !!}

@if(count($cuentas->where('cuenta_id', '=', $cuenta)) > 0)

Información nuevo usuario


{!! Form::open(['route' => ['erc.usuarios.store', $cuenta], 'method' => 'post', 'files' => 'true']) !!}

{{ Form::label('nombres', 'Nombres') }} {{ Form::text('nombres', $cuentas->where('cuenta_id', '=', $cuenta)->first()->cuenta_primer_nombre.' '.$cuentas->where('cuenta_id', '=', $cuenta)->first()->cuenta_segundo_nombre, ['class' => 'w3-input w3-border w3-border-theme w3-round', 'disabled']) }}

{{ Form::label('apellidos', 'Apellidos') }} {{ Form::text('apellidos', $cuentas->where('cuenta_id', '=', $cuenta)->first()->cuenta_primer_apellido.' '.$cuentas->where('cuenta_id', '=', $cuenta)->first()->cuenta_segundo_apellido, ['class' => 'w3-input w3-border w3-border-theme w3-round', 'disabled']) }}

{{ Form::label('disabled_email', 'E-mail') }} {{ Form::email('disabled_email', $cuentas->where('cuenta_id', '=', $cuenta)->first()->cuenta_cuenta, ['class' => 'w3-input w3-border w3-border-theme w3-round', 'disabled']) }} {{ Form::hidden('email', $cuentas->where('cuenta_id', '=', $cuenta)->first()->cuenta_cuenta, ['class' => 'w3-input w3-border w3-border-theme w3-round', 'readonly']) }}

{{ Form::label('rol_id', 'Rol*') }} {{ Form::select('rol_id', $roles->pluck('rol_nombre', 'rol_id'), null,['class' => 'w3-input w3-border w3-border-theme w3-round', 'placeholder' => 'Seleccionar', 'required']) }}

{!! Form::close() !!} @endif @else


¡Lo sentimos! Usuario no autorizado.

@endif
@endsection