update v1.0.6
This commit is contained in:
@@ -31,64 +31,64 @@ class="active"
|
||||
@section('content')
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-3">
|
||||
<!-- Profile Image -->
|
||||
<div class="box box-primary">
|
||||
<div class="box-body box-profile">
|
||||
|
||||
@if(Auth::user()->profile_pic)
|
||||
<img src="{{asset('lb-faveo/profilepic')}}{{'/'}}{{ $agent->profile_pic }}"class="profile-user-img img-responsive img-circle" alt="User Image"/>
|
||||
@else
|
||||
<img src="{{ Gravatar::src($agent->email) }}" class="profile-user-img img-responsive img-circle" alt="User Image">
|
||||
@endif
|
||||
<h3 class="profile-username text-center">{!! $agent->user_name !!}</h3>
|
||||
<p class="text-muted text-center">Software Engineer</p>
|
||||
<ul class="list-group list-group-unbordered">
|
||||
<div class="col-md-3">
|
||||
<!-- Profile Image -->
|
||||
<div class="box box-primary">
|
||||
<div class="box-body box-profile">
|
||||
|
||||
@if(Auth::user()->profile_pic)
|
||||
<img src="{{asset('lb-faveo/profilepic')}}{{'/'}}{{ $agent->profile_pic }}"class="profile-user-img img-responsive img-circle" alt="User Image"/>
|
||||
@else
|
||||
<img src="{{ Gravatar::src($agent->email) }}" class="profile-user-img img-responsive img-circle" alt="User Image">
|
||||
@endif
|
||||
<h3 class="profile-username text-center">{!! $agent->user_name !!}</h3>
|
||||
<p class="text-muted text-center">Software Engineer</p>
|
||||
<ul class="list-group list-group-unbordered">
|
||||
<li class="list-group-item">
|
||||
<b>Followers</b> <a class="pull-right">1,322</a>
|
||||
<b>Followers</b> <a class="pull-right">1,322</a>
|
||||
</li>
|
||||
<li class="list-group-item">
|
||||
<b>Following</b> <a class="pull-right">543</a>
|
||||
<b>Following</b> <a class="pull-right">543</a>
|
||||
</li>
|
||||
<li class="list-group-item">
|
||||
<b>Friends</b> <a class="pull-right">13,287</a>
|
||||
<b>Friends</b> <a class="pull-right">13,287</a>
|
||||
</li>
|
||||
</ul>
|
||||
<a href="#" class="btn btn-primary btn-block"><b>Follow</b></a>
|
||||
</div><!-- /.box-body -->
|
||||
</div><!-- /.box -->
|
||||
<!-- About Me Box -->
|
||||
<div class="box box-primary">
|
||||
<div class="box-header with-border">
|
||||
<h3 class="box-title">About Me</h3>
|
||||
</div><!-- /.box-header -->
|
||||
<div class="box-body">
|
||||
<strong><i class="fa fa-book margin-r-5"></i> Education</strong>
|
||||
<p class="text-muted">
|
||||
B.S. in Computer Science from the University of Tennessee at Knoxville
|
||||
</p>
|
||||
<hr>
|
||||
</div><!-- /.box-body -->
|
||||
</div><!-- /.box -->
|
||||
</div><!-- /.col -->
|
||||
<div class="col-md-9">
|
||||
<div class="nav-tabs-custom">
|
||||
<ul class="nav nav-tabs">
|
||||
<li class="active"><a href="#activity" data-toggle="tab">Activity</a></li>
|
||||
<li><a href="#timeline" data-toggle="tab">Timeline</a></li>
|
||||
<li><a href="#settings" data-toggle="tab">Settings</a></li>
|
||||
</ul>
|
||||
<div class="tab-content">
|
||||
<div class="active tab-pane" id="activity">
|
||||
<a href="#" class="btn btn-primary btn-block"><b>Follow</b></a>
|
||||
</div><!-- /.box-body -->
|
||||
</div><!-- /.box -->
|
||||
<!-- About Me Box -->
|
||||
<div class="box box-primary">
|
||||
<div class="box-header with-border">
|
||||
<h3 class="box-title">About Me</h3>
|
||||
</div><!-- /.box-header -->
|
||||
<div class="box-body">
|
||||
<strong><i class="fa fa-book margin-r-5"></i> Education</strong>
|
||||
<p class="text-muted">
|
||||
B.S. in Computer Science from the University of Tennessee at Knoxville
|
||||
</p>
|
||||
<hr>
|
||||
</div><!-- /.box-body -->
|
||||
</div><!-- /.box -->
|
||||
</div><!-- /.col -->
|
||||
<div class="col-md-9">
|
||||
<div class="nav-tabs-custom">
|
||||
<ul class="nav nav-tabs">
|
||||
<li class="active"><a href="#activity" data-toggle="tab">Activity</a></li>
|
||||
<li><a href="#timeline" data-toggle="tab">Timeline</a></li>
|
||||
<li><a href="#settings" data-toggle="tab">Settings</a></li>
|
||||
</ul>
|
||||
<div class="tab-content">
|
||||
<div class="active tab-pane" id="activity">
|
||||
<!-- Post -->
|
||||
</div><!-- /.tab-pane -->
|
||||
<div class="tab-pane" id="timeline">
|
||||
</div><!-- /.tab-pane -->
|
||||
<div class="tab-pane" id="settings">
|
||||
</div><!-- /.tab-pane -->
|
||||
</div><!-- /.tab-content -->
|
||||
</div><!-- /.nav-tabs-custom -->
|
||||
</div><!-- /.col -->
|
||||
</div>
|
||||
</div><!-- /.tab-pane -->
|
||||
<div class="tab-pane" id="timeline">
|
||||
</div><!-- /.tab-pane -->
|
||||
<div class="tab-pane" id="settings">
|
||||
</div><!-- /.tab-pane -->
|
||||
</div><!-- /.tab-content -->
|
||||
</div><!-- /.nav-tabs-custom -->
|
||||
</div><!-- /.col -->
|
||||
</div>
|
||||
|
||||
@stop
|
@@ -32,181 +32,181 @@ class="active"
|
||||
|
||||
<!-- open a form -->
|
||||
|
||||
{!! Form::open(array('action' => 'Admin\helpdesk\AgentController@store' , 'method' => 'post') )!!}
|
||||
{!! Form::open(array('action' => 'Admin\helpdesk\AgentController@store' , 'method' => 'post') )!!}
|
||||
|
||||
|
||||
<div class="box box-primary">
|
||||
<div class="content-header">
|
||||
<div class="content-header">
|
||||
|
||||
<h4>Create {!! Form::submit(Lang::get('lang.save'),['class'=>'form-group btn btn-primary pull-right'])!!}</h4>
|
||||
<h4>Create {!! Form::submit(Lang::get('lang.save'),['class'=>'form-group btn btn-primary pull-right'])!!}</h4>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="box-body">
|
||||
<div class="box-body">
|
||||
|
||||
<div class="row">
|
||||
<!-- username -->
|
||||
<div class="col-xs-4 form-group {{ $errors->has('user_name') ? 'has-error' : '' }}">
|
||||
<div class="row">
|
||||
<!-- username -->
|
||||
<div class="col-xs-4 form-group {{ $errors->has('user_name') ? 'has-error' : '' }}">
|
||||
|
||||
{!! Form::label('user_name',Lang::get('lang.user_name')) !!}
|
||||
{!! $errors->first('user_name', '<spam class="help-block">:message</spam>') !!}
|
||||
{!! Form::text('user_name',null,['class' => 'form-control']) !!}
|
||||
{!! Form::label('user_name',Lang::get('lang.user_name')) !!}
|
||||
{!! $errors->first('user_name', '<spam class="help-block">:message</spam>') !!}
|
||||
{!! Form::text('user_name',null,['class' => 'form-control']) !!}
|
||||
|
||||
</div>
|
||||
<!-- firstname -->
|
||||
<div class="col-xs-4 form-group {{ $errors->has('first_name') ? 'has-error' : '' }}">
|
||||
</div>
|
||||
<!-- firstname -->
|
||||
<div class="col-xs-4 form-group {{ $errors->has('first_name') ? 'has-error' : '' }}">
|
||||
|
||||
{!! Form::label('first_name',Lang::get('lang.first_name')) !!}
|
||||
{!! $errors->first('first_name', '<spam class="help-block">:message</spam>') !!}
|
||||
{!! Form::text('first_name',null,['class' => 'form-control']) !!}
|
||||
{!! Form::label('first_name',Lang::get('lang.first_name')) !!}
|
||||
{!! $errors->first('first_name', '<spam class="help-block">:message</spam>') !!}
|
||||
{!! Form::text('first_name',null,['class' => 'form-control']) !!}
|
||||
|
||||
</div>
|
||||
<!-- lastname -->
|
||||
<div class="col-xs-4 form-group {{ $errors->has('last_name') ? 'has-error' : '' }}">
|
||||
</div>
|
||||
<!-- lastname -->
|
||||
<div class="col-xs-4 form-group {{ $errors->has('last_name') ? 'has-error' : '' }}">
|
||||
|
||||
{!! Form::label('last_name',Lang::get('lang.last_name')) !!}
|
||||
{!! $errors->first('last_name', '<spam class="help-block">:message</spam>') !!}
|
||||
{!! Form::text('last_name',null,['class' => 'form-control']) !!}
|
||||
{!! Form::label('last_name',Lang::get('lang.last_name')) !!}
|
||||
{!! $errors->first('last_name', '<spam class="help-block">:message</spam>') !!}
|
||||
{!! Form::text('last_name',null,['class' => 'form-control']) !!}
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<!-- email address -->
|
||||
<div class="col-xs-4 form-group {{ $errors->has('email') ? 'has-error' : '' }}">
|
||||
<div class="row">
|
||||
<!-- email address -->
|
||||
<div class="col-xs-4 form-group {{ $errors->has('email') ? 'has-error' : '' }}">
|
||||
|
||||
{!! Form::label('email',Lang::get('lang.email_address')) !!}
|
||||
{!! $errors->first('email', '<spam class="help-block">:message</spam>') !!}
|
||||
{!! Form::email('email',null,['class' => 'form-control']) !!}
|
||||
{!! Form::label('email',Lang::get('lang.email_address')) !!}
|
||||
{!! $errors->first('email', '<spam class="help-block">:message</spam>') !!}
|
||||
{!! Form::email('email',null,['class' => 'form-control']) !!}
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-xs-1 form-group {{ $errors->has('ext') ? 'has-error' : '' }}">
|
||||
<div class="col-xs-1 form-group {{ $errors->has('ext') ? 'has-error' : '' }}">
|
||||
|
||||
<label for="ext">{!! Lang::get('lang.ext') !!}</label>
|
||||
{!! $errors->first('ext', '<spam class="help-block">:message</spam>') !!}
|
||||
{!! Form::text('ext',null,['class' => 'form-control']) !!}
|
||||
<label for="ext">{!! Lang::get('lang.ext') !!}</label>
|
||||
{!! $errors->first('ext', '<spam class="help-block">:message</spam>') !!}
|
||||
{!! Form::text('ext',null,['class' => 'form-control']) !!}
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- phone -->
|
||||
<div class="col-xs-3 form-group {{ $errors->has('phone_number') ? 'has-error' : '' }}">
|
||||
<!-- phone -->
|
||||
<div class="col-xs-3 form-group {{ $errors->has('phone_number') ? 'has-error' : '' }}">
|
||||
|
||||
{!! Form::label('phone_number',Lang::get('lang.phone')) !!}
|
||||
{!! $errors->first('phone_number', '<spam class="help-block">:message</spam>') !!}
|
||||
{!! Form::text('phone_number',null,['class' => 'form-control']) !!}
|
||||
{!! Form::label('phone_number',Lang::get('lang.phone')) !!}
|
||||
{!! $errors->first('phone_number', '<spam class="help-block">:message</spam>') !!}
|
||||
{!! Form::text('phone_number',null,['class' => 'form-control']) !!}
|
||||
|
||||
</div>
|
||||
|
||||
<!-- Mobile -->
|
||||
<div class="col-xs-4 form-group {{ $errors->has('mobile') ? 'has-error' : '' }}">
|
||||
</div>
|
||||
|
||||
{!! Form::label('mobile',Lang::get('lang.mobile_number')) !!}
|
||||
{!! $errors->first('mobile', '<spam class="help-block">:message</spam>') !!}
|
||||
{!! Form::text('mobile',null,['class' => 'form-control']) !!}
|
||||
<!-- Mobile -->
|
||||
<div class="col-xs-4 form-group {{ $errors->has('mobile') ? 'has-error' : '' }}">
|
||||
|
||||
</div>
|
||||
{!! Form::label('mobile',Lang::get('lang.mobile_number')) !!}
|
||||
{!! $errors->first('mobile', '<spam class="help-block">:message</spam>') !!}
|
||||
{!! Form::text('mobile',null,['class' => 'form-control']) !!}
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
</div>
|
||||
|
||||
<h4>{{Lang::get('lang.agent_signature')}}</h4>
|
||||
<div>
|
||||
|
||||
</div>
|
||||
<h4>{{Lang::get('lang.agent_signature')}}</h4>
|
||||
|
||||
<div class="">
|
||||
</div>
|
||||
|
||||
{!! Form::textarea('agent_sign',null,['class' => 'form-control','size' => '30x5']) !!}
|
||||
<div class="">
|
||||
|
||||
</div>
|
||||
{!! Form::textarea('agent_sign',null,['class' => 'form-control','size' => '30x5']) !!}
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<div>
|
||||
<h4>{{Lang::get('lang.account_status_setting')}}</h4>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-xs-6">
|
||||
<!-- acccount type -->
|
||||
<div class="form-group {{ $errors->has('active') ? 'has-error' : '' }}">
|
||||
<div>
|
||||
<h4>{{Lang::get('lang.account_status_setting')}}</h4>
|
||||
</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>
|
||||
{!! 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>
|
||||
|
||||
<!-- Role -->
|
||||
<div class="form-group {{ $errors->has('role') ? 'has-error' : '' }}">
|
||||
<!-- 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>
|
||||
{!! 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>
|
||||
<div class="col-xs-6">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<!-- assigned group -->
|
||||
<div class="col-xs-4 form-group {{ $errors->has('assign_group') ? 'has-error' : '' }}">
|
||||
<div class="row">
|
||||
<!-- assigned group -->
|
||||
<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','id')],null,['class' => 'form-control select']) !!}
|
||||
{!! 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','id')],null,['class' => 'form-control select']) !!}
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- primary dept -->
|
||||
<div class="col-xs-4 form-group {{ $errors->has('primary_dpt') ? 'has-error' : '' }}">
|
||||
<!-- primary dept -->
|
||||
<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', [''=>'Select a Department','Departments'=>$departments->lists('name','id')],null,['class' => 'form-control select']) !!}
|
||||
{!! 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','id')],null,['class' => 'form-control select']) !!}
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- timezone -->
|
||||
<div class="col-xs-4 form-group {{ $errors->has('agent_tzone') ? 'has-error' : '' }}">
|
||||
<!-- 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', [''=>'Select a Time Zone', 'Time Zones'=>$timezones->lists('name','id')],null,['class' => 'form-control select']) !!}
|
||||
{!! 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','id')],null,['class' => 'form-control select']) !!}
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Assign team -->
|
||||
<!-- Assign team -->
|
||||
|
||||
<div class="{{ $errors->has('team_id') ? 'has-error' : '' }}">
|
||||
<h4>{{Lang::get('lang.assigned_team')}}</h4>
|
||||
{!! $errors->first('team_id', '<spam class="help-block">Assign Team is Required</spam>') !!}
|
||||
<div class="{{ $errors->has('team_id') ? 'has-error' : '' }}">
|
||||
<h4>{{Lang::get('lang.assigned_team')}}</h4>
|
||||
{!! $errors->first('team_id', '<spam class="help-block">Assign Team is Required</spam>') !!}
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@while (list($key, $val) = each($teams))
|
||||
<div class="form-group ">
|
||||
<input type="checkbox" name="team_id[]" value="<?php echo $val;?>" > <?php echo $key;?><br/>
|
||||
</div>
|
||||
@endwhile
|
||||
@while (list($key, $val) = each($teams))
|
||||
<div class="form-group ">
|
||||
<input type="checkbox" name="team_id[]" value="<?php echo $val; ?>" > <?php echo $key; ?><br/>
|
||||
</div>
|
||||
@endwhile
|
||||
|
||||
</div>
|
||||
@stop
|
||||
</div>
|
||||
@stop
|
||||
|
@@ -18,8 +18,8 @@ class="active"
|
||||
<!-- header -->
|
||||
@section('PageHeader')
|
||||
<!-- <h3> -->
|
||||
<!-- {{Lang::get('lang.agent')}} -->
|
||||
<!-- <small>Add</small> -->
|
||||
<!-- {{Lang::get('lang.agent')}} -->
|
||||
<!-- <small>Add</small> -->
|
||||
<!-- </h3> -->
|
||||
|
||||
|
||||
@@ -37,209 +37,211 @@ class="active"
|
||||
|
||||
<!-- open a form -->
|
||||
|
||||
{!! Form::model($user, ['url' => 'agents/'.$user->id,'method' => 'PATCH'] )!!}
|
||||
{!! Form::model($user, ['url' => 'agents/'.$user->id,'method' => 'PATCH'] )!!}
|
||||
|
||||
<!-- <section class="content"> -->
|
||||
<!-- <section class="content"> -->
|
||||
<div class="box box-primary">
|
||||
<div class="content-header">
|
||||
<h4>Edit {!! Form::submit(Lang::get('lang.save'),['class'=>'form-group btn btn-primary pull-right'])!!}</h4>
|
||||
</div>
|
||||
<div class="box-body">
|
||||
<div class="content-header">
|
||||
<h4>Edit {!! Form::submit(Lang::get('lang.save'),['class'=>'form-group btn btn-primary pull-right'])!!}</h4>
|
||||
</div>
|
||||
<div class="box-body">
|
||||
|
||||
<div class="row">
|
||||
<!-- username -->
|
||||
<div class="col-xs-4 form-group {{ $errors->has('user_name') ? 'has-error' : '' }}">
|
||||
<div class="row">
|
||||
<!-- username -->
|
||||
<div class="col-xs-4 form-group {{ $errors->has('user_name') ? 'has-error' : '' }}">
|
||||
|
||||
{!! Form::label('user_name',Lang::get('lang.user_name')) !!}
|
||||
{!! $errors->first('user_name', '<spam class="help-block">:message</spam>') !!}
|
||||
{!! Form::text('user_name',null,['disabled' => 'disabled','class' => 'form-control']) !!}
|
||||
{!! Form::label('user_name',Lang::get('lang.user_name')) !!}
|
||||
{!! $errors->first('user_name', '<spam class="help-block">:message</spam>') !!}
|
||||
{!! Form::text('user_name',null,['disabled' => 'disabled','class' => 'form-control']) !!}
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- firstname -->
|
||||
<div class="col-xs-4 form-group {{ $errors->has('first_name') ? 'has-error' : '' }}">
|
||||
<!-- firstname -->
|
||||
<div class="col-xs-4 form-group {{ $errors->has('first_name') ? 'has-error' : '' }}">
|
||||
|
||||
{!! Form::label('first_name',Lang::get('lang.first_name')) !!}
|
||||
{!! $errors->first('first_name', '<spam class="help-block">:message</spam>') !!}
|
||||
{!! Form::text('first_name',null,['class' => 'form-control']) !!}
|
||||
{!! Form::label('first_name',Lang::get('lang.first_name')) !!}
|
||||
{!! $errors->first('first_name', '<spam class="help-block">:message</spam>') !!}
|
||||
{!! Form::text('first_name',null,['class' => 'form-control']) !!}
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Lastname -->
|
||||
<div class="col-xs-4 form-group {{ $errors->has('last_name') ? 'has-error' : '' }}">
|
||||
<!-- Lastname -->
|
||||
<div class="col-xs-4 form-group {{ $errors->has('last_name') ? 'has-error' : '' }}">
|
||||
|
||||
{!! Form::label('last_name',Lang::get('lang.last_name')) !!}
|
||||
{!! $errors->first('last_name', '<spam class="help-block">:message</spam>') !!}
|
||||
{!! Form::text('last_name',null,['class' => 'form-control']) !!}
|
||||
{!! Form::label('last_name',Lang::get('lang.last_name')) !!}
|
||||
{!! $errors->first('last_name', '<spam class="help-block">:message</spam>') !!}
|
||||
{!! Form::text('last_name',null,['class' => 'form-control']) !!}
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<!-- Email -->
|
||||
<div class="col-xs-4 form-group {{ $errors->has('email') ? 'has-error' : '' }}">
|
||||
<div class="row">
|
||||
<!-- Email -->
|
||||
<div class="col-xs-4 form-group {{ $errors->has('email') ? 'has-error' : '' }}">
|
||||
|
||||
{!! Form::label('email',Lang::get('lang.email_address')) !!}
|
||||
{!! $errors->first('email', '<spam class="help-block">:message</spam>') !!}
|
||||
{!! Form::email('email',null,['class' => 'form-control']) !!}
|
||||
{!! Form::label('email',Lang::get('lang.email_address')) !!}
|
||||
{!! $errors->first('email', '<spam class="help-block">:message</spam>') !!}
|
||||
{!! Form::email('email',null,['class' => 'form-control']) !!}
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-xs-1 form-group {{ $errors->has('ext') ? 'has-error' : '' }}">
|
||||
<div class="col-xs-1 form-group {{ $errors->has('ext') ? 'has-error' : '' }}">
|
||||
|
||||
<label for="ext">EXT</label>
|
||||
{!! $errors->first('ext', '<spam class="help-block">:message</spam>') !!}
|
||||
{!! Form::text('ext',null,['class' => 'form-control']) !!}
|
||||
<label for="ext">EXT</label>
|
||||
{!! $errors->first('ext', '<spam class="help-block">:message</spam>') !!}
|
||||
{!! Form::text('ext',null,['class' => 'form-control']) !!}
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- phone -->
|
||||
<div class="col-xs-3 form-group {{ $errors->has('phone_number') ? 'has-error' : '' }}">
|
||||
<!-- phone -->
|
||||
<div class="col-xs-3 form-group {{ $errors->has('phone_number') ? 'has-error' : '' }}">
|
||||
|
||||
{!! Form::label('phone_number',Lang::get('lang.phone')) !!}
|
||||
{!! $errors->first('phone_number', '<spam class="help-block">Invalid Phone Number</spam>') !!}
|
||||
{!! Form::text('phone_number',null,['class' => 'form-control']) !!}
|
||||
{!! Form::label('phone_number',Lang::get('lang.phone')) !!}
|
||||
{!! $errors->first('phone_number', '<spam class="help-block">Invalid Phone Number</spam>') !!}
|
||||
{!! Form::text('phone_number',null,['class' => 'form-control']) !!}
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Mobile -->
|
||||
<div class="col-xs-4 form-group {{ $errors->has('mobile') ? 'has-error' : '' }}">
|
||||
<!-- Mobile -->
|
||||
<div class="col-xs-4 form-group {{ $errors->has('mobile') ? 'has-error' : '' }}">
|
||||
|
||||
{!! Form::label('mobile',Lang::get('lang.mobile_number')) !!}
|
||||
{!! $errors->first('mobile', '<spam class="help-block">Invalid Mobile Number</spam>') !!}
|
||||
{!! Form::text('mobile',null,['class' => 'form-control']) !!}
|
||||
{!! Form::label('mobile',Lang::get('lang.mobile_number')) !!}
|
||||
{!! $errors->first('mobile', '<spam class="help-block">Invalid Mobile Number</spam>') !!}
|
||||
{!! Form::text('mobile',null,['class' => 'form-control']) !!}
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<!-- Agent signature -->
|
||||
<div>
|
||||
</div>
|
||||
<!-- Agent signature -->
|
||||
<div>
|
||||
|
||||
<h4>{{Lang::get('lang.agent_signature')}}</h4>
|
||||
<h4>{{Lang::get('lang.agent_signature')}}</h4>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="">
|
||||
<div class="">
|
||||
|
||||
{!! Form::textarea('agent_sign',null,['class' => 'form-control','size' => '30x5']) !!}
|
||||
{!! Form::textarea('agent_sign',null,['class' => 'form-control','size' => '30x5']) !!}
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div>
|
||||
<h4>{{Lang::get('lang.account_status_setting')}}</h4>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-xs-6">
|
||||
<!-- acccount type -->
|
||||
<div class="form-group {{ $errors->has('active') ? 'has-error' : '' }}">
|
||||
<div>
|
||||
<h4>{{Lang::get('lang.account_status_setting')}}</h4>
|
||||
</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>
|
||||
{!! 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' : '' }}">
|
||||
</div>
|
||||
<!-- 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>
|
||||
<!-- day light saving -->
|
||||
{{-- <div class="col-xs-6"> --}}
|
||||
{!! 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 class="row"> --}}
|
||||
{{-- {!! Form::label('',Lang::get('lang.day_light_saving')) !!} --}}
|
||||
{{-- <div class="col-xs-2"> --}}
|
||||
{{-- {!! Form::checkbox('daylight_save',1,null,['class' => 'checkbox']) !!} --}}
|
||||
{{-- </div> --}}
|
||||
{{-- </div> --}}
|
||||
{{-- </div> --}}
|
||||
</div>
|
||||
<!-- day light saving -->
|
||||
{{-- <div class="col-xs-6"> --}}
|
||||
|
||||
<!-- limit access -->
|
||||
{{-- <div > --}}
|
||||
{{-- <div class="row"> --}}
|
||||
{{-- {!! Form::label('limit_access',Lang::get('lang.limit_access')) !!} --}}
|
||||
{{-- <div class="col-xs-2"> --}}
|
||||
{{-- {!! Form::checkbox('limit_access',1,null,['class' => 'checkbox']) !!} --}}
|
||||
{{-- </div> --}}
|
||||
{{-- </div> --}}
|
||||
{{-- </div> --}}
|
||||
{{-- <div> --}}
|
||||
{{-- <div class="row"> --}}
|
||||
{{-- {!! Form::label('',Lang::get('lang.day_light_saving')) !!} --}}
|
||||
{{-- <div class="col-xs-2"> --}}
|
||||
{{-- {!! Form::checkbox('daylight_save',1,null,['class' => 'checkbox']) !!} --}}
|
||||
{{-- </div> --}}
|
||||
{{-- </div> --}}
|
||||
{{-- </div> --}}
|
||||
|
||||
<!-- directory listing -->
|
||||
{{-- <div> --}}
|
||||
{{-- <div class="row"> --}}
|
||||
{{-- {!! Form::label('directory_listing',Lang::get('lang.directory_listing')) !!} --}}
|
||||
{{-- <div class="col-xs-2"> --}}
|
||||
{{-- {!! Form::checkbox('directory_listing',1,null,['class' => 'checkbox']) !!} --}}
|
||||
{{-- </div> --}}
|
||||
{{-- </div> --}}
|
||||
{{-- </div> --}}
|
||||
|
||||
<!-- vocation mode -->
|
||||
{{-- <div> --}}
|
||||
{{-- <div class="row"> --}}
|
||||
{{-- {!! Form::label('vocation_mode',Lang::get('lang.vocation_mode')) !!} --}}
|
||||
{{-- <div class="col-xs-2"> --}}
|
||||
{{-- {!! Form::checkbox('vocation_mode',1,null,null,['class' => 'checkbox']) !!} --}}
|
||||
{{-- </div> --}}
|
||||
{{-- </div> --}}
|
||||
{{-- </div> --}}
|
||||
{{-- </div> --}}
|
||||
</div>
|
||||
<div class="row">
|
||||
<!-- assigned group -->
|
||||
<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','id')],null,['class' => 'form-control select']) !!}
|
||||
</div>
|
||||
<!-- limit access -->
|
||||
{{-- <div > --}}
|
||||
{{-- <div class="row"> --}}
|
||||
{{-- {!! Form::label('limit_access',Lang::get('lang.limit_access')) !!} --}}
|
||||
{{-- <div class="col-xs-2"> --}}
|
||||
{{-- {!! Form::checkbox('limit_access',1,null,['class' => 'checkbox']) !!} --}}
|
||||
{{-- </div> --}}
|
||||
{{-- </div> --}}
|
||||
{{-- </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','id'),null,['class' => 'form-control select']) !!}
|
||||
</div>
|
||||
<!-- directory listing -->
|
||||
{{-- <div> --}}
|
||||
{{-- <div class="row"> --}}
|
||||
{{-- {!! Form::label('directory_listing',Lang::get('lang.directory_listing')) !!} --}}
|
||||
{{-- <div class="col-xs-2"> --}}
|
||||
{{-- {!! Form::checkbox('directory_listing',1,null,['class' => 'checkbox']) !!} --}}
|
||||
{{-- </div> --}}
|
||||
{{-- </div> --}}
|
||||
{{-- </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','id'),null,['class' => 'form-control select']) !!}
|
||||
</div>
|
||||
</div>
|
||||
<!-- vocation mode -->
|
||||
{{-- <div> --}}
|
||||
{{-- <div class="row"> --}}
|
||||
{{-- {!! Form::label('vocation_mode',Lang::get('lang.vocation_mode')) !!} --}}
|
||||
{{-- <div class="col-xs-2"> --}}
|
||||
{{-- {!! Form::checkbox('vocation_mode',1,null,null,['class' => 'checkbox']) !!} --}}
|
||||
{{-- </div> --}}
|
||||
{{-- </div> --}}
|
||||
{{-- </div> --}}
|
||||
{{-- </div> --}}
|
||||
</div>
|
||||
<div class="row">
|
||||
<!-- assigned group -->
|
||||
<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', $groups->lists('name','id'),null,['class' => 'form-control select']) !!}
|
||||
</div>
|
||||
|
||||
<!-- team -->
|
||||
<div class="{{ $errors->has('team_id') ? 'has-error' : '' }}">
|
||||
<h4>{{Lang::get('lang.assigned_team')}}</h4>
|
||||
{!! $errors->first('team_id', '<spam class="help-block">Assign Team is Required</spam>') !!}
|
||||
</div>
|
||||
@while (list($key, $val) = each($teams))
|
||||
<div class="form-group ">
|
||||
<input type="checkbox" name="team_id[]" value="<?php echo $val;?> " <?php if (in_array($val, $assign)) {
|
||||
echo ('checked');
|
||||
} ?> > <?php echo " ".$key;?><br/>
|
||||
</div>
|
||||
@endwhile
|
||||
</div>
|
||||
@stop
|
||||
<!-- 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','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','id'),null,['class' => 'form-control select']) !!}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- team -->
|
||||
<div class="{{ $errors->has('team_id') ? 'has-error' : '' }}">
|
||||
<h4>{{Lang::get('lang.assigned_team')}}</h4>
|
||||
{!! $errors->first('team_id', '<spam class="help-block">Assign Team is Required</spam>') !!}
|
||||
</div>
|
||||
@while (list($key, $val) = each($teams))
|
||||
<div class="form-group ">
|
||||
<input type="checkbox" name="team_id[]" value="<?php echo $val; ?> " <?php
|
||||
if (in_array($val, $assign)) {
|
||||
echo ('checked');
|
||||
}
|
||||
?> > <?php echo " " . $key; ?><br/>
|
||||
</div>
|
||||
@endwhile
|
||||
</div>
|
||||
@stop
|
@@ -30,89 +30,87 @@ class="active"
|
||||
<!-- content -->
|
||||
@section('content')
|
||||
|
||||
|
||||
|
||||
<div class="box box-primary">
|
||||
<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-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">
|
||||
<?php
|
||||
$user = App\User::where('role','!=','user')->orderBy('id', 'ASC')->paginate(20);
|
||||
<div class="box-body table-responsive">
|
||||
<?php
|
||||
$user = App\User::where('role', '!=', 'user')->orderBy('id', 'ASC')->paginate(20);
|
||||
?>
|
||||
<!-- check whether success or not -->
|
||||
|
||||
@if(Session::has('success'))
|
||||
<div class="alert alert-success alert-dismissable">
|
||||
<i class="fa fa-check-circle"></i>
|
||||
<b>{!! Lang::get('lang.success') !!}</b>
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
{{Session::get('success')}}
|
||||
</div>
|
||||
@endif
|
||||
<!-- failure message -->
|
||||
@if(Session::has('fails'))
|
||||
<div class="alert alert-danger alert-dismissable">
|
||||
<i class="fa fa-ban"></i>
|
||||
<b>{!! Lang::get('lang.fails') !!}!</b>
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
{{Session::get('fails')}}
|
||||
</div>
|
||||
@endif
|
||||
<!-- Agent table -->
|
||||
<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>
|
||||
<th width="100px">{{Lang::get('lang.role')}}</th>
|
||||
<th width="100px">{{Lang::get('lang.status')}}</th>
|
||||
<th width="100px">{{Lang::get('lang.group')}}</th>
|
||||
<th width="100px">{{Lang::get('lang.department')}}</th>
|
||||
<th width="100px">{{Lang::get('lang.created')}}</th>
|
||||
{{-- <th width="100px">{{Lang::get('lang.lastlogin')}}</th> --}}
|
||||
<th width="100px">{{Lang::get('lang.action')}}</th>
|
||||
</tr>
|
||||
@foreach($user as $use)
|
||||
@if($use->role == 'admin' || $use->role == 'agent')
|
||||
<tr>
|
||||
<td><a href="{{route('agents.edit', $use->id)}}"> {!! $use->first_name !!} {!! " ". $use->last_name !!}</a></td>
|
||||
<td><a href="{{route('agents.edit', $use->id)}}"> {!! $use->user_name !!}</td>
|
||||
<?php
|
||||
if ($use->role == 'admin') {
|
||||
echo '<td><button class="btn btn-success btn-xs">Admin</button></td>';
|
||||
} elseif ($use->role == 'agent') {
|
||||
echo '<td><button class="btn btn-primary btn-xs">Agent</button></td>';
|
||||
}
|
||||
?>
|
||||
<td>
|
||||
@if($use->active=='1')
|
||||
<span style="color:green">{{'Active'}}</span>
|
||||
@else
|
||||
<span style="color:red">{{'Inactive'}}</span>
|
||||
@endif
|
||||
|
||||
<?php
|
||||
$group = App\Model\helpdesk\Agent\Groups::whereId($use->assign_group)->first();
|
||||
$department = App\Model\helpdesk\Agent\Department::whereId($use->primary_dpt)->first();
|
||||
?>
|
||||
<!-- check whether success or not -->
|
||||
|
||||
@if(Session::has('success'))
|
||||
<div class="alert alert-success alert-dismissable">
|
||||
<i class="fa fa-check-circle"></i>
|
||||
<b>{!! Lang::get('lang.success') !!}</b>
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
{{Session::get('success')}}
|
||||
<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::close() !!}
|
||||
</td>
|
||||
</tr>
|
||||
@endif
|
||||
@endforeach
|
||||
</table>
|
||||
</div>
|
||||
@endif
|
||||
<!-- failure message -->
|
||||
@if(Session::has('fails'))
|
||||
<div class="alert alert-danger alert-dismissable">
|
||||
<i class="fa fa-ban"></i>
|
||||
<b>{!! Lang::get('lang.fails') !!}!</b>
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
{{Session::get('fails')}}
|
||||
</div>
|
||||
@endif
|
||||
<!-- Agent table -->
|
||||
<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>
|
||||
<th width="100px">{{Lang::get('lang.role')}}</th>
|
||||
<th width="100px">{{Lang::get('lang.status')}}</th>
|
||||
<th width="100px">{{Lang::get('lang.group')}}</th>
|
||||
<th width="100px">{{Lang::get('lang.department')}}</th>
|
||||
<th width="100px">{{Lang::get('lang.created')}}</th>
|
||||
{{-- <th width="100px">{{Lang::get('lang.lastlogin')}}</th> --}}
|
||||
<th width="100px">{{Lang::get('lang.action')}}</th>
|
||||
</tr>
|
||||
@foreach($user as $use)
|
||||
@if($use->role == 'admin' || $use->role == 'agent')
|
||||
<tr>
|
||||
<td><a href="{{route('agents.edit', $use->id)}}"> {!! $use->first_name !!} {!! " ". $use->last_name !!}</a></td>
|
||||
<td><a href="{{route('agents.edit', $use->id)}}"> {!! $use->user_name !!}</td>
|
||||
<?php
|
||||
if($use->role == 'admin')
|
||||
{
|
||||
echo '<td><button class="btn btn-success btn-xs">Admin</button></td>';
|
||||
}
|
||||
elseif ($use->role == 'agent') {
|
||||
echo '<td><button class="btn btn-primary btn-xs">Agent</button></td>';
|
||||
}
|
||||
?>
|
||||
<td>
|
||||
@if($use->active=='1')
|
||||
<span style="color:green">{{'Active'}}</span>
|
||||
@else
|
||||
<span style="color:red">{{'Inactive'}}</span>
|
||||
@endif
|
||||
|
||||
<?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::close() !!}
|
||||
</td>
|
||||
</tr>
|
||||
@endif
|
||||
@endforeach
|
||||
</table>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
@stop
|
@@ -60,10 +60,10 @@ class="active"
|
||||
|
||||
<div class="row">
|
||||
<div class="col-xs-2">
|
||||
{!! Form::radio('type','1',true) !!}{{Lang::get('lang.public')}}
|
||||
{!! Form::radio('type','1',true) !!} {{Lang::get('lang.public')}}
|
||||
</div>
|
||||
<div class="col-xs-3">
|
||||
{!! Form::radio('type','0',null) !!}{{Lang::get('lang.private')}}
|
||||
{!! Form::radio('type','0',null) !!} {{Lang::get('lang.private')}}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
@@ -59,10 +59,10 @@ class="active"
|
||||
|
||||
<div class="row">
|
||||
<div class="col-xs-2">
|
||||
{!! Form::radio('type','1',true) !!}{{Lang::get('lang.public')}}
|
||||
{!! Form::radio('type','1',true) !!} {{Lang::get('lang.public')}}
|
||||
</div>
|
||||
<div class="col-xs-3">
|
||||
{!! Form::radio('type','0',null) !!}{{Lang::get('lang.private')}}
|
||||
{!! Form::radio('type','0',null) !!} {{Lang::get('lang.private')}}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -87,9 +87,26 @@ class="active"
|
||||
</div>
|
||||
|
||||
</div>
|
||||
{!!Form::close()!!}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<hr>
|
||||
|
||||
<h4>Outgoing Email Settings</h4>
|
||||
<br/>
|
||||
|
||||
<div class="row">
|
||||
<!-- sla -->
|
||||
<div class="col-xs-6 form-group {{ $errors->has('outgoing_email') ? 'has-error' : '' }}">
|
||||
|
||||
{!! Form::label('outgoing_email',Lang::get('lang.outgoing_email')) !!}
|
||||
{!! $errors->first('outgoing_email', '<spam class="help-block">:message</spam>') !!}
|
||||
{!!Form::select('outgoing_email', ['' => 'System Default', 'Emails'=>$emails->lists('email_name','id')],null,['class' => 'form-control select']) !!}
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
{!!Form::close()!!}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@stop
|
@@ -58,10 +58,10 @@ class="active"
|
||||
{!! $errors->first('group_status', '<spam class="help-block">:message</spam>') !!}
|
||||
<div class="row">
|
||||
<div class="col-xs-2">
|
||||
{!! Form::radio('group_status','1',true) !!}{{Lang::get('lang.enable')}}
|
||||
{!! Form::radio('group_status','1',true) !!} {{Lang::get('lang.enable')}}
|
||||
</div>
|
||||
<div class="col-xs-3">
|
||||
{!! Form::radio('group_status','0',null) !!}{{Lang::get('lang.disabled')}}
|
||||
{!! Form::radio('group_status','0',null) !!} {{Lang::get('lang.disabled')}}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
@@ -60,10 +60,10 @@ class="active"
|
||||
{!! $errors->first('group_status', '<spam class="help-block">:message</spam>') !!}
|
||||
<div class="row">
|
||||
<div class="col-xs-2">
|
||||
{!! Form::radio('group_status','1',true) !!}{{Lang::get('lang.enable')}}
|
||||
{!! Form::radio('group_status','1',true) !!} {{Lang::get('lang.enable')}}
|
||||
</div>
|
||||
<div class="col-xs-3">
|
||||
{!! Form::radio('group_status','0',null) !!}{{Lang::get('lang.disabled')}}
|
||||
{!! Form::radio('group_status','0',null) !!} {{Lang::get('lang.disabled')}}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
@@ -37,64 +37,64 @@ class="active"
|
||||
{!! Form::open(array('action' => 'Admin\helpdesk\TeamController@store' , 'method' => 'post') )!!}
|
||||
|
||||
|
||||
<div class="box box-primary">
|
||||
<div class="content-header">
|
||||
<div class="box box-primary">
|
||||
<div class="content-header">
|
||||
|
||||
<h4>{!! Lang::get('lang.create') !!} {!! Form::submit(Lang::get('lang.save'),['class'=>'form-group btn btn-primary pull-right'])!!}</h4>
|
||||
<h4>{!! Lang::get('lang.create') !!} {!! Form::submit(Lang::get('lang.save'),['class'=>'form-group btn btn-primary pull-right'])!!}</h4>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="box-body">
|
||||
<div class="box-body">
|
||||
|
||||
<div class="row">
|
||||
<div class="row">
|
||||
|
||||
<!-- name -->
|
||||
<div class="col-xs-6 form-group {{ $errors->has('name') ? 'has-error' : '' }}">
|
||||
<!-- name -->
|
||||
<div class="col-xs-6 form-group {{ $errors->has('name') ? 'has-error' : '' }}">
|
||||
|
||||
{!! Form::label('name',Lang::get('lang.name')) !!}
|
||||
{!! $errors->first('name', '<spam class="help-block">:message</spam>') !!}
|
||||
{!! Form::text('name',null,['class' => 'form-control']) !!}
|
||||
{!! Form::label('name',Lang::get('lang.name')) !!}
|
||||
{!! $errors->first('name', '<spam class="help-block">:message</spam>') !!}
|
||||
{!! Form::text('name',null,['class' => 'form-control']) !!}
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- team lead -->
|
||||
<div class="col-xs-6 form-group {{ $errors->has('team_lead') ? 'has-error' : '' }}">
|
||||
<!-- team lead -->
|
||||
<div class="col-xs-6 form-group {{ $errors->has('team_lead') ? 'has-error' : '' }}">
|
||||
|
||||
{!! Form::label('team_lead',Lang::get('lang.team_lead')) !!}
|
||||
{!! $errors->first('team_lead', '<spam class="help-block">:message</spam>') !!}
|
||||
<?php $user = App\User::where('role','admin')->orWhere('role','agent')->get(); ?>
|
||||
{!! Form::select('team_lead',[''=>'Select a Team Leader','Members'=>$user->lists('user_name','id')],null,['class' => 'form-control']) !!}
|
||||
{!! Form::label('team_lead',Lang::get('lang.team_lead')) !!}
|
||||
{!! $errors->first('team_lead', '<spam class="help-block">:message</spam>') !!}
|
||||
<?php $user = App\User::where('role', 'admin')->orWhere('role', 'agent')->get(); ?>
|
||||
{!! Form::select('team_lead',[''=>'Select a Team Leader','Members'=>$user->lists('user_name','id')],null,['class' => 'form-control']) !!}
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<!-- status -->
|
||||
<div class="form-group {{ $errors->has('status') ? 'has-error' : '' }}">
|
||||
</div>
|
||||
<!-- status -->
|
||||
<div class="form-group {{ $errors->has('status') ? 'has-error' : '' }}">
|
||||
|
||||
{!! Form::label('status',Lang::get('lang.status')) !!}
|
||||
{!! $errors->first('status', '<spam class="help-block">:message</spam>') !!}
|
||||
<div class="row">
|
||||
<div class="col-xs-1">
|
||||
{!! Form::radio('status','1',true) !!}{{Lang::get('lang.active')}}
|
||||
</div>
|
||||
<div class="col-xs-2">
|
||||
{!! Form::radio('status','0',null) !!}{{Lang::get('lang.disabled')}}
|
||||
</div>
|
||||
</div>
|
||||
{!! Form::label('status',Lang::get('lang.status')) !!}
|
||||
{!! $errors->first('status', '<spam class="help-block">:message</spam>') !!}
|
||||
<div class="row">
|
||||
<div class="col-xs-1">
|
||||
{!! Form::radio('status','1',true) !!} {{Lang::get('lang.active')}}
|
||||
</div>
|
||||
<div class="col-xs-2">
|
||||
{!! Form::radio('status','0',null) !!} {{Lang::get('lang.disabled')}}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<!-- admin notes -->
|
||||
<div class="form-group">
|
||||
<!-- admin notes -->
|
||||
<div class="form-group">
|
||||
|
||||
{!! Form::label('admin_notes',Lang::get('lang.admin_notes')) !!}
|
||||
{!! Form::textarea('admin_notes',null,['class' => 'form-control','size' => '30x5']) !!}
|
||||
{!! Form::label('admin_notes',Lang::get('lang.admin_notes')) !!}
|
||||
{!! Form::textarea('admin_notes',null,['class' => 'form-control','size' => '30x5']) !!}
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{!!Form::close()!!}
|
||||
</div>
|
||||
{!!Form::close()!!}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@stop
|
@@ -36,63 +36,63 @@ class="active"
|
||||
{!!Form::model($teams, ['url'=>'teams/'.$teams->id , 'method'=> 'PATCH'])!!}
|
||||
|
||||
|
||||
<div class="box box-primary">
|
||||
<div class="content-header">
|
||||
<div class="box box-primary">
|
||||
<div class="content-header">
|
||||
|
||||
<h4>{!! Lang::get('lang.edit') !!} {!! Form::submit(Lang::get('lang.save'),['class'=>'form-group btn btn-primary pull-right'])!!}</h4>
|
||||
<h4>{!! Lang::get('lang.edit') !!} {!! Form::submit(Lang::get('lang.save'),['class'=>'form-group btn btn-primary pull-right'])!!}</h4>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="box-body">
|
||||
<div class="box-body">
|
||||
|
||||
<div class="row">
|
||||
<!-- name -->
|
||||
<div class="col-xs-6 form-group {{ $errors->has('name') ? 'has-error' : '' }}">
|
||||
<div class="row">
|
||||
<!-- name -->
|
||||
<div class="col-xs-6 form-group {{ $errors->has('name') ? 'has-error' : '' }}">
|
||||
|
||||
{!! Form::label('name',Lang::get('lang.name')) !!}
|
||||
{!! $errors->first('name', '<spam class="help-block">:message</spam>') !!}
|
||||
{!! Form::text('name',null,['class' => 'form-control']) !!}
|
||||
{!! Form::label('name',Lang::get('lang.name')) !!}
|
||||
{!! $errors->first('name', '<spam class="help-block">:message</spam>') !!}
|
||||
{!! Form::text('name',null,['class' => 'form-control']) !!}
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<!-- team lead -->
|
||||
<div class="col-xs-6 form-group {{ $errors->has('team_lead') ? 'has-error' : '' }}">
|
||||
{!! Form::label('team_lead',Lang::get('lang.team_lead')) !!}
|
||||
{!! $errors->first('team_lead', '<spam class="help-block">:message</spam>') !!}
|
||||
<?php $user = App\User::where('role','admin')->orWhere('role','agent')->get(); ?>
|
||||
{!! Form::select('team_lead',[''=>'Select a Team Leader','Members'=>$user->lists('user_name','id')],null,['class' => 'form-control']) !!}
|
||||
<!-- team lead -->
|
||||
<div class="col-xs-6 form-group {{ $errors->has('team_lead') ? 'has-error' : '' }}">
|
||||
{!! Form::label('team_lead',Lang::get('lang.team_lead')) !!}
|
||||
{!! $errors->first('team_lead', '<spam class="help-block">:message</spam>') !!}
|
||||
<?php $user = App\User::where('role', 'admin')->orWhere('role', 'agent')->get(); ?>
|
||||
{!! Form::select('team_lead',[''=>'Select a Team Leader','Members'=>$user->lists('user_name','id')],null,['class' => 'form-control']) !!}
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<!-- status -->
|
||||
<div class="form-group {{ $errors->has('status') ? 'has-error' : '' }}">
|
||||
</div>
|
||||
<!-- status -->
|
||||
<div class="form-group {{ $errors->has('status') ? 'has-error' : '' }}">
|
||||
|
||||
{!! Form::label('status',Lang::get('lang.status')) !!}
|
||||
{!! $errors->first('status', '<spam class="help-block">:message</spam>') !!}
|
||||
<div class="row">
|
||||
<div class="col-xs-1">
|
||||
{!! Form::radio('status','1',true) !!}{{Lang::get('lang.active')}}
|
||||
</div>
|
||||
<div class="col-xs-2">
|
||||
{!! Form::radio('status','0',null) !!}{{Lang::get('lang.disabled')}}
|
||||
</div>
|
||||
</div>
|
||||
{!! Form::label('status',Lang::get('lang.status')) !!}
|
||||
{!! $errors->first('status', '<spam class="help-block">:message</spam>') !!}
|
||||
<div class="row">
|
||||
<div class="col-xs-1">
|
||||
{!! Form::radio('status','1',true) !!} {{Lang::get('lang.active')}}
|
||||
</div>
|
||||
<div class="col-xs-2">
|
||||
{!! Form::radio('status','0',null) !!} {{Lang::get('lang.disabled')}}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<!-- admin notes -->
|
||||
<div class="form-group">
|
||||
|
||||
{!! Form::label('admin_notes',Lang::get('lang.admin_notes')) !!}
|
||||
{!! Form::textarea('admin_notes',null,['class' => 'form-control','size' => '30x5']) !!}
|
||||
<!-- admin notes -->
|
||||
<div class="form-group">
|
||||
|
||||
</div>
|
||||
{!! Form::label('admin_notes',Lang::get('lang.admin_notes')) !!}
|
||||
{!! Form::textarea('admin_notes',null,['class' => 'form-control','size' => '30x5']) !!}
|
||||
|
||||
{!!Form::close()!!}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{!!Form::close()!!}
|
||||
</div>
|
||||
</div>
|
||||
@stop
|
@@ -28,81 +28,81 @@ class="active"
|
||||
<!-- /breadcrumbs -->
|
||||
<!-- content -->
|
||||
@section('content')
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="box box-primary">
|
||||
<div class="box-header">
|
||||
<h2 class="box-title">{{Lang::get('lang.teams')}}</h2><a href="{{route('teams.create')}}" class="btn btn-primary pull-right">{{Lang::get('lang.create_team')}}</a></div>
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="box box-primary">
|
||||
<div class="box-header">
|
||||
<h2 class="box-title">{{Lang::get('lang.teams')}}</h2><a href="{{route('teams.create')}}" class="btn btn-primary pull-right">{{Lang::get('lang.create_team')}}</a></div>
|
||||
|
||||
<div class="box-body table-responsive">
|
||||
<div class="box-body table-responsive">
|
||||
|
||||
<!-- check whether success or not -->
|
||||
<!-- check whether success or not -->
|
||||
|
||||
@if(Session::has('success'))
|
||||
<div class="alert alert-success alert-dismissable">
|
||||
<i class="fa fa-check-circle"></i>
|
||||
<b>Success!</b>
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
{{Session::get('success')}}
|
||||
@if(Session::has('success'))
|
||||
<div class="alert alert-success alert-dismissable">
|
||||
<i class="fa fa-check-circle"></i>
|
||||
<b>Success!</b>
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
{{Session::get('success')}}
|
||||
</div>
|
||||
@endif
|
||||
<!-- failure message -->
|
||||
@if(Session::has('fails'))
|
||||
<div class="alert alert-danger alert-dismissable">
|
||||
<i class="fa fa-ban"></i>
|
||||
<b>Fail!</b>
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
{{Session::get('fails')}}
|
||||
</div>
|
||||
@endif
|
||||
|
||||
<table class="table table-bordered dataTable" style="overflow:hidden;">
|
||||
<tr>
|
||||
<th>{{Lang::get('lang.name')}}</th>
|
||||
<th>{{Lang::get('lang.status')}}</th>
|
||||
<th>{{Lang::get('lang.team_members')}}</th>
|
||||
<th>{{Lang::get('lang.team_lead')}}</th>
|
||||
<th>{{Lang::get('lang.action')}}</th>
|
||||
</tr>
|
||||
@foreach($teams as $team)
|
||||
<tr>
|
||||
<td><a href="{{route('teams.edit', $team->id)}}"> {{$team -> name }}</a></td>
|
||||
<td>
|
||||
@if($team->status=='1')
|
||||
<span style="color:green">{{'Active'}}</span>
|
||||
@else
|
||||
<span style="color:red">{{'Inactive'}}</span>
|
||||
@endif
|
||||
|
||||
<?php
|
||||
if ($team->team_lead == 0) {
|
||||
$team_lead = "";
|
||||
} else {
|
||||
$users = App\User::whereId($team->team_lead)->first();
|
||||
$team_lead = $users->first_name . " " . $users->last_name;
|
||||
}
|
||||
?>
|
||||
<td>{{count($assign_team_agent->where('team_id',$team->id))}}</td>
|
||||
<td>{{ $team_lead }}</td>
|
||||
<td>
|
||||
{!! Form::open(['route'=>['teams.destroy', $team->id],'method'=>'DELETE']) !!}
|
||||
<!-- To pop up a confirm Message -->
|
||||
<a href="{{route('teams.edit', $team->id)}}" class="btn btn-info btn-xs btn-flat"><i class="fa fa-edit" style="color:black;"> </i> Edit</a>
|
||||
{!! Form::button('<i class="fa fa-trash" style="color:black;"> </i> Delete',
|
||||
['type' => 'submit',
|
||||
'class'=> 'btn btn-warning btn-xs btn-flat',
|
||||
'onclick'=>'return confirm("Are you sure?")'])
|
||||
!!}
|
||||
{!! Form::close() !!}
|
||||
</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endif
|
||||
<!-- failure message -->
|
||||
@if(Session::has('fails'))
|
||||
<div class="alert alert-danger alert-dismissable">
|
||||
<i class="fa fa-ban"></i>
|
||||
<b>Fail!</b>
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
{{Session::get('fails')}}
|
||||
</div>
|
||||
@endif
|
||||
|
||||
<table class="table table-bordered dataTable" style="overflow:hidden;">
|
||||
<tr>
|
||||
<th>{{Lang::get('lang.name')}}</th>
|
||||
<th>{{Lang::get('lang.status')}}</th>
|
||||
<th>{{Lang::get('lang.team_members')}}</th>
|
||||
<th>{{Lang::get('lang.team_lead')}}</th>
|
||||
<th>{{Lang::get('lang.action')}}</th>
|
||||
</tr>
|
||||
@foreach($teams as $team)
|
||||
<tr>
|
||||
<td><a href="{{route('teams.edit', $team->id)}}"> {{$team -> name }}</a></td>
|
||||
<td>
|
||||
@if($team->status=='1')
|
||||
<span style="color:green">{{'Active'}}</span>
|
||||
@else
|
||||
<span style="color:red">{{'Inactive'}}</span>
|
||||
@endif
|
||||
|
||||
<?php
|
||||
if($team->team_lead == 0) {
|
||||
$team_lead = "";
|
||||
} else {
|
||||
$users = App\User::whereId($team->team_lead)->first();
|
||||
$team_lead = $users->first_name . " " . $users->last_name;
|
||||
}
|
||||
?>
|
||||
<td>{{count($assign_team_agent->where('team_id',$team->id))}}</td>
|
||||
<td>{{ $team_lead }}</td>
|
||||
<td>
|
||||
{!! Form::open(['route'=>['teams.destroy', $team->id],'method'=>'DELETE']) !!}
|
||||
<!-- To pop up a confirm Message -->
|
||||
<a href="{{route('teams.edit', $team->id)}}" class="btn btn-info btn-xs btn-flat"><i class="fa fa-edit" style="color:black;"> </i> Edit</a>
|
||||
{!! Form::button('<i class="fa fa-trash" style="color:black;"> </i> Delete',
|
||||
['type' => 'submit',
|
||||
'class'=> 'btn btn-warning btn-xs btn-flat',
|
||||
'onclick'=>'return confirm("Are you sure?")'])
|
||||
!!}
|
||||
{!! Form::close() !!}
|
||||
</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@stop
|
@@ -66,10 +66,10 @@ class="active"
|
||||
{!! Form::label('ban',Lang::get('lang.ban_status')) !!}
|
||||
<div class="row">
|
||||
<div class="col-xs-3">
|
||||
{!! Form::radio('ban',1) !!}{{Lang::get('lang.active')}}
|
||||
{!! Form::radio('ban',1) !!} {{Lang::get('lang.active')}}
|
||||
</div>
|
||||
<div class="col-xs-3">
|
||||
{!! Form::radio('ban',0) !!}{{Lang::get('lang.disabled')}}
|
||||
{!! Form::radio('ban',0) !!} {{Lang::get('lang.disabled')}}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
@@ -46,10 +46,10 @@ class="active"
|
||||
{!! Form::label('ban',Lang::get('lang.ban_status')) !!}
|
||||
<div class="row">
|
||||
<div class="col-xs-3">
|
||||
{!! Form::radio('ban',1) !!}{{Lang::get('lang.active')}}
|
||||
{!! Form::radio('ban',1) !!} {{Lang::get('lang.active')}}
|
||||
</div>
|
||||
<div class="col-xs-3">
|
||||
{!! Form::radio('ban',0) !!}{{Lang::get('lang.disabled')}}
|
||||
{!! Form::radio('ban',0) !!} {{Lang::get('lang.disabled')}}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
@@ -63,12 +63,12 @@ class="active"
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<!-- department -->
|
||||
<!-- department -->
|
||||
<div class="col-xs-4 form-group {{ $errors->has('department') ? 'has-error' : '' }}">
|
||||
|
||||
{!! Form::label('department',Lang::get('lang.department')) !!}
|
||||
{!! $errors->first('department', '<spam class="help-block">:message</spam>') !!}
|
||||
{!!Form::select('department', [''=>'Select a Department','departments'=>$departments->lists('name','id')],null,['class' => 'form-control select']) !!}
|
||||
{!!Form::select('department', [''=>'--System Default--','departments'=>$departments->lists('name','id')],null,['class' => 'form-control select']) !!}
|
||||
|
||||
</div>
|
||||
<!-- Priority -->
|
||||
@@ -76,7 +76,7 @@ class="active"
|
||||
|
||||
{!! Form::label('priority',Lang::get('lang.priority')) !!}
|
||||
{!! $errors->first('priority', '<spam class="help-block">:message</spam>') !!}
|
||||
{!!Form::select('priority', [''=>'Select a Priority','Priorities'=>$priority->lists('priority_desc','priority_id')],null,['class' => 'form-control select']) !!}
|
||||
{!!Form::select('priority', [''=>'--System Default--','Priorities'=>$priority->lists('priority_desc','priority_id')],null,['class' => 'form-control select']) !!}
|
||||
|
||||
</div>
|
||||
<!-- Help topic -->
|
||||
@@ -84,7 +84,7 @@ class="active"
|
||||
|
||||
{!! Form::label('help_topic',Lang::get('lang.help_topic')) !!}
|
||||
{!! $errors->first('help_topic', '<spam class="help-block">:message</spam>') !!}
|
||||
{!!Form::select('help_topic', [''=>'Select a Helptopic','Help Topics'=>$helps->lists('topic','id')],null,['class' => 'form-control select']) !!}
|
||||
{!!Form::select('help_topic', [''=>'--System Default--','Help Topics'=>$helps->lists('topic','id')],null,['class' => 'form-control select']) !!}
|
||||
|
||||
</div>
|
||||
|
||||
@@ -120,7 +120,7 @@ class="active"
|
||||
|
||||
<div class="col-md-6 form-group">
|
||||
|
||||
<h4>{!! Lang::get('lang.fetching_email_via_imap_or_pop') !!}</h4>
|
||||
<h4>{!! Lang::get('lang.fetching_email_via_imap') !!}</h4>
|
||||
|
||||
</div>
|
||||
|
||||
@@ -134,10 +134,10 @@ class="active"
|
||||
{!! Form::label('fetching_status',Lang::get('lang.status')) !!}
|
||||
</div>
|
||||
<div class="col-xs-2 form-group">
|
||||
{!! Form::radio('fetching_status','1',true) !!}{{Lang::get('lang.enable')}}
|
||||
{!! Form::radio('fetching_status','1',true) !!} {{Lang::get('lang.enable')}}
|
||||
</div>
|
||||
<div class="col-xs-2 form-group">
|
||||
{!! Form::radio('fetching_status','0',null) !!}{{Lang::get('lang.disabled')}}
|
||||
{!! Form::radio('fetching_status','0',null) !!} {{Lang::get('lang.disabled')}}
|
||||
</div>
|
||||
|
||||
</div>
|
||||
@@ -181,82 +181,92 @@ class="active"
|
||||
|
||||
</div>
|
||||
|
||||
{{-- <div class="row"> --}}
|
||||
<hr>
|
||||
|
||||
{{-- <div class="col-md-6 form-group"> --}}
|
||||
<div class="row">
|
||||
|
||||
{{-- <h4>Sending Email via SMTP</h4> --}}
|
||||
<div class="col-md-6 form-group">
|
||||
|
||||
{{-- </div> --}}
|
||||
<h4>Sending Email via SMTP</h4>
|
||||
|
||||
{{-- </div> --}}
|
||||
</div>
|
||||
|
||||
{{-- <div class="row"> --}}
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<!-- status -->
|
||||
{{-- <div class="form-group"> --}}
|
||||
<div class="form-group">
|
||||
|
||||
{{-- <div class="col-xs-1 form-group"> --}}
|
||||
{{-- {!! Form::label('sending_status',Lang::get('lang.status')) !!} --}}
|
||||
{{-- </div> --}}
|
||||
{{-- <div class="col-xs-2 form-group"> --}}
|
||||
{{-- {!! Form::radio('sending_status','1',true) !!}{{Lang::get('lang.enable')}} --}}
|
||||
{{-- </div> --}}
|
||||
{{-- <div class="col-xs-2 form-group"> --}}
|
||||
{{-- {!! Form::radio('sending_status','0',null) !!}{{Lang::get('lang.disabled')}} --}}
|
||||
{{-- </div> --}}
|
||||
<div class="col-xs-1 form-group">
|
||||
{!! Form::label('sending_status',Lang::get('lang.status')) !!}
|
||||
</div>
|
||||
<div class="col-xs-2 form-group">
|
||||
{!! Form::radio('sending_status','1',true) !!} {{Lang::get('lang.enable')}}
|
||||
</div>
|
||||
<div class="col-xs-2 form-group">
|
||||
{!! Form::radio('sending_status','0',null) !!} {{Lang::get('lang.disabled')}}
|
||||
</div>
|
||||
|
||||
{{-- </div> --}}
|
||||
</div>
|
||||
|
||||
{{-- </div> --}}
|
||||
</div>
|
||||
|
||||
{{-- <div class="row"> --}}
|
||||
<!-- sending port -->
|
||||
{{-- <div class="col-xs-6 form-group {{ $errors->has('sending_port') ? 'has-error' : '' }}"> --}}
|
||||
|
||||
{{-- {!! Form::label('sending_port',Lang::get('lang.port_number')) !!} --}}
|
||||
{{-- {!! $errors->first('sending_port', '<spam class="help-block">:message</spam>') !!} --}}
|
||||
{{-- {!! Form::text('sending_port',null,['class' => 'form-control']) !!} --}}
|
||||
|
||||
{{-- </div> --}}
|
||||
<div class="row">
|
||||
<!-- sending hoost -->
|
||||
{{-- <div class="col-xs-6 form-group {{ $errors->has('sending_host') ? 'has-error' : '' }}"> --}}
|
||||
<div class="col-xs-4 form-group {{ $errors->has('sending_host') ? 'has-error' : '' }}">
|
||||
|
||||
{{-- {!! Form::label('sending_host',Lang::get('lang.host_name')) !!} --}}
|
||||
{{-- {!! $errors->first('sending_host', '<spam class="help-block">:message</spam>') !!} --}}
|
||||
{{-- {!! Form::text('sending_host',null,['class' => 'form-control']) !!} --}}
|
||||
{!! Form::label('sending_host',Lang::get('lang.host_name')) !!}
|
||||
{!! $errors->first('sending_host', '<spam class="help-block">:message</spam>') !!}
|
||||
{!! Form::text('sending_host',null,['class' => 'form-control']) !!}
|
||||
|
||||
{{-- </div> --}}
|
||||
</div>
|
||||
<!-- sending port -->
|
||||
<div class="col-xs-4 form-group {{ $errors->has('sending_port') ? 'has-error' : '' }}">
|
||||
|
||||
{{-- </div> --}}
|
||||
{!! Form::label('sending_port',Lang::get('lang.port_number')) !!}
|
||||
{!! $errors->first('sending_port', '<spam class="help-block">:message</spam>') !!}
|
||||
{!! Form::text('sending_port',null,['class' => 'form-control']) !!}
|
||||
|
||||
<div class="row">
|
||||
</div>
|
||||
<!-- Encryption -->
|
||||
<div class="col-xs-4 form-group {{ $errors->has('sending_encryption') ? 'has-error' : '' }}">
|
||||
|
||||
{!! Form::label('sending_encryption',Lang::get('lang.encryption')) !!}
|
||||
{!! $errors->first('sending_encryption', '<spam class="help-block">:message</spam>') !!}
|
||||
{!!Form::select('sending_encryption',['ssl'=>'SSL','tls'=>'TLS'],null,['class' => 'form-control select']) !!}
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<!-- <div class="row"> -->
|
||||
<!-- authentication required -->
|
||||
{{-- <div class="form-group"> --}}
|
||||
<!-- <div class="form-group"> -->
|
||||
|
||||
{{-- <div class="col-xs-2 form-group"> --}}
|
||||
{{-- {!! Form::label('authentication',Lang::get('lang.authentication_required')) !!} --}}
|
||||
{{-- </div> --}}
|
||||
{{-- <div class="col-xs-2 form-group"> --}}
|
||||
{{-- {!! Form::radio('authentication','1',true) !!}{{Lang::get('lang.enable')}} --}}
|
||||
{{-- </div> --}}
|
||||
{{-- <div class="col-xs-2 form-group"> --}}
|
||||
{{-- {!! Form::radio('authentication','0',null) !!}{{Lang::get('lang.disabled')}} --}}
|
||||
{{-- </div> --}}
|
||||
<!-- <div class="col-xs-2 form-group"> -->
|
||||
<!-- {!! Form::label('authentication',Lang::get('lang.authentication_required')) !!} -->
|
||||
<!-- </div> -->
|
||||
<!-- <div class="col-xs-2 form-group"> -->
|
||||
<!-- {!! Form::radio('authentication','1',true) !!} {{Lang::get('lang.enable')}} -->
|
||||
<!-- </div> -->
|
||||
<!-- <div class="col-xs-2 form-group"> -->
|
||||
<!-- {!! Form::radio('authentication','0',null) !!} {{Lang::get('lang.disabled')}} -->
|
||||
<!-- </div> -->
|
||||
|
||||
{{-- </div> --}}
|
||||
<!-- </div> -->
|
||||
|
||||
{{-- <div class="form-group"> --}}
|
||||
<!-- <div class="form-group"> -->
|
||||
<!-- header snoofing -->
|
||||
{{-- <div class="col-xs-2"> --}}
|
||||
<!-- <div class="col-xs-2"> -->
|
||||
|
||||
{{-- {!! Form::label('',Lang::get('lang.header_spoofing')) !!} --}}
|
||||
{{-- {!! Form::checkbox('header_spoofing',1,null,['class' => 'checkbox']) !!} --}}
|
||||
<!-- // {!! Form::label('',Lang::get('lang.header_spoofing')) !!} -->
|
||||
<!-- // {!! Form::checkbox('header_spoofing',1,null,['class' => 'checkbox']) !!} -->
|
||||
|
||||
{{-- </div> --}}
|
||||
<!-- </div> -->
|
||||
|
||||
{{-- </div> --}}
|
||||
<!-- </div> -->
|
||||
|
||||
</div>
|
||||
<!-- </div> -->
|
||||
<!-- Internal notes -->
|
||||
<div class="form-group">
|
||||
|
||||
|
@@ -68,7 +68,7 @@ class="active"
|
||||
|
||||
{!! Form::label('department',Lang::get('lang.department')) !!}
|
||||
{!! $errors->first('department', '<spam class="help-block">:message</spam>') !!}
|
||||
{!!Form::select('department', [''=>'Select a Department','departments'=>$departments->lists('name','id')],null,['class' => 'form-control select']) !!}
|
||||
{!!Form::select('department', [''=>'--System Default--','departments'=>$departments->lists('name','id')],null,['class' => 'form-control select']) !!}
|
||||
|
||||
</div>
|
||||
<!-- priority -->
|
||||
@@ -76,7 +76,7 @@ class="active"
|
||||
|
||||
{!! Form::label('priority',Lang::get('lang.priority')) !!}
|
||||
{!! $errors->first('priority', '<spam class="help-block">:message</spam>') !!}
|
||||
{!!Form::select('priority', [''=>'Select a Priority','Priorities'=>$priority->lists('priority_desc','priority_id')],null,['class' => 'form-control select']) !!}
|
||||
{!!Form::select('priority', [''=>'--System Default--','Priorities'=>$priority->lists('priority_desc','priority_id')],null,['class' => 'form-control select']) !!}
|
||||
|
||||
</div>
|
||||
<!-- help topic -->
|
||||
@@ -84,7 +84,7 @@ class="active"
|
||||
|
||||
{!! Form::label('help_topic',Lang::get('lang.help_topic')) !!}
|
||||
{!! $errors->first('help_topic', '<spam class="help-block">:message</spam>') !!}
|
||||
{!!Form::select('help_topic', [''=>'Select a Helptopic','Help Topics'=>$helps->lists('topic','id')],null,['class' => 'form-control select']) !!}
|
||||
{!!Form::select('help_topic', [''=>'--System Default--','Help Topics'=>$helps->lists('topic','id')],null,['class' => 'form-control select']) !!}
|
||||
</div>
|
||||
|
||||
</div>
|
||||
@@ -127,7 +127,7 @@ class="active"
|
||||
|
||||
<div class="col-md-6 form-group">
|
||||
|
||||
<h4>{!! Lang::get('lang.fetching_email_via_imap_or_pop') !!}</h4>
|
||||
<h4>{!! Lang::get('lang.fetching_email_via_imap') !!}</h4>
|
||||
|
||||
</div>
|
||||
|
||||
@@ -141,10 +141,10 @@ class="active"
|
||||
{!! Form::label('fetching_status',Lang::get('lang.status')) !!}
|
||||
</div>
|
||||
<div class="col-xs-2 form-group">
|
||||
{!! Form::radio('fetching_status','1',true) !!}{{Lang::get('lang.enable')}}
|
||||
{!! Form::radio('fetching_status','1',true) !!} {{Lang::get('lang.enable')}}
|
||||
</div>
|
||||
<div class="col-xs-2 form-group">
|
||||
{!! Form::radio('fetching_status','0',null) !!}{{Lang::get('lang.disabled')}}
|
||||
{!! Form::radio('fetching_status','0',null) !!} {{Lang::get('lang.disabled')}}
|
||||
</div>
|
||||
|
||||
</div>
|
||||
@@ -178,6 +178,69 @@ class="active"
|
||||
<!-- imap config -->
|
||||
</div>
|
||||
|
||||
<hr>
|
||||
|
||||
<div class="row">
|
||||
|
||||
<div class="col-md-6 form-group">
|
||||
|
||||
<h4>Sending Email via SMTP</h4>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<!-- status -->
|
||||
<div class="form-group">
|
||||
|
||||
<div class="col-xs-1 form-group">
|
||||
{!! Form::label('sending_status',Lang::get('lang.status')) !!}
|
||||
</div>
|
||||
<div class="col-xs-2 form-group">
|
||||
{!! Form::radio('sending_status','1',true) !!} {{Lang::get('lang.enable')}}
|
||||
</div>
|
||||
<div class="col-xs-2 form-group">
|
||||
{!! Form::radio('sending_status','0',null) !!} {{Lang::get('lang.disabled')}}
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<!-- sending hoost -->
|
||||
<div class="col-xs-4 form-group {{ $errors->has('sending_host') ? 'has-error' : '' }}">
|
||||
|
||||
{!! Form::label('sending_host',Lang::get('lang.host_name')) !!}
|
||||
{!! $errors->first('sending_host', '<spam class="help-block">:message</spam>') !!}
|
||||
{!! Form::text('sending_host',null,['class' => 'form-control']) !!}
|
||||
|
||||
</div>
|
||||
|
||||
<!-- sending port -->
|
||||
<div class="col-xs-4 form-group {{ $errors->has('sending_port') ? 'has-error' : '' }}">
|
||||
|
||||
{!! Form::label('sending_port',Lang::get('lang.port_number')) !!}
|
||||
{!! $errors->first('sending_port', '<spam class="help-block">:message</spam>') !!}
|
||||
{!! Form::text('sending_port',null,['class' => 'form-control']) !!}
|
||||
|
||||
</div>
|
||||
|
||||
<!-- Encryption -->
|
||||
<div class="col-xs-4 form-group {{ $errors->has('sending_encryption') ? 'has-error' : '' }}">
|
||||
|
||||
{!! Form::label('sending_encryption',Lang::get('lang.encryption')) !!}
|
||||
{!! $errors->first('sending_encryption', '<spam class="help-block">:message</spam>') !!}
|
||||
{!!Form::select('sending_encryption',['ssl'=>'SSL','tls'=>'TLS'],null,['class' => 'form-control select']) !!}
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<!-- internal notes -->
|
||||
<div class="form-group">
|
||||
|
||||
|
@@ -55,6 +55,15 @@ class="active"
|
||||
{{Session::get('fails')}}
|
||||
</div>
|
||||
@endif
|
||||
|
||||
<?php
|
||||
$default_system_email = App\Model\helpdesk\Settings\Email::where('id', '=', '1')->first();
|
||||
if($default_system_email->sys_email) {
|
||||
$default_email = $default_system_email->sys_email;
|
||||
} else {
|
||||
$default_email = null;
|
||||
}
|
||||
?>
|
||||
<!-- table -->
|
||||
<table class="table table-bordered dataTable" style="overflow:hidden;">
|
||||
<tr>
|
||||
@@ -67,26 +76,39 @@ class="active"
|
||||
</tr>
|
||||
@foreach($emails as $email)
|
||||
<tr>
|
||||
<td><a href="{{route('emails.edit', $email->id)}}"> {{$email -> email_address }}</a></td>
|
||||
|
||||
<td><a href="{{route('emails.edit', $email->id)}}"> {{$email -> email_address }}</a>
|
||||
@if($default_email == $email->id)
|
||||
( Default )
|
||||
<?php $disabled = 'disabled'; ?>
|
||||
@else
|
||||
<?php $disabled = ''; ?>
|
||||
@endif
|
||||
</td>
|
||||
<?php $priority = App\Model\helpdesk\Ticket\Ticket_Priority::where('priority_id','=',$email->priority)->first(); ?>
|
||||
<td>{{ ucfirst($priority->priority_desc) }}</td>
|
||||
@if($email->priority == null)
|
||||
<?php $priority = "<a href=". url('getticket') .">System Default</a>"; ?>
|
||||
@else
|
||||
<?php $priority = ucfirst($priority->priority_desc); ?>
|
||||
@endif
|
||||
<td>{!! $priority !!}</td>
|
||||
@if($email->department !== null)
|
||||
<?php $department = App\Model\helpdesk\Agent\Department::where('id','=',$email->department)->first();
|
||||
$dept = $department->name; ?>
|
||||
@elseif($email->department == null)
|
||||
<?php $dept = ""; ?>
|
||||
<?php $dept = "<a href=". url('getsystem') .">System Default</a>"; ?>
|
||||
@endif
|
||||
|
||||
<td>{{ $dept }}</td>
|
||||
<td>{{ UTC::usertimezone($email->created_at) }}</td>
|
||||
<td>{{ UTC::usertimezone($email->updated_at) }}</td>
|
||||
|
||||
<td>{!! $dept !!}</td>
|
||||
<td>{!! UTC::usertimezone($email->created_at) !!}</td>
|
||||
<td>{!! UTC::usertimezone($email->updated_at) !!}</td>
|
||||
<td>
|
||||
{!! Form::open(['route'=>['emails.destroy', $email->id],'method'=>'DELETE']) !!}
|
||||
<a href="{{route('emails.edit', $email->id)}}" class="btn btn-info btn-xs btn-flat"><i class="fa fa-edit" style="color:black;"> </i> Edit</a>
|
||||
<!-- To pop up a confirm Message -->
|
||||
{!! Form::button('<i class="fa fa-trash" style="color:black;"> </i> Delete',
|
||||
['type' => 'submit',
|
||||
'class'=> 'btn btn-warning btn-xs btn-flat',
|
||||
'class'=> 'btn btn-warning btn-xs btn-flat '. $disabled,
|
||||
'onclick'=>'return confirm("Are you sure?")'])
|
||||
!!}
|
||||
{!! Form::close() !!}
|
||||
@@ -98,5 +120,4 @@ class="active"
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@stop
|
||||
|
@@ -32,42 +32,10 @@ class="active"
|
||||
<div class="col-md-12">
|
||||
<div class="box box-primary">
|
||||
<div class="box-header">
|
||||
<!-- <h2 class="box-title">{{Lang::get('lang.templates')}}</h2><a href="{{route('template.create')}}" class="btn btn-primary pull-right">{{Lang::get('lang.create_template')}}</a>-->
|
||||
<button class="btn btn-primary pull-right" data-toggle="modal" data-target="#createtemp">{{Lang::get('lang.create_template')}}</button>
|
||||
|
||||
<div class="modal fade" id="createtemp">
|
||||
<div class="modal-dialog">
|
||||
<div class="modal-content">
|
||||
{!! Form::open(['route'=>'template.createnew']) !!}
|
||||
<div class="modal-header">
|
||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
|
||||
<h4 class="modal-title">{{Lang::get('lang.create_template')}}</h4>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<div class="form-group {{ $errors->has('title') ? 'has-error' : '' }}">
|
||||
<h2 class="box-title">{{Lang::get('lang.templates')}}</h2>
|
||||
</div>
|
||||
|
||||
{!! Form::label('folder_name', 'Folder Name:',['style'=>'display: block']) !!}
|
||||
|
||||
|
||||
|
||||
{!! Form::text('folder_name',null,['class'=>'form-control'])!!}
|
||||
|
||||
{!! $errors->first('folder', '<spam class="help-block">:message</spam>') !!}
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<div class="form-group">
|
||||
{!! Form::submit('Create Folder',['class'=>'btn btn-primary'])!!}
|
||||
|
||||
<button type="button" class="btn btn-default pull-left" data-dismiss="modal">Close</button>
|
||||
</div></div>
|
||||
{!! Form::close() !!}
|
||||
</div>
|
||||
</div>
|
||||
</div></div>
|
||||
|
||||
<div class="box-body table-responsive no-padding">
|
||||
<div class="box-body table-responsive">
|
||||
|
||||
<!-- check whether success or not -->
|
||||
|
||||
@@ -89,10 +57,10 @@ class="active"
|
||||
</div>
|
||||
@endif
|
||||
|
||||
<table class="table table-hover" style="overflow:hidden;">
|
||||
<table id="example1" class="table table-bordered table-striped">
|
||||
<tr>
|
||||
<th width="100px">{{Lang::get('lang.name')}}</th>
|
||||
|
||||
<th>{{Lang::get('lang.name')}}</th>
|
||||
<th>{{Lang::get('lang.description')}}</th>
|
||||
</tr>
|
||||
<!-- Foreach @var templates as @var template -->
|
||||
|
||||
@@ -100,11 +68,10 @@ class="active"
|
||||
<?php if ($template === '.' or $template === '..') continue; ?>
|
||||
<tr>
|
||||
<!-- Template Name with Link to Edit page along Id -->
|
||||
<td><a href="{{route('template.read',[$template,$directory])}}">{!! $template !!}</a></td>
|
||||
<td><a href="{{route('template.read',[$template,$directory])}}"><?php $parts = explode('.',$template); $names = $parts[0]; $name = str_replace('-', ' ', $names); $cname = ucfirst($name); echo $cname?></a></td>
|
||||
<td>{{ Lang::get('lang.'.$cname) }}</td>
|
||||
<!-- template Status : if status==1 active -->
|
||||
<!-- Deleting Fields -->
|
||||
|
||||
|
||||
</tr>
|
||||
@endforeach
|
||||
|
||||
@@ -117,6 +84,21 @@ class="active"
|
||||
@stop
|
||||
</div><!-- /.box -->
|
||||
@section('FooterInclude')
|
||||
<!-- page script -->
|
||||
<script type="text/javascript">
|
||||
$(function() {
|
||||
$("#example1").dataTable();
|
||||
$('#example2').dataTable({
|
||||
"bPaginate": true,
|
||||
"bLengthChange": false,
|
||||
"bFilter": false,
|
||||
"bSort": true,
|
||||
"bInfo": true,
|
||||
"bAutoWidth": false
|
||||
});
|
||||
});
|
||||
|
||||
</script>
|
||||
|
||||
@stop
|
||||
@stop
|
||||
|
@@ -31,44 +31,12 @@ class="active"
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="box box-primary">
|
||||
{!! Form::model($contents,['route'=>['template.write', $template,$path],'method'=>'PATCH','files' => true]) !!}
|
||||
<div class="box-header">
|
||||
<h2 class="box-title">{{Lang::get('lang.templates')}}</h2><a href="modal" class="btn btn-primary pull-right" data-toggle="modal" data-target="#modal3">Edit Template</a></div>
|
||||
|
||||
<div class="modal modal-primary" id="modal3">
|
||||
<div class="modal-dialog">
|
||||
<div class="modal-content" style="width:90%">
|
||||
{!! Form::model($contents,['route'=>['template.write', $template,$path],'method'=>'PATCH','files' => true]) !!}
|
||||
<div class="modal-header">
|
||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
|
||||
<h4 class="modal-title">Edit</h4>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
|
||||
<!-- <div class="col-lg-12 col-xs-6 col-sm-6" style="margin-top: 3%;"> -->
|
||||
<div class="form-group">
|
||||
{!! Form::textarea('templatedata',$contents,['class'=>'form-control'])!!}
|
||||
</div>
|
||||
<!-- </div> -->
|
||||
|
||||
|
||||
<!-- </div> -->
|
||||
<!-- <div class="col-lg-12 col-xs-6 col-sm-6" style="margin-top: 3%;"> -->
|
||||
|
||||
<!-- <div class="col-lg-12 col-xs-6 col-sm-6" style="margin-top: 3%;"> -->
|
||||
|
||||
<!-- </div> -->
|
||||
|
||||
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button type="button" class="btn btn-outline pull-left" data-dismiss="modal">Close</button>
|
||||
<button type="submit" class="btn btn-outline">Save changes</button>
|
||||
</div>
|
||||
{!! Form::close() !!}
|
||||
</div><!-- /.modal-content -->
|
||||
</div><!-- /.modal-dialog -->
|
||||
</div>
|
||||
<div class="box-body table-responsive no-padding">
|
||||
<h2 class="box-title">{{Lang::get('lang.edit_template')}}: <b><?php $parts = explode('.',$template); $names = $parts[0]; $name = str_replace('-', ' ', $names); $cname = ucfirst($name); echo $cname?></b></h2><button type="submit" class="btn btn-primary pull-right">Save changes</button>
|
||||
</div>
|
||||
<div class="box-body table-responsive">
|
||||
|
||||
<!-- check whether success or not -->
|
||||
|
||||
@@ -90,12 +58,12 @@ class="active"
|
||||
</div>
|
||||
@endif
|
||||
|
||||
<div class="box-body" style="background-color: #f3f3f3; height: 410px;">
|
||||
<!-- <div class="box-body"> -->
|
||||
|
||||
{!! nl2br($contents) !!}
|
||||
|
||||
</div>
|
||||
{!! Form::textarea('templatedata',$contents,['class'=>'form-control'])!!}
|
||||
|
||||
<!-- </div> -->
|
||||
{!! Form::close() !!}
|
||||
@stop
|
||||
</div><!-- /.box -->
|
||||
@section('FooterInclude')
|
||||
|
@@ -32,8 +32,8 @@ class="active"
|
||||
@section('content')
|
||||
<div class="box box-primary">
|
||||
<div class="box-header">
|
||||
<h2 class="box-title">{{ Lang::get('lang.language') }}</h2><a href="{{route('add-language')}}" class="btn btn-primary pull-right"><i class="fa fa-plus"></i> {{Lang::get('lang.add')}}</a>
|
||||
<a href="{{route('download')}}" title="click here to download template file" class="btn btn-primary pull-right"><i class="fa fa-download"></i> {{Lang::get('lang.download')}}</a>
|
||||
<h2 class="box-title">{{ Lang::get('lang.language') }}</h2><span class="pull-right"><a href="{{route('download')}}" title="click here to download template file" class="btn btn-primary"><i class="fa fa-download"></i> {{Lang::get('lang.download')}} </a> <a href="{{route('add-language')}}" class="btn btn-primary "><i class="fa fa-plus"></i> {{Lang::get('lang.add')}}</a></span>
|
||||
|
||||
</div>
|
||||
<div class="box-body">
|
||||
<!-- check whether success or not -->
|
||||
|
@@ -53,8 +53,8 @@ class="active"
|
||||
|
||||
{!! Form::label('ticket_status',Lang::get('lang.status')) !!}
|
||||
{!! $errors->first('ticket_status', '<spam class="help-block">:message</spam>') !!}
|
||||
{!! Form::radio('ticket_status','1',true) !!}{{Lang::get('lang.active')}}
|
||||
{!! Form::radio('ticket_status','0') !!}{{Lang::get('lang.disabled')}}
|
||||
{!! Form::radio('ticket_status','1',true) !!} {{Lang::get('lang.active')}}
|
||||
{!! Form::radio('ticket_status','0') !!} {{Lang::get('lang.disabled')}}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -64,8 +64,8 @@ class="active"
|
||||
|
||||
{!! Form::label('type',Lang::get('lang.type')) !!}
|
||||
{!! $errors->first('type', '<spam class="help-block">:message</spam>') !!}
|
||||
{!! Form::radio('type','1',true) !!}{{Lang::get('lang.public')}}
|
||||
{!! Form::radio('type','0') !!}{{Lang::get('lang.private')}}
|
||||
{!! Form::radio('type','1',true) !!} {{Lang::get('lang.public')}}
|
||||
{!! Form::radio('type','0') !!} {{Lang::get('lang.private')}}
|
||||
</div>
|
||||
</div>
|
||||
<!-- Topic text form Required -->
|
||||
|
@@ -47,8 +47,8 @@ class="active"
|
||||
|
||||
{!! Form::label('ticket_status',Lang::get('lang.status')) !!}
|
||||
{!! $errors->first('ticket_status', '<spam class="help-block">:message</spam>') !!}
|
||||
{!! Form::radio('ticket_status','1',true) !!}{{Lang::get('lang.active')}}
|
||||
{!! Form::radio('ticket_status','0') !!}{{Lang::get('lang.disabled')}}
|
||||
{!! Form::radio('ticket_status','1',true) !!} {{Lang::get('lang.active')}}
|
||||
{!! Form::radio('ticket_status','0') !!} {{Lang::get('lang.disabled')}}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -58,8 +58,8 @@ class="active"
|
||||
|
||||
{!! Form::label('type',Lang::get('lang.type')) !!}
|
||||
{!! $errors->first('type', '<spam class="help-block">:message</spam>') !!}
|
||||
{!! Form::radio('type','1',true) !!}{{Lang::get('lang.public')}}
|
||||
{!! Form::radio('type','0') !!}{{Lang::get('lang.private')}}
|
||||
{!! Form::radio('type','1',true) !!} {{Lang::get('lang.public')}}
|
||||
{!! Form::radio('type','0') !!} {{Lang::get('lang.private')}}
|
||||
</div>
|
||||
</div>
|
||||
<!-- Topic text form Required -->
|
||||
|
@@ -72,8 +72,8 @@ class="active"
|
||||
|
||||
{!! Form::label('status',Lang::get('lang.status')) !!}
|
||||
{!! $errors->first('status', '<spam class="help-block">:message</spam>') !!}
|
||||
{!! Form::radio('status','1',true) !!}{{Lang::get('lang.active')}}
|
||||
{!! Form::radio('status','0') !!}{{Lang::get('lang.disabled')}}
|
||||
{!! Form::radio('status','1',true) !!} {{Lang::get('lang.active')}}
|
||||
{!! Form::radio('status','0') !!} {{Lang::get('lang.disabled')}}
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
@@ -72,8 +72,8 @@ class="active"
|
||||
|
||||
{!! Form::label('status',Lang::get('lang.status')) !!}
|
||||
{!! $errors->first('status', '<spam class="help-block">:message</spam>') !!}
|
||||
{!! Form::radio('status','1',true) !!}{{Lang::get('lang.active')}}
|
||||
{!! Form::radio('status','0') !!}{{Lang::get('lang.disabled')}}
|
||||
{!! Form::radio('status','1',true) !!} {{Lang::get('lang.active')}}
|
||||
{!! Form::radio('status','0') !!} {{Lang::get('lang.disabled')}}
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
@@ -105,25 +105,12 @@
|
||||
</div>
|
||||
</div>
|
||||
<!--/.col-md-2-->
|
||||
<!--/.col-md-2-->
|
||||
<div class="col-md-2 col-sm-6">
|
||||
<div class="settingiconblue">
|
||||
<div class="settingdivblue">
|
||||
<a href="{{ url('getsmtp') }}"><span class="fa-stack fa-2x">
|
||||
<i class="fa fa-at fa-stack-1x"></i>
|
||||
</span></a>
|
||||
</div>
|
||||
<center class="box-title" >{!! Lang::get('lang.outgoing_emails') !!}</center>
|
||||
</div>
|
||||
</div>
|
||||
<!--/.col-md-2-->
|
||||
|
||||
<!--/.col-md-2-->
|
||||
<div class="col-md-2 col-sm-6">
|
||||
<div class="settingiconblue">
|
||||
<div class="settingdivblue">
|
||||
<a href="{{ url('banlist') }}"><span class="fa-stack fa-2x">
|
||||
|
||||
<i class="fa fa-ban fa-stack-1x"></i>
|
||||
</span></a>
|
||||
</div>
|
||||
@@ -131,17 +118,21 @@
|
||||
</div>
|
||||
</div>
|
||||
<!--/.col-md-2-->
|
||||
<!-- <div class="col-md-2 col-sm-6">
|
||||
|
||||
<!--/.col-md-2-->
|
||||
<div class="col-md-2 col-sm-6">
|
||||
<div class="settingiconblue">
|
||||
<div class="settingdivblue">
|
||||
<a href="{{ url('list-templates') }}"><span class="fa-stack fa-2x">
|
||||
<a href="{{ url('list-directories') }}"><span class="fa-stack fa-2x">
|
||||
|
||||
<i class="fa fa-mail-forward fa-stack-1x"></i>
|
||||
</span></a>
|
||||
</div>
|
||||
<center class="box-title" >{!! Lang::get('lang.templates') !!}</center>
|
||||
</div>
|
||||
</div>-->
|
||||
</div>
|
||||
<!--/.col-md-2-->
|
||||
|
||||
<!--/.col-md-2-->
|
||||
<div class="col-md-2 col-sm-6">
|
||||
<div class="settingiconblue">
|
||||
@@ -367,7 +358,7 @@
|
||||
<i class="fa fa-cubes fa-stack-1x"></i>
|
||||
</span></a>
|
||||
</div>
|
||||
<center class="box-title" >{!! Lang::get('lang.widgets') !!}</center>
|
||||
<center class="box-title" >{!! Lang::get('lang.social') !!}</center>
|
||||
</div>
|
||||
</div>
|
||||
<!--/.col-md-2-->
|
||||
|
@@ -65,7 +65,7 @@ class="active"
|
||||
|
||||
|
||||
<div class="box-body table-responsive"style="overflow:hidden;">
|
||||
<div class="row">
|
||||
<div class="row">
|
||||
<!-- Default Template Set: DROPDOWN value from template table : Required -->
|
||||
{{-- <div class="col-md-3"> --}}
|
||||
{{-- <div class="form-group {{ $errors->has('template') ? 'has-error' : '' }}"> --}}
|
||||
@@ -76,13 +76,15 @@ class="active"
|
||||
{{-- </div> --}}
|
||||
|
||||
<!-- Default System Email: DROPDOWN value from emails table : Required -->
|
||||
{{-- <div class="col-md-3"> --}}
|
||||
{{-- <div class="form-group {{ $errors->has('sys_email') ? 'has-error' : '' }}"> --}}
|
||||
{{-- {!! Form::label('sys_email',Lang::get('lang.default_system_email')) !!} --}}
|
||||
{{-- {!! $errors->first('sys_email', '<spam class="help-block">:message</spam>') !!} --}}
|
||||
{{-- {!!Form::select('sys_email', $emails1->lists('email_address','email_address'),null,['class'=>'form-control']) !!} --}}
|
||||
{{-- </div> --}}
|
||||
{{-- </div> --}}
|
||||
<div class="col-md-12">
|
||||
<div class="col-md-3 no-padding">
|
||||
<div class="form-group {{ $errors->has('sys_email') ? 'has-error' : '' }}">
|
||||
{!! Form::label('sys_email',Lang::get('lang.default_system_email')) !!}
|
||||
{!! $errors->first('sys_email', '<spam class="help-block">:message</spam>') !!}
|
||||
{!!Form::select('sys_email', $emails1->lists('email_name','id'),null,['class'=>'form-control']) !!}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Default Alert Email: DROPDOWN value from emails table : Required -->
|
||||
{{-- <div class="col-md-3"> --}}
|
||||
|
@@ -1,171 +0,0 @@
|
||||
@extends('themes.default1.admin.layout.admin')
|
||||
|
||||
@section('Settings')
|
||||
class="active"
|
||||
@stop
|
||||
|
||||
@section('settings-bar')
|
||||
active
|
||||
@stop
|
||||
|
||||
@section('system')
|
||||
class="active"
|
||||
@stop
|
||||
|
||||
@section('HeadInclude')
|
||||
|
||||
@stop
|
||||
<!-- header -->
|
||||
@section('PageHeader')
|
||||
|
||||
@stop
|
||||
<!-- /header -->
|
||||
<!-- breadcrumbs -->
|
||||
@section('breadcrumbs')
|
||||
<ol class="breadcrumb">
|
||||
|
||||
</ol>
|
||||
@stop
|
||||
<!-- /breadcrumbs -->
|
||||
<!-- content -->
|
||||
@section('content')
|
||||
|
||||
<div class="box box-primary">
|
||||
<div class="box-header">
|
||||
<h4 class="box-title">{{Lang::get('lang.ratings')}}</h4>
|
||||
</div>
|
||||
@if(Session::has('success'))
|
||||
<div class="alert alert-success alert-dismissable">
|
||||
<i class="fa fa-check-circle"></i>
|
||||
<b>Success!</b>
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
{{Session::get('success')}}
|
||||
</div>
|
||||
@endif
|
||||
<!-- failure message -->
|
||||
@if(Session::has('fails'))
|
||||
<div class="alert alert-danger alert-dismissable">
|
||||
<i class="fa fa-ban"></i>
|
||||
<b>Fail!</b>
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
{{Session::get('fails')}}
|
||||
</div>
|
||||
@endif
|
||||
|
||||
<div class="box-body">
|
||||
<table id="example1" class="table table-bordered table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>ID</th>
|
||||
|
||||
<th>Title</th>
|
||||
|
||||
<th>Action</th>
|
||||
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach($ratings as $rating)
|
||||
|
||||
<tr>
|
||||
<td>{!! $rating->id !!}</td>
|
||||
|
||||
<td>{!! $rating->rating_name !!}</td>
|
||||
|
||||
<td>
|
||||
|
||||
<button class="btn btn-info btn-sm" data-toggle="modal" data-target="#{{$rating->slug}}">Edit Rating</button>
|
||||
|
||||
<div class="modal fade" id="{{$rating->slug}}">
|
||||
<div class="modal-dialog">
|
||||
<div class="modal-content">
|
||||
{!! Form::model($rating,['route'=>['settings.rating', $rating->slug],'method'=>'PATCH']) !!}
|
||||
<div class="modal-header">
|
||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
|
||||
<h4 class="modal-title">Edit Rating</h4>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<table width="100%" cellspacing="0" cellpadding="0" border="0" height="100%">
|
||||
<tbody>
|
||||
|
||||
<tr>
|
||||
<td valign="top" id="staffnavbar" colspan="2">
|
||||
<div id="cpmenu"><div id="customnavhtmlcontainer" style="display: none;"></div>
|
||||
|
||||
<div class="ui-tabs-hide ui-tabs ui-widget ui-widget-content ui-corner-all" id="View_Ratingtabs">
|
||||
<div class="ui-tabs ui-tabs-panel ui-widget-content ui-corner-bottom" id="View_Rating_tab_general">
|
||||
<table width="100%" cellspacing="1" cellpadding="4" border="0">
|
||||
<tbody>
|
||||
<tr class="tablerow1_tr">
|
||||
<td class="tablerow1" align="left" valign="top" width="50%"><span class="tabletitle">Rating label</span><br>
|
||||
<span style="font-style: italic">For example, <em>Overall satisfaction</em> or <em>Speed of resolution</em>.</span></td>
|
||||
<td class="tablerow1" align="left" valign="top">
|
||||
{!! Form::text('rating_name',null,['class'=>'form-control'])!!}
|
||||
</td></tr>
|
||||
<tr class="tablerow1_tr"><td width="50%" valign="top" align="left" class="tablerow1"><span class="tabletitle">Publish the rating system?</span><br>
|
||||
<span style="font-style: italic">
|
||||
<strong>Enable Rating System</strong> Ratings are available to the users. Select this option if you want to collect feedback from your end users and have the ratings visible to staff too.
|
||||
</span></td>
|
||||
<td valign="top" align="left" class="tablerow1">
|
||||
<label for="publicratingvisibility"><input type="radio" checked="" value="1" id="publicratingvisibility" class="swiftradio" name="publish" autocomplete="OFF"> Yes</label>
|
||||
<label for="privateratingvisibility"><input type="radio" value="0" id="privateratingvisibility" name="publish" autocomplete="OFF"> No</label>
|
||||
</td></tr>
|
||||
<tr class="tablerow1_tr"><td width="50%" valign="top" align="left" class="tablerow1">
|
||||
<td width="50%" valign="top" align="left" class="tablerow1"></td>
|
||||
</tr>
|
||||
<tr class="tablerow1_tr">
|
||||
<td width="50%" valign="top" align="left" class="tablerow1">
|
||||
<span class="tabletitle">Allow modification after first submission</span><br>
|
||||
<span style="font-style: italic">The value set for this rating can be modified, if enabled.</span></td>
|
||||
<td valign="top" align="left" class="tablerow1"><label for="yiseditable">
|
||||
<input type="radio" checked="" value="1" id="yiseditable" onclick="" class="swiftradio" name="modify" autocomplete="OFF"> Yes</label>
|
||||
<label for="niseditable">
|
||||
<input type="radio" value="0" onclick="" name="modify" autocomplete="OFF"> No</label>
|
||||
</td></tr>
|
||||
|
||||
</tbody></table></div></div>
|
||||
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody></table>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<div class="form-group">
|
||||
{!! Form::submit('Update Rating',['class'=>'btn btn-primary'])!!}
|
||||
|
||||
<button type="button" class="btn btn-default pull-left" data-dismiss="modal">Close</button>
|
||||
</div></div>
|
||||
{!! Form::close() !!}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<button class="btn btn-danger btn-sm" data-toggle="modal" data-target="#{{$rating->slug}}delete">Delete Rating</button>
|
||||
|
||||
<div class="modal fade" id="{{$rating->slug}}delete">
|
||||
<div class="modal-dialog">
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
|
||||
<h4 class="modal-title">Delete</h4>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<p>Are you sure you want to Delete ?</p>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button type="button" class="btn btn-default pull-left" data-dismiss="modal">Close</button>
|
||||
{!! link_to_route('ratings.delete','Delete',[$rating->slug],['id'=>'delete','class'=>'btn btn-danger btn-sm']) !!}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
</div>
|
||||
@stop
|
||||
</div><!-- /.box -->
|
@@ -71,10 +71,10 @@ class="active"
|
||||
{!! Form::label('status',Lang::get('lang.status')) !!}
|
||||
<div class="row">
|
||||
<div class="col-xs-3">
|
||||
{!! Form::radio('status','1',true) !!}{{Lang::get('lang.online')}}
|
||||
{!! Form::radio('status','1',true) !!} {{Lang::get('lang.online')}}
|
||||
</div>
|
||||
<div class="col-xs-3">
|
||||
{!! Form::radio('status','0') !!}{{Lang::get('lang.offline')}}
|
||||
{!! Form::radio('status','0') !!} {{Lang::get('lang.offline')}}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
@@ -51,7 +51,7 @@ class="active"
|
||||
<i class="fa fa-check-circle"></i>
|
||||
<b>Success!</b>
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
{{Session::get('success')}}
|
||||
{!! Session::get('success') !!}
|
||||
</div>
|
||||
@endif
|
||||
<!-- failure message -->
|
||||
@@ -60,7 +60,7 @@ class="active"
|
||||
<i class="fa fa-ban"></i>
|
||||
<b>Fail!</b>
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
{{Session::get('fails')}}
|
||||
{!! Session::get('fails') !!}
|
||||
</div>
|
||||
@endif
|
||||
|
||||
@@ -104,7 +104,7 @@ class="active"
|
||||
</div>
|
||||
|
||||
<!-- Default Priority: Required : manual : Dropdowm -->
|
||||
<div class="col-md-3">
|
||||
<div class="col-md-2">
|
||||
<div class="form-group {{ $errors->has('priority') ? 'has-error' : '' }}">
|
||||
{!! Form::label('priority',Lang::get('lang.default_priority')) !!}
|
||||
{!! $errors->first('priority', '<spam class="help-block">:message</spam>') !!}
|
||||
@@ -113,7 +113,7 @@ class="active"
|
||||
</div>
|
||||
|
||||
<!-- Default SLA: Required : manual : Dropdowm -->
|
||||
<div class="col-md-3">
|
||||
<div class="col-md-2">
|
||||
<div class="form-group {{ $errors->has('sla') ? 'has-error' : '' }}">
|
||||
{!! Form::label('sla',Lang::get('lang.default_sla')) !!}
|
||||
{!! $errors->first('sla', '<spam class="help-block">:message</spam>') !!}
|
||||
@@ -122,7 +122,7 @@ class="active"
|
||||
</div>
|
||||
|
||||
<!-- Default Help Topic: Dropdowm from Help topic table -->
|
||||
<div class="col-md-3">
|
||||
<div class="col-md-2">
|
||||
<div class="form-group {{ $errors->has('help_topic') ? 'has-error' : '' }}">
|
||||
{!! Form::label('help_topic',Lang::get('lang.default_help_topic')) !!}
|
||||
{!! $errors->first('help_topic', '<spam class="help-block">:message</spam>') !!}
|
||||
@@ -140,13 +140,18 @@ class="active"
|
||||
{{-- </div> --}}
|
||||
|
||||
<!-- Agent Collision Avoidance Duration: text-number -minutes -->
|
||||
{{-- <div class="col-md-6"> --}}
|
||||
{{-- <div class="form-group {{ $errors->has('collision_avoid') ? 'has-error' : '' }}"> --}}
|
||||
{{-- {!! Form::label('collision_avoid',Lang::get('lang.agent_collision_avoidance_duration')) !!} --}}
|
||||
{{-- {!! $errors->first('collision_avoid', '<spam class="help-block">:message</spam>') !!} --}}
|
||||
{{-- {!! Form::text('collision_avoid',$tickets->collision_avoid,['class' => 'form-control']) !!} --}}
|
||||
{{-- </div> --}}
|
||||
{{-- </div> --}}
|
||||
<div class="col-md-3">
|
||||
<div class="form-group {{ $errors->has('collision_avoid') ? 'has-error' : '' }}">
|
||||
{!! Form::label('collision_avoid',Lang::get('lang.agent_collision_avoidance_duration')) !!}
|
||||
{!! $errors->first('collision_avoid', '<spam class="help-block">:message</spam>') !!}
|
||||
<div class="input-group">
|
||||
<input type="number" class="form-control" name="collision_avoid" min="0" step="1" value="{{$tickets->collision_avoid}}" placeholder="in minutes">
|
||||
<div class="input-group-addon">
|
||||
<span><i class="fa fa-clock-o"></i> {!!Lang::get('lang.in_minutes')!!}</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<!-- Human Verification: checkbox Enable CAPTCHA on new web tickets. -->
|
||||
|
Reference in New Issue
Block a user