You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
39 lines
2.0 KiB
39 lines
2.0 KiB
<!-- Name Form Input -->
|
|
<div class="form-group @if ($errors->has('name')) has-error @endif">
|
|
{!! Form::label('name', 'Name') !!}
|
|
{!! Form::text('name', null, ['class' => 'form-control', 'placeholder' => 'Name']) !!}
|
|
@if ($errors->has('name')) <p class="help-block">{{ $errors->first('name') }}</p> @endif
|
|
</div>
|
|
|
|
<!-- email Form Input -->
|
|
<div class="form-group @if ($errors->has('email')) has-error @endif">
|
|
{!! Form::label('email', 'Email') !!}
|
|
{!! Form::text('email', null, ['class' => 'form-control', 'placeholder' => 'Email']) !!}
|
|
@if ($errors->has('email')) <p class="help-block">{{ $errors->first('email') }}</p> @endif
|
|
</div>
|
|
|
|
<!-- password Form Input -->
|
|
<div class="form-group @if ($errors->has('password')) has-error @endif">
|
|
{!! Form::label('password', 'Password') !!}
|
|
{!! Form::password('password', ['class' => 'form-control', 'placeholder' => 'Password']) !!}
|
|
@if ($errors->has('password')) <p class="help-block">{{ $errors->first('password') }}</p> @endif
|
|
</div>
|
|
<div class="form-group @if ($errors->has('organization_id')) has-error @endif">
|
|
{!! Form::label('organization_id', 'Organization') !!}
|
|
{!! Form::select('organization_id', $organizations, isset($user) ? $user->organization_id : null, ['class' => 'form-control']) !!}
|
|
@if ($errors->has('organization_id')) <p class="help-block">{{ $errors->first('organization_id') }}</p> @endif
|
|
</div>
|
|
<!-- Roles Form Input -->
|
|
<div class="form-group @if ($errors->has('roles')) has-error @endif">
|
|
{!! Form::label('roles[]', 'Roles') !!}
|
|
{!! Form::select('roles[]', $roles, isset($user) ? $user->roles->pluck('id')->toArray() : null, ['class' => 'form-control', 'multiple']) !!}
|
|
@if ($errors->has('roles')) <p class="help-block">{{ $errors->first('roles') }}</p> @endif
|
|
</div>
|
|
|
|
<!-- Permissions -->
|
|
@if(isset($user))
|
|
<?php foreach ($user->roles as $role): ?>
|
|
@include('shared._permissions', ['title' => $role->name .' Permissions - for ' . $role->guard_name, 'closed' => 'true', 'model' => $role ])
|
|
<?php endforeach; ?>
|
|
|
|
@endif
|
|
|