@extends('layouts.master') @section('title', 'Users') @section('links') @endsection @section('content')

{!! trans('messages.list_all') !!} {!! trans('messages.admin') !!}

@if(Entrust::can('create-user')) @endif
@if(Entrust::can('create-user'))

{!! trans('messages.add_new') !!} {!! trans('messages.user') !!}

{!! Form::open(['route' => 'users.store','role' => 'form', 'class'=>'employee-form','id' => 'employee-form','data-form-table' => 'employee_table']) !!}
{!! Form::label('first_name',trans('messages.first_name'),['class' => 'control-label'])!!} {!! Form::input('text','first_name',old('first_name'),['class'=>'form-control','placeholder'=>trans('messages.first_name')])!!}
{!! Form::label('last_name',trans('messages.last_name'),['class' => 'control-label'])!!} {!! Form::input('text','last_name','',['class'=>'form-control','placeholder'=>trans('messages.last_name')])!!}
{!! Form::label('role_id',trans('messages.role'),['class' => 'control-label'])!!} {!! Form::select('role_id',$roles,'',['class'=>'form-control input-xlarge select2me','placeholder'=>trans('messages.select_one')])!!}
{!! Form::label('username',trans('messages.username'),['class' => 'control-label'])!!} {!! Form::input('text','username',old('username'),['class'=>'form-control','placeholder'=>trans('messages.username')])!!}
{!! Form::label('email',trans('messages.email'),['class' => 'control-label'])!!} {!! Form::input('text','email','',['class'=>'form-control','placeholder'=>trans('messages.email')])!!}
{!! Form::label('package_id',trans('organisation'),['class' => 'control-label'])!!} {!! Form::select('package_id',$packages,'',['class'=>'form-control input-xlarge select2me','placeholder'=>trans('messages.select_one')])!!}
{!! Form::label('password',trans('messages.password'),['class' => 'control-label'])!!} {!! Form::input('password','password','',['class'=>'form-control','placeholder'=>trans('messages.password')])!!}
{!! Form::label('password_confirmation',trans('messages.confirm_password'),['class' => 'control-label'])!!} {!! Form::input('password','password_confirmation','',['class'=>'form-control','placeholder'=>trans('messages.confirm_password')])!!}
{!! Form::submit(isset($buttonText) ? $buttonText : trans('messages.save'),['class' => 'btn btn-primary pull-right']) !!} {!! Form::close() !!}
@endif
@include('common.datatable',['col_heads' => $col_heads])
@endsection @section('scripts') @endsection