update v1.0.5
This commit is contained in:
@@ -127,40 +127,41 @@ class="active"
|
||||
<h4>{{Lang::get('lang.account_status_setting')}}</h4>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-xs-6">
|
||||
<!-- Role -->
|
||||
<div class="form-group {{ $errors->has('role') ? 'has-error' : '' }}">
|
||||
<div class="col-xs-6">
|
||||
<!-- acccount type -->
|
||||
<div class="form-group {{ $errors->has('active') ? 'has-error' : '' }}">
|
||||
|
||||
{!! Form::label('role',Lang::get('lang.role')) !!}
|
||||
{!! $errors->first('role', '<spam class="help-block">:message</spam>') !!}
|
||||
<div class="row">
|
||||
<div class="col-xs-3">
|
||||
{!! Form::radio('role','admin',true) !!}{{Lang::get('lang.admin')}}
|
||||
</div>
|
||||
<div class="col-xs-3">
|
||||
{!! Form::radio('role','agent',null) !!}{{Lang::get('lang.agent')}}
|
||||
{!! Form::label('active',Lang::get('lang.status')) !!}
|
||||
{!! $errors->first('active', '<spam class="help-block">:message</spam>') !!}
|
||||
<div class="row">
|
||||
<div class="col-xs-3">
|
||||
{!! Form::radio('active','1',true) !!}{{Lang::get('lang.active')}}
|
||||
</div>
|
||||
<div class="col-xs-3">
|
||||
{!! Form::radio('active','0',null) !!}{{Lang::get('lang.inactive')}}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<!-- account type -->
|
||||
<div class="form-group {{ $errors->has('account_type') ? 'has-error' : '' }}">
|
||||
|
||||
{!! Form::label('account_type',Lang::get('lang.account_type')) !!}
|
||||
{!! $errors->first('account_type', '<spam class="help-block">:message</spam>') !!}
|
||||
<div class="row">
|
||||
<div class="col-xs-3">
|
||||
{!! Form::radio('account_type','1',true) !!}{{Lang::get('lang.active')}}
|
||||
</div>
|
||||
<div class="col-xs-3">
|
||||
{!! Form::radio('account_type','0',null) !!}{{Lang::get('lang.locked')}}
|
||||
<!-- Role -->
|
||||
<div class="form-group {{ $errors->has('role') ? 'has-error' : '' }}">
|
||||
|
||||
{!! Form::label('role',Lang::get('lang.role')) !!}
|
||||
{!! $errors->first('role', '<spam class="help-block">:message</spam>') !!}
|
||||
<div class="row">
|
||||
<div class="col-xs-3">
|
||||
{!! Form::radio('role','admin',true) !!}{{Lang::get('lang.admin')}}
|
||||
</div>
|
||||
<div class="col-xs-3">
|
||||
{!! Form::radio('role','agent',null) !!}{{Lang::get('lang.agent')}}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-xs-6">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -170,7 +171,7 @@ class="active"
|
||||
|
||||
{!! Form::label('assign_group',Lang::get('lang.assigned_group')) !!}
|
||||
{!! $errors->first('assign_group', '<spam class="help-block">:message</spam>') !!}
|
||||
{!!Form::select('assign_group',[''=>'Select a Group','Groups'=>$groups->lists('name','name')],null,['class' => 'form-control select']) !!}
|
||||
{!!Form::select('assign_group',[''=>'Select a Group','Groups'=>$groups->lists('name','id')],null,['class' => 'form-control select']) !!}
|
||||
|
||||
</div>
|
||||
|
||||
@@ -179,7 +180,7 @@ class="active"
|
||||
|
||||
{!! Form::label('primary_dpt',Lang::get('lang.primary_department')) !!}
|
||||
{!! $errors->first('primary_dpt', '<spam class="help-block">:message</spam>') !!}
|
||||
{!! Form::select('primary_dpt', [''=>'Select a Department','Departments'=>$departments->lists('name','name')],null,['class' => 'form-control select']) !!}
|
||||
{!! Form::select('primary_dpt', [''=>'Select a Department','Departments'=>$departments->lists('name','id')],null,['class' => 'form-control select']) !!}
|
||||
|
||||
</div>
|
||||
|
||||
@@ -188,7 +189,7 @@ class="active"
|
||||
|
||||
{!! Form::label('agent_tzone',Lang::get('lang.agent_time_zone')) !!}
|
||||
{!! $errors->first('agent_tzone', '<spam class="help-block">:message</spam>') !!}
|
||||
{!! Form::select('agent_tzone', [''=>'Select a Time Zone', 'Time Zones'=>$timezones->lists('name','name')],null,['class' => 'form-control select']) !!}
|
||||
{!! Form::select('agent_tzone', [''=>'Select a Time Zone', 'Time Zones'=>$timezones->lists('name','id')],null,['class' => 'form-control select']) !!}
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
@@ -132,6 +132,21 @@ class="active"
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-xs-6">
|
||||
<!-- acccount type -->
|
||||
<div class="form-group {{ $errors->has('active') ? 'has-error' : '' }}">
|
||||
|
||||
{!! Form::label('active',Lang::get('lang.status')) !!}
|
||||
{!! $errors->first('active', '<spam class="help-block">:message</spam>') !!}
|
||||
<div class="row">
|
||||
<div class="col-xs-3">
|
||||
{!! Form::radio('active','1',true) !!}{{Lang::get('lang.active')}}
|
||||
</div>
|
||||
<div class="col-xs-3">
|
||||
{!! Form::radio('active','0',null) !!}{{Lang::get('lang.inactive')}}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<!-- role -->
|
||||
<div class="form-group {{ $errors->has('role') ? 'has-error' : '' }}">
|
||||
|
||||
@@ -146,21 +161,7 @@ class="active"
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- acccount type -->
|
||||
<div class="form-group {{ $errors->has('account_type') ? 'has-error' : '' }}">
|
||||
|
||||
{!! Form::label('account_type',Lang::get('lang.account_type')) !!}
|
||||
{!! $errors->first('account_type', '<spam class="help-block">:message</spam>') !!}
|
||||
<div class="row">
|
||||
<div class="col-xs-3">
|
||||
{!! Form::radio('account_type','1',true) !!}{{Lang::get('lang.active')}}
|
||||
</div>
|
||||
<div class="col-xs-3">
|
||||
{!! Form::radio('account_type','0',null) !!}{{Lang::get('lang.locked')}}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<!-- day light saving -->
|
||||
{{-- <div class="col-xs-6"> --}}
|
||||
@@ -210,21 +211,21 @@ class="active"
|
||||
<div class="col-xs-4 form-group {{ $errors->has('assign_group') ? 'has-error' : '' }}">
|
||||
{!! Form::label('assign_group',Lang::get('lang.assigned_group')) !!}
|
||||
{!! $errors->first('assign_group', '<spam class="help-block">:message</spam>') !!}
|
||||
{!!Form::select('assign_group', [''=>'Select a Group','Groups'=>$groups->lists('name','name')],null,['class' => 'form-control select']) !!}
|
||||
{!!Form::select('assign_group', [''=>'Select a Group','Groups'=>$groups->lists('name','id')],null,['class' => 'form-control select']) !!}
|
||||
</div>
|
||||
|
||||
<!-- primary department -->
|
||||
<div class="col-xs-4 form-group {{ $errors->has('primary_dpt') ? 'has-error' : '' }}">
|
||||
{!! Form::label('primary_dpt',Lang::get('lang.primary_department')) !!}
|
||||
{!! $errors->first('primary_dpt', '<spam class="help-block">:message</spam>') !!}
|
||||
{!!Form::select('primary_dpt', $departments->lists('name','name'),null,['class' => 'form-control select']) !!}
|
||||
{!!Form::select('primary_dpt', $departments->lists('name','id'),null,['class' => 'form-control select']) !!}
|
||||
</div>
|
||||
|
||||
<!-- agent timezone -->
|
||||
<div class="col-xs-4 form-group {{ $errors->has('agent_tzone') ? 'has-error' : '' }}">
|
||||
{!! Form::label('agent_tzone',Lang::get('lang.agent_time_zone')) !!}
|
||||
{!! $errors->first('agent_tzone', '<spam class="help-block">:message</spam>') !!}
|
||||
{!!Form::select('agent_tzone', $timezones->lists('name','name'),null,['class' => 'form-control select']) !!}
|
||||
{!!Form::select('agent_tzone', $timezones->lists('name','id'),null,['class' => 'form-control select']) !!}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
@@ -35,7 +35,7 @@ class="active"
|
||||
<div class="box-header">
|
||||
<h2 class="box-title">{!! Lang::get('lang.staffs') !!} </h2><a href="{{route('agents.create')}}" class="btn btn-primary pull-right">{{Lang::get('lang.create_agent')}}</a></div>
|
||||
|
||||
<div class="box-body table-responsive no-padding">
|
||||
<div class="box-body table-responsive">
|
||||
<?php
|
||||
$user = App\User::where('role','!=','user')->orderBy('id', 'ASC')->paginate(20);
|
||||
?>
|
||||
@@ -59,7 +59,7 @@ class="active"
|
||||
</div>
|
||||
@endif
|
||||
<!-- Agent table -->
|
||||
<table class="table table-hover" style="overflow:hidden;">
|
||||
<table class="table table-bordered dataTable" style="overflow:hidden;">
|
||||
<tr>
|
||||
<th width="100px">{{Lang::get('lang.name')}}</th>
|
||||
<th width="100px">{{Lang::get('lang.user_name')}}</th>
|
||||
@@ -86,24 +86,26 @@ class="active"
|
||||
}
|
||||
?>
|
||||
<td>
|
||||
@if($use->account_type=='1')
|
||||
@if($use->active=='1')
|
||||
<span style="color:green">{{'Active'}}</span>
|
||||
@else
|
||||
<span style="color:red">{{'Inactive'}}</span>
|
||||
@endif
|
||||
<td>{{$use->assign_group }}</td>
|
||||
<td>{{$use->primary_dpt }}</td>
|
||||
|
||||
<?php
|
||||
$group = App\Model\helpdesk\Agent\Groups::whereId($use->assign_group)->first();
|
||||
$department = App\Model\helpdesk\Agent\Department::whereId($use->primary_dpt)->first();
|
||||
?>
|
||||
|
||||
<td>{{ $group->name }}</td>
|
||||
<td>{{ $department->name }}</td>
|
||||
<td>{{ UTC::usertimezone($use->created_at) }}</td>
|
||||
{{-- <td>{{$use->Lastlogin_at}}</td> --}}
|
||||
<td>
|
||||
{!! Form::open(['route'=>['agents.destroy', $use->id],'method'=>'DELETE']) !!}
|
||||
<a href="{{route('agents.edit', $use->id)}}" class="btn btn-info btn-xs btn-flat"><i class="fa fa-edit" style="color:black;"> </i> {!! Lang::get('lang.edit') !!} </a>
|
||||
<!-- To pop up a confirm Message -->
|
||||
{!! Form::button(' <i class="fa fa-trash" style="color:black;"> </i> ' . Lang::get('lang.delete') ,
|
||||
['type' => 'submit',
|
||||
'class'=> 'btn btn-warning btn-xs btn-flat',
|
||||
'onclick'=>'return confirm("Are you sure?")'])
|
||||
!!}
|
||||
{{-- {!! Form::button(' <i class="fa fa-trash" style="color:black;"> </i> ' . Lang::get('lang.delete') ,['type' => 'submit', 'class'=> 'btn btn-warning btn-xs btn-flat','onclick'=>'return confirm("Are you sure?")']) !!} --}}
|
||||
{!! Form::close() !!}
|
||||
</td>
|
||||
</tr>
|
||||
@@ -111,9 +113,7 @@ class="active"
|
||||
@endforeach
|
||||
</table>
|
||||
</div>
|
||||
<div class="box-footer"></div>
|
||||
|
||||
</div>
|
||||
@section('FooterInclude')
|
||||
@stop
|
||||
@stop
|
||||
<!-- /content -->
|
Reference in New Issue
Block a user