@extends ('backend.layouts.app') @if($type == 0) @section ('title', 'User Management' . ' | ' . 'Create User') @else @section ('title', 'Admin Management' . ' | ' . 'Create Admin') @endif @section('after-styles') {{ Html::style('css/category.css') }} {{ Html::style('js/select2/select2.min.css') }} {{ Html::style('js/Crop/croppie.css') }} @endsection @section('page-header') @if($type == 0)

User Management Create User

@else

Admin Management Create Admin

@endif @endsection @section('content') @if($type == 0) {{ Form::open(['route' => 'admin.access.user.store', 'id' => 'usercreateform', 'class' => 'form-horizontal', 'role' => 'form', 'method' => 'post', 'enctype' => 'multipart/form-data']) }} @else {{ Form::open(['route' => 'admin.access.manager.store', 'id' => 'usercreateform', 'class' => 'form-horizontal', 'role' => 'form', 'method' => 'post', 'enctype' => 'multipart/form-data']) }} @endif
@if($type == 0)

User Info

@else

Admin Info

@endif
{{ Form::label('organization', 'Organization', ['class' => 'col-lg-2 control-label']) }}
{{ Form::label('firstname', 'First Name', ['class' => 'col-lg-2 control-label']) }}
@if($type == 0) {{ Form::text('firstname', null, ['class' => 'form-control', 'maxlength' => '191', 'required' => 'required', 'autofocus' => 'autofocus', 'placeholder' => 'User First Name']) }} @else {{ Form::text('firstname', null, ['class' => 'form-control', 'maxlength' => '191', 'required' => 'required', 'autofocus' => 'autofocus', 'placeholder' => 'Admin First Name']) }} @endif
{{ Form::label('lastname', 'Last Name', ['class' => 'col-lg-2 control-label']) }}
@if($type == 0) {{ Form::text('lastname', null, ['class' => 'form-control', 'maxlength' => '191', 'required' => 'required', 'autofocus' => 'autofocus', 'placeholder' => 'User Last Name']) }} @else {{ Form::text('lastname', null, ['class' => 'form-control', 'maxlength' => '191', 'required' => 'required', 'autofocus' => 'autofocus', 'placeholder' => 'Admin Last Name']) }} @endif
{{ Form::label('email', 'Email', ['class' => 'col-lg-2 control-label']) }}
@if($type == 0) {{ Form::text('email', null, ['class' => 'form-control', 'maxlength' => '191', 'required' => 'required', 'autofocus' => 'autofocus', 'placeholder' => 'User Email']) }} @else {{ Form::text('email', null, ['class' => 'form-control', 'maxlength' => '191', 'required' => 'required', 'autofocus' => 'autofocus', 'placeholder' => 'Admin Email']) }} @endif
{{ Form::label('phonenumber', 'Phone Number', ['class' => 'col-lg-2 control-label']) }}
{{ Form::text('phonenumber', null, ['class' => 'form-control', 'maxlength' => '191', 'required' => 'required', 'autofocus' => 'autofocus', 'placeholder' => 'Phone Number']) }}
{{ Form::label('photourl', 'Profile Image', ['class' => 'col-lg-2 control-label']) }}
{{ Form::submit(trans('buttons.general.crud.create'), ['class' => 'btn btn-success btn-md', 'style' => 'width:100px !important;']) }}
{{--
--}} {{--
--}}
@if($type == 0) {{ link_to_route('admin.access.user.index', trans('buttons.general.cancel'), [], ['class' => 'btn btn-danger btn-md', 'style' => 'width:100px !important;']) }} @else {{ link_to_route('admin.access.manager.index', trans('buttons.general.cancel'), [], ['class' => 'btn btn-danger btn-md', 'style' => 'width:100px !important;']) }} @endif
{{--
--}}
{{--
--}} {{ Form::close() }}
Upload Profile Image

* Upload square image for profile image.

@endsection @section('after-scripts') {{ Html::script('js/backend/access/users/script.js') }} {{ Html::script("js/select2/select2.full.min.js") }} {{ Html::script("js/Crop/croppie.js") }} @endsection