@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
{{ 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() !!}
{{ 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 @endif