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. -->
|
||||
|
@@ -26,17 +26,74 @@ class="active"
|
||||
</div>
|
||||
</div>
|
||||
<div class="box-body">
|
||||
@if(Session::has('content'))
|
||||
<form id="foo">
|
||||
<div class="form-group">
|
||||
<div class="row">
|
||||
|
||||
<div class='col-sm-3'>
|
||||
|
||||
{!! Form::label('date', 'Date:') !!}
|
||||
|
||||
{!! Form::text('start_date',null,['class'=>'form-control','id'=>'datepicker4'])!!}
|
||||
|
||||
</div>
|
||||
<?php
|
||||
$start_date = App\Model\helpdesk\Ticket\Tickets::where('id','=','1')->first();
|
||||
if($start_date != null) {
|
||||
$created_date = $start_date->created_at;
|
||||
$created_date = explode(' ', $created_date);
|
||||
$created_date = $created_date[0];
|
||||
$start_date = date("m/d/Y",strtotime($created_date.' -1 months'));
|
||||
} else {
|
||||
$start_date = date("m/d/Y",strtotime(date("m/d/Y").' -1 months'));
|
||||
}
|
||||
|
||||
?>
|
||||
<script type="text/javascript">
|
||||
$(function () {
|
||||
var timestring1 = "{!! $start_date !!}";
|
||||
var timestring2 = "{!! date('m/d/Y') !!}";
|
||||
$('#datepicker4').datetimepicker({
|
||||
format: 'DD/MM/YYYY',
|
||||
minDate:moment(timestring1).startOf('day'),
|
||||
maxDate:moment(timestring2).startOf('day')
|
||||
});
|
||||
// $('#datepicker').datepicker()
|
||||
});
|
||||
</script>
|
||||
|
||||
<div class='col-sm-3'>
|
||||
|
||||
{!! Form::label('start_time', 'End Date:') !!}
|
||||
|
||||
{!! Form::text('end_date',null,['class'=>'form-control','id'=>'datetimepicker3'])!!}
|
||||
|
||||
</div>
|
||||
<script type="text/javascript">
|
||||
$(function () {
|
||||
var timestring1 = "{!! $start_date !!}";
|
||||
var timestring2 = "{!! date('m/d/Y') !!}";
|
||||
$('#datetimepicker3').datetimepicker({
|
||||
format: 'DD/MM/YYYY',
|
||||
minDate:moment(timestring1).startOf('day'),
|
||||
maxDate:moment(timestring2).startOf('day')
|
||||
});
|
||||
});
|
||||
</script>
|
||||
|
||||
<div class='col-sm-3'>
|
||||
{!! Form::label('filter', 'Filter:') !!}<br>
|
||||
<input type="submit" class="btn btn-primary">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
<div id="legendDiv"></div>
|
||||
<div class="chart">
|
||||
<div id="legendDiv1"></div>
|
||||
<canvas class="chart-data" id="tickets-graph1" width="1000" height="400"></canvas>
|
||||
|
||||
<canvas class="chart-data" id="tickets-graph" width="1000" height="300"></canvas>
|
||||
</div>
|
||||
@else
|
||||
<div class="chart">
|
||||
<div id="legendDiv"></div>
|
||||
<canvas class="chart-data" id="tickets-graph" width="1000" height="400"></canvas>
|
||||
</div>
|
||||
@endif
|
||||
|
||||
</div><!-- /.box-body -->
|
||||
</div><!-- /.box -->
|
||||
<hr/>
|
||||
@@ -84,8 +141,8 @@ $delete = App\Model\helpdesk\Ticket\Tickets::where('dept_id','=',$department->id
|
||||
|
||||
<script src="{{asset("lb-faveo/plugins/chartjs/Chart.min.js")}}" type="text/javascript"></script>
|
||||
<script type="text/javascript">
|
||||
$(function(){
|
||||
$.getJSON("agen", function (result) {
|
||||
$(document).ready(function() {
|
||||
$.getJSON("agen", function (result) {
|
||||
|
||||
var labels=[], open=[], closed=[], reopened=[];
|
||||
//,data2=[],data3=[],data4=[];
|
||||
@@ -178,7 +235,7 @@ $delete = App\Model\helpdesk\Ticket\Tickets::where('dept_id','=',$department->id
|
||||
//Number - Pixel width of dataset stroke
|
||||
datasetStrokeWidth: 1,
|
||||
//Boolean - Whether to fill the dataset with a color
|
||||
datasetFill: true,
|
||||
datasetFill: false,
|
||||
//String - A legend template
|
||||
//Boolean - whether to maintain the starting aspect ratio or not when responsive, if set to false, will take up entire container
|
||||
maintainAspectRatio: false,
|
||||
@@ -196,11 +253,198 @@ $delete = App\Model\helpdesk\Ticket\Tickets::where('dept_id','=',$department->id
|
||||
});
|
||||
document.getElementById("legendDiv").innerHTML = myLineChart.generateLegend();
|
||||
});
|
||||
$('#click me').click(function() {
|
||||
$('#foo').submit();
|
||||
});
|
||||
$('#foo').submit(function(event) {
|
||||
// get the form data
|
||||
// there are many ways to get this data using jQuery (you can use the class or id also)
|
||||
var date1 = $('#datepicker4').val();
|
||||
var date2 = $('#datetimepicker3').val();
|
||||
var formData = date1.split("/").join('-');
|
||||
var dateData = date2.split("/").join('-');
|
||||
//$('#foo').serialize();
|
||||
// process the form
|
||||
$.ajax({
|
||||
type : 'POST', // define the type of HTTP verb we want to use (POST for our form)
|
||||
url : 'chart-range/'+dateData+'/'+formData, // the url where we want to POST
|
||||
data : formData, // our data object
|
||||
dataType : 'json', // what type of data do we expect back from the server
|
||||
|
||||
success : function(result2) {
|
||||
|
||||
// $.getJSON("agen", function (result) {
|
||||
var labels=[], open=[], closed=[], reopened=[];
|
||||
//,data2=[],data3=[],data4=[];
|
||||
for (var i = 0; i < result2.length; i++) {
|
||||
|
||||
|
||||
// $var12 = result[i].day;
|
||||
|
||||
// labels.push($var12);
|
||||
labels.push(result2[i].date);
|
||||
open.push(result2[i].open);
|
||||
closed.push(result2[i].closed);
|
||||
reopened.push(result2[i].reopened);
|
||||
// data4.push(result[i].open);
|
||||
}
|
||||
|
||||
var buyerData = {
|
||||
labels : labels,
|
||||
datasets : [
|
||||
{
|
||||
label : "Total Tickets" ,
|
||||
fillColor : "rgba(240, 127, 110, 0.3)",
|
||||
strokeColor : "#f56954",
|
||||
pointColor : "#A62121",
|
||||
pointStrokeColor : "#E60073",
|
||||
pointHighlightFill : "#FF4DC3",
|
||||
pointHighlightStroke : "rgba(151,187,205,1)",
|
||||
data : open
|
||||
}
|
||||
,{
|
||||
label : "Open Tickets" ,
|
||||
fillColor : "rgba(255, 102, 204, 0.4)",
|
||||
strokeColor : "#f56954",
|
||||
pointColor : "#FF66CC",
|
||||
pointStrokeColor : "#fff",
|
||||
pointHighlightFill : "#FF4DC3",
|
||||
pointHighlightStroke : "rgba(151,187,205,1)",
|
||||
data : closed
|
||||
|
||||
}
|
||||
,{
|
||||
label : "Closed Tickets",
|
||||
fillColor : "rgba(151,187,205,0.2)",
|
||||
strokeColor : "rgba(151,187,205,1)",
|
||||
pointColor : "rgba(151,187,205,1)",
|
||||
pointStrokeColor : "#0000CC",
|
||||
pointHighlightFill : "#0000E6",
|
||||
pointHighlightStroke : "rgba(151,187,205,1)",
|
||||
data : reopened
|
||||
}
|
||||
// ,{
|
||||
// label : "Reopened Tickets",
|
||||
// fillColor : "rgba(102,255,51,0.2)",
|
||||
// strokeColor : "rgba(151,187,205,1)",
|
||||
// pointColor : "rgba(46,184,0,1)",
|
||||
// pointStrokeColor : "#fff",
|
||||
// pointHighlightFill : "#fff",
|
||||
// pointHighlightStroke : "rgba(151,187,205,1)",
|
||||
// data : data3
|
||||
// }
|
||||
]
|
||||
};
|
||||
|
||||
var myLineChart = new Chart(document.getElementById("tickets-graph").getContext("2d")).Line(buyerData, {
|
||||
showScale: true,
|
||||
//Boolean - Whether grid lines are shown across the chart
|
||||
scaleShowGridLines: false,
|
||||
//String - Colour of the grid lines
|
||||
scaleGridLineColor: "rgba(0,0,0,.05)",
|
||||
//Number - Width of the grid lines
|
||||
scaleGridLineWidth: 1,
|
||||
//Boolean - Whether to show horizontal lines (except X axis)
|
||||
scaleShowHorizontalLines: true,
|
||||
//Boolean - Whether to show vertical lines (except Y axis)
|
||||
scaleShowVerticalLines: true,
|
||||
//Boolean - Whether the line is curved between points
|
||||
bezierCurve: true,
|
||||
//Number - Tension of the bezier curve between points
|
||||
bezierCurveTension: 0.3,
|
||||
//Boolean - Whether to show a dot for each point
|
||||
pointDot: true,
|
||||
//Number - Radius of each point dot in pixels
|
||||
pointDotRadius: 4,
|
||||
//Number - Pixel width of point dot stroke
|
||||
pointDotStrokeWidth: 1,
|
||||
//Number - amount extra to add to the radius to cater for hit detection outside the drawn point
|
||||
pointHitDetectionRadius: 20,
|
||||
//Boolean - Whether to show a stroke for datasets
|
||||
datasetStroke: true,
|
||||
//Number - Pixel width of dataset stroke
|
||||
datasetStrokeWidth: 1,
|
||||
//Boolean - Whether to fill the dataset with a color
|
||||
datasetFill: false,
|
||||
//String - A legend template
|
||||
//Boolean - whether to maintain the starting aspect ratio or not when responsive, if set to false, will take up entire container
|
||||
maintainAspectRatio: false,
|
||||
//Boolean - whether to make the chart responsive to window resizing
|
||||
responsive: true,
|
||||
|
||||
legendTemplate : '<ul style="list-style-type: square;">'
|
||||
+'<% for (var i=0; i<datasets.length; i++) { %>'
|
||||
+'<li style="color: <%=datasets[i].pointColor%>;">'
|
||||
+'<span style=\"background-color:<%=datasets[i].pointColor%>\"></span>'
|
||||
+'<% if (datasets[i].label) { %><%= datasets[i].label %><% } %>'
|
||||
+'</li>'
|
||||
+'<% } %>'
|
||||
+'</ul>'
|
||||
});
|
||||
myLineChart.options.responsive = false;
|
||||
$("#tickets-graph").remove();
|
||||
$(".chart").html("<canvas id='tickets-graph' width='1000' height='300'></canvas>");
|
||||
var myLineChart1 = new Chart(document.getElementById("tickets-graph").getContext("2d")).Line(buyerData, {
|
||||
showScale: true,
|
||||
//Boolean - Whether grid lines are shown across the chart
|
||||
scaleShowGridLines: false,
|
||||
//String - Colour of the grid lines
|
||||
scaleGridLineColor: "rgba(0,0,0,.05)",
|
||||
//Number - Width of the grid lines
|
||||
scaleGridLineWidth: 1,
|
||||
//Boolean - Whether to show horizontal lines (except X axis)
|
||||
scaleShowHorizontalLines: true,
|
||||
//Boolean - Whether to show vertical lines (except Y axis)
|
||||
scaleShowVerticalLines: true,
|
||||
//Boolean - Whether the line is curved between points
|
||||
bezierCurve: true,
|
||||
//Number - Tension of the bezier curve between points
|
||||
bezierCurveTension: 0.3,
|
||||
//Boolean - Whether to show a dot for each point
|
||||
pointDot: true,
|
||||
//Number - Radius of each point dot in pixels
|
||||
pointDotRadius: 4,
|
||||
//Number - Pixel width of point dot stroke
|
||||
pointDotStrokeWidth: 1,
|
||||
//Number - amount extra to add to the radius to cater for hit detection outside the drawn point
|
||||
pointHitDetectionRadius: 20,
|
||||
//Boolean - Whether to show a stroke for datasets
|
||||
datasetStroke: true,
|
||||
//Number - Pixel width of dataset stroke
|
||||
datasetStrokeWidth: 1,
|
||||
//Boolean - Whether to fill the dataset with a color
|
||||
datasetFill: false,
|
||||
//String - A legend template
|
||||
//Boolean - whether to maintain the starting aspect ratio or not when responsive, if set to false, will take up entire container
|
||||
maintainAspectRatio: false,
|
||||
//Boolean - whether to make the chart responsive to window resizing
|
||||
responsive: true,
|
||||
|
||||
legendTemplate : '<ul style="list-style-type: square;">'
|
||||
+'<% for (var i=0; i<datasets.length; i++) { %>'
|
||||
+'<li style="color: <%=datasets[i].pointColor%>;">'
|
||||
+'<span style=\"background-color:<%=datasets[i].pointColor%>\"></span>'
|
||||
+'<% if (datasets[i].label) { %><%= datasets[i].label %><% } %>'
|
||||
+'</li>'
|
||||
+'<% } %>'
|
||||
+'</ul>'
|
||||
});
|
||||
|
||||
document.getElementById("legendDiv").innerHTML = myLineChart1.generateLegend();
|
||||
|
||||
// });
|
||||
}
|
||||
});
|
||||
|
||||
// using the done promise callback
|
||||
|
||||
// stop the form from submitting the normal way and refreshing the page
|
||||
event.preventDefault();
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
|
||||
|
||||
|
||||
</script>
|
||||
|
||||
<script type="text/javascript">
|
||||
@@ -223,6 +467,5 @@ $delete = App\Model\helpdesk\Ticket\Tickets::where('dept_id','=',$department->id
|
||||
</script>
|
||||
|
||||
<script src="{{asset("lb-faveo/plugins/moment-develop/moment.js")}}" type="text/javascript"></script>
|
||||
{{-- <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-datetimepicker/4.7.14/js/bootstrap-datetimepicker.min.js"></script> --}}
|
||||
<script src="{{asset("lb-faveo/js/bootstrap-datetimepicker4.7.14.min.js")}}" type="text/javascript"></script>
|
||||
@stop
|
@@ -12,7 +12,6 @@ active
|
||||
class="active"
|
||||
@stop
|
||||
|
||||
|
||||
@section('content')
|
||||
<!-- Main content -->
|
||||
{!! Form::open(['route'=>'post.newticket','method'=>'post']) !!}
|
||||
@@ -221,4 +220,8 @@ class="active"
|
||||
|
||||
</script>
|
||||
|
||||
@stop
|
||||
@stop
|
||||
|
||||
|
||||
|
||||
|
||||
|
@@ -45,16 +45,30 @@ active
|
||||
|
||||
<li class="header">
|
||||
{!! Lang::get('lang.ticket_ratings') !!}
|
||||
</li><li> <a href="#">
|
||||
<input type="hidden" name="amount" value="{!! $tickets->rating !!}" />
|
||||
<label style="color: #b8c7ce;">Overall Rating:</label>
|
||||
<h5>
|
||||
<span class="stars">{!! $tickets->rating !!}</span></h5>
|
||||
<input type="hidden" name="amt" value="{!! $tickets->ratingreply !!}" />
|
||||
<label style="color: #b8c7ce;">Reply Rating:</label>
|
||||
<h4>
|
||||
<span class="stars2">{!! $tickets->ratingreply !!}</span></h4>
|
||||
</a></li>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#">
|
||||
Overall Rating:
|
||||
<small class="pull-right">
|
||||
<input type="radio" class="star" id="star5" name="rating" value="1"<?php echo ($tickets->rating=='1')?'checked':'' ?> />
|
||||
<input type="radio" class="star" id="star4" name="rating" value="2"<?php echo ($tickets->rating=='2')?'checked':'' ?> />
|
||||
<input type="radio" class="star" id="star3" name="rating" value="3"<?php echo ($tickets->rating=='3')?'checked':'' ?>/>
|
||||
<input type="radio" class="star" id="star2" name="rating" value="4"<?php echo ($tickets->rating=='4')?'checked':'' ?>/>
|
||||
<input type="radio" class="star" id="star1" name="rating" value="5"<?php echo ($tickets->rating=='5')?'checked':'' ?> />
|
||||
</small>
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="">Reply Rating:
|
||||
<small class="pull-right">
|
||||
<input type="radio" class="star" id="star5" name="rating2" value="1"<?php echo ($tickets->ratingreply=='1')?'checked':'' ?> />
|
||||
<input type="radio" class="star" id="star4" name="rating2" value="2"<?php echo ($tickets->ratingreply=='2')?'checked':'' ?> />
|
||||
<input type="radio" class="star" id="star3" name="rating2" value="3"<?php echo ($tickets->ratingreply=='3')?'checked':'' ?> />
|
||||
<input type="radio" class="star" id="star2" name="rating2" value="4"<?php echo ($tickets->ratingreply=='4')?'checked':'' ?> />
|
||||
<input type="radio" class="star" id="star1" name="rating2" value="5"<?php echo ($tickets->ratingreply=='5')?'checked':'' ?> />
|
||||
</small>
|
||||
</a>
|
||||
</li>
|
||||
@stop
|
||||
|
||||
@section('content')
|
||||
@@ -335,7 +349,7 @@ $canneds = App\Model\helpdesk\Agent_panel\Canned::where('user_id','=',Auth::user
|
||||
<div class="form-group {{ $errors->has('title') ? 'has-error' : '' }}">
|
||||
<div class="col-md-2"></div>
|
||||
<div class="col-md-10">
|
||||
<button type="submit" class="btn btn-primary"><i class="fa fa-check-square-o" style="color:white;"> </i> {!! Lang::get('lang.update') !!}</button>
|
||||
<button id="replybtn" type="submit" class="btn btn-primary"><i class="fa fa-check-square-o" style="color:white;"> </i> {!! Lang::get('lang.update') !!}</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -1063,31 +1077,16 @@ $count_teams = count($teams);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php $var=0; ?>
|
||||
<?php $var=App\Model\helpdesk\Settings\Ticket::where('id', '=', 1)->first(); ?>
|
||||
|
||||
<!-- scripts used on page -->
|
||||
<script type="text/javascript">
|
||||
$(function() {
|
||||
|
||||
$('h5').html('<span class="stars">'+parseFloat($('input[name=amount]').val())+'</span>');
|
||||
$('span.stars').stars();
|
||||
|
||||
$('h4').html('<span class="stars2">'+parseFloat($('input[name=amt]').val())+'</span>');
|
||||
$('span.stars2').stars();
|
||||
|
||||
|
||||
});
|
||||
|
||||
$.fn.stars = function() {
|
||||
return $(this).each(function() {
|
||||
$(this).html($('<span />').width(Math.max(0, (Math.min(5, parseFloat($(this).html())))) * 16));
|
||||
});
|
||||
}
|
||||
$(function () {
|
||||
$("#InternalContent").wysihtml5();
|
||||
});
|
||||
|
||||
$(function () {
|
||||
$("#InternalContent").wysihtml5();
|
||||
});
|
||||
|
||||
jQuery('.star').attr('disabled', true);
|
||||
|
||||
$(function () {
|
||||
// $('#cand').wysihtml5();
|
||||
@@ -1552,8 +1551,8 @@ $(document).ready(function () {
|
||||
|
||||
|
||||
|
||||
function remove_collaborator(id) {
|
||||
var data = id;
|
||||
function remove_collaborator(id) {
|
||||
var data = id;
|
||||
$.ajax({
|
||||
headers: {
|
||||
'X-CSRF-Token': $('meta[name="_token"]').attr('content'),
|
||||
@@ -1572,8 +1571,68 @@ function remove_collaborator(id) {
|
||||
}
|
||||
})
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
|
||||
$(document).ready(function() {
|
||||
|
||||
var locktime = '<?php echo $var->collision_avoid;?>'*60*1000;
|
||||
lockAjaxCall(locktime);
|
||||
setInterval(function() {// to call ajax for ticket lock repeatedly after defined lock time interval
|
||||
lockAjaxCall(locktime);
|
||||
return false;
|
||||
}, locktime);
|
||||
});
|
||||
//ajax call to check ticket and lock ticket
|
||||
function lockAjaxCall(locktime){
|
||||
$.ajax({
|
||||
type: "GET",
|
||||
url: "../check/lock/{{$tickets->id}}",
|
||||
dataType: "html",
|
||||
data: $(this).serialize(),
|
||||
success: function(response) {
|
||||
if(response == 0) {
|
||||
|
||||
var message = "{{Lang::get('lang.locked-ticket')}}";
|
||||
$("#alert22").show();
|
||||
$('#message-warning2').html(message);
|
||||
$('#replybtn').attr('disabled', true);
|
||||
//setInterval(function(){$("#alert23").hide(); },10000);
|
||||
} else {
|
||||
// alert(response);
|
||||
// var message = "{{Lang::get('lang.access-ticket')}}"+locktime/(60*1000)
|
||||
// +"{{Lang::get('lang.minutes')}}";
|
||||
// $("#alert22").hide();
|
||||
// $("#alert21").show();
|
||||
// $('#message-success2').html(message);
|
||||
$('#replybtn').attr('disabled', false);
|
||||
// setInterval(function(){$("#alert21").hide(); },8000);
|
||||
}
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
$(function() {
|
||||
|
||||
$('h5').html('<span class="stars">'+parseFloat($('input[name=amount]').val())+'</span>');
|
||||
$('span.stars').stars();
|
||||
|
||||
$('h4').html('<span class="stars2">'+parseFloat($('input[name=amt]').val())+'</span>');
|
||||
$('span.stars2').stars();
|
||||
|
||||
});
|
||||
|
||||
$.fn.stars = function() {
|
||||
return $(this).each(function() {
|
||||
$(this).html($('<span />').width(Math.max(0, (Math.min(5, parseFloat($(this).html())))) * 16));
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</script>
|
||||
|
||||
|
@@ -100,10 +100,10 @@ class="active"
|
||||
{!! $errors->first('active', '<spam class="help-block">:message</spam>') !!}
|
||||
<div class="row">
|
||||
<div class="col-xs-12">
|
||||
{!! Form::radio('active','1',true) !!}{{Lang::get('lang.active')}}
|
||||
{!! Form::radio('active','1',true) !!} {{Lang::get('lang.active')}}
|
||||
</div>
|
||||
<div class="col-xs-12">
|
||||
{!! Form::radio('active','0') !!}{{Lang::get('lang.inactive')}}
|
||||
{!! Form::radio('active','0') !!} {{Lang::get('lang.inactive')}}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
@@ -87,10 +87,10 @@ class="active"
|
||||
{!! $errors->first('active', '<spam class="help-block">:message</spam>') !!}
|
||||
<div class="row">
|
||||
<div class="col-xs-12">
|
||||
{!! Form::radio('active','1',true) !!}{{Lang::get('lang.active')}}
|
||||
{!! Form::radio('active','1',true) !!} {{Lang::get('lang.active')}}
|
||||
</div>
|
||||
<div class="col-xs-12">
|
||||
{!! Form::radio('active','0') !!}{{Lang::get('lang.inactive')}}
|
||||
{!! Form::radio('active','0') !!} {{Lang::get('lang.inactive')}}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -103,10 +103,10 @@ class="active"
|
||||
|
||||
<div class="row">
|
||||
<div class="col-xs-12">
|
||||
{!! Form::radio('ban','1',true) !!}{{Lang::get('lang.enable')}}
|
||||
{!! Form::radio('ban','1',true) !!} {{Lang::get('lang.enable')}}
|
||||
</div>
|
||||
<div class="col-xs-12">
|
||||
{!! Form::radio('ban','0') !!}{{Lang::get('lang.disable')}}
|
||||
{!! Form::radio('ban','0') !!} {{Lang::get('lang.disable')}}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
@@ -68,10 +68,10 @@ class="active"
|
||||
{!! Form::label('gender',Lang::get('lang.gender')) !!}
|
||||
<div class="row">
|
||||
<div class="col-xs-3">
|
||||
{!! Form::radio('gender','1',true) !!}{{Lang::get('lang.male')}}
|
||||
{!! Form::radio('gender','1',true) !!} {{Lang::get('lang.male')}}
|
||||
</div>
|
||||
<div class="col-xs-3">
|
||||
{!! Form::radio('gender','0') !!}{{Lang::get('lang.female')}}
|
||||
{!! Form::radio('gender','0') !!} {{Lang::get('lang.female')}}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
@@ -2,16 +2,17 @@
|
||||
@extends('themes.default1.agent.layout.sidebar')
|
||||
|
||||
@section('article')
|
||||
active
|
||||
active
|
||||
@stop
|
||||
@section('add-article')
|
||||
class="active"
|
||||
class="active"
|
||||
@stop
|
||||
@section('content')
|
||||
<script src="{{asset('ckeditor/ckeditor.js')}}"></script>
|
||||
{!! Form::open(array('action' => 'Agent\kb\ArticleController@store' , 'method' => 'post') )!!}
|
||||
|
||||
<div class="row">
|
||||
@if(Session::has('success'))
|
||||
@if(Session::has('success'))
|
||||
<div class="alert alert-success alert-dismissable">
|
||||
<i class="fa fa-check-circle"></i>
|
||||
<b>Success</b>
|
||||
@@ -35,153 +36,203 @@
|
||||
{!! Lang::get('lang.create_a_category') !!}
|
||||
</div>
|
||||
@endif
|
||||
|
||||
<div class="box-body">
|
||||
<div class="col-md-9">
|
||||
<div class="box box-primary">
|
||||
<div class="box-header">
|
||||
<h4 class="box-title">{!! Lang::get('lang.addarticle') !!}</h4>
|
||||
</div>
|
||||
<div class="box-body">
|
||||
<div class="row">
|
||||
|
||||
<div class="col-md-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']) !!}
|
||||
</div>
|
||||
|
||||
<div class="col-md-6 form-group {{ $errors->has('slug') ? 'has-error' : '' }}" >
|
||||
|
||||
{!! Form::label('slug',Lang::get('lang.slug')) !!}
|
||||
{!! $errors->first('slug', '<spam class="help-block">:message</spam>') !!}
|
||||
{!! Form::text('slug',null,['class' => 'form-control']) !!}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group {{ $errors->has('description') ? 'has-error' : '' }}">
|
||||
{!! Form::label('description',Lang::get('lang.description')) !!}
|
||||
{!! $errors->first('description', '<spam class="help-block">:message</spam>') !!}
|
||||
<div class="form-group" style="background-color:white">
|
||||
{!! Form::textarea('description',null,['class' => 'form-control color','size' => '128x20','id'=>'myNicEditor','placeholder'=>Lang::get('lang.enter_the_description')]) !!}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<ul style="list-style-type:none;">
|
||||
<li>
|
||||
<div class="col-md-3">
|
||||
<div class="box box-default">
|
||||
<div class="box-header with-border">
|
||||
<h3 class="box-title">{{Lang::get('lang.publish')}}</h3>
|
||||
</div>
|
||||
<div class="box-body">
|
||||
<div class="form-group {{ $errors->has('type') ? 'has-error' : '' }}">
|
||||
|
||||
{!! Form::label('type',Lang::get('lang.status')) !!}
|
||||
{!! $errors->first('type', '<spam class="help-block">:message</spam>') !!}
|
||||
<div class="row">
|
||||
<div class="col-xs-4">
|
||||
{!! Form::radio('type','1',true) !!}{{Lang::get('lang.published')}}
|
||||
</div>
|
||||
<div class="col-xs-3">
|
||||
{!! Form::radio('type','0',null) !!}{{Lang::get('lang.draft')}}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="form-group {{ $errors->has('status') ? 'has-error' : '' }}">
|
||||
|
||||
{!! Form::label('status',Lang::get('lang.visibility')) !!}
|
||||
{!! $errors->first('status', '<spam class="help-block">:message</spam>') !!}
|
||||
<div class="row">
|
||||
<div class="col-xs-3">
|
||||
{!! Form::radio('status','1',true) !!}{{Lang::get('lang.public')}}
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-xs-3">
|
||||
{!! Form::radio('status','0',null) !!}{{Lang::get('lang.private')}}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="box-footer" style="background-color:#f5f5f5;">
|
||||
<div style="margin-left:140px;">
|
||||
|
||||
{!! Form::submit(Lang::get('lang.publish'),['class'=>'btn btn-primary'])!!}
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</li>
|
||||
<li>
|
||||
<div class="col-md-3">
|
||||
<div class="box box-default">
|
||||
<div class="box-header with-border">
|
||||
<h3 class="box-title">{{Lang::get('lang.category')}}</h3>
|
||||
<div class="box-body">
|
||||
<div class="col-md-8">
|
||||
<div class="box box-primary">
|
||||
<div class="box-header">
|
||||
<h4 class="box-title">{!! Lang::get('lang.addarticle') !!}</h4>
|
||||
</div>
|
||||
<div class="box-body" style="height:190px; overflow-y:auto;">
|
||||
<div class="box-body">
|
||||
<div class="row">
|
||||
|
||||
<div class="form-group {{ $errors->has('category_id') ? 'has-error' : '' }}">
|
||||
{{-- {!! Form::label('category_id','Category') !!} --}}
|
||||
{!! $errors->first('category_id', '<spam class="help-block">:message</spam>') !!}
|
||||
@while (list($key, $val) = each($category))
|
||||
<div class="row">
|
||||
<div class="form-group">
|
||||
<div class="col-md-1">
|
||||
<input type="radio" name="category_id[]" value="<?php echo $val;?>">
|
||||
</div>
|
||||
<div class="col-md-10">
|
||||
<?php echo $key;?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endwhile
|
||||
<div class="col-md-6 form-group {{ $errors->has('name') ? 'has-error' : '' }}" >
|
||||
|
||||
</div>
|
||||
</div>
|
||||
{!! Form::close() !!}
|
||||
<div class="box-footer" style="background-color:#f5f5f5;">
|
||||
{!! Form::label('name',Lang::get('lang.name')) !!}
|
||||
{!! $errors->first('name', '<spam class="help-block">:message</spam>') !!}
|
||||
{!! Form::text('name',null,['class' => 'form-control']) !!}
|
||||
</div>
|
||||
|
||||
<span class="btn btn-info btn-sm" data-toggle="modal" data-target="#j">{{Lang::get('lang.addcategory')}}</span>
|
||||
<div class="modal" id="j">
|
||||
<div class="modal-dialog">
|
||||
<div class="modal-content">
|
||||
{!! Form::open(['method'=>'post','action'=>'Agent\kb\CategoryController@store']) !!}
|
||||
<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.addcategory')}}</h4>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
@include('themes.default1.agent.kb.category.form')
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<div class="form-group">
|
||||
{!! Form::submit('Add')!!}
|
||||
</div>
|
||||
<button type="button" class="btn btn-default pull-left" data-dismiss="modal">Close</button>
|
||||
</div>
|
||||
{!! Form::close() !!}
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-6 form-group {{ $errors->has('slug') ? 'has-error' : '' }}" >
|
||||
|
||||
{!! Form::label('slug',Lang::get('lang.slug')) !!}
|
||||
{!! $errors->first('slug', '<spam class="help-block">:message</spam>') !!}
|
||||
{!! Form::text('slug',null,['class' => 'form-control']) !!}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
<script type="text/javascript">
|
||||
$(function () {
|
||||
$("textarea").wysihtml5();
|
||||
});
|
||||
</script>
|
||||
{{-- {!! Form::close() !!} --}}
|
||||
@stop
|
||||
|
||||
<div class="form-group {{ $errors->has('description') ? 'has-error' : '' }}">
|
||||
{!! Form::label('description',Lang::get('lang.description')) !!}
|
||||
{!! $errors->first('description', '<spam class="help-block">:message</spam>') !!}
|
||||
<div class="form-group" style="background-color:white">
|
||||
{!! Form::textarea('description',null,['class' => 'form-control','id'=>'editor','size' => '128x20','placeholder'=>Lang::get('lang.enter_the_description')]) !!}
|
||||
</div>
|
||||
<script>
|
||||
CKEDITOR.replace('editor', {
|
||||
filebrowserImageBrowseUrl: '../laravel-filemanager?type=Images',
|
||||
filebrowserImageUploadUrl: '../laravel-filemanager/upload?type=Images&_token={{csrf_token()}}',
|
||||
});
|
||||
</script>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<ul style="list-style-type:none;">
|
||||
<li>
|
||||
<div class="col-sm-4">
|
||||
<div class="box box-default">
|
||||
<div class="box-header with-border">
|
||||
<h3 class="box-title">{{Lang::get('lang.publish')}}</h3>
|
||||
</div>
|
||||
<div class="box-body">
|
||||
<div class="form-group {{ $errors->has('type') ? 'has-error' : '' }}">
|
||||
|
||||
{!! Form::label('type',Lang::get('lang.status')) !!}
|
||||
{!! $errors->first('type', '<spam class="help-block">:message</spam>') !!}
|
||||
<div class="row">
|
||||
<div class="col-xs-1">
|
||||
{!! Form::radio('type','1',true) !!}
|
||||
</div>
|
||||
<div class="col-xs-4">
|
||||
{{Lang::get('lang.published')}}
|
||||
</div>
|
||||
<div class="col-xs-1">
|
||||
{!! Form::radio('type','0',null) !!}
|
||||
</div>
|
||||
<div class="col-xs-4">
|
||||
{{Lang::get('lang.draft')}}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="form-group {{ $errors->has('status') ? 'has-error' : '' }}">
|
||||
|
||||
{!! Form::label('status',Lang::get('lang.visibility')) !!}
|
||||
{!! $errors->first('status', '<spam class="help-block">:message</spam>') !!}
|
||||
<div class="row">
|
||||
<div class="col-xs-1">
|
||||
{!! Form::radio('status','1',true) !!}
|
||||
</div>
|
||||
<div class="col-xs-4">
|
||||
{{Lang::get('lang.public')}}
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-xs-1">
|
||||
{!! Form::radio('status','0',null) !!}
|
||||
</div>
|
||||
<div class="col-xs-4">
|
||||
{{Lang::get('lang.private')}}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<?php
|
||||
$format = App\Model\helpdesk\Settings\System::where('id', '1')->first()->date_time_format;
|
||||
$format = \App\Model\helpdesk\Utility\Time_format::where('id',$format)->first()->format;
|
||||
$tz = App\Model\helpdesk\Settings\System::where('id', '1')->first()->time_zone;
|
||||
$tz = App\Model\helpdesk\Utility\Timezones::where('id',$tz)->first()->name;
|
||||
date_default_timezone_set($tz);
|
||||
$date = date($format);
|
||||
$dateparse = date_parse_from_format($format, $date);
|
||||
//dd($dateparse);
|
||||
$month = $dateparse['month'];
|
||||
$day = $dateparse['day'];
|
||||
$year = $dateparse['year'];
|
||||
$hour = $dateparse['hour'];
|
||||
$minute = $dateparse['minute'];
|
||||
// echo $date;
|
||||
?>
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
{!! Form::label('month','Publish Immediately') !!}
|
||||
</div>
|
||||
<div class="col-md-12">
|
||||
|
||||
<span>
|
||||
{!! Form::selectMonth('month', $month) !!}
|
||||
{!! Form::selectRange('day', 1, 31, $day) !!}
|
||||
|
||||
{!! Form::selectYear('year', 2015,2035,null) !!}@
|
||||
<input type="text" name="hour" value="{{$hour}}" style="width: 30px;">:<input type="text" name="minute" value="{{$minute}}" style="width: 30px;" >
|
||||
</span>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="box-footer" style="background-color:#f5f5f5;" >
|
||||
|
||||
|
||||
{!! Form::submit(Lang::get('lang.publish'),['class'=>'btn btn-primary'])!!}
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
</li>
|
||||
<li>
|
||||
<div class="col-md-4">
|
||||
<div class="box box-default">
|
||||
<div class="box-header with-border">
|
||||
<h3 class="box-title">{{Lang::get('lang.category')}}</h3>
|
||||
</div>
|
||||
<div class="box-body" style="height:190px; overflow-y:auto;">
|
||||
|
||||
<div class="form-group {{ $errors->has('category_id') ? 'has-error' : '' }}">
|
||||
{{-- {!! Form::label('category_id','Category') !!} --}}
|
||||
{!! $errors->first('category_id', '<spam class="help-block">:message</spam>') !!}
|
||||
@while (list($key, $val) = each($category))
|
||||
<div class="row">
|
||||
<div class="form-group">
|
||||
<div class="col-md-1">
|
||||
<input type="radio" name="category_id[]" value="<?php echo $val; ?>">
|
||||
</div>
|
||||
<div class="col-md-10">
|
||||
<?php echo $key; ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endwhile
|
||||
|
||||
</div>
|
||||
</div>
|
||||
{!! Form::close() !!}
|
||||
<div class="box-footer" style="background-color:#f5f5f5;">
|
||||
|
||||
<span class="btn btn-info btn-sm" data-toggle="modal" data-target="#j">{{Lang::get('lang.addcategory')}}</span>
|
||||
<div class="modal" id="j">
|
||||
<div class="modal-dialog">
|
||||
<div class="modal-content">
|
||||
{!! Form::open(['method'=>'post','action'=>'Agent\kb\CategoryController@store']) !!}
|
||||
<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.addcategory')}}</h4>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
@include('themes.default1.agent.kb.category.form')
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<div class="form-group">
|
||||
{!! Form::submit('Add')!!}
|
||||
</div>
|
||||
<button type="button" class="btn btn-default pull-left" data-dismiss="modal">Close</button>
|
||||
</div>
|
||||
{!! Form::close() !!}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
@stop
|
||||
|
@@ -1,177 +1,224 @@
|
||||
@extends('themes.default1.agent.layout.agent')
|
||||
@extends('themes.default1.agent.layout.sidebar')
|
||||
@section('article')
|
||||
active
|
||||
active
|
||||
@stop
|
||||
@section('all-article')
|
||||
class="active"
|
||||
class="active"
|
||||
@stop
|
||||
@section('content')
|
||||
<script src="{{asset('ckeditor/ckeditor.js')}}"></script>
|
||||
{!! Form::model($article,['url' => 'article/'.$article->id , 'method' => 'PATCH'] )!!}
|
||||
<div class="row">
|
||||
<div class="box-body" >
|
||||
@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="col-md-9">
|
||||
<div class="box box-primary box-body">
|
||||
<div class="row">
|
||||
<div class="col-md-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']) !!}
|
||||
</div>
|
||||
<div class="col-md-6 form-group {{ $errors->has('slug') ? 'has-error' : '' }}" >
|
||||
{!! Form::label('slug',Lang::get('lang.slug')) !!}
|
||||
{!! $errors->first('slug', '<spam class="help-block">:message</spam>') !!}
|
||||
{!! Form::text('slug',null,['class' => 'form-control']) !!}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group {{ $errors->has('description') ? 'has-error' : '' }}">
|
||||
{!! Form::label('description',Lang::get('lang.description')) !!}
|
||||
{!! $errors->first('description', '<spam class="help-block">:message</spam>') !!}
|
||||
<div class="form-group" style="background-color:white">
|
||||
{!! Form::textarea('description',null,['class' => 'form-control','size' => '128x20','id'=>'myNicEditor','placeholder'=>'Enter the description']) !!}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<ul style="list-style-type:none;">
|
||||
<li>
|
||||
<div class="col-md-3">
|
||||
<div class="box box-default">
|
||||
<div class="box-header with-border">
|
||||
<h3 class="box-title">{{Lang::get('lang.publish')}}</h3>
|
||||
</div>
|
||||
<div class="box-body">
|
||||
<div class="form-group {{ $errors->has('type') ? 'has-error' : '' }}">
|
||||
|
||||
{!! Form::label('type',Lang::get('lang.status')) !!}
|
||||
{!! $errors->first('type', '<spam class="help-block">:message</spam>') !!}
|
||||
<div class="row">
|
||||
<div class="col-xs-4">
|
||||
{!! Form::radio('type','1',true) !!}{{Lang::get('lang.published')}}
|
||||
</div>
|
||||
<div class="col-xs-3">
|
||||
{!! Form::radio('type','0',null) !!}{{Lang::get('lang.draft')}}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="form-group {{ $errors->has('status') ? 'has-error' : '' }}">
|
||||
|
||||
{!! Form::label('status',Lang::get('lang.visibility')) !!}
|
||||
{!! $errors->first('status', '<spam class="help-block">:message</spam>') !!}
|
||||
<div class="row">
|
||||
<div class="col-xs-3">
|
||||
{!! Form::radio('status','1',true) !!}{{Lang::get('lang.public')}}
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-xs-3">
|
||||
{!! Form::radio('status','0',null) !!}{{Lang::get('lang.private')}}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
{!! Form::close() !!}
|
||||
<div class="box-footer" style="background-color:#f5f5f5;">
|
||||
<div style="margin-left:140px;">
|
||||
|
||||
{!! Form::submit(Lang::get('lang.publish'),['class'=>'btn btn-block btn-primary btn-sm'])!!}
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</li>
|
||||
<li>
|
||||
<div class="col-md-3">
|
||||
<div class="box box-default">
|
||||
<div class="box-header with-border">
|
||||
<h3 class="box-title">{{Lang::get('lang.category')}}</h3>
|
||||
<div class="box-body" >
|
||||
@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="col-md-8">
|
||||
<div class="box box-primary box-body">
|
||||
<div class="row">
|
||||
<div class="col-md-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']) !!}
|
||||
</div>
|
||||
<div class="col-md-6 form-group {{ $errors->has('slug') ? 'has-error' : '' }}" >
|
||||
{!! Form::label('slug',Lang::get('lang.slug')) !!}
|
||||
{!! $errors->first('slug', '<spam class="help-block">:message</spam>') !!}
|
||||
{!! Form::text('slug',null,['class' => 'form-control']) !!}
|
||||
</div>
|
||||
</div>
|
||||
<div class="box-body" style="height:190px; overflow-y:auto;">
|
||||
|
||||
<div class="form-group {{ $errors->has('category_id') ? 'has-error' : '' }}">
|
||||
{{-- {!! Form::label('category_id','Category') !!} --}}
|
||||
{!! $errors->first('category_id', '<spam class="help-block">:message</spam>') !!}
|
||||
@while (list($key, $val) = each($category))
|
||||
<div class="row">
|
||||
<div class="form-group">
|
||||
<div class="col-md-1">
|
||||
<input type="radio" name="category_id[]" value="<?php echo $val;?>" <?php if (in_array($val, $assign)) {
|
||||
echo ('checked');
|
||||
}
|
||||
?> ></div>
|
||||
<div class="col-md-10">
|
||||
<?php echo $key;?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endwhile
|
||||
<div class="form-group {{ $errors->has('description') ? 'has-error' : '' }}">
|
||||
{!! Form::label('description',Lang::get('lang.description')) !!}
|
||||
{!! $errors->first('description', '<spam class="help-block">:message</spam>') !!}
|
||||
<div class="form-group" style="background-color:white">
|
||||
{!! Form::textarea('description',$article->description,['class' => 'form-control','id'=>'editor','size' => '128x20','placeholder'=>Lang::get('lang.enter_the_description')]) !!}
|
||||
</div>
|
||||
<script>
|
||||
CKEDITOR.replace('editor', {
|
||||
filebrowserImageBrowseUrl: '../../laravel-filemanager?type=Images',
|
||||
filebrowserImageUploadUrl: '../../laravel-filemanager/upload?type=Images&_token={{csrf_token()}}',
|
||||
});
|
||||
</script>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<ul style="list-style-type:none;">
|
||||
<li>
|
||||
<div class="col-md-4">
|
||||
<div class="box box-default">
|
||||
<div class="box-header with-border">
|
||||
<h3 class="box-title">{{Lang::get('lang.publish')}}</h3>
|
||||
</div>
|
||||
<div class="box-body">
|
||||
<div class="form-group {{ $errors->has('type') ? 'has-error' : '' }}">
|
||||
|
||||
<div class="box-footer" style="background-color:#f5f5f5;">
|
||||
|
||||
<span class="btn btn-info btn-sm" data-toggle="modal" data-target="#j">{!! Lang::get('lang.addcategory') !!}</span>
|
||||
<div class="modal" id="j">
|
||||
<div class="modal-dialog">
|
||||
<div class="modal-content">
|
||||
{!! Form::open(['method'=>'post','action'=>'Agent\kb\CategoryController@store']) !!}
|
||||
<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.addcategory')}}</h4>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
@include('themes.default1.agent.kb.category.form')
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<div class="form-group">
|
||||
{!! Form::submit(Lang::get('lang.add'))!!}
|
||||
{!! Form::label('type',Lang::get('lang.status')) !!}
|
||||
{!! $errors->first('type', '<spam class="help-block">:message</spam>') !!}
|
||||
<div class="row">
|
||||
<div class="col-xs-1">
|
||||
{!! Form::radio('type','1',true) !!}
|
||||
</div>
|
||||
<div class="col-xs-4">
|
||||
{{Lang::get('lang.published')}}
|
||||
</div>
|
||||
<div class="col-xs-1">
|
||||
{!! Form::radio('type','0',null) !!}
|
||||
</div>
|
||||
<div class="col-xs-4">
|
||||
{{Lang::get('lang.draft')}}
|
||||
</div>
|
||||
<button type="button" class="btn btn-default pull-left" data-dismiss="modal">{!! Lang::get('lang.close') !!}</button>
|
||||
</div>
|
||||
{!! Form::close() !!}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="form-group {{ $errors->has('status') ? 'has-error' : '' }}">
|
||||
|
||||
{!! Form::label('status',Lang::get('lang.visibility')) !!}
|
||||
{!! $errors->first('status', '<spam class="help-block">:message</spam>') !!}
|
||||
<div class="row">
|
||||
<div class="col-xs-1">
|
||||
{!! Form::radio('status','1',true) !!}
|
||||
</div>
|
||||
<div class="col-xs-4">
|
||||
{{Lang::get('lang.public')}}
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-xs-1">
|
||||
{!! Form::radio('status','0',null) !!}
|
||||
</div>
|
||||
<div class="col-xs-4">
|
||||
{{Lang::get('lang.private')}}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<?php
|
||||
//dd($article);
|
||||
$format = App\Model\helpdesk\Settings\System::where('id', '1')->first()->date_time_format;
|
||||
$format = \App\Model\helpdesk\Utility\Time_format::where('id',$format)->first()->format;
|
||||
$tz = App\Model\helpdesk\Settings\System::where('id', '1')->first()->time_zone;
|
||||
$tz = App\Model\helpdesk\Utility\Timezones::where('id',$tz)->first()->name;
|
||||
date_default_timezone_set($tz);
|
||||
$date = date($format);
|
||||
$dateparse = date_parse_from_format('Y-m-d H:i:s', $article->publish_time);
|
||||
$month = $dateparse['month'];
|
||||
$day = $dateparse['day'];
|
||||
$year = $dateparse['year'];
|
||||
$hour = $dateparse['hour'];
|
||||
$minute = $dateparse['minute'];
|
||||
// echo $date;
|
||||
//dd($day,$month,$year);
|
||||
?>
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
{!! Form::label('month','Publish Immediately') !!}
|
||||
</div>
|
||||
<div class="col-md-12">
|
||||
|
||||
<span>
|
||||
{!! Form::selectMonth('month', $month) !!}
|
||||
{!! Form::selectRange('day', 1, 31, $day) !!}
|
||||
{!! Form::selectYear('year', $year,$year + 20,$year) !!}@
|
||||
<input type="text" name="hour" value="{{$hour}}" style="width: 30px;">:<input type="text" name="minute" value="{{$minute}}" style="width: 30px;" >
|
||||
</span>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
{!! Form::close() !!}
|
||||
<div class="box-footer" style="background-color:#f5f5f5;">
|
||||
|
||||
|
||||
{!! Form::submit(Lang::get('lang.publish'),['class'=>'btn btn-primary'])!!}
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</li>
|
||||
<li>
|
||||
<div class="col-md-4">
|
||||
<div class="box box-default">
|
||||
<div class="box-header with-border">
|
||||
<h3 class="box-title">{{Lang::get('lang.category')}}</h3>
|
||||
</div>
|
||||
<div class="box-body" style="height:190px; overflow-y:auto;">
|
||||
|
||||
</li>
|
||||
</ul>
|
||||
<div class="form-group {{ $errors->has('category_id') ? 'has-error' : '' }}">
|
||||
{{-- {!! Form::label('category_id','Category') !!} --}}
|
||||
{!! $errors->first('category_id', '<spam class="help-block">:message</spam>') !!}
|
||||
@while (list($key, $val) = each($category))
|
||||
<div class="row">
|
||||
<div class="form-group">
|
||||
<div class="col-md-1">
|
||||
<input type="radio" name="category_id[]" value="<?php echo $val; ?>" <?php
|
||||
if (in_array($val, $assign)) {
|
||||
echo ('checked');
|
||||
}
|
||||
?> ></div>
|
||||
<div class="col-md-10">
|
||||
<?php echo $key; ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endwhile
|
||||
|
||||
<script type="text/javascript">
|
||||
$(function () {
|
||||
$("textarea").wysihtml5();
|
||||
});
|
||||
</script>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="box-footer" style="background-color:#f5f5f5;">
|
||||
|
||||
{{-- {!! Form::close() !!} --}}
|
||||
@stop
|
||||
<!-- /content -->
|
||||
<span class="btn btn-info btn-sm" data-toggle="modal" data-target="#j">{!! Lang::get('lang.addcategory') !!}</span>
|
||||
<div class="modal" id="j">
|
||||
<div class="modal-dialog">
|
||||
<div class="modal-content">
|
||||
{!! Form::open(['method'=>'post','action'=>'Agent\kb\CategoryController@store']) !!}
|
||||
<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.addcategory')}}</h4>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
@include('themes.default1.agent.kb.category.form')
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<div class="form-group">
|
||||
{!! Form::submit(Lang::get('lang.add'))!!}
|
||||
</div>
|
||||
<button type="button" class="btn btn-default pull-left" data-dismiss="modal">{!! Lang::get('lang.close') !!}</button>
|
||||
</div>
|
||||
{!! Form::close() !!}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
@stop
|
||||
<!-- /content -->
|
@@ -68,10 +68,10 @@
|
||||
{!! $errors->first('status', '<spam class="help-block">:message</spam>') !!}
|
||||
<div class="row">
|
||||
<div class="col-xs-3">
|
||||
{!! Form::radio('status','1',true) !!}{{Lang::get('lang.active')}}
|
||||
{!! Form::radio('status','1',true) !!} {{Lang::get('lang.active')}}
|
||||
</div>
|
||||
<div class="col-xs-3">
|
||||
{!! Form::radio('status','0',null) !!}{{Lang::get('lang.inactive')}}
|
||||
{!! Form::radio('status','0',null) !!} {{Lang::get('lang.inactive')}}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
@@ -8,30 +8,6 @@
|
||||
<!-- Bootstrap 3.3.2 -->
|
||||
<link href="{{asset("lb-faveo/css/bootstrap.min.css")}}" rel="stylesheet" type="text/css" />
|
||||
<!-- Font Awesome Icons -->
|
||||
<style>
|
||||
span.stars, span.stars span {
|
||||
display: block;
|
||||
background: url({!! URL::asset('lb-faveo/dist/images/stars.png'); !!}) 0 -16px repeat-x;
|
||||
width: 80px;
|
||||
height: 16px;
|
||||
}
|
||||
|
||||
span.stars span {
|
||||
background-position: 0 0;
|
||||
}
|
||||
</style>
|
||||
<style>
|
||||
span.stars2, span.stars2 span {
|
||||
display: block;
|
||||
background: url({!! URL::asset('lb-faveo/dist/images/stars.png'); !!}) 0 -16px repeat-x;
|
||||
width: 80px;
|
||||
height: 16px;
|
||||
}
|
||||
|
||||
span.stars2 span {
|
||||
background-position: 0 0;
|
||||
}
|
||||
</style>
|
||||
<link href="{{asset("lb-faveo/css/font-awesome.min.css")}}" rel="stylesheet" type="text/css" />
|
||||
<!-- Ionicons -->
|
||||
<link href="{{asset("lb-faveo/css/ionicons.min.css")}}" rel="stylesheet">
|
||||
@@ -52,15 +28,15 @@ span.stars2 span {
|
||||
<link type="text/css" href="{{asset("lb-faveo/css/jquery.ui.css")}}" rel="stylesheet">
|
||||
<link type="text/css" href="{{asset("lb-faveo/plugins/datatables/dataTables.bootstrap.css")}}" rel="stylesheet">
|
||||
<link href="{{asset("lb-faveo/plugins/bootstrap-wysihtml5/bootstrap3-wysihtml5.min.css")}}" rel="stylesheet" type="text/css" />
|
||||
<!-- <link type="text/css" href="http://code.jquery.com/ui/1.9.1/themes/redmond/jquery-ui.css" rel="stylesheet"> -->
|
||||
<link rel="stylesheet" type="text/css" href="{{asset("lb-faveo/css/faveo-css.css")}}">
|
||||
|
||||
<link href="{{asset("lb-faveo/css/jquery.rating.css")}}" rel="stylesheet" type="text/css" />
|
||||
<!--[if lt IE 9]>
|
||||
<script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
|
||||
<script src="https://oss.maxcdn.com/libs/respond.js/1.3.0/respond.min.js"></script>
|
||||
<![endif]-->
|
||||
<script src="https://code.jquery.com/jquery-2.1.4.js" type="text/javascript"></script>
|
||||
<script src="http://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
|
||||
<!-- <script src="{{asset("lb-faveo/js/jquery-2.1.4.js")}}" type="text/javascript"></script>
|
||||
<script src="{{asset("lb-faveo/js/jquery2.1.1.min.js")}}" type="text/javascript"></script>-->
|
||||
<script src="{{asset("lb-faveo/js/jquery-2.1.4.js")}}" type="text/javascript"></script>
|
||||
<script src="{{asset("lb-faveo/js/jquery2.1.1.min.js")}}" type="text/javascript"></script>
|
||||
|
||||
@yield('HeadInclude')
|
||||
</head>
|
||||
@@ -318,7 +294,9 @@ $group = App\Model\helpdesk\Agent\Groups::where('id', '=', $agent_group)->where(
|
||||
<strong>{!! Lang::get('lang.copyright') !!} © {!! date('Y') !!} <a href="{!! $company->website !!}">{!! $company->company_name !!}</a>.</strong> {!! Lang::get('lang.all_rights_reserved') !!}. {!! Lang::get('lang.powered_by') !!} <a href="http://www.faveohelpdesk.com/">Faveo</a>
|
||||
</footer>
|
||||
</div><!-- ./wrapper -->
|
||||
|
||||
{{-- // <script src="http://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script> --}}
|
||||
|
||||
<script src="{{asset("lb-faveo/js/ajax-jquery.min.js")}}"></script>
|
||||
|
||||
{{-- // <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-datetimepicker/4.7.14/js/bootstrap-datetimepicker.min.js"></script> --}}
|
||||
|
||||
@@ -347,6 +325,7 @@ $group = App\Model\helpdesk\Agent\Groups::where('id', '=', $agent_group)->where(
|
||||
<script type="text/javascript" src="{{asset("lb-faveo/js/jquery.dataTables1.10.10.min.js")}}"></script>
|
||||
|
||||
<script type="text/javascript" src="{{asset("lb-faveo/plugins/datatables/dataTables.bootstrap.js")}}"></script>
|
||||
<script src="{{asset("lb-faveo/js/jquery.rating.pack.js")}}" type="text/javascript"></script>
|
||||
|
||||
<script>
|
||||
$(function() {
|
||||
|
@@ -381,12 +381,13 @@ $data = $ConvDate[0];
|
||||
<script type="text/javascript">
|
||||
|
||||
$(document).ready(function() {
|
||||
// var Data = $('input[name="rating"]:checked').val();
|
||||
// var Data2 = $('input[name="rating2"]:checked').val();
|
||||
// if (Data) {
|
||||
// $('input[name=rating]').rating('readOnly');
|
||||
//
|
||||
// }
|
||||
var Data = $('input[name="rating"]:checked').val();
|
||||
var Data2 = $('input[name="rating2"]:checked').val();
|
||||
if (Data) {
|
||||
$('input[name=rating]').rating('readOnly');
|
||||
jQuery('.star').attr('disabled', true);
|
||||
|
||||
}
|
||||
$('input[name=rating]').change(function() {
|
||||
$('#foo').submit();
|
||||
});
|
||||
|
@@ -61,10 +61,16 @@
|
||||
</h1>
|
||||
<ul class="fa-ul">
|
||||
<?php foreach ($article_id as $id) {
|
||||
|
||||
$article = App\Model\kb\Article::where('id', '=', $id)->where('status', '=','1')->where('type', '=','1')->get();
|
||||
//$format = App\Model\helpdesk\Settings\System::where('id','1')->first()->date_time_format;
|
||||
$tz = App\Model\helpdesk\Settings\System::where('id','1')->first()->time_zone;
|
||||
$tz = \App\Model\helpdesk\Utility\Timezones::where('id',$tz)->first()->name;
|
||||
date_default_timezone_set($tz);
|
||||
$date = \Carbon\Carbon::now()->toDateTimeString();
|
||||
//dd($date);
|
||||
|
||||
$article = App\Model\kb\Article::where('id', '=', $id)->where('status', '=','1')->where('type', '=','1')->where('publish_time','<',$date)->get();
|
||||
?>
|
||||
@foreach($article as $arti)
|
||||
@forelse($article as $arti)
|
||||
<li>
|
||||
<i class="fa-li fa fa-list-alt fa-fw text-muted"></i>
|
||||
<h3 class="h5"><a href="#"><a href="{{url('show/'.$arti->slug)}}">{{$arti->name}}</a></h3>
|
||||
@@ -75,10 +81,16 @@
|
||||
$excerpt = App\Http\Controllers\Client\kb\UserController::getExcerpt($str, $startPos = 0, $maxLength = 50); ?>
|
||||
{!! $excerpt !!} <br/><a class="more-link text-center" href="{{url('show/'.$arti->slug)}}" style="color: orange">{!! Lang::get('lang.read_more') !!}</a>
|
||||
</li>
|
||||
@endforeach
|
||||
@empty
|
||||
<p>No Articles</p>
|
||||
@endforelse
|
||||
<?php } ?>
|
||||
</ul>
|
||||
|
||||
|
||||
<p class="more-link text-center"><a href="{{url('category-list/'.$category->slug)}}" class="btn btn-custom btn-xs">{!! Lang::get('lang.view_all') !!}</a></p>
|
||||
|
||||
|
||||
</section>
|
||||
</div>
|
||||
@endforeach
|
||||
|
@@ -2,7 +2,9 @@
|
||||
@section('breadcrumb')
|
||||
|
||||
<?php
|
||||
//dd($arti);
|
||||
$all = App\Model\kb\Relationship::where('article_id','=', $arti->id)->get();
|
||||
//dd($all);
|
||||
/* from whole attribute pick the article_id */
|
||||
$category_id = $all->lists('category_id');
|
||||
?>
|
||||
|
@@ -25,7 +25,7 @@
|
||||
<!-- fullCalendar 2.2.5-->
|
||||
<link href="{{asset("lb-faveo/plugins/bootstrap-wysihtml5/bootstrap3-wysihtml5.min.css")}}" rel="stylesheet" type="text/css" />
|
||||
<!-- Theme style -->
|
||||
<link href="{{asset("lb-faveo/dist/css/jquery.rating.css")}}" rel="stylesheet" type="text/css" />
|
||||
<link href="{{asset("lb-faveo/css/jquery.rating.css")}}" rel="stylesheet" type="text/css" />
|
||||
<link href="{{asset("lb-faveo/css/app.css")}}" rel="stylesheet" type="text/css" />
|
||||
<link href="{{asset("lb-faveo/plugins/bootstrap-wysihtml5/bootstrap3-wysihtml5.min.css")}}" rel="stylesheet" type="text/css" />
|
||||
|
||||
@@ -347,7 +347,7 @@ $footer4 = App\Model\helpdesk\Theme\Widgets::where('name','=','footer4')->first(
|
||||
<script src="{{asset("lb-faveo/js/superfish.js")}}" type="text/javascript"></script>
|
||||
<script src="{{asset("lb-faveo/js/mobilemenu.js")}}" type="text/javascript"></script>
|
||||
<script src="{{asset("lb-faveo/js/know.js")}}" type="text/javascript"></script>
|
||||
<script src="{{asset("lb-faveo/dist/js/jquery.rating.pack.js")}}" type="text/javascript"></script>
|
||||
<script src="{{asset("lb-faveo/js/jquery.rating.pack.js")}}" type="text/javascript"></script>
|
||||
<script src="{{asset("lb-faveo/plugins/bootstrap-wysihtml5/bootstrap3-wysihtml5.all.min.js")}}" type="text/javascript"></script>
|
||||
<script src="{{asset("lb-faveo/plugins/iCheck/icheck.min.js")}}" type="text/javascript"></script>
|
||||
<script>
|
||||
|
@@ -1,11 +1,11 @@
|
||||
@extends('themes.default1.installer.layout.installer')
|
||||
@section('licence')
|
||||
@section('license')
|
||||
active
|
||||
@stop
|
||||
@section('content')
|
||||
<center><h1>Licence Agreement</h1></center>
|
||||
<center><h1>License Agreement</h1></center>
|
||||
|
||||
<p>PLEASE READ THIS SOFTWARE LICENSE AGREEMENT CAREFULLY BEFORE DOWNLOADING OR USING THE SOFTWARE. BY CLICKING ON THE "ACCEPT" BUTTON, OPENING THE PACKAGE, OR DOWNLOADING THE PRODUCT, YOU ARE CONSENTING TO BE BOUND BY THIS AGREEMENT. IF YOU DO NOT AGREE TO ALL OF THE TERMS OF THIS AGREEMENT, STOP THE INSTALLATION PROCESS AND EXIT.</p>
|
||||
<p>Please read this software license agreement carefully before downloading or using the software. By clicking on the "accept" button, opening the package, or downloading the product, you are consenting to be bound by this agreement. If you do not agree to all of the terms of this agreement, stop the installation process and exit.</p>
|
||||
<form action="{{URL::route('postlicence')}}" method="post">
|
||||
<div>
|
||||
|
||||
@@ -40,13 +40,13 @@ active
|
||||
<br>16. Modification of This License. This License is Copyright (C) 2005 Lawrence Rosen. Permission is granted to copy, distribute, or communicate this License without modification. Nothing in this License permits You to modify this License as applied to the Original Work or to Derivative Works. However, You may modify the text of this License and copy, distribute or communicate your modified version (the "Modified License") and apply it to other original works of authorship subject to the following conditions: (i) You may not indicate in any way that your Modified License is the "Open Software License" or "OSL" and you may not use those names in the name of your Modified License; (ii) You must replace the notice specified in the first paragraph above with the notice "Licensed under " or with a notice of your own that is not confusingly similar to the notice in this License; and (iii) You may not claim that your original works are open source software unless your Modified License has been approved by Open Source Initiative (OSI) and You comply with its license review and certification process.
|
||||
<br>
|
||||
</div>
|
||||
<a style="float: right;" href="#" title="Close" class="button-primary button button-large button-next">close</a>
|
||||
<a style="float: right;" href="#" title="Close" class="button-primary button button-large button-next">Close</a>
|
||||
</p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<input id="Acceptme" class="input-checkbox" type="checkbox">
|
||||
<label for="Acceptme">I accept the <a href="#openModal">Licence Agreement</a></label>
|
||||
<label for="Acceptme">I accept the <a href="#openModal">License Agreement</a></label>
|
||||
</div>
|
||||
<br>
|
||||
<p class="wc-setup-actions step">
|
||||
|
@@ -1,6 +1,6 @@
|
||||
@extends('themes.default1.installer.layout.installer')
|
||||
|
||||
@section('licence')
|
||||
@section('license')
|
||||
done
|
||||
@stop
|
||||
|
||||
@@ -19,9 +19,9 @@ active
|
||||
<?php
|
||||
define('PROBE_VERSION', '4.2');
|
||||
define('PROBE_FOR', '<b>Faveo</b>HELPDESK '.Config::get('app.version').' and Newer');
|
||||
define('STATUS_OK', 'ok');
|
||||
define('STATUS_WARNING', 'warning');
|
||||
define('STATUS_ERROR', 'error');
|
||||
define('STATUS_OK', 'Ok');
|
||||
define('STATUS_WARNING', 'Warning');
|
||||
define('STATUS_ERROR', 'Error');
|
||||
class TestResult {
|
||||
var $message;
|
||||
var $status;
|
||||
@@ -34,7 +34,7 @@ class TestResult {
|
||||
?>
|
||||
|
||||
<div id="wrapper">
|
||||
<h1>Probe</h1>
|
||||
<h1>Probe</h1>
|
||||
|
||||
<b>Probe Version:</b>
|
||||
<?php echo PROBE_VERSION?>
|
||||
@@ -43,9 +43,9 @@ class TestResult {
|
||||
<?php echo PROBE_FOR?>
|
||||
<br/>
|
||||
<br/>
|
||||
<h2>1. Environment test</h2>
|
||||
|
||||
Test/Probe Prerequisites required to be installed Probe
|
||||
<ul>
|
||||
<br/><br/>
|
||||
<?php
|
||||
|
||||
function validate_php(&$results) {
|
||||
@@ -202,14 +202,19 @@ $php_ok = validate_php($results);
|
||||
$memory_ok = validate_memory_limit($results);
|
||||
$extensions_ok = validate_extensions($results);
|
||||
$compatibility_mode_ok = validate_zend_compatibility_mode($results);
|
||||
|
||||
?>
|
||||
<p class="wc-setup-actions step">
|
||||
<?php
|
||||
foreach ($results as $result) {
|
||||
print '<span class="' . $result->status . '">' . $result->status . '</span> — ' . $result->message . '<br/>';
|
||||
print '<span class="' . strtolower($result->status) . '">' . $result->status . '</span> — ' . $result->message . '<br/>';
|
||||
} // foreach
|
||||
?>
|
||||
</p>
|
||||
<?php
|
||||
if ($php_ok && $memory_ok && $extensions_ok && $compatibility_mode_ok) {
|
||||
?>
|
||||
</div>
|
||||
<form action="{{URL::route('postprerequisites')}}" method="post">
|
||||
<form action="{{URL::route('postprerequisites')}}" method="post" class="border-line">
|
||||
<input type="hidden" name="_token" value="{{ csrf_token() }}">
|
||||
<p class="wc-setup-actions step">
|
||||
<input type="submit" id="submitme" class="button-primary button button-large button-next" value="Continue">
|
||||
@@ -231,9 +236,9 @@ a:active {color:#000;}
|
||||
|
||||
<div id="legend">
|
||||
{{-- <ul> --}}
|
||||
<p><span class="ok">ok</span> — All OK<br/>
|
||||
<span class="warning">warning</span> — Not a deal breaker, but it's recommended to have this installed for some features to work<br/>
|
||||
<span class="error">error</span> — Faveo HELPDESK require this feature and can't work without it</p>
|
||||
<p><span class="ok">Ok</span> — All OK<br/>
|
||||
<span class="warning">Warning</span> — Not a deal breaker, but it's recommended to have this installed for some features to work<br/>
|
||||
<span class="error">Error</span> — Faveo HELPDESK require this feature and can't work without it</p>
|
||||
{{-- </ul> --}}
|
||||
</div>
|
||||
</div>
|
||||
|
@@ -1,6 +1,6 @@
|
||||
@extends('themes.default1.installer.layout.installer')
|
||||
|
||||
@section('licence')
|
||||
@section('license')
|
||||
done
|
||||
@stop
|
||||
|
||||
@@ -13,27 +13,28 @@ active
|
||||
@stop
|
||||
|
||||
@section('content')
|
||||
|
||||
|
||||
<h1>Page Setup</h1>
|
||||
<h1 style="text-align: center;">Database Setup</h1>
|
||||
|
||||
{!! Form::open(['url'=> '/step4post']) !!}
|
||||
<table>
|
||||
<tr>
|
||||
<td>
|
||||
<label for="selectbox1">Database</label>
|
||||
<label for="selectbox1">Database <span style="color
|
||||
: red;font-size:12px;">*</span></label>
|
||||
</td>
|
||||
<td>
|
||||
<select class="form-control" name="default" id="default">
|
||||
<option value="mysql">mysql</option>
|
||||
<option value="pgsql">pgsql</option>
|
||||
<option value="sqlsrv">sqlsrv</option>
|
||||
<td class="select2-container wc-enhanced-select enhanced">
|
||||
<select name="default" id="selectbox1">
|
||||
<option value="mysql">MySQL</option>
|
||||
<option value="pgsql">PgSQL</option>
|
||||
<option value="sqlsrv">SQLSRV</option>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<label for="box1">HOST</label>
|
||||
<label for="box1">Host<span style="color
|
||||
: red;font-size:12px;">*</span></label>
|
||||
</td>
|
||||
<td>
|
||||
<input type="text" name="host" required>
|
||||
@@ -42,7 +43,7 @@ active
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<label for="box2">PORT</label>
|
||||
<label for="box2">Port</label>
|
||||
</td>
|
||||
<td>
|
||||
<input type="text" name="port">
|
||||
@@ -51,7 +52,8 @@ active
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<label for="box3">DATABASE NAME</label>
|
||||
<label for="box3">Database Name<span style="color
|
||||
: red;font-size:12px;">*</span></label>
|
||||
</td>
|
||||
<td>
|
||||
<input type="text" name="databasename" required>
|
||||
@@ -60,7 +62,8 @@ active
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<label for="box4">USER NAME</label>
|
||||
<label for="box4">User Name<span style="color
|
||||
: red; font-size: 12px;">*</span></label>
|
||||
</td>
|
||||
<td>
|
||||
<input type="text" name="username" required>
|
||||
@@ -69,7 +72,7 @@ active
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<label for="box5">PASSWORD</label>
|
||||
<label for="box5">Password</label>
|
||||
</td>
|
||||
<td>
|
||||
<input type="text" name="password">
|
||||
@@ -81,7 +84,7 @@ active
|
||||
<br>
|
||||
<p class="wc-setup-actions step">
|
||||
<input type="submit" id="submitme" class="button-primary button button-large button-next" value="Continue">
|
||||
<a href="step2.html" class="button button-large button-next" style="float: left">Previous</a>
|
||||
<a href="{!! route('prerequisites') !!}" class="button button-large button-next" style="float: left">Previous</a>
|
||||
</p>
|
||||
</form>
|
||||
</div>
|
||||
|
@@ -1,6 +1,6 @@
|
||||
@extends('themes.default1.installer.layout.installer')
|
||||
|
||||
@section('licence')
|
||||
@section('license')
|
||||
done
|
||||
@stop
|
||||
|
||||
@@ -14,9 +14,11 @@ active
|
||||
|
||||
@section('content')
|
||||
|
||||
<h1 style="text-align: center;">Database Setup</h1>
|
||||
Test/Probe Prerequisites required to be installed Probe<br/><br/>
|
||||
<?php
|
||||
/**
|
||||
* FaveoHELPDESK Probe
|
||||
* Faveo HELPDESK Probe
|
||||
*
|
||||
* Copyright (c) 2014 Ladybird Web Solution.
|
||||
*
|
||||
@@ -38,9 +40,9 @@ define('DB_PORT', $port); // Name of the database you are connecting to
|
||||
define('PROBE_VERSION', '4.2');
|
||||
define('PROBE_FOR', '<b>Faveo</b>HELPDESK 1.0 and Newer');
|
||||
|
||||
define('STATUS_OK', 'ok');
|
||||
define('STATUS_WARNING', 'warning');
|
||||
define('STATUS_ERROR', 'error');
|
||||
define('STATUS_OK', 'Ok');
|
||||
define('STATUS_WARNING', 'Warning');
|
||||
define('STATUS_ERROR', 'Error');
|
||||
|
||||
class TestResult {
|
||||
|
||||
@@ -56,7 +58,6 @@ class TestResult {
|
||||
|
||||
if (DB_HOST && DB_USER && DB_NAME) {
|
||||
?>
|
||||
<ul>
|
||||
<?php
|
||||
|
||||
$mysqli_ok = true;
|
||||
@@ -66,7 +67,7 @@ if (DB_HOST && DB_USER && DB_NAME) {
|
||||
|
||||
if($default == 'mysql') {
|
||||
if ($connection = mysqli_connect(DB_HOST, DB_USER, DB_PASS, DB_NAME)) {
|
||||
$results[] = new TestResult('Connected to database as ' . DB_USER . '@' . DB_HOST, DB_PORT, STATUS_OK);
|
||||
$results[] = new TestResult('Connected to database as ' . DB_USER . '@' . DB_HOST . DB_PORT, STATUS_OK);
|
||||
if (mysqli_select_db($connection, DB_NAME)) {
|
||||
$results[] = new TestResult('Database "' . DB_NAME . '" selected', STATUS_OK);
|
||||
$mysqli_version = mysqli_get_server_info($connection);
|
||||
@@ -102,7 +103,7 @@ if (DB_HOST && DB_USER && DB_NAME) {
|
||||
// dd($results);
|
||||
|
||||
foreach ($results as $result) {
|
||||
print '<span class="' . $result->status . '">' . $result->status . '</span> — ' . $result->message . '<br/>';
|
||||
print '<span class="' . strtolower($result->status) . '">' . $result->status . '</span> — ' . $result->message . '<br/>';
|
||||
} // foreach
|
||||
?>
|
||||
</ul>
|
||||
@@ -122,7 +123,7 @@ if (DB_HOST && DB_USER && DB_NAME) {
|
||||
<?php if ($mysqli_ok) {?>
|
||||
<p id="verdict" class="all_ok">OK, this system can run <b>Faveo</b>HELPDESK</p>
|
||||
|
||||
<h3 id="conn">Database connection successfull</h3>
|
||||
<h2 id="conn">Database connection successful</h3>
|
||||
|
||||
<script src="http://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
|
||||
|
||||
@@ -146,12 +147,6 @@ if (DB_HOST && DB_USER && DB_NAME) {
|
||||
<input type="submit" style="display:none;">
|
||||
|
||||
</form>
|
||||
|
||||
<p class="wc-setup-actions step">
|
||||
<a href="{{URL::route('account')}}" class="pull-right" id="next" style="text-color:black"><input type="submit" id="submitme" class="button-primary button button-large button-next" value="Continue"> </a>
|
||||
<a href="{{URL::route('configuration')}}" class="button button-large button-next" style="float: left">Previous</a>
|
||||
</p>
|
||||
|
||||
<div id="show" style="display:none;">
|
||||
<div class="row">
|
||||
<div class="col-md-2">
|
||||
@@ -162,6 +157,14 @@ if (DB_HOST && DB_USER && DB_NAME) {
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div style="border-bottom: 1px solid #eee;">
|
||||
<p class="wc-setup-actions step">
|
||||
<a href="{{URL::route('account')}}" class="pull-right" id="next" style="text-color:black"><input type="submit" id="submitme" class="button-primary button button-large button-next" value="Continue"> </a>
|
||||
<a href="{{URL::route('configuration')}}" class="button button-large button-next" style="float: left">Previous</a>
|
||||
</p>
|
||||
</div>
|
||||
<br/>
|
||||
|
||||
<script type="text/javascript">
|
||||
|
||||
// submit a ticket
|
||||
@@ -202,12 +205,11 @@ $(document).ready(function () {
|
||||
<p id="verdict" class="not_ok">This system does not meet <b>Faveo</b>HELPDESK system requirements</p>
|
||||
<a href="{{URL::route('configuration')}}"><button type="submit" id="submitme" class="button-danger button button-large button-next" style="background-color: #d43f3a;color:#fff;" value="Error">Back</button></a><br/><br/>
|
||||
<?php } // if ?>
|
||||
<h2>Legend</h2>
|
||||
<div id="legend">
|
||||
{{-- <ul> --}}
|
||||
<span class="ok">ok</span> — All OK <br/>
|
||||
<span class="warning">warning</span> — Not a deal breaker, but it's recommended to have this installed for some features to work<br/>
|
||||
<span class="error">error</span> — <b>Faveo</b>HELPDESK require this feature and can't work without it<br/><br/>
|
||||
<span class="ok">Ok</span> — All OK <br/>
|
||||
<span class="warning">Warning</span> — Not a deal breaker, but it's recommended to have this installed for some features to work<br/>
|
||||
<span class="error">Error</span> — <b>Faveo</b>HELPDESK require this feature and can't work without it<br/><br/>
|
||||
{{-- </ul> --}}
|
||||
</div>
|
||||
<?php } // if ?>
|
||||
|
@@ -34,7 +34,7 @@
|
||||
<br><span class="ok">ok</span> — Connected to database as root@localhost
|
||||
<br><span class="ok">ok</span> — Database "faveo" selected
|
||||
<br><span class="ok">ok</span> — MySQL version is 5.6.17
|
||||
<br><span class="ok">ok</span>, this system can run FaveoHELPDESK
|
||||
<br><span class="ok">ok</span>, this system can run Faveo HELPDESK
|
||||
<h1>Database connection successfull</h1>
|
||||
|
||||
<br>
|
||||
|
@@ -1,6 +1,6 @@
|
||||
@extends('themes.default1.installer.layout.installer')
|
||||
|
||||
@section('licence')
|
||||
@section('license')
|
||||
done
|
||||
@stop
|
||||
|
||||
@@ -17,7 +17,7 @@ active
|
||||
@stop
|
||||
|
||||
@section('content')
|
||||
|
||||
<h1 style="text-align: center;">Locale Information</h1>
|
||||
{!! Form::open(['url'=>route('postaccount')]) !!}
|
||||
<input type="hidden" name="_token" value="{{ csrf_token() }}">
|
||||
@if($errors->first('firstname')||$errors->first('Lastname')||$errors->first('email')||$errors->first('username')||$errors->first('password')||$errors->first('confirmpassword'))
|
||||
@@ -46,7 +46,8 @@ active
|
||||
<h1>Personal Information</h1>
|
||||
<tr>
|
||||
<td>
|
||||
{!! Form::label('firstname',Lang::get('lang.first_name')) !!}
|
||||
<label for="box1">{!! Lang::get('lang.name') !!}<span style="color
|
||||
: red;font-size:12px;">*</span></label>
|
||||
</td>
|
||||
<td>
|
||||
{!! Form::text('firstname',null,['style' =>'margin-left:250px']) !!}
|
||||
@@ -54,7 +55,8 @@ active
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
{!! Form::label('Last Name',Lang::get('lang.last_name')) !!}
|
||||
<label for="box2">Last Name<span style="color
|
||||
: red;font-size:12px;">*</span></label>
|
||||
</td>
|
||||
<td>
|
||||
{!! Form::text('Lastname',null,['style' =>'margin-left:250px']) !!}
|
||||
@@ -62,7 +64,8 @@ active
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
{!! Form::label('email',Lang::get('lang.email')) !!}
|
||||
<label for="box2">Email<span style="color
|
||||
: red;font-size:12px;">*</span></label>
|
||||
</td>
|
||||
<td>
|
||||
{!! Form::text('email',null,['style' =>'margin-left:250px']) !!}
|
||||
@@ -74,7 +77,8 @@ active
|
||||
<h1>Login Information</h1>
|
||||
<tr>
|
||||
<td>
|
||||
{!! Form::label('user_name',Lang::get('lang.user_name')) !!}
|
||||
<label for="box4">User Name<span style="color
|
||||
: red;font-size:12px;">*</span></label>
|
||||
</td>
|
||||
<td>
|
||||
{!! Form::text('username',null,['style' =>'margin-left:200px']) !!}
|
||||
@@ -82,7 +86,8 @@ active
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
{!! Form::label('Password',Lang::get('lang.password')) !!}
|
||||
<label for="box4">Password<span style="color
|
||||
: red;font-size:12px;">*</span></label>
|
||||
</td>
|
||||
<td>
|
||||
<div style="margin-left:50px;">
|
||||
@@ -92,7 +97,8 @@ active
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
{!! Form::label('confirmpassword',Lang::get('lang.confirm_password')) !!}
|
||||
<label for="box5">Confirm Password<span style="color
|
||||
: red;font-size:12px;">*</span></label>
|
||||
</td>
|
||||
<td>
|
||||
<div style="margin-left:50px;">
|
||||
@@ -103,15 +109,21 @@ active
|
||||
</table>
|
||||
|
||||
<table id="datepairExample">
|
||||
<h1>Local Information</h1>
|
||||
<h1>Locale Information</h1>
|
||||
<tr>
|
||||
<td>
|
||||
{!! Form::label('language',Lang::get('lang.language')) !!}
|
||||
</td>
|
||||
<td>
|
||||
<select style="margin-left: 170px" name="language">
|
||||
<option value="English(India)">English(India)</option>
|
||||
<option value="English(U.k)">English(U.K)</option>
|
||||
<?php
|
||||
$path = '../resources/lang';
|
||||
$values = scandir($path);
|
||||
$values = array_slice($values, 2);
|
||||
?>
|
||||
<select style="margin-left: 170px" name="language" id="selectbox1" style="margin-left: 260px">
|
||||
@foreach($values as $value)
|
||||
<option value="{!! $value !!}">{!! Config::get('languages.' . $value) !!}</option>
|
||||
@endforeach
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
@@ -120,7 +132,7 @@ active
|
||||
{!! Form::label('time_zone',Lang::get('lang.time_zone')) !!}
|
||||
</td>
|
||||
<td>
|
||||
<select name="timezone" style="margin-left: 170px">
|
||||
<select name="timezone" style="margin-left: 170px" id="selectbox2" style="margin-left: 260px" required>
|
||||
<option value="US/Samoa">US/Samoa</option>
|
||||
<option value="US/Hawaii">US/Hawaii</option>
|
||||
<option value="US/Alaska">US/Alaska</option>
|
||||
@@ -242,10 +254,10 @@ active
|
||||
{!! Form::label('date',Lang::get('lang.date_time')) !!}
|
||||
</td>
|
||||
<td>
|
||||
<select name="datetime" style="margin-left: 170px">
|
||||
<option value="d/m/Y H:i">DD/MM/YYYY H:i</option>
|
||||
<option value="m/d/Y H:i">MM/DD/YYYY H:i</option>
|
||||
<option value="Y/m/d H:i">YYYY/MM/DD H:i</option>
|
||||
<select name="datetime" style="margin-left: 170px" id="selectbox3" style="margin-left: 260px" required>
|
||||
<option value="d/m/Y H:i:s">DD/MM/YYYY H:i:s</option>
|
||||
<option value="m/d/Y H:i:s">MM/DD/YYYY H:i:s</option>
|
||||
<option value="Y/m/d H:i:s">YYYY/MM/DD H:i:s</option>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
@@ -254,7 +266,7 @@ active
|
||||
<br>
|
||||
<p class="wc-setup-actions step">
|
||||
<input type="submit" id="submitme" class="button-primary button button-large button-next" value="Install">
|
||||
<a href="step4.html" class="button button-large button-next" style="float: left">Previous</a>
|
||||
<a href="{!! route('database') !!}" class="button button-large button-next" style="float: left">Previous</a>
|
||||
</p>
|
||||
{!! Form::token() !!}
|
||||
{!! Form::close() !!}
|
||||
|
@@ -1,6 +1,6 @@
|
||||
@extends('themes.default1.installer.layout.installer')
|
||||
|
||||
@section('licence')
|
||||
@section('license')
|
||||
done
|
||||
@stop
|
||||
|
||||
@@ -26,7 +26,11 @@ active
|
||||
<img src="https://encrypted-tbn2.gstatic.com/images?q=tbn:ANd9GcQ-uhinU3OzXKj9zlFO7dFxHaChqyHPcWWg5nWgMqYt6N5b3knK" style="width: 86px; float: right;">
|
||||
</a>
|
||||
|
||||
<h1 style="text-align: center;">Thank you</h1>
|
||||
<h1 style="text-align: center;">Your Helpdesk is Ready!</h1>
|
||||
<div class="woocommerce-message woocommerce-tracker">
|
||||
<p>All right, sparky! You’ve made it through the installation.</p>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<div class="wc-setup-next-steps">
|
||||
|
@@ -85,11 +85,11 @@
|
||||
</style>
|
||||
</head>
|
||||
<body class="wc-setup wp-core-ui">
|
||||
<h1 id="wc-logo"><a href="#">
|
||||
<h1 id="wc-logo"><a href="http://www.faveohelpdesk.com">
|
||||
<img src="{{asset("lb-faveo/media/installer/faveo.png")}}" alt="faveo" width="
|
||||
250px"></a></h1>
|
||||
<ol class="wc-setup-steps">
|
||||
<li class="@yield('licence')">Licence Agreement</li>
|
||||
<li class="@yield('license')">License Agreement</li>
|
||||
<li class="@yield('environment')">Environment Test</li>
|
||||
<li class="@yield('database')">Database Setup</li>
|
||||
<li class="@yield('locale')">Locale Information</li>
|
||||
@@ -98,8 +98,9 @@
|
||||
<div class="wc-setup-content">
|
||||
@yield('content')
|
||||
</div>
|
||||
<br/>
|
||||
<center>©<?php echo date('Y')?>. Powered by <a target="_blank" href="http://www.faveohelpdesk.com">Faveo </a></center>
|
||||
|
||||
|
||||
<p style="text-align: center;"> Copyright © <?php echo date('Y')?> · Ladybird Web Solution Pvt Ltd. All Rights Reserved. Powered by <a target="_blank" href="http://www.faveohelpdesk.com">Faveo </a></p>
|
||||
{{-- // <script src="http://cdnjs.cloudflare.com/ajax/libs/jquery/2.0.2/jquery.min.js"></script> --}}
|
||||
{{-- // <script src="{{asset("lb-faveo/installer/js/index.js ")}}"></script> --}}
|
||||
</body>
|
||||
|
Reference in New Issue
Block a user