61 lines
1.7 KiB
PHP
61 lines
1.7 KiB
PHP
@extends('admin.layout')
|
|
|
|
@section('content')
|
|
<form method="POST" action="{{route('users.newPost')}}">
|
|
{!! csrf_field() !!}
|
|
|
|
<label>
|
|
@lang('admin/userManagement.name')
|
|
<input type="text" placeholder="@lang('admin/userManagement.name')" name="name">
|
|
</label>
|
|
|
|
<label>
|
|
@lang('admin/userManagement.email')
|
|
|
|
<input type="text" name="email" placeholder="somebody@example.com">
|
|
|
|
@if (isset($errors) && $errors->has('email'))
|
|
<span class="help-block">
|
|
<strong>{{ $errors->first('email') }}</strong>
|
|
</span>
|
|
@endif
|
|
</label>
|
|
|
|
<label>
|
|
@lang('admin/userManagement.password')
|
|
|
|
<input type="text" name="password">
|
|
|
|
@if (isset($errors) && $errors->has('password'))
|
|
<span class="help-block">
|
|
<strong>{{ $errors->first('password') }}</strong>
|
|
</span>
|
|
@endif
|
|
</label>
|
|
|
|
<div>
|
|
@lang('admin/userManagement.roles')
|
|
|
|
@foreach($roles as $role => $translation)
|
|
<label>
|
|
@lang($translation)
|
|
<input type="radio" name="role" value="{{$role}}">
|
|
</label>
|
|
@endforeach
|
|
|
|
|
|
@if (isset($errors) && $errors->has('role'))
|
|
<span class="help-block">
|
|
<strong>{{ $errors->first('role') }}</strong>
|
|
</span>
|
|
@endif
|
|
</div>
|
|
|
|
<label>
|
|
<input type="submit" value="@lang('admin/userManagement.register')">
|
|
</label>
|
|
</form>
|
|
|
|
|
|
|
|
@stop |