{{ csrf_field() }} @if (isset($errors) && count($errors))
{{ current($errors->all()) }}
@elseif (session('error'))
{{ session('error') }}
@endif
{!! Form::hidden('id', (empty(session('id')) ? 0 : session('id'))) !!}
User Details
{!! Form::label('name', 'Name:', ['class' => 'col-lg-3 control-label']) !!}
{!! Form::text('name', old('name'), ['class' => 'form-control', 'placeholder' => 'Name']) !!}
{!! Form::label('roles', 'Roles:', ['class' => 'col-lg-3 control-label']) !!}
@if(Auth::user()->hasRole('su'))
{!! Form::checkbox('roles[]', 'su', (isset($model) && in_array('su',$model->roles) ? true : false )) !!} Superuser
@endif
{!! Form::checkbox('roles[]', 'admin', (isset($model) && in_array('admin',$model->roles) ? true : false )) !!} Admin
{!! Form::checkbox('roles[]', 'comanagement', (isset($model) && in_array('comanagement',$model->roles) ? true : false )) !!} Co-Management
{!! Form::checkbox('roles[]', 'inspections',(isset($model) && in_array('inspections',$model->roles) ? true : false )) !!} Inspections
{!! Form::checkbox('roles[]', 'licences',(isset($model) && in_array('licences',$model->roles) ? true : false )) !!} Licences & Permits
{!! Form::checkbox('roles[]', 'enforcement',(isset($model) && in_array('enforcement',$model->roles) ? true : false )) !!} Enforcement
{!! Form::checkbox('roles[]', 'data', (isset($model) && in_array('data',$model->roles) ? true : false )) !!} Data Collection
{!! Form::checkbox('roles[]', 'qc', (isset($model) && in_array('qc',$model->roles) ? true : false )) !!} Quality Control
{!! Form::checkbox('roles[]', 'observer',(isset($model) && in_array('observer',$model->roles) ? true : false )) !!} Observer
{!! Form::checkbox('roles[]', 'aqua', (isset($model) && in_array('aqua',$model->roles) ? true : false )) !!} Aqua Culture
{!! Form::checkbox('roles[]', 'sport',(isset($model) && in_array('sport',$model->roles) ? true : false )) !!} Sport Fishing
{!! Form::label('status', 'Status:', ['class' => 'col-lg-3 control-label']) !!}
{!! Form::select('status',['INACT' => 'Inactive', 'ACT' => 'Active', 'SUSP' => 'Suspended'], old('status'), ['class' => 'form-control', 'placeholder' => '--Select--']) !!}
{!! Form::submit($submitButtonText.' Details', ['class' => 'btn btn-primary'] ) !!}