@extends('layouts.app') @section('content')

Ubah {{ $title }}

{!! Form::model($user,['route'=>['user.update',$user->id],'method'=>'PUT']) !!}
{!! Form::select('induk_opd_id',$induk_opd,isset($user->induk_opd_id)?$user->induk_opd_id:"",['class'=>'form-control daerah','required'=>'required','placeholder'=>'Pilih Induk OPD']) !!}
{!! Form::select('unit_kerja_id',$unit_kerja,isset($user->unit_kerja)?$user->unit_kerja:"",['class'=>'form-control daerah','required'=>'required','placeholder'=>'Pilih Unit Kerja']) !!}
{!! Form::text('nama',null,['class'=>'form-control','id'=>'example-text-input']) !!} {{-- --}}
{!! Form::text('alamat',$user->alamat,['class'=>'form-control','required'=>'required']) !!}
{!! Form::text('username',null,['class'=>'form-control','id'=>'example-email-input']) !!}
{!! Form::password('password',['class'=>'form-control','id'=>'example-password-input']) !!}
{!! Form::password('password_confirmation',['class'=>'form-control','id'=>'example-password-input']) !!}
@role("Admin|superadmin")
{!! Form::select('role_id',isset($roles)?$roles:$datas, isset($daerahs)?$datas[0]->id_daerah:$user->roles->first()["id"], ['class'=>'form-control daerah','id'=>'example-text-input']) !!} {{-- --}}
@endrole
Menu Access
@foreach($menus as $menu)
contains('menu_id', $menu->id)?"checked":""}}>
@endforeach
{!! Form::close() !!}
@endsection @push('scripts') @endpush