update 1.0.7
This commit is contained in:
@@ -1,14 +1,14 @@
|
||||
@extends('themes.default1.admin.layout.admin')
|
||||
|
||||
@section('Staffs')
|
||||
class="active"
|
||||
active
|
||||
@stop
|
||||
|
||||
@section('staffs-bar')
|
||||
active
|
||||
@stop
|
||||
|
||||
@section('staffs')
|
||||
@section('agents')
|
||||
class="active"
|
||||
@stop
|
||||
|
||||
|
@@ -1,14 +1,14 @@
|
||||
@extends('themes.default1.admin.layout.admin')
|
||||
|
||||
@section('Staffs')
|
||||
class="active"
|
||||
active
|
||||
@stop
|
||||
|
||||
@section('staffs-bar')
|
||||
active
|
||||
@stop
|
||||
|
||||
@section('staffs')
|
||||
@section('agents')
|
||||
class="active"
|
||||
@stop
|
||||
|
||||
|
@@ -1,14 +1,14 @@
|
||||
@extends('themes.default1.admin.layout.admin')
|
||||
|
||||
@section('Staffs')
|
||||
class="active"
|
||||
active
|
||||
@stop
|
||||
|
||||
@section('staffs-bar')
|
||||
active
|
||||
@stop
|
||||
|
||||
@section('staffs')
|
||||
@section('agents')
|
||||
class="active"
|
||||
@stop
|
||||
|
||||
|
@@ -1,14 +1,14 @@
|
||||
@extends('themes.default1.admin.layout.admin')
|
||||
|
||||
@section('Staffs')
|
||||
class="active"
|
||||
active
|
||||
@stop
|
||||
|
||||
@section('staffs-bar')
|
||||
active
|
||||
@stop
|
||||
|
||||
@section('staffs')
|
||||
@section('agents')
|
||||
class="active"
|
||||
@stop
|
||||
|
||||
|
@@ -1,7 +1,7 @@
|
||||
@extends('themes.default1.admin.layout.admin')
|
||||
|
||||
@section('Staffs')
|
||||
class="active"
|
||||
active
|
||||
@stop
|
||||
|
||||
@section('staffs-bar')
|
||||
|
@@ -1,7 +1,7 @@
|
||||
@extends('themes.default1.admin.layout.admin')
|
||||
|
||||
@section('Staffs')
|
||||
class="active"
|
||||
active
|
||||
@stop
|
||||
|
||||
@section('staffs-bar')
|
||||
|
@@ -1,7 +1,7 @@
|
||||
@extends('themes.default1.admin.layout.admin')
|
||||
|
||||
@section('Staffs')
|
||||
class="active"
|
||||
active
|
||||
@stop
|
||||
|
||||
@section('staffs-bar')
|
||||
|
@@ -1,7 +1,7 @@
|
||||
@extends('themes.default1.admin.layout.admin')
|
||||
|
||||
@section('Staffs')
|
||||
class="active"
|
||||
active
|
||||
@stop
|
||||
|
||||
@section('staffs-bar')
|
||||
@@ -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.active')}}
|
||||
</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.inactive')}}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
@@ -1,7 +1,7 @@
|
||||
@extends('themes.default1.admin.layout.admin')
|
||||
|
||||
@section('Staffs')
|
||||
class="active"
|
||||
active
|
||||
@stop
|
||||
|
||||
@section('staffs-bar')
|
||||
@@ -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.active')}}
|
||||
</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.inactive')}}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
@@ -1,7 +1,7 @@
|
||||
@extends('themes.default1.admin.layout.admin')
|
||||
|
||||
@section('Staffs')
|
||||
class="active"
|
||||
active
|
||||
@stop
|
||||
|
||||
@section('staffs-bar')
|
||||
|
@@ -1,7 +1,7 @@
|
||||
@extends('themes.default1.admin.layout.admin')
|
||||
|
||||
@section('Staffs')
|
||||
class="active"
|
||||
active
|
||||
@stop
|
||||
|
||||
@section('staffs-bar')
|
||||
|
@@ -1,7 +1,7 @@
|
||||
@extends('themes.default1.admin.layout.admin')
|
||||
|
||||
@section('Staffs')
|
||||
class="active"
|
||||
active
|
||||
@stop
|
||||
|
||||
@section('staffs-bar')
|
||||
|
@@ -1,7 +1,7 @@
|
||||
@extends('themes.default1.admin.layout.admin')
|
||||
|
||||
@section('Staffs')
|
||||
class="active"
|
||||
active
|
||||
@stop
|
||||
|
||||
@section('staffs-bar')
|
||||
|
@@ -2,7 +2,7 @@
|
||||
|
||||
|
||||
@section('Emails')
|
||||
class="active"
|
||||
active
|
||||
@stop
|
||||
|
||||
@section('emails-bar')
|
||||
@@ -69,7 +69,7 @@ class="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.inactive')}}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
@@ -1,7 +1,7 @@
|
||||
@extends('themes.default1.admin.layout.admin')
|
||||
|
||||
@section('Emails')
|
||||
class="active"
|
||||
active
|
||||
@stop
|
||||
|
||||
@section('emails-bar')
|
||||
@@ -49,7 +49,7 @@ class="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.inactive')}}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
@@ -1,7 +1,7 @@
|
||||
@extends('themes.default1.admin.layout.admin')
|
||||
|
||||
@section('Emails')
|
||||
class="active"
|
||||
active
|
||||
@stop
|
||||
|
||||
@section('emails-bar')
|
||||
|
@@ -1,7 +1,7 @@
|
||||
@extends('themes.default1.admin.layout.admin')
|
||||
|
||||
@section('Emails')
|
||||
class="active"
|
||||
active
|
||||
@stop
|
||||
|
||||
@section('emails-bar')
|
||||
@@ -26,8 +26,7 @@ class="active"
|
||||
@stop
|
||||
<!-- /breadcrumbs -->
|
||||
<!-- content -->
|
||||
@section('content')
|
||||
<!-- open a form -->
|
||||
@section('content')<!-- open a form -->
|
||||
<form id="form">
|
||||
<input type="hidden" name="_token" value="{{ csrf_token() }}">
|
||||
<div class="box box-primary">
|
||||
@@ -117,25 +116,30 @@ class="active"
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-xs-3 form-group {!! $errors->has('fetching_protocol') ? 'has-error' : ''!!}" id="fetching_protocol_error">
|
||||
<div class="col-xs-2 form-group {!! $errors->has('fetching_protocol') ? 'has-error' : ''!!}" id="fetching_protocol_error">
|
||||
{!! Form::label('fetching_protocol',Lang::get('lang.fetching_protocol')) !!}
|
||||
{!! $errors->first('fetching_protocol', '<spam class="help-block">:message</spam>') !!}
|
||||
{!!Form::select('fetching_protocol',['imap' => 'IMAP'],null,['class' => 'form-control select', 'id' => 'fetching_protocol']) !!}
|
||||
</div>
|
||||
<div class="col-xs-3 form-group {!! $errors->has('fetching_host') ? 'has-error' : ''!!}" id="fetching_host_error">
|
||||
<div class="col-xs-2 form-group {!! $errors->has('fetching_host') ? 'has-error' : ''!!}" id="fetching_host_error">
|
||||
{!! Form::label('fetching_host',Lang::get('lang.host_name')) !!}
|
||||
{!! $errors->first('fetching_host', '<spam class="help-block">:message</spam>') !!}
|
||||
{!! Form::text('fetching_host',null,['class' => 'form-control', 'id' => 'fetching_host']) !!}
|
||||
</div>
|
||||
<div class="col-xs-3 form-group {!! $errors->has('fetching_port') ? 'has-error' : ''!!}" id="fetching_port_error">
|
||||
<div class="col-xs-2 form-group {!! $errors->has('fetching_port') ? 'has-error' : ''!!}" id="fetching_port_error">
|
||||
{!! Form::label('fetching_port',Lang::get('lang.port_number')) !!}
|
||||
{!! $errors->first('fetching_port', '<spam class="help-block">:message</spam>') !!}
|
||||
{!! Form::text('fetching_port',null,['class' => 'form-control', 'id' => 'fetching_port']) !!}
|
||||
</div>
|
||||
<div class="col-xs-3 form-group {!! $errors->has('fetching_encryption') ? 'has-error' : ''!!}" id="fetching_encryption_error">
|
||||
<div class="col-xs-2 form-group {!! $errors->has('fetching_encryption') ? 'has-error' : ''!!}" id="fetching_encryption_error">
|
||||
{!! Form::label('fetching_encryption',Lang::get('lang.encryption')) !!}
|
||||
{!! $errors->first('fetching_encryption', '<spam class="help-block">:message</spam>') !!}
|
||||
{!!Form::select('fetching_encryption',['none' => 'None', 'ssl' => 'SSL', 'tls' => 'TLS', 'ssl/novalidate-cert' => 'SSL (Accept all certificates)', 'tls/novalidate-cert' => 'TLS (Accept all certificates)'],null,['class' => 'form-control select', 'id' => 'fetching_encryption']) !!}
|
||||
{!!Form::select('fetching_encryption',['none' => 'None', 'ssl' => 'SSL', 'tls' => 'TLS'],null,['class' => 'form-control select', 'id' => 'fetching_encryption']) !!}
|
||||
</div>
|
||||
<div class="col-xs-4 form-group">
|
||||
<div class="callout callout-default" style="font-style: oblique; margin-top: -47px; margin-bottom: -30px; margin-left: -12px; margin-right: -6px;">If this checkbox is not checked SSL certificates will not be validated</div>
|
||||
<br/><br/>
|
||||
<input type="checkbox" name="validate" id="validate"> Validate certificates from TLS/SSL server
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -240,7 +244,7 @@ class="active"
|
||||
var sending_host = document.getElementById('sending_host').value;
|
||||
var sending_port = document.getElementById('sending_port').value;
|
||||
var sending_encryption = document.getElementById('sending_encryption').value;
|
||||
|
||||
var validate = $('input#validate[type="checkbox"]:checked', this).val();
|
||||
|
||||
var filter_number = /^([0-9])/;
|
||||
var error_list = [];
|
||||
|
@@ -1,7 +1,7 @@
|
||||
@extends('themes.default1.admin.layout.admin')
|
||||
|
||||
@section('Emails')
|
||||
class="active"
|
||||
active
|
||||
@stop
|
||||
|
||||
@section('emails-bar')
|
||||
@@ -29,7 +29,6 @@ class="active"
|
||||
<!-- /breadcrumbs -->
|
||||
<!-- content -->
|
||||
@section('content')
|
||||
|
||||
<!-- open a form -->
|
||||
{!!Form::model($emails,['url'=>'','id'=>'form'])!!}
|
||||
<input type="hidden" name="_token" value="{{ csrf_token() }}">
|
||||
@@ -49,11 +48,9 @@ class="active"
|
||||
<div class="row">
|
||||
<!-- email address -->
|
||||
<div class="col-xs-4 form-group {{ $errors->has('email_address') ? 'has-error' : '' }}" id="email_address_error">
|
||||
|
||||
{!! Form::label('email_address',Lang::get('lang.email_address')) !!}
|
||||
{!! $errors->first('email_address', '<spam class="help-block">:message</spam>') !!}
|
||||
{!! Form::text('email_address',null,['class' => 'form-control']) !!}
|
||||
|
||||
</div>
|
||||
<!-- Email name -->
|
||||
<div class="col-xs-4 form-group {!! $errors->has('email_name') ? 'has-error' : ''!!}" id="email_name_error">
|
||||
@@ -76,38 +73,33 @@ class="active"
|
||||
<div class="row">
|
||||
<!-- 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', [''=>'--System Default--','departments'=>$departments->lists('name','id')],null,['class' => 'form-control select']) !!}
|
||||
|
||||
</div>
|
||||
<!-- priority -->
|
||||
<div class="col-xs-4 form-group {{ $errors->has('priority') ? 'has-error' : '' }}">
|
||||
|
||||
{!! Form::label('priority',Lang::get('lang.priority')) !!}
|
||||
{!! $errors->first('priority', '<spam class="help-block">:message</spam>') !!}
|
||||
{!!Form::select('priority', [''=>'--System Default--','Priorities'=>$priority->lists('priority_desc','priority_id')],null,['class' => 'form-control select']) !!}
|
||||
|
||||
</div>
|
||||
<!-- help topic -->
|
||||
<div class="col-xs-4 form-group {{ $errors->has('help_topic') ? 'has-error' : '' }}">
|
||||
|
||||
{!! Form::label('help_topic',Lang::get('lang.help_topic')) !!}
|
||||
{!! $errors->first('help_topic', '<spam class="help-block">:message</spam>') !!}
|
||||
{!!Form::select('help_topic', [''=>'--System Default--','Help Topics'=>$helps->lists('topic','id')],null,['class' => 'form-control select']) !!}
|
||||
</div>
|
||||
|
||||
<!-- status -->
|
||||
<div class="col-xs-2 form-group">
|
||||
{!! Form::label('auto_response', Lang::get('lang.auto_response')) !!}
|
||||
</div>
|
||||
<div class="col-xs-3 form-group">
|
||||
<input type="checkbox" name="auto_response" id="auto_response" <?php if ($emails->auto_response == 1) {
|
||||
echo "checked='checked'";
|
||||
} ?>> {!!Lang::get('lang.disable_for_this_email_address')!!}
|
||||
<input type="checkbox" name="auto_response" id="auto_response" <?php
|
||||
if ($emails->auto_response == 1) {
|
||||
echo "checked='checked'";
|
||||
}
|
||||
?>> {!!Lang::get('lang.disable_for_this_email_address')!!}
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="box-header with-border">
|
||||
@@ -122,9 +114,11 @@ class="active"
|
||||
</div>
|
||||
<div class="col-xs-2 form-group">
|
||||
<!--{!! Form::radio('fetching_status','1',true) !!} {{Lang::get('lang.enable')}}-->
|
||||
<input type="checkbox" name="fetching_status" id="fetching_status" <?php if ($emails->fetching_status == 1) {
|
||||
echo "checked='checked'";
|
||||
} ?>> {{Lang::get('lang.enable')}}
|
||||
<input type="checkbox" name="fetching_status" id="fetching_status" <?php
|
||||
if ($emails->fetching_status == 1) {
|
||||
echo "checked='checked'";
|
||||
}
|
||||
?>> {{Lang::get('lang.enable')}}
|
||||
</div>
|
||||
<div class="col-xs-2 form-group">
|
||||
<!--<input type="radio" name="fetching_status" id="fetching_status" value="0"> {{Lang::get('lang.disabled')}}-->
|
||||
@@ -132,25 +126,30 @@ class="active"
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-xs-3 form-group {!! $errors->has('fetching_protocol') ? 'has-error' : ''!!}" id="fetching_protocol_error">
|
||||
<div class="col-xs-2 form-group {!! $errors->has('fetching_protocol') ? 'has-error' : ''!!}" id="fetching_protocol_error">
|
||||
{!! Form::label('fetching_protocol',Lang::get('lang.fetching_protocol')) !!}
|
||||
{!! $errors->first('fetching_protocol', '<spam class="help-block">:message</spam>') !!}
|
||||
{!!Form::select('fetching_protocol',['imap' => 'IMAP'],null,['class' => 'form-control select', 'id' => 'fetching_protocol']) !!}
|
||||
</div>
|
||||
<div class="col-xs-3 form-group {!! $errors->has('fetching_host') ? 'has-error' : ''!!}" id="fetching_host_error">
|
||||
<div class="col-xs-2 form-group {!! $errors->has('fetching_host') ? 'has-error' : ''!!}" id="fetching_host_error">
|
||||
{!! Form::label('fetching_host',Lang::get('lang.host_name')) !!}
|
||||
{!! $errors->first('fetching_host', '<spam class="help-block">:message</spam>') !!}
|
||||
{!! Form::text('fetching_host',null,['class' => 'form-control', 'id' => 'fetching_host']) !!}
|
||||
</div>
|
||||
<div class="col-xs-3 form-group {!! $errors->has('fetching_port') ? 'has-error' : ''!!}" id="fetching_port_error">
|
||||
<div class="col-xs-2 form-group {!! $errors->has('fetching_port') ? 'has-error' : ''!!}" id="fetching_port_error">
|
||||
{!! Form::label('fetching_port',Lang::get('lang.port_number')) !!}
|
||||
{!! $errors->first('fetching_port', '<spam class="help-block">:message</spam>') !!}
|
||||
{!! Form::text('fetching_port',null,['class' => 'form-control', 'id' => 'fetching_port']) !!}
|
||||
</div>
|
||||
<div class="col-xs-3 form-group {!! $errors->has('fetching_encryption') ? 'has-error' : ''!!}" id="fetching_encryption_error">
|
||||
<div class="col-xs-2 form-group {!! $errors->has('fetching_encryption') ? 'has-error' : ''!!}" id="fetching_encryption_error">
|
||||
{!! Form::label('fetching_encryption',Lang::get('lang.encryption')) !!}
|
||||
{!! $errors->first('fetching_encryption', '<spam class="help-block">:message</spam>') !!}
|
||||
{!!Form::select('fetching_encryption',['none' => 'None', 'ssl' => 'SSL', 'tls' => 'TLS', 'ssl/novalidate-cert' => 'SSL (Accept all certificates)', 'tls/novalidate-cert' => 'TLS (Accept all certificates)'],null,['class' => 'form-control select', 'id' => 'fetching_encryption']) !!}
|
||||
{!!Form::select('fetching_encryption',['none' => 'None', 'ssl' => 'SSL', 'tls' => 'TLS'],null,['class' => 'form-control select', 'id' => 'fetching_encryption']) !!}
|
||||
</div>
|
||||
<div class="col-xs-4 form-group">
|
||||
<div class="callout callout-default" style="font-style: oblique; margin-top: -47px; margin-bottom: -30px; margin-left: -12px; margin-right: -6px;">If this checkbox is not checked SSL certificates will not be validated</div>
|
||||
<br/><br/>
|
||||
<input type="checkbox" name="validate" value="/novalidate-cert"> Validate certificates from TLS/SSL server
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -165,9 +164,11 @@ class="active"
|
||||
{!! Form::label('sending_status',Lang::get('lang.status')) !!}
|
||||
</div>
|
||||
<div class="col-xs-2 form-group">
|
||||
<input type="checkbox" name="sending_status" id="sending_status" <?php if ($emails->sending_status == 1) {
|
||||
echo "checked='checked'";
|
||||
} ?>> {!! Lang::get('lang.enable') !!}
|
||||
<input type="checkbox" name="sending_status" id="sending_status" <?php
|
||||
if ($emails->sending_status == 1) {
|
||||
echo "checked='checked'";
|
||||
}
|
||||
?>> {!! Lang::get('lang.enable') !!}
|
||||
</div>
|
||||
<div class="col-xs-2 form-group">
|
||||
<!--<input type="radio" name="sending_status" id="sending_status" value=""> {!! Lang::get('lang.disabled') !!}-->
|
||||
@@ -208,12 +209,9 @@ class="active"
|
||||
</div>
|
||||
<div class="box-footer">
|
||||
{!! Form::button('<i id="spin" class="fa fa-spinner" style="display:none;"></i> <b>' . Lang::get("lang.update").'</b>' ,['class'=>'btn btn-primary', 'type' => 'submit'])!!}
|
||||
|
||||
</div>
|
||||
</div>
|
||||
{!!Form::close()!!}
|
||||
|
||||
|
||||
<div class="modal fade" id="loadingpopup" style="padding:200px;">
|
||||
<div class="modal-dialog">
|
||||
<div class="modal-content">
|
||||
@@ -234,12 +232,10 @@ class="active"
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<button style="display:none" data-toggle="modal" data-target="#loadingpopup" id="click"></button>
|
||||
|
||||
<script>
|
||||
//submit form
|
||||
$('#form').on('submit', function () {
|
||||
$('#form').on('submit', function() {
|
||||
var form_data = $(this).serialize();
|
||||
$("#spin").addClass("fa-spin");
|
||||
var email_address = document.getElementById('email_address').value;
|
||||
@@ -258,8 +254,7 @@ class="active"
|
||||
var sending_host = document.getElementById('sending_host').value;
|
||||
var sending_port = document.getElementById('sending_port').value;
|
||||
var sending_encryption = document.getElementById('sending_encryption').value;
|
||||
|
||||
|
||||
|
||||
var filter_number = /^([0-9])/;
|
||||
var error_list = [];
|
||||
var error = "";
|
||||
@@ -340,7 +335,6 @@ class="active"
|
||||
error_list.push(error);
|
||||
$("#fetching_protocol_error").addClass("has-error");
|
||||
}
|
||||
|
||||
} else {
|
||||
// checking for validation of fetching port
|
||||
if (fetching_port) {
|
||||
@@ -390,7 +384,7 @@ class="active"
|
||||
// executing error chatch
|
||||
if (error) {
|
||||
var ssss = "";
|
||||
$.each(error_list, function (key, value) {
|
||||
$.each(error_list, function(key, value) {
|
||||
ssss += "<li class='error-message-padding'>" + value + "</li>";
|
||||
});
|
||||
if (ssss) {
|
||||
@@ -402,7 +396,6 @@ class="active"
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
// Ajax communicating to backend for further Checking/Saving the details
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
@@ -412,12 +405,11 @@ class="active"
|
||||
headers: {
|
||||
'X-CSRF-Token': $('meta[name="_token"]').attr('content')
|
||||
},
|
||||
beforeSend: function () {
|
||||
beforeSend: function() {
|
||||
$('#alert').empty();
|
||||
$("#click").trigger("click");
|
||||
|
||||
},
|
||||
success: function (response) {
|
||||
success: function(response) {
|
||||
if (response == 1) {
|
||||
$("#close").trigger("click");
|
||||
var error_result = "<div class='alert alert-success alert-dismissable'> <button type='button' class='close' data-dismiss='alert' aria-hidden='true'>×</button><div id='alert-message'>Your details saved successfully</div></div>";
|
||||
@@ -429,18 +421,18 @@ class="active"
|
||||
$('#alert').html(error_result);
|
||||
$('#alert').show();
|
||||
}
|
||||
},
|
||||
error: function (response) {
|
||||
$("#close").trigger("click");
|
||||
var errorsHtml = "<div class='alert alert-danger alert-dismissable'> <i class='fa fa-ban'> </i> <b> Alert!</b><button type='button' class='close' data-dismiss='alert' aria-hidden='true'>×</button><div id='alert-message'>Unable to process the details </div></div>";
|
||||
$('#alert').empty();
|
||||
$('#alert').html(errorsHtml);
|
||||
$('#alert').show();
|
||||
return false;
|
||||
}
|
||||
// ,
|
||||
// error: function (response) {
|
||||
// $("#close").trigger("click");
|
||||
// var errorsHtml = "<div class='alert alert-danger alert-dismissable'> <i class='fa fa-ban'> </i> <b> Alert!</b><button type='button' class='close' data-dismiss='alert' aria-hidden='true'>×</button><div id='alert-message'>Unable to process the details </div></div>";
|
||||
// $('#alert').empty();
|
||||
// $('#alert').html(errorsHtml);
|
||||
// $('#alert').show();
|
||||
// return false;
|
||||
// }
|
||||
});
|
||||
return false;
|
||||
});
|
||||
|
||||
</script>
|
||||
@stop
|
||||
|
@@ -1,7 +1,7 @@
|
||||
@extends('themes.default1.admin.layout.admin')
|
||||
|
||||
@section('Emails')
|
||||
class="active"
|
||||
active
|
||||
@stop
|
||||
|
||||
@section('emails-bar')
|
||||
|
@@ -1,7 +1,7 @@
|
||||
@extends('themes.default1.admin.layout.admin')
|
||||
|
||||
@section('Emails')
|
||||
class="active"
|
||||
active
|
||||
@stop
|
||||
|
||||
@section('emails-bar')
|
||||
|
@@ -1,7 +1,7 @@
|
||||
@extends('themes.default1.admin.layout.admin')
|
||||
|
||||
@section('Emails')
|
||||
class="active"
|
||||
active
|
||||
@stop
|
||||
|
||||
@section('emails-bar')
|
||||
|
@@ -1,14 +1,14 @@
|
||||
@extends('themes.default1.admin.layout.admin')
|
||||
|
||||
@section('Emails')
|
||||
class="active"
|
||||
active
|
||||
@stop
|
||||
|
||||
@section('emails-bar')
|
||||
active
|
||||
@stop
|
||||
|
||||
@section('diagno')
|
||||
@section('diagnostics')
|
||||
class="active"
|
||||
@stop
|
||||
|
||||
|
@@ -1,7 +1,7 @@
|
||||
@extends('themes.default1.admin.layout.admin')
|
||||
|
||||
@section('Emails')
|
||||
class="active"
|
||||
active
|
||||
@stop
|
||||
|
||||
@section('emails-bar')
|
||||
|
@@ -1,7 +1,7 @@
|
||||
@extends('themes.default1.admin.layout.admin')
|
||||
|
||||
@section('Emails')
|
||||
class="active"
|
||||
active
|
||||
@stop
|
||||
|
||||
@section('emails-bar')
|
||||
|
@@ -1,7 +1,7 @@
|
||||
@extends('themes.default1.admin.layout.admin')
|
||||
|
||||
@section('Emails')
|
||||
class="active"
|
||||
active
|
||||
@stop
|
||||
|
||||
@section('emails-bar')
|
||||
|
@@ -1,7 +1,7 @@
|
||||
@extends('themes.default1.admin.layout.admin')
|
||||
|
||||
@section('Emails')
|
||||
class="active"
|
||||
active
|
||||
@stop
|
||||
|
||||
@section('emails-bar')
|
||||
|
@@ -1,7 +1,7 @@
|
||||
@extends('themes.default1.admin.layout.admin')
|
||||
|
||||
@section('Settings')
|
||||
class="active"
|
||||
active
|
||||
@stop
|
||||
|
||||
@section('settings-bar')
|
||||
|
@@ -1,7 +1,7 @@
|
||||
@extends('themes.default1.admin.layout.admin')
|
||||
|
||||
@section('Settings')
|
||||
class="active"
|
||||
active
|
||||
@stop
|
||||
|
||||
@section('settings-bar')
|
||||
|
@@ -1,14 +1,14 @@
|
||||
@extends('themes.default1.admin.layout.admin')
|
||||
|
||||
@section('Manage')
|
||||
class="active"
|
||||
active
|
||||
@stop
|
||||
|
||||
@section('manage-bar')
|
||||
active
|
||||
@stop
|
||||
|
||||
@section('form')
|
||||
@section('forms')
|
||||
class="active"
|
||||
@stop
|
||||
|
||||
|
@@ -1,7 +1,7 @@
|
||||
@extends('themes.default1.admin.layout.admin')
|
||||
|
||||
@section('Manage')
|
||||
class="active"
|
||||
active
|
||||
@stop
|
||||
|
||||
@section('manage-bar')
|
||||
|
@@ -1,7 +1,7 @@
|
||||
@extends('themes.default1.admin.layout.admin')
|
||||
|
||||
@section('Manage')
|
||||
class="active"
|
||||
active
|
||||
@stop
|
||||
|
||||
@section('manage-bar')
|
||||
|
@@ -1,7 +1,7 @@
|
||||
@extends('themes.default1.admin.layout.admin')
|
||||
|
||||
@section('Manage')
|
||||
class="active"
|
||||
active
|
||||
@stop
|
||||
|
||||
@section('manage-bar')
|
||||
|
@@ -1,7 +1,7 @@
|
||||
@extends('themes.default1.admin.layout.admin')
|
||||
|
||||
@section('Manage')
|
||||
class="active"
|
||||
active
|
||||
@stop
|
||||
|
||||
@section('manage-bar')
|
||||
|
@@ -1,7 +1,7 @@
|
||||
@extends('themes.default1.admin.layout.admin')
|
||||
|
||||
@section('Manage')
|
||||
class="active"
|
||||
active
|
||||
@stop
|
||||
|
||||
@section('manage-bar')
|
||||
@@ -52,9 +52,9 @@ class="active"
|
||||
<div class="form-group {{ $errors->has('ticket_status') ? 'has-error' : '' }}">
|
||||
|
||||
{!! 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')}}
|
||||
{!! $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.inactive')}}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -92,7 +92,7 @@ class="active"
|
||||
<div class="col-md-6">
|
||||
<div class="form-group {{ $errors->has('custom_form') ? 'has-error' : '' }}">
|
||||
|
||||
{!! Form::label('custom_form',Lang::get('lang.custom')) !!}
|
||||
{!! Form::label('custom_form',Lang::get('lang.Custom_form')) !!}
|
||||
{!! $errors->first('custom_form', '<spam class="help-block">:message</spam>') !!}
|
||||
{!!Form::select('custom_form', [''=>'Select a Form','Custom Forms'=>$forms->lists('formname','id')],1,['class' => 'form-control']) !!}
|
||||
</div>
|
||||
@@ -139,7 +139,7 @@ class="active"
|
||||
|
||||
{!! Form::label('auto_assign',Lang::get('lang.auto_assign')) !!}
|
||||
{!! $errors->first('auto_assign', '<spam class="help-block">:message</spam>') !!}
|
||||
{!!Form::select('auto_assign', [''=>'Select an Agent','Agents'=>$agents->lists('user_name','id')],null,['class' => 'form-control']) !!}
|
||||
{!!Form::select('auto_assign', [''=>'Select an Agent','Agents'=>$agents->lists('first_name','id')],null,['class' => 'form-control']) !!}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
@@ -1,7 +1,7 @@
|
||||
@extends('themes.default1.admin.layout.admin')
|
||||
|
||||
@section('Manage')
|
||||
class="active"
|
||||
active
|
||||
@stop
|
||||
|
||||
@section('manage-bar')
|
||||
@@ -46,9 +46,9 @@ class="active"
|
||||
<div class="form-group {{ $errors->has('ticket_status') ? 'has-error' : '' }}">
|
||||
|
||||
{!! 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')}}
|
||||
{!! $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.inactive')}}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -68,7 +68,7 @@ class="active"
|
||||
|
||||
{!! Form::label('topic',Lang::get('lang.topic')) !!}
|
||||
{!! $errors->first('topic', '<spam class="help-block">:message</spam>') !!}
|
||||
{!! Form::text('topic',null,['disabled'=>'disabled','class' => 'form-control']) !!}
|
||||
{!! Form::text('topic',null,['class' => 'form-control']) !!}
|
||||
</div>
|
||||
</div>
|
||||
<!-- Parent Topic: Drop down: value from helptopic table -->
|
||||
@@ -85,7 +85,7 @@ class="active"
|
||||
<div class="col-md-6">
|
||||
<div class="form-group {{ $errors->has('custom_form') ? 'has-error' : '' }}">
|
||||
|
||||
{!! Form::label('custom_form',Lang::get('lang.custom')) !!}
|
||||
{!! Form::label('custom_form',Lang::get('lang.Custom_form')) !!}
|
||||
{!! $errors->first('custom_form', '<spam class="help-block">:message</spam>') !!}
|
||||
{!!Form::select('custom_form', [''=>'Select a Form','Custom Forms'=>$forms->lists('formname','id')],null,['class' => 'form-control']) !!}
|
||||
</div>
|
||||
@@ -106,8 +106,8 @@ class="active"
|
||||
<div class="form-group {{ $errors->has('priority') ? 'has-error' : '' }}">
|
||||
|
||||
{!! Form::label('priority',Lang::get('lang.priority')) !!}
|
||||
{!! $errors->first('priority', '<spam class="help-block">:message</spam>') !!}
|
||||
{!!Form::select('priority', [''=>'Select a Proirity','Priorities'=>$priority->lists('priority_desc','priority_id')],null,['class' => 'form-control']) !!}
|
||||
{!! $errors->first('priority', '<spam class="help-block">:message</spam>') !!}
|
||||
</div>
|
||||
</div>
|
||||
<!-- SLA Plan: Drop down: value SLA Plan table-->
|
||||
@@ -115,8 +115,9 @@ class="active"
|
||||
<div class="form-group {{ $errors->has('sla_plan') ? 'has-error' : '' }}">
|
||||
|
||||
{!! Form::label('sla_plan',Lang::get('lang.SLA_plan')) !!}
|
||||
{!! $errors->first('sla_plan', '<spam class="help-block">:message</spam>') !!}
|
||||
|
||||
{!!Form::select('sla_plan', [''=>'Select a SLA Plan','SLA Plans'=>$slas->lists('name','id')],null,['class' => 'form-control']) !!}
|
||||
{!! $errors->first('sla_plan', '<spam class="help-block">:message</spam>') !!}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -127,7 +128,7 @@ class="active"
|
||||
|
||||
{!! Form::label('auto_assign',Lang::get('lang.auto_assign')) !!}
|
||||
{!! $errors->first('auto_assign', '<spam class="help-block">:message</spam>') !!}
|
||||
{!!Form::select('auto_assign', [''=>'Select an Agent','Agents'=>$agents->lists('user_name','id')],null,['class' => 'form-control']) !!}
|
||||
{!!Form::select('auto_assign', [''=>'Select an Agent','Agents'=>$agents->lists('first_name','id')],null,['class' => 'form-control']) !!}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
@@ -1,7 +1,7 @@
|
||||
@extends('themes.default1.admin.layout.admin')
|
||||
|
||||
@section('Manage')
|
||||
class="active"
|
||||
active
|
||||
@stop
|
||||
|
||||
@section('manage-bar')
|
||||
@@ -93,7 +93,7 @@ class="active"
|
||||
|
||||
<!-- topic Status : if status==1 active -->
|
||||
<td>
|
||||
@if($topic->ticket_status=='1')
|
||||
@if($topic->status=='1')
|
||||
<span style="color:green">Active</span>
|
||||
@else
|
||||
<span style="color:red">Disable</span>
|
||||
|
@@ -1,7 +1,7 @@
|
||||
@extends('themes.default1.admin.layout.admin')
|
||||
|
||||
@section('Manage')
|
||||
class="active"
|
||||
active
|
||||
@stop
|
||||
|
||||
@section('manage-bar')
|
||||
@@ -73,7 +73,7 @@ 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','0') !!} {{Lang::get('lang.inactive')}}
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
@@ -1,7 +1,7 @@
|
||||
@extends('themes.default1.admin.layout.admin')
|
||||
|
||||
@section('Manage')
|
||||
class="active"
|
||||
active
|
||||
@stop
|
||||
|
||||
@section('manage-bar')
|
||||
@@ -71,9 +71,9 @@ class="active"
|
||||
<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>') !!}
|
||||
{!! Form::radio('status','1',true) !!} {{Lang::get('lang.active')}}
|
||||
{!! Form::radio('status','0') !!} {{Lang::get('lang.disabled')}}
|
||||
{!! $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.inactive')}}
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
@@ -1,7 +1,7 @@
|
||||
@extends('themes.default1.admin.layout.admin')
|
||||
|
||||
@section('Manage')
|
||||
class="active"
|
||||
active
|
||||
@stop
|
||||
|
||||
@section('manage-bar')
|
||||
|
@@ -0,0 +1,381 @@
|
||||
@extends('themes.default1.admin.layout.admin')
|
||||
|
||||
@section('Manage')
|
||||
active
|
||||
@stop
|
||||
|
||||
@section('manage-bar')
|
||||
active
|
||||
@stop
|
||||
|
||||
@section('workflow')
|
||||
class="active"
|
||||
@stop
|
||||
|
||||
@section('HeadInclude')
|
||||
@stop
|
||||
|
||||
<!-- header -->
|
||||
@section('PageHeader')
|
||||
<h1>{!! Lang::get('lang.create_workflow') !!}</h1>
|
||||
@stop
|
||||
<!-- /header -->
|
||||
<!-- breadcrumbs -->
|
||||
@section('breadcrumbs')
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="{!! URL::route('setting') !!}"><i class="fa fa-dashboard"></i> {!! Lang::get('lang.home') !!}</a></li>
|
||||
<li><a href="{!! URL::route('workflow') !!}">{!! Lang::get('lang.ticket_workflow') !!}</a></li>
|
||||
<li class="active"><a href="{!! URL::route('workflow.create') !!}">{!! Lang::get('lang.create_workflow') !!}</a></li>
|
||||
</ol>
|
||||
@stop
|
||||
<!-- /breadcrumbs -->
|
||||
<!-- content -->
|
||||
@section('content')
|
||||
<form class="form-horizontal" action="{!! URL::route('workflow.store') !!}" method="POST" id="form">
|
||||
<div class="box">
|
||||
<!-- /.box-header -->
|
||||
<div class="box-body">
|
||||
<!-- 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') !!}
|
||||
</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
|
||||
@if(Session::has('errors'))
|
||||
<div class="alert alert-danger alert-dismissable">
|
||||
<i class="fa fa-ban"></i>
|
||||
<b>Alert!</b>
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
<br/>
|
||||
@if($errors->first('name'))
|
||||
<li class="error-message-padding">{!! $errors->first('name', ':message') !!}</li>
|
||||
@endif
|
||||
@if($errors->first('execution_order'))
|
||||
<li class="error-message-padding">{!! $errors->first('execution_order', ':message') !!}</li>
|
||||
@endif
|
||||
@if($errors->first('target_channel'))
|
||||
<li class="error-message-padding">{!! $errors->first('target_channel', ':message') !!}</li>
|
||||
@endif
|
||||
@if($errors->first('rule'))
|
||||
<li class="error-message-padding">{!! $errors->first('rule', ':message') !!}</li>
|
||||
@endif
|
||||
@if($errors->first('action'))
|
||||
<li class="error-message-padding">{!! $errors->first('action', ':message') !!}</li>
|
||||
@endif
|
||||
</div>
|
||||
@endif
|
||||
<div class="form-group {!! $errors->has('name') ? 'has-error' : '' !!}">
|
||||
<label for="inputName" class="col-sm-2 control-label">{!! Lang::get('lang.name') !!}</label>
|
||||
<div class="col-sm-6">
|
||||
{!! Form::text('name',null,['class' => 'form-control', 'placeholder' => 'Name', 'id' => 'name']) !!}
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group {!! $errors->has('status') ? 'has-error' : '' !!}">
|
||||
<label class="col-sm-2 control-label"> {!! Lang::get('lang.status') !!}</label>
|
||||
<div class="col-sm-6">
|
||||
<input type="radio" id="inputEmail2" name="status" value="1" > <label class="control-label" for="inputEmail2">Active</label>
|
||||
<input type="radio" id="inputEmail1" name="status" value="0" checked> <label class="control-label" for="inputEmail1">Inactive</label>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group {!! $errors->has('execution_order') ? 'has-error' : '' !!}">
|
||||
<div>
|
||||
<label for="Exceution" class="col-sm-2 control-label">{!! Lang::get('lang.exceution_order') !!}</label>
|
||||
<div class="col-sm-6">
|
||||
{!! Form::input('number', 'execution_order',null,['class' => 'form-control', 'placeholder' => 'Exceution Order', 'id' => 'execution_order', 'min' => '0']) !!}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group {!! $errors->has('target_channel') ? 'has-error' : '' !!}">
|
||||
<label class="col-sm-2 control-label">{!! Lang::get('lang.target_channel') !!}</label>
|
||||
<div class="col-sm-6">
|
||||
{!! Form::select('target_channel', [''=> '-- Select a Channel --', 'A-0' => 'Any', 'A-1' => 'Web Forms', 'A-4' => 'API Calls', 'A-2' => 'Emails'], null,['class' => 'form-control', 'id' => 'execution_order']) !!}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-xs-12">
|
||||
<div class="nav-tabs-custom">
|
||||
<ul class="nav nav-tabs">
|
||||
<li class="active"><a href="#open" data-toggle="tab">{!! Lang::get('lang.workflow_rules') !!}</a>
|
||||
</li>
|
||||
<li><a href="#close" data-toggle="tab">{!! Lang::get('lang.workflow_action') !!}</a>
|
||||
</li>
|
||||
<li><a href="#delect" data-toggle="tab">{!! Lang::get('lang.internal_notes') !!}</a>
|
||||
</li>
|
||||
</ul>
|
||||
<div class="tab-content">
|
||||
<div class="active tab-pane" id="open">
|
||||
<div>
|
||||
<div>
|
||||
<!-- /.box-header -->
|
||||
<div class="box-body">
|
||||
<table class="table table-bordered table-hover">
|
||||
<thead>
|
||||
<tr>
|
||||
<td>{!! Lang::get('lang.rules') !!}</td>
|
||||
<td>{!! Lang::get('lang.condition') !!}</td>
|
||||
<td>{!! Lang::get('lang.statement') !!}</td>
|
||||
<td>{!! Lang::get('lang.action') !!}</td>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody class="button1">
|
||||
<tr id="firstdata">
|
||||
<td>
|
||||
<select class="form-control" name="rule[0][a]" required>
|
||||
<option value="">-- Select One --</option>
|
||||
<option value="email">Email</option>
|
||||
<option value="email_name">Email name</option>
|
||||
<option value="subject">Subject</option>
|
||||
<option value="message">Message/Body</option>
|
||||
</select>
|
||||
</td>
|
||||
<td class="col-md-3">
|
||||
<select class="form-control" name="rule[0][b]" required>
|
||||
<option value="">-- Select One --</option>
|
||||
<option value="equal">Equal to</option>
|
||||
<option value="not_equal">Not equal to</option>
|
||||
<option value="contains">Contains</option>
|
||||
<option value="dn_contain">Does Not Contain</option>
|
||||
<option value="starts">Starts With</option>
|
||||
<option value="ends">Ends With</option>
|
||||
<!-- <option value="match">Match Regular Expressions</option>
|
||||
<option value="not_match">Does not match Regular Expression</option>-->
|
||||
</select>
|
||||
</td>
|
||||
<td class="col-md-3">
|
||||
<input class="form-control" type="text" name="rule[0][c]" required>
|
||||
</td>
|
||||
<td style="text-align: center">
|
||||
<div class="tools">
|
||||
<span class="btnRemove1" data-toggle="modal" data-target="#">
|
||||
<a data-toggle="tooltip" data-placement="top" title="{!! Lang::get('lang.delete') !!}" onclick="document.getElementById('firstdata').innerHTML = ''">
|
||||
<i class="fa fa-trash-o"></i>
|
||||
</a>
|
||||
</span>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<div class="row" style="padding: 10px 15px 0px">
|
||||
<div class="pull-right" >
|
||||
<a class="btn btn-primary btnAdd1">{!! Lang::get('lang.add') !!}</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- /.box-body -->
|
||||
</div>
|
||||
<!-- /.box -->
|
||||
</div>
|
||||
<!-- /.col -->
|
||||
</div>
|
||||
<!-- /.tab-pane -->
|
||||
<div class="tab-pane" id="close">
|
||||
<div>
|
||||
<div class="box-body">
|
||||
<table class="table table-bordered table-hover">
|
||||
<thead>
|
||||
<tr>
|
||||
<td>{!! Lang::get('lang.condition') !!}</td>
|
||||
<td>{!! Lang::get('lang.rules') !!}</td>
|
||||
<td>{!! Lang::get('lang.action') !!}</td>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody class="buttons">
|
||||
<tr id="firstdata1">
|
||||
<td>
|
||||
<select class="form-control" onChange="selectdata(0)" id="selected0" name="action[0][a]" required>
|
||||
<option value="">Select an Action</option>
|
||||
<optgroup label="Ticket">
|
||||
<option value="reject">Reject Ticket</option>
|
||||
<option value="department">Set Department</option>
|
||||
<option value="priority">Set Priority</option>
|
||||
<option value="sla">Set SLA Plan</option>
|
||||
<option value="team">Assign Team</option>
|
||||
<option value="agent">Assign Agent</option>
|
||||
<option value="helptopic">Set Help Topic</option>
|
||||
<option value="status">Set Ticket Status</option>
|
||||
</optgroup>
|
||||
</select>
|
||||
</td>
|
||||
<td id="fill0">
|
||||
</td>
|
||||
<td style="text-align: center">
|
||||
<div class="tools">
|
||||
<span class="btnRemove" data-toggle="modal" data-target="#">
|
||||
<a data-toggle="tooltip" data-placement="top" title="{!! Lang::get('lang.delete') !!}" onclick="document.getElementById('firstdata1').innerHTML = ''">
|
||||
<i class="fa fa-trash-o"></i>
|
||||
</a>
|
||||
</span>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<div class="row" style="padding: 10px 15px 0px">
|
||||
<div class="pull-right">
|
||||
<a class="btn btn-primary btnAdd">{!! Lang::get('lang.add') !!}</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- /.box -->
|
||||
</div>
|
||||
<!-- /.col -->
|
||||
</div>
|
||||
<!-- /.tab-pane -->
|
||||
<div class="tab-pane" id="delect">
|
||||
<div>
|
||||
<textarea name="internal_note" class="textarea" placeholder="" style="width: 100%; height: 200px; font-size: 14px; line-height: 18px; border: 1px solid #dddddd; padding: 10px;"></textarea>
|
||||
</div>
|
||||
<!-- /.col -->
|
||||
</div>
|
||||
<!-- /.tab-pane -->
|
||||
</div>
|
||||
<!-- /.tab-content -->
|
||||
<div class="box-footer">
|
||||
<input type="submit" class="btn btn-primary" value="{!! Lang::get('lang.submit') !!}">
|
||||
</div>
|
||||
</div>
|
||||
<!-- /.nav-tabs-custom -->
|
||||
</div>
|
||||
<!-- /.col -->
|
||||
</div>
|
||||
<!-- /.row -->
|
||||
</form>
|
||||
|
||||
<script>
|
||||
$(function() {
|
||||
$("#example1").DataTable();
|
||||
$('#example2').DataTable({
|
||||
"paging": true,
|
||||
"lengthChange": false,
|
||||
"searching": false,
|
||||
"ordering": true,
|
||||
"info": true,
|
||||
"autoWidth": false
|
||||
});
|
||||
});
|
||||
|
||||
function getSelectVal(val) {
|
||||
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: "",
|
||||
data: 'select_box=' + val,
|
||||
success: function(data) {
|
||||
$("#select-list").html(data);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
$(document).ready(function() {
|
||||
var x = 0;
|
||||
var n = 0;
|
||||
$('.btnAdd').click(function() {
|
||||
n++;
|
||||
$('.buttons').append('<tr id="firstdata1">' +
|
||||
'<td>' +
|
||||
'<select class="form-control" onChange="selectdata(' + n + ')" name="action[' + n + '][a]" id="selected' + n + '" required>' +
|
||||
'<option value="">Select an Action</option>' +
|
||||
'<optgroup label="Ticket">' +
|
||||
'<option value="reject">Reject Ticket</option>' +
|
||||
'<option value="department">Set Department</option>' +
|
||||
'<option value="priority">Set Priority</option>' +
|
||||
'<option value="sla">Set SLA Plan</option>' +
|
||||
'<option value="team">Assign Team</option>' +
|
||||
'<option value="agent">Assign Agent</option>' +
|
||||
'<option value="helptopic">Set Help Topic</option>' +
|
||||
'<option value="status">Set Ticket Status</option>' +
|
||||
'</select>' +
|
||||
'</td>' +
|
||||
'<td id="fill' + n + '">' +
|
||||
'</td>' +
|
||||
'<td style="text-align: center">' +
|
||||
'<div class="tools">' +
|
||||
'<span class="btnRemove" data-toggle="modal" data-target="#">' +
|
||||
'<a data-toggle="tooltip" data-placement="top" title="Delete">' +
|
||||
'<i class="fa fa-trash-o"></i>' +
|
||||
'</a>' +
|
||||
'</span>' +
|
||||
'</div>' +
|
||||
'</td>' +
|
||||
'</tr>'); // end append
|
||||
$('div .btnRemove').last().click(function(e) {
|
||||
e.preventDefault();
|
||||
$(this).closest('tr').remove();
|
||||
x--;
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
$(document).ready(function() {
|
||||
var x = 0;
|
||||
var n = 0;
|
||||
$('.btnAdd1').click(function() {
|
||||
n++;
|
||||
$('.button1').append('<tr>' +
|
||||
'<td>' +
|
||||
'<select class="form-control" name="rule[' + n + '][a]" required>' +
|
||||
'<option>-- Select One --</option>' +
|
||||
'<option value="email">Email</option>' +
|
||||
'<option value="email_name">Email name</option>' +
|
||||
'<option value="subject">Subject</option>' +
|
||||
'<option value="message">Message/Body</option>' +
|
||||
'</select>' +
|
||||
'</td>' +
|
||||
'<td class="col-md-3">' +
|
||||
'<select class="form-control" name="rule[' + n + '][b]" required>' +
|
||||
'<option value="">-- Select One --</option>' +
|
||||
'<option value="equal">Equal to</option>' +
|
||||
'<option value="not_equal">Not equal to</option>' +
|
||||
'<option value="contains">Contains</option>' +
|
||||
'<option value="dn_contain">Does Not Contain</option>' +
|
||||
'<option value="starts">Starts With</option>' +
|
||||
'<option value="ends">Ends With</option>' +
|
||||
'</select>' +
|
||||
'</td>' +
|
||||
'<td class="col-md-3"> <input class="form-control" type="text" name="rule[' + n + '][c]" required> </td>' +
|
||||
'<td style="text-align: center">' +
|
||||
'<div class="tools"> <span class="btnRemove1" data-toggle="modal" data-target="#"><a data-toggle="tooltip" data-placement="top" title="Delete"><i class="fa fa-trash-o"></i></a></span> </div>' +
|
||||
'</td>' +
|
||||
'</tr>'); // end append
|
||||
$('div .btnRemove1').last().click(function(e) {
|
||||
e.preventDefault();
|
||||
$(this).closest('tr').remove();
|
||||
x--;
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
function selectdata(id) {
|
||||
var selected_data = document.getElementById('selected'+id).value;
|
||||
$.ajax({
|
||||
url: "{!! url('workflow/action-rule') !!}" + "/" + id,
|
||||
type: "get",
|
||||
data: {option: selected_data},
|
||||
headers: {
|
||||
'X-CSRF-Token': $('meta[name="_token"]').attr('content')
|
||||
},
|
||||
success: function(data) {
|
||||
//adds the echoed response to our container
|
||||
$("#fill" + id).html(data);
|
||||
}
|
||||
});
|
||||
}
|
||||
</script>
|
||||
|
||||
@stop
|
@@ -0,0 +1,520 @@
|
||||
@extends('themes.default1.admin.layout.admin')
|
||||
|
||||
@section('Manage')
|
||||
active
|
||||
@stop
|
||||
|
||||
@section('manage-bar')
|
||||
active
|
||||
@stop
|
||||
|
||||
@section('workflow')
|
||||
class="active"
|
||||
@stop
|
||||
|
||||
@section('HeadInclude')
|
||||
@stop
|
||||
|
||||
<!-- header -->
|
||||
@section('PageHeader')
|
||||
<h1>{!! Lang::get('lang.edit_workflow') !!}</h1>
|
||||
@stop
|
||||
<!-- /header -->
|
||||
<!-- breadcrumbs -->
|
||||
@section('breadcrumbs')
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="{!! URL::route('setting') !!}"><i class="fa fa-dashboard"></i> {!! Lang::get('lang.home') !!}</a></li>
|
||||
<li><a href="{!! URL::route('workflow') !!}">{!! Lang::get('lang.ticket_workflow') !!}</a></li>
|
||||
<li class="active"><a href="{!! URL::route('workflow.edit') !!}">{!! Lang::get('lang.edit_workflow') !!}</a></li>
|
||||
</ol>
|
||||
@stop
|
||||
<!-- /breadcrumbs -->
|
||||
<!-- content -->
|
||||
@section('content')
|
||||
<form class="form-horizontal" action="{!! URL::route('workflow.update', $id) !!}" method="POST">
|
||||
<div class="box">
|
||||
<!-- /.box-header -->
|
||||
<div class="box-body">
|
||||
<!-- 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')}}
|
||||
</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
|
||||
@if(Session::has('errors'))
|
||||
<div class="alert alert-danger alert-dismissable">
|
||||
<i class="fa fa-ban"></i>
|
||||
<b>Alert!</b>
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
<br/>
|
||||
@if($errors->first('name'))
|
||||
<li class="error-message-padding">{!! $errors->first('name', ':message') !!}</li>
|
||||
@endif
|
||||
@if($errors->first('execution_order'))
|
||||
<li class="error-message-padding">{!! $errors->first('execution_order', ':message') !!}</li>
|
||||
@endif
|
||||
@if($errors->first('target_channel'))
|
||||
<li class="error-message-padding">{!! $errors->first('target_channel', ':message') !!}</li>
|
||||
@endif
|
||||
@if($errors->first('rule'))
|
||||
<li class="error-message-padding">{!! $errors->first('rule', ':message') !!}</li>
|
||||
@endif
|
||||
@if($errors->first('action'))
|
||||
<li class="error-message-padding">{!! $errors->first('action', ':message') !!}</li>
|
||||
@endif
|
||||
</div>
|
||||
@endif
|
||||
<div class="form-group {!! $errors->has('name') ? 'has-error' : '' !!}">
|
||||
<label for="inputName" class="col-sm-2 control-label">Name</label>
|
||||
<div class="col-sm-6">
|
||||
<input type="text" class="form-control" placeholder="Name" id="name" name="name" value="{!! $workflow->name !!}" required>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group {!! $errors->has('status') ? 'has-error' : '' !!}">
|
||||
<label class="col-sm-2 control-label"> Status</label>
|
||||
<div class="col-sm-6">
|
||||
<input type="radio" id="inputEmail2" name="status" value="1" <?php if($workflow->status == 1) { echo "checked"; } ?> > <label class="control-label" for="inputEmail2">Active</label>
|
||||
<input type="radio" id="inputEmail1" name="status" value="0" <?php if($workflow->status == 0) { echo "checked"; } ?> > <label class="control-label" for="inputEmail1">Inactive</label>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group {!! $errors->has('execution_order') ? 'has-error' : '' !!}">
|
||||
<div>
|
||||
<label for="Exceution" class="col-sm-2 control-label">Exceution Order</label>
|
||||
<div class="col-sm-6">
|
||||
<input type="number" class="form-control" id="execution_order" name="execution_order" placeholder="Exceution Order" value="{!! $workflow->order !!}" required>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group {!! $errors->has('target_channel') ? 'has-error' : '' !!}">
|
||||
<label class="col-sm-2 control-label">Target Channel</label>
|
||||
|
||||
<div class="col-sm-6">
|
||||
|
||||
<select class="form-control" name="target_channel" required>
|
||||
<option value=""> -- Select a Channel -- </option>
|
||||
<option value="A-0" <?php
|
||||
if ($workflow->target == "A-0") {
|
||||
echo "selected='selected'";
|
||||
}
|
||||
?> >Any</option>
|
||||
<option value="A-1" <?php
|
||||
if ($workflow->target == "A-1") {
|
||||
echo "selected='selected'";
|
||||
}
|
||||
?> >Web Forms</option>
|
||||
<option value="A-4" <?php
|
||||
if ($workflow->target == "A-4") {
|
||||
echo "selected='selected'";
|
||||
}
|
||||
?> >API Calls</option>
|
||||
<option value="A-2" <?php
|
||||
if ($workflow->target == "A-2") {
|
||||
echo "selected='selected'";
|
||||
}
|
||||
?> >Emails</option>
|
||||
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="row">
|
||||
<div class="col-xs-12">
|
||||
<div class="nav-tabs-custom">
|
||||
<ul class="nav nav-tabs">
|
||||
<li class="active"><a href="#open" data-toggle="tab">Workflow Rules</a>
|
||||
</li>
|
||||
<li><a href="#close" data-toggle="tab">Workflow Action</a>
|
||||
</li>
|
||||
<li><a href="#delect" data-toggle="tab">Internal Notes</a>
|
||||
</li>
|
||||
</ul>
|
||||
<div class="tab-content">
|
||||
<div class="active tab-pane" id="open">
|
||||
<div>
|
||||
<div>
|
||||
<!-- /.box-header -->
|
||||
<div class="box-body">
|
||||
<table class="table table-bordered table-hover">
|
||||
<thead>
|
||||
<tr>
|
||||
<td>Rules</td>
|
||||
<td>Condition</td>
|
||||
<td>Statement</td>
|
||||
<td>Action</td>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody class="button1">
|
||||
<?php $j = 0; ?>
|
||||
@foreach($workflow_rules as $workflow_rule)
|
||||
<?php $j++; ?>
|
||||
<tr id="firstdata{!! $j !!}">
|
||||
<td>
|
||||
<select class="form-control" name="rule[{!! $j-1 !!}][a]" required>
|
||||
<option value="">-- Select One --</option>
|
||||
<option value="email" <?php if($workflow_rule->matching_scenario == 'email'){ echo "selected='selected'"; } ?> >Email</option>
|
||||
<option value="email_name" <?php if($workflow_rule->matching_scenario == 'email_name'){ echo "selected='selected'"; } ?> >Email name</option>
|
||||
<option value="subject" <?php if($workflow_rule->matching_scenario == 'subject'){ echo "selected='selected'"; } ?>>Subject</option>
|
||||
<option value="message" <?php if($workflow_rule->matching_scenario == 'message'){ echo "selected='selected'"; } ?> >Message/Body</option>
|
||||
</select>
|
||||
</td>
|
||||
<td class="col-md-3">
|
||||
<select class="form-control" name="rule[{!! $j-1 !!}][b]" required>
|
||||
<option value="">-- Select One --</option>
|
||||
<option value="equal" <?php if($workflow_rule->matching_relation == 'equal'){ echo "selected='selected'"; } ?> >Equal to</option>
|
||||
<option value="not_equal" <?php if($workflow_rule->matching_relation == 'not_equal'){ echo "selected='selected'"; } ?> >Not equal to</option>
|
||||
<option value="contains" <?php if($workflow_rule->matching_relation == 'contains'){ echo "selected='selected'"; } ?> >Contains</option>
|
||||
<option value="dn_contain" <?php if($workflow_rule->matching_relation == 'dn_contain'){ echo "selected='selected'"; } ?> >Does Not Contain</option>
|
||||
<option value="starts" <?php if($workflow_rule->matching_relation == 'starts'){ echo "selected='selected'"; } ?> >Starts With</option>
|
||||
<option value="ends" <?php if($workflow_rule->matching_relation == 'ends'){ echo "selected='selected'"; } ?> >Ends With</option>
|
||||
<!-- <option value="match" <?php if($workflow_rule->matching_relation == 'match'){ echo "selected='selected'"; } ?> >Match Regular Expressions</option>
|
||||
<option value="not_match" <?php if($workflow_rule->matching_relation == 'not_match'){ echo "selected='selected'"; } ?> >Does not match Regular Expression</option>-->
|
||||
</select>
|
||||
</td>
|
||||
<td class="col-md-3">
|
||||
<input class="form-control" type="text" name="rule[{!! $j-1 !!}][c]" value="{!! $workflow_rule->matching_value !!}" required>
|
||||
</td>
|
||||
<td style="text-align: center">
|
||||
<div class="tools">
|
||||
<span class="btnRemove1" data-toggle="modal" data-target="#">
|
||||
<a data-toggle="tooltip" data-placement="top" title="Delete" onclick="document.getElementById('firstdata{!! $j !!}').innerHTML = ''">
|
||||
<i class="fa fa-trash-o"></i>
|
||||
</a>
|
||||
</span>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
<div class="row" style="padding: 10px 15px 0px">
|
||||
|
||||
<div class="pull-right" >
|
||||
|
||||
<a class="btn btn-primary btnAdd1">Add</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- /.box-body -->
|
||||
</div>
|
||||
<!-- /.box -->
|
||||
</div>
|
||||
<!-- /.col -->
|
||||
</div>
|
||||
<!-- /.tab-pane -->
|
||||
<div class="tab-pane" id="close">
|
||||
<div>
|
||||
<div class="box-body">
|
||||
<table class="table table-bordered table-hover">
|
||||
<thead>
|
||||
<tr>
|
||||
<td>Condition</td>
|
||||
<td>Rule</td>
|
||||
<td>Action</td>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody class="buttons">
|
||||
<?php $i = 0; ?>
|
||||
@foreach($workflow_actions as $workflow_action)
|
||||
<?php $i++; ?>
|
||||
<tr id="seconddata{!! $i !!}">
|
||||
<td>
|
||||
<select class="form-control" onChange="selectdata({!! $i !!})" id="selected{!! $i !!}" name="action[{!! $i !!}][a]" required>
|
||||
<option value="">Select an Action</option>
|
||||
<optgroup label="Ticket">
|
||||
<option value="reject" <?php if($workflow_action->condition == 'reject'){ echo "selected='selected'"; } ?> >Reject Ticket</option>
|
||||
<option value="department" <?php if($workflow_action->condition == 'department'){ echo "selected='selected'"; } ?> >Set Department</option>
|
||||
<option value="priority" <?php if($workflow_action->condition == 'priority'){ echo "selected='selected'"; } ?> >Set Priority</option>
|
||||
<option value="sla" <?php if($workflow_action->condition == 'sla'){ echo "selected='selected'"; } ?> >Set SLA Plan</option>
|
||||
<option value="team" <?php if($workflow_action->condition == 'team'){ echo "selected='selected'"; } ?> >Assign Team</option>
|
||||
<option value="agent" <?php if($workflow_action->condition == 'agent'){ echo "selected='selected'"; } ?> >Assign Agent</option>
|
||||
<option value="helptopic" <?php if($workflow_action->condition == 'helptopic'){ echo "selected='selected'"; } ?> >Set Help Topic</option>
|
||||
<option value="status" <?php if($workflow_action->condition == 'status'){ echo "selected='selected'"; } ?> >Set Ticket Status</option>
|
||||
</optgroup>
|
||||
</select>
|
||||
</td>
|
||||
<td id="fill{!! $i !!}">
|
||||
<?php
|
||||
if($workflow_action->condition == 'reject')
|
||||
{
|
||||
echo "<input type='hidden' name='action[". $i ."][b]' class='form-control' value='reject'><span text-red>Reject</span>";
|
||||
} elseif ($workflow_action->condition == 'department') {
|
||||
$departments = App\Model\helpdesk\Agent\Department::all();
|
||||
$var = "<select name='action[". $i ."][b]' class='form-control' required>";
|
||||
foreach ($departments as $department) {
|
||||
if($workflow_action->action == $department->id) {
|
||||
$depart = "selected";
|
||||
} else {
|
||||
$depart = "";
|
||||
}
|
||||
$var .= "<option value='" . $department->id . "' ".$depart.">" . $department->name . "</option>";
|
||||
}
|
||||
$var .= "</select>";
|
||||
echo $var;
|
||||
} elseif ($workflow_action->condition == 'priority') {
|
||||
$priorities = App\Model\helpdesk\Ticket\Ticket_Priority::all();
|
||||
$var = "<select name='action[". $i ."][b]' class='form-control' required>";
|
||||
foreach ($priorities as $priority) {
|
||||
if($workflow_action->action == $priority->priority_id) {
|
||||
$priority1 = "selected";
|
||||
} else {
|
||||
$priority1 = "";
|
||||
}
|
||||
$var .= "<option value='" . $priority->priority_id . "' ".$priority1.">" . $priority->priority_desc . "</option>";
|
||||
}
|
||||
$var .= "</select>";
|
||||
echo $var;
|
||||
} elseif ($workflow_action->condition == 'sla') {
|
||||
$sla_plans = App\Model\helpdesk\Manage\Sla_plan::where('status', '=', 1)->get();
|
||||
$var = "<select name='action[". $i ."][b]' class='form-control' required>";
|
||||
foreach ($sla_plans as $sla_plan) {
|
||||
if($workflow_action->action == $sla_plan->id) {
|
||||
$sla = "selected";
|
||||
} else {
|
||||
$sla = "";
|
||||
}
|
||||
$var .= "<option value='" . $sla_plan->id . "' ". $sla .">" . $sla_plan->grace_period . "</option>";
|
||||
}
|
||||
$var .= "</select>";
|
||||
echo $var;
|
||||
} elseif ($workflow_action->condition == 'team') {
|
||||
$teams = App\Model\helpdesk\Agent\Teams::where('status', '=', 1)->get();
|
||||
$var = "<select name='action[". $i ."][b]' class='form-control' required>";
|
||||
foreach ($teams as $team) {
|
||||
if($workflow_action->action == $team->id) {
|
||||
$team1 = "selected";
|
||||
} else {
|
||||
$team1 = "";
|
||||
}
|
||||
$var .= "<option value='" . $team->id . "' ".$team1.">" . $team->name . "</option>";
|
||||
}
|
||||
$var .= "</select>";
|
||||
echo $var;
|
||||
} elseif ($workflow_action->condition == 'agent') {
|
||||
$users = App\User::where('role', '!=', 'user')->where('active', '=', 1)->get();
|
||||
$var = "<select name='action[". $i ."][b]' class='form-control' required>";
|
||||
foreach ($users as $user) {
|
||||
if($workflow_action->action == $user->id) {
|
||||
$user1 = "selected";
|
||||
} else {
|
||||
$user1 = "";
|
||||
}
|
||||
$var .= "<option value='" . $user->id . "' ".$user1.">" . $user->first_name . " " . $user->last_name . "</option>";
|
||||
}
|
||||
$var .= "</select>";
|
||||
echo $var;
|
||||
} elseif ($workflow_action->condition == 'helptopic') {
|
||||
$help_topics = App\Model\helpdesk\Manage\Help_topic::where('status', '=', 1)->get();
|
||||
$var = "<select name='action[". $i ."][b]' class='form-control' required>";
|
||||
foreach ($help_topics as $help_topic) {
|
||||
if($workflow_action->action == $help_topic->id) {
|
||||
$help_topic1 = "selected";
|
||||
} else {
|
||||
$help_topic1 = "";
|
||||
}
|
||||
$var .= "<option value='" . $help_topic->id . "' ".$help_topic1.">" . $help_topic->topic . "</option>";
|
||||
}
|
||||
$var .= "</select>";
|
||||
echo $var;
|
||||
} elseif ($workflow_action->condition == 'status') {
|
||||
$ticket_status = App\Model\helpdesk\Ticket\Ticket_Status::all();
|
||||
$var = "<select name='action[". $i ."][b]' class='form-control' required>";
|
||||
foreach ($ticket_status as $status) {
|
||||
if($workflow_action->action == $status->id) {
|
||||
$status1 = "selected";
|
||||
} else {
|
||||
$status1 = "";
|
||||
}
|
||||
$var .= "<option value='" . $status->id . "' ".$status1.">" . $status->name . "</option>";
|
||||
}
|
||||
$var .= "</select>";
|
||||
echo $var;
|
||||
}
|
||||
?>
|
||||
|
||||
</td>
|
||||
<td style="text-align: center">
|
||||
<div class="tools">
|
||||
<span class="btnRemove" data-toggle="modal" data-target="#">
|
||||
<a data-toggle="tooltip" data-placement="top" title="Delete" onclick="document.getElementById('seconddata{!! $i !!}').innerHTML = ''">
|
||||
<i class="fa fa-trash-o"></i>
|
||||
</a>
|
||||
</span>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
<div class="row" style="padding: 10px 15px 0px">
|
||||
<div class="pull-right">
|
||||
<a class="btn btn-primary btnAdd">Add</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- /.box -->
|
||||
</div>
|
||||
<!-- /.col -->
|
||||
</div>
|
||||
<!-- /.tab-pane -->
|
||||
<div class="tab-pane" id="delect">
|
||||
<div>
|
||||
<textarea name="internal_note" class="textarea" placeholder="Relax your mind, we are there for you...!" style="width: 100%; height: 200px; font-size: 14px; line-height: 18px; border: 1px solid #dddddd; padding: 10px;"></textarea>
|
||||
</div>
|
||||
<!-- /.col -->
|
||||
</div>
|
||||
<!-- /.tab-pane -->
|
||||
</div>
|
||||
<!-- /.tab-content -->
|
||||
<div class="box-footer">
|
||||
<input type="submit" class="btn btn-primary" value="SUBMIT">
|
||||
</div>
|
||||
</div>
|
||||
<!-- /.nav-tabs-custom -->
|
||||
</div>
|
||||
<!-- /.col -->
|
||||
</div>
|
||||
<!-- /.row -->
|
||||
</form>
|
||||
|
||||
<script>
|
||||
$(function() {
|
||||
$("#example1").DataTable();
|
||||
$('#example2').DataTable({
|
||||
"paging": true,
|
||||
"lengthChange": false,
|
||||
"searching": false,
|
||||
"ordering": true,
|
||||
"info": true,
|
||||
"autoWidth": false
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
function getSelectVal(val) {
|
||||
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: "",
|
||||
data: 'select_box=' + val,
|
||||
success: function(data) {
|
||||
$("#select-list").html(data);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
$(document).ready(function() {
|
||||
var x = 0;
|
||||
var n = {!! $i !!};
|
||||
$('.btnAdd').click(function() {
|
||||
n++;
|
||||
$('.buttons').append('<tr id="firstdata1">' +
|
||||
'<td>' +
|
||||
'<select class="form-control" onChange="selectdata(' + n + ')" name="action[' + n + '][a]" id="selected' + n + '" required>' +
|
||||
'<option value="">Select an Action</option>' +
|
||||
'<optgroup label="Ticket">' +
|
||||
'<option value="reject">Reject Ticket</option>' +
|
||||
'<option value="department">Set Department</option>' +
|
||||
'<option value="priority">Set Priority</option>' +
|
||||
'<option value="sla">Set SLA Plan</option>' +
|
||||
'<option value="team">Assign Team</option>' +
|
||||
'<option value="agent">Assign Agent</option>' +
|
||||
'<option value="helptopic">Set Help Topic</option>' +
|
||||
'<option value="status">Set Ticket Status</option>' +
|
||||
'</select>' +
|
||||
'</td>' +
|
||||
'<td id="fill' + n + '">' +
|
||||
'</td>' +
|
||||
'<td style="text-align: center">' +
|
||||
'<div class="tools">' +
|
||||
'<span class="btnRemove" data-toggle="modal" data-target="#">' +
|
||||
'<a data-toggle="tooltip" data-placement="top" title="Delete">' +
|
||||
'<i class="fa fa-trash-o"></i>' +
|
||||
'</a>' +
|
||||
'</span>' +
|
||||
'</div>' +
|
||||
'</td>' +
|
||||
'</tr>'); // end append
|
||||
$('div .btnRemove').last().click(function(e) {
|
||||
e.preventDefault();
|
||||
$(this).closest('tr').remove();
|
||||
x--;
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
$(document).ready(function() {
|
||||
var x = 0;
|
||||
var n = {!! $j !!};
|
||||
$('.btnAdd1').click(function() {
|
||||
n++;
|
||||
$('.button1').append('<tr>' +
|
||||
'<td>' +
|
||||
'<select class="form-control" name="rule[' + n + '][a]" required>' +
|
||||
'<option>-- Select One --</option>' +
|
||||
'<option value="email">Email</option>' +
|
||||
'<option value="email_name">Email name</option>' +
|
||||
'<option value="subject">Subject</option>' +
|
||||
'<option value="message">Message/Body</option>' +
|
||||
'</select>' +
|
||||
'</td>' +
|
||||
'<td class="col-md-3">' +
|
||||
'<select class="form-control" name="rule[' + n + '][b]" required>' +
|
||||
'<option value="">-- Select One --</option>' +
|
||||
'<option value="equal">Equal to</option>' +
|
||||
'<option value="not_equal">Not equal to</option>' +
|
||||
'<option value="contains">Contains</option>' +
|
||||
'<option value="dn_contain">Does Not Contain</option>' +
|
||||
'<option value="starts">Starts With</option>' +
|
||||
'<option value="ends">Ends With</option>' +
|
||||
'</select>' +
|
||||
'</td>' +
|
||||
'<td class="col-md-3"> <input class="form-control" type="text" name="rule[' + n + '][c]" required> </td>' +
|
||||
'<td style="text-align: center">' +
|
||||
'<div class="tools"> <span class="btnRemove1" data-toggle="modal" data-target="#"><a data-toggle="tooltip" data-placement="top" title="Delete"><i class="fa fa-trash-o"></i></a></span> </div>' +
|
||||
'</td>' +
|
||||
'</tr>'); // end append
|
||||
$('div .btnRemove1').last().click(function(e) {
|
||||
e.preventDefault();
|
||||
$(this).closest('tr').remove();
|
||||
x--;
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
function selectdata(id) {
|
||||
var selected_data = document.getElementById('selected' + id).value;
|
||||
$.ajax({
|
||||
url: "{!! url('workflow/action-rule') !!}" + "/" + id,
|
||||
type: "get",
|
||||
data: {option: selected_data},
|
||||
headers: {
|
||||
'X-CSRF-Token': $('meta[name="_token"]').attr('content')
|
||||
},
|
||||
success: function(data) {
|
||||
//adds the echoed response to our container
|
||||
$("#fill" + id).html(data);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
</script>
|
||||
|
||||
@stop
|
@@ -0,0 +1,90 @@
|
||||
@extends('themes.default1.admin.layout.admin')
|
||||
|
||||
@section('Manage')
|
||||
active
|
||||
@stop
|
||||
|
||||
@section('manage-bar')
|
||||
active
|
||||
@stop
|
||||
|
||||
@section('workflow')
|
||||
class="active"
|
||||
@stop
|
||||
|
||||
@section('HeadInclude')
|
||||
@stop
|
||||
<!-- header -->
|
||||
@section('PageHeader')
|
||||
@stop
|
||||
<!-- /header -->
|
||||
<!-- breadcrumbs -->
|
||||
@section('breadcrumbs')
|
||||
|
||||
@stop
|
||||
<!-- /breadcrumbs -->
|
||||
<!-- content -->
|
||||
@section('content')
|
||||
<div class="row">
|
||||
<div class="col-xs-12">
|
||||
<div class="box box-primary">
|
||||
<div class="box-header">
|
||||
<h3 class="box-title">{!! Lang::get('lang.ticket_workflow') !!}</h3>
|
||||
<a href="{!! URL::route('workflow.create') !!}" class="btn btn-primary pull-right">{!! Lang::get('lang.create') !!}</a>
|
||||
</div>
|
||||
<!-- /.box-header -->
|
||||
<div class="box-body">
|
||||
<!-- 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') !!}
|
||||
</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
|
||||
{!! Datatable::table()
|
||||
->addColumn(Lang::get('lang.name'),
|
||||
Lang::get('lang.status'),
|
||||
Lang::get('lang.order'),
|
||||
Lang::get('lang.rules'),
|
||||
Lang::get('lang.target_channel'),
|
||||
Lang::get('lang.created'),
|
||||
Lang::get('lang.updated'),
|
||||
Lang::get('lang.action')) // these are the column headings to be shown
|
||||
->setUrl(route('workflow.list')) // this is the route where data will be retrieved
|
||||
->render() !!}
|
||||
</div>
|
||||
<!-- /.box-body -->
|
||||
<!-- <div class="box box-footer"> -->
|
||||
|
||||
<!-- </div> -->
|
||||
</div>
|
||||
<!-- /.box -->
|
||||
</div>
|
||||
<!-- /.col -->
|
||||
</div>
|
||||
|
||||
<script>
|
||||
$(function() {
|
||||
$("#example1").DataTable();
|
||||
$('#example2').DataTable({
|
||||
"paging": true,
|
||||
"lengthChange": false,
|
||||
"searching": false,
|
||||
"ordering": true,
|
||||
"info": true,
|
||||
"autoWidth": false
|
||||
});
|
||||
});
|
||||
</script>
|
||||
@stop
|
@@ -202,6 +202,19 @@
|
||||
</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('workflow')}}"><span class="fa-stack fa-2x">
|
||||
|
||||
<i class="fa fa-sitemap fa-stack-1x"></i>
|
||||
</span></a>
|
||||
</div>
|
||||
<center class="box-title" >{!! Lang::get('lang.workflow') !!}</center>
|
||||
</div>
|
||||
</div>
|
||||
<!--/.col-md-2-->
|
||||
|
||||
</div>
|
||||
</div>
|
||||
@@ -314,6 +327,18 @@
|
||||
</div>
|
||||
</div>
|
||||
<!--/.col-md-2-->
|
||||
<div class="col-md-2 col-sm-6">
|
||||
<div class="settingiconblue">
|
||||
<div class="settingdivblue">
|
||||
<a href="{{url('job-scheduler')}}"><span class="fa-stack fa-2x">
|
||||
|
||||
<i class="fa fa-hourglass-o fa-stack-1x"></i>
|
||||
</span></a>
|
||||
</div>
|
||||
<center class="box-title" >{!! Lang::get('lang.cron') !!}</center>
|
||||
</div>
|
||||
</div>
|
||||
<!--/.col-md-2-->
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
@@ -1,7 +1,7 @@
|
||||
@extends('themes.default1.admin.layout.admin')
|
||||
|
||||
@section('Settings')
|
||||
class="active"
|
||||
active
|
||||
@stop
|
||||
|
||||
@section('settings-bar')
|
||||
|
@@ -1,5 +1,7 @@
|
||||
@extends('themes.default1.admin.layout.admin')
|
||||
|
||||
@section('update')
|
||||
class="active"
|
||||
@stop
|
||||
@section('content')
|
||||
|
||||
<div class="box box-primary">
|
||||
|
@@ -1,7 +1,7 @@
|
||||
@extends('themes.default1.admin.layout.admin')
|
||||
|
||||
<link href="{{asset("lb-faveo/css/faveo-css.css")}}" rel="stylesheet" type="text/css" />
|
||||
@section('Settings')
|
||||
class="active"
|
||||
active
|
||||
@stop
|
||||
|
||||
@section('settings-bar')
|
||||
@@ -70,8 +70,8 @@ class="active"
|
||||
<div class="form-group {{ $errors->has('company_name') ? 'has-error' : '' }}">
|
||||
|
||||
{!! Form::label('company_name',Lang::get('lang.name')) !!}
|
||||
{!! $errors->first('company_name', '<spam class="help-block">:message</spam>') !!}
|
||||
{!! Form::text('company_name',$companys->company_name,['class' => 'form-control']) !!}
|
||||
{!! $errors->first('company_name', '<spam class="help-block">:message</spam>') !!}
|
||||
|
||||
</div>
|
||||
</div>
|
||||
@@ -82,8 +82,9 @@ class="active"
|
||||
<div class="form-group {{ $errors->has('website') ? 'has-error' : '' }}">
|
||||
|
||||
{!! Form::label('website',Lang::get('lang.website')) !!}
|
||||
{!! $errors->first('website', '<spam class="help-block">:message</spam>') !!}
|
||||
{!! Form::url('website',$companys->website,['class' => 'form-control']) !!}
|
||||
{!! $errors->first('website', '<spam class="help-block">:message</spam>') !!}
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
@@ -93,8 +94,8 @@ class="active"
|
||||
<div class="form-group {{ $errors->has('phone') ? 'has-error' : '' }}">
|
||||
|
||||
{!! Form::label('phone',Lang::get('lang.phone')) !!}
|
||||
{!! $errors->first('phone', '<spam class="help-block">:message</spam>') !!}
|
||||
{!! Form::text('phone',$companys->phone,['class' => 'form-control']) !!}
|
||||
{!! $errors->first('phone', '<spam class="help-block">:message</spam>') !!}
|
||||
|
||||
</div>
|
||||
</div>
|
||||
@@ -149,6 +150,7 @@ class="active"
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div id="logo-display" style="display: block;">
|
||||
@if($companys->logo != null)
|
||||
<div class="col-md-2">
|
||||
{!! Form::checkbox('use_logo') !!} <label> Use Logo</label>
|
||||
@@ -158,12 +160,69 @@ class="active"
|
||||
<?php $company = App\Model\helpdesk\Settings\Company::where('id', '=', '1')->first(); ?>
|
||||
|
||||
@if($companys->logo != null)
|
||||
<div class="col-md-2">
|
||||
<img src="{{asset('lb-faveo/media/company')}}{{'/'}}{{$company->logo}}" alt="User Image" width="100px" style="border:1px solid #DCD1D1" />
|
||||
<div class="col-md-2 image" data-content="{{Lang::get('lang.click-delete')}}">
|
||||
<img src="{{asset('lb-faveo/media/company')}}{{'/'}}{{$company->logo}}" alt="User Image" id="company-logo" width="100px" style="border:1px solid #DCD1D1" />
|
||||
</div>
|
||||
@endif
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- Modal -->
|
||||
<div class="modal fade in" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="false" style="display: none; padding-right: 15px;background-color: rgba(0, 0, 0, 0.7);">
|
||||
<div class="modal-dialog" role="document">
|
||||
<div class="col-md-2"></div>
|
||||
<div class="col-md-8">
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<button type="button" class="close closemodal" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
|
||||
<h4 class="modal-title" id="myModalLabel"></h4>
|
||||
</div>
|
||||
<div class="modal-body" id="custom-alert-body" >
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button type="button" class="btn btn-primary pull-left yes" data-dismiss="modal"></button>
|
||||
<button type="button" class="btn btn-default no"></button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function(){
|
||||
$( ".image" ).on( "click", function() {
|
||||
$("#myModal").css("display","block");
|
||||
$("#myModalLabel").html("{!! Lang::get('lang.delete-logo') !!}");
|
||||
$(".yes").html("{!! Lang::get('lang.yes') !!}");
|
||||
$(".no").html("{{Lang::get('lang.cancel')}}");
|
||||
$("#custom-alert-body").html("{{Lang::get('lang.confirm')}}");
|
||||
});
|
||||
$('.no,.closemodal').on("click", function(){
|
||||
$("#myModal").css("display","none");
|
||||
});
|
||||
$('.yes').on('click',function(){
|
||||
var src = $('#company-logo').attr('src').split('/');
|
||||
var file = src[src.length - 1];
|
||||
|
||||
var path = "lb-faveo/media/company/"+file;
|
||||
// alert(path);
|
||||
$.ajax({
|
||||
type: "GET",
|
||||
url: "{{route('delete.logo')}}",
|
||||
dataType: "html",
|
||||
data:{data1:path},
|
||||
success: function(data) {
|
||||
if(data == "true") {
|
||||
var msg = "Logo deleted succesfully."
|
||||
$("#logo-display").css("display","none");
|
||||
$("#myModal").css("display","none");
|
||||
} else {
|
||||
$("#myModal").css("display","none");
|
||||
}
|
||||
}
|
||||
});
|
||||
});
|
||||
});
|
||||
</script>
|
||||
@stop
|
@@ -0,0 +1,135 @@
|
||||
@extends('themes.default1.admin.layout.admin')
|
||||
|
||||
@section('Settings')
|
||||
active
|
||||
@stop
|
||||
|
||||
@section('settings-bar')
|
||||
active
|
||||
@stop
|
||||
|
||||
@section('cron')
|
||||
class="active"
|
||||
@stop
|
||||
|
||||
@section('HeadInclude')
|
||||
@stop
|
||||
<!-- header -->
|
||||
@section('PageHeader')
|
||||
@stop
|
||||
<!-- /header -->
|
||||
<!-- breadcrumbs -->
|
||||
@section('breadcrumbs')
|
||||
<ol class="breadcrumb">
|
||||
|
||||
</ol>
|
||||
@stop
|
||||
<!-- /breadcrumbs -->
|
||||
<!-- content -->
|
||||
@section('content')
|
||||
|
||||
<!-- open a form -->
|
||||
{!! Form::model($emails,['url' => 'post-scheduler', 'method' => 'PATCH']) !!}
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="box box-primary">
|
||||
<div class="box-header">
|
||||
<h3 class="box-title">{{Lang::get('lang.cron')}}</h3> <div class="pull-right">
|
||||
{!! Form::submit(Lang::get('lang.save'),['class'=>'btn btn-primary'])!!}
|
||||
</div>
|
||||
</div>
|
||||
<!-- 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')!!}
|
||||
</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-responsive"style="overflow:hidden;">
|
||||
<div class="alert alert-dismissable" style="background: #F3F3F3">
|
||||
<i class="fa fa-info-circle"></i> {!!Lang::get('lang.crone-url-message')!!}
|
||||
<a href="http://ladybirdweb.com/support/show/cron-job-scheduling" style="color:black" target="blank">{!!Lang::get('lang.click')!!}</a> {!!Lang::get('lang.check-cron-set')!!}
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<div class="info-box">
|
||||
<!-- Apply any bg-* class to to the icon to color it -->
|
||||
<span class="info-box-icon bg-aqua"><i class="fa fa-cloud-download"></i></span>
|
||||
<div class="info-box-content">
|
||||
<i class="fa fa-clipboard pull-right" title="{!!Lang::get('lang.click-url-copy')!!}" onclick="copyToClipboard('#p1')"></i>
|
||||
<div class="col-md-6">
|
||||
<div class="form-group">
|
||||
{!! Form::label('email_fetching',Lang::get('lang.email_fetch')) !!}<br>
|
||||
{!! Form::checkbox('email_fetching',1,true) !!} {{Lang::get('lang.fetch_auto-corn')}}
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-12">
|
||||
<em><span class="info-box-text" style="background: #F3F3F3" id='p1'></span></em>
|
||||
<!-- <div class="btn btn-default btn-xs pull-right" onclick="copyToClipboard('#p1')">Copy URL</div> -->
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
</div><!-- /.info-box-content -->
|
||||
</div><!-- /.info-box -->
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<div class="info-box">
|
||||
<!-- Apply any bg-* class to to the icon to color it -->
|
||||
<span class="info-box-icon bg-aqua"><i class="fa fa-cloud-upload"></i></span>
|
||||
<div class="info-box-content">
|
||||
<i class="fa fa-clipboard pull-right" title="{!!Lang::get('lang.click-url-copy')!!}" onclick="copyToClipboard('#p2')"></i>
|
||||
<div class="col-md-6">
|
||||
<div class="form-group">
|
||||
{!! Form::label('email_fetching',Lang::get('lang.notification-email')) !!}<br>
|
||||
{!! Form::checkbox('notification_cron',1,true) !!} {{Lang::get('lang.cron_notification')}}
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-12">
|
||||
<em><span class="info-box-text" style="background: #F3F3F3" id='p2'></span></em>
|
||||
<!-- <div class="btn btn-default btn-xs pull-right" onclick="copyToClipboard('#p1')">Copy URL</div> -->
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
</div><!-- /.info-box-content -->
|
||||
</div><!-- /.info-box -->
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<script type="text/javascript">
|
||||
function copyToClipboard(element) {
|
||||
var $temp = $("<input>");
|
||||
$("body").append($temp);
|
||||
$temp.val($(element).text()).select();
|
||||
document.execCommand("copy");
|
||||
$temp.remove();
|
||||
alert('{!!Lang::get("lang.clipboard-copy-message")!!}');
|
||||
}
|
||||
$(document).ready(function(){
|
||||
var path = $(location).attr('href');
|
||||
// alert(path);
|
||||
// var str = path;
|
||||
path = path.replace("job-scheduler","readmails");
|
||||
path2 = path.replace("readmails", "notification");
|
||||
document.getElementById("p1").innerHTML = path;
|
||||
document.getElementById("p2").innerHTML = path2;
|
||||
})
|
||||
</script>
|
||||
@stop
|
@@ -1,7 +1,7 @@
|
||||
@extends('themes.default1.admin.layout.admin')
|
||||
|
||||
@section('Settings')
|
||||
class="active"
|
||||
active
|
||||
@stop
|
||||
|
||||
@section('settings-bar')
|
||||
@@ -68,20 +68,9 @@ class="active"
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- Email Fetching: CHECKBOX : Enable ,Fetch on auto-cron -->
|
||||
<div class="col-md-6">
|
||||
<div class="form-group">
|
||||
{!! Form::label('email_fetching',Lang::get('lang.email_fetch')) !!}<br>
|
||||
{!! Form::checkbox('email_fetching',1,true) !!} {{Lang::get('lang.fetch_auto-corn')}}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-md-6">
|
||||
<div class="form-group">
|
||||
{!! Form::checkbox('notification_cron',1,true) !!} {{Lang::get('lang.cron_notification')}}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- Accept All Emails: CHECKBOX: Accept email from unknown Users -->
|
||||
<div class="row">
|
||||
|
@@ -1,7 +1,7 @@
|
||||
@extends('themes.default1.admin.layout.admin')
|
||||
|
||||
@section('Settings')
|
||||
class="active"
|
||||
@section('Plugins')
|
||||
active
|
||||
@stop
|
||||
|
||||
@section('settings-bar')
|
||||
|
@@ -1,7 +1,7 @@
|
||||
@extends('themes.default1.admin.layout.admin')
|
||||
|
||||
@section('Settings')
|
||||
class="active"
|
||||
active
|
||||
@stop
|
||||
|
||||
@section('settings-bar')
|
||||
|
@@ -1,7 +1,7 @@
|
||||
@extends('themes.default1.admin.layout.admin')
|
||||
|
||||
@section('Settings')
|
||||
class="active"
|
||||
active
|
||||
@stop
|
||||
|
||||
@section('settings-bar')
|
||||
|
@@ -1,7 +1,7 @@
|
||||
@extends('themes.default1.admin.layout.admin')
|
||||
|
||||
@section('Settings')
|
||||
class="active"
|
||||
active
|
||||
@stop
|
||||
|
||||
@section('settings-bar')
|
||||
|
@@ -1,14 +1,14 @@
|
||||
@extends('themes.default1.admin.layout.admin')
|
||||
|
||||
@section('Themes')
|
||||
class="active"
|
||||
active
|
||||
@stop
|
||||
|
||||
@section('theme-bar')
|
||||
active
|
||||
@stop
|
||||
|
||||
@section('footer')
|
||||
@section('socail')
|
||||
class="active"
|
||||
@stop
|
||||
|
||||
|
@@ -1,14 +1,14 @@
|
||||
@extends('themes.default1.admin.layout.admin')
|
||||
|
||||
@section('Themes')
|
||||
class="active"
|
||||
active
|
||||
@stop
|
||||
|
||||
@section('theme-bar')
|
||||
active
|
||||
@stop
|
||||
|
||||
@section('footer')
|
||||
@section('widget')
|
||||
class="active"
|
||||
@stop
|
||||
|
||||
|
@@ -24,6 +24,7 @@
|
||||
<link href="{{asset("lb-faveo/plugins/iCheck/flat/blue.css")}}" rel="stylesheet" type="text/css" />
|
||||
<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
|
||||
<link href="{{asset("lb-faveo/css/tabby.css")}}" type="text/css" rel="stylesheet">
|
||||
<link href="{{asset('css/notification-style.css')}}" rel="stylesheet" type="text/css">
|
||||
<link href="{{asset("lb-faveo/css/jquerysctipttop.css")}}" rel="stylesheet" type="text/css">
|
||||
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
|
||||
<link href="{{asset("lb-faveo/css/editor.css")}}" rel="stylesheet" type="text/css">
|
||||
@@ -53,23 +54,50 @@
|
||||
<span class="icon-bar"></span>
|
||||
<span class="icon-bar"></span>
|
||||
</a>
|
||||
<?php $notifications = App\Http\Controllers\Common\NotificationController::getNotifications(); ?>
|
||||
<!-- Collect the nav links, forms, and other content for toggling -->
|
||||
<div class="collapse navbar-collapse" id="navbar-collapse">
|
||||
<ul class="nav navbar-nav navbar-left">
|
||||
<li @yield('settings')><a href="{!! url('admin') !!}">{!! Lang::get('lang.home') !!}</a></li>
|
||||
</ul>
|
||||
|
||||
<ul class="nav navbar-nav navbar-right">
|
||||
<li><a href="{{url('dashboard')}}">{!! Lang::get('lang.agent_panel') !!}</a></li>
|
||||
<!-- User Account: style can be found in dropdown.less -->
|
||||
<li class="dropdown notifications-menu">
|
||||
<a href="#" class="dropdown-toggle" data-toggle="dropdown" onclick="myFunction()">
|
||||
<i class="fa fa-bell-o"></i>
|
||||
<span class="label label-warning" id="count"><?php echo count($notifications); ?></span>
|
||||
</a>
|
||||
<ul class="dropdown-menu">
|
||||
<li class="header">You have <?php echo count($notifications); ?> notifications</li>
|
||||
<li>
|
||||
<ul class="menu">
|
||||
@foreach($notifications as $notification)
|
||||
@if($notification->type == 'registration')
|
||||
<li>
|
||||
<a href="{!! route('user.show', $notification->notification_id) !!}" id="{{$notification -> notification_id}}" class='noti_User'>
|
||||
<i class="{!! $notification->icon_class !!}"></i> {!! $notification->message !!}
|
||||
</a>
|
||||
</li>
|
||||
@else
|
||||
<li>
|
||||
<a href="{!! route('ticket.thread', $notification->notification_id) !!}" id='{{ $notification->notification_id }}' class='noti_User'>
|
||||
<i class="{!! $notification->icon_class !!}"></i> {!! $notification->message !!}
|
||||
</a>
|
||||
</li>
|
||||
@endif
|
||||
@endforeach
|
||||
</ul>
|
||||
</li>
|
||||
<li class="footer"><a href="{{ url('notifications-list') }}">View all</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="dropdown user user-menu">
|
||||
<a href="#" class="dropdown-toggle" data-toggle="dropdown">
|
||||
@if(Auth::user())
|
||||
@if(Auth::user()->profile_pic)
|
||||
<img src="{{asset('lb-faveo/media/profilepic')}}{{'/'}}{{Auth::user()->profile_pic}}"class="user-image" alt="User Image"/>
|
||||
@else
|
||||
<img src="{{ Gravatar::src(Auth::user()->email) }}" class="user-image" alt="User Image">
|
||||
@endif
|
||||
|
||||
<img src="{{Auth::user()->profile_pic}}"class="user-image" alt="User Image"/>
|
||||
|
||||
<span class="hidden-xs">{!! Auth::user()->first_name." ".Auth::user()->last_name !!}</span>
|
||||
@endif
|
||||
</a>
|
||||
@@ -77,11 +105,7 @@
|
||||
<!-- User image -->
|
||||
<li class="user-header" style="background-color:#343F44;">
|
||||
@if(Auth::user())
|
||||
@if(Auth::user()->profile_pic)
|
||||
<img src="{{asset('lb-faveo/media/profilepic')}}{{'/'}}{{Auth::user()->profile_pic}}" class="img-circle" alt="User Image" />
|
||||
@else
|
||||
<img src="{{ Gravatar::src(Auth::user()->email) }}" class="img-circle" alt="User Image">
|
||||
@endif
|
||||
<img src="{{Auth::user()->profile_pic}}" class="img-circle" alt="User Image" />
|
||||
<p>
|
||||
{!! Auth::user()->first_name !!}{!! " ". Auth::user()->last_name !!} - {{Auth::user()->role}}
|
||||
<small></small>
|
||||
@@ -99,7 +123,9 @@
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
</nav>
|
||||
</ul>
|
||||
</div>
|
||||
</nav>
|
||||
</header>
|
||||
<!-- Left side column. contains the logo and sidebar -->
|
||||
<aside class="main-sidebar">
|
||||
@@ -110,11 +136,7 @@
|
||||
<div class="col-xs-3"></div>
|
||||
<div class="col-xs-2" style="width:50%;">
|
||||
<a href="{!! url('profile') !!}">
|
||||
@if(Auth::user() && Auth::user()->profile_pic)
|
||||
<img src="{{asset('lb-faveo/media/profilepic')}}{{'/'}}{{Auth::user()->profile_pic}}" class="img-circle" alt="User Image" />
|
||||
@else
|
||||
<img src="{{ Gravatar::src(Auth::user()->email) }}" class="img-circle" alt="User Image">
|
||||
@endif
|
||||
<img src="{{Auth::user()->profile_pic}}" class="img-circle" alt="User Image" />
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
@@ -141,53 +163,98 @@
|
||||
<!-- /.search form -->
|
||||
<!-- sidebar menu: : style can be found in sidebar.less -->
|
||||
<ul class="sidebar-menu">
|
||||
<li class="header">{!! Lang::get('lang.Tickets') !!}</li>
|
||||
|
||||
<?php
|
||||
if(Auth::user()->role == 'admin') {
|
||||
$inbox = App\Model\helpdesk\Ticket\Tickets::all();
|
||||
$myticket = App\Model\helpdesk\Ticket\Tickets::where('assigned_to', Auth::user()->id)->where('status','1')->get();
|
||||
$unassigned = App\Model\helpdesk\Ticket\Tickets::where('assigned_to', '0')->where('status','1')->get();
|
||||
$tickets = App\Model\helpdesk\Ticket\Tickets::where('status','1')->get();
|
||||
} elseif(Auth::user()->role == 'agent') {
|
||||
$inbox = App\Model\helpdesk\Ticket\Tickets::where('dept_id','',Auth::user()->primary_dpt)->get();
|
||||
$myticket = App\Model\helpdesk\Ticket\Tickets::where('assigned_to', Auth::user()->id)->where('status','1')->get();
|
||||
$unassigned = App\Model\helpdesk\Ticket\Tickets::where('assigned_to', '0')->where('status','1')->where('dept_id','',Auth::user()->primary_dpt)->get();
|
||||
$tickets = App\Model\helpdesk\Ticket\Tickets::where('status','1')->get();
|
||||
}
|
||||
$i = count($tickets);
|
||||
?>
|
||||
<li>
|
||||
<a href="{{ url('/ticket/inbox') }}">
|
||||
<i class="fa fa-envelope"></i> <span>{!! Lang::get('lang.inbox') !!}</span> <small class="label pull-right bg-green">
|
||||
{!! $i !!}</small>
|
||||
</a>
|
||||
</li>
|
||||
|
||||
<li @yield('myticket')>
|
||||
<a href="{{url('ticket/myticket')}}">
|
||||
<i class="fa fa-user"></i> <span>{!! Lang::get('lang.my_tickets') !!}</span>
|
||||
|
||||
<small class="label pull-right bg-green">{{count($myticket) }}</small>
|
||||
</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="{{url('unassigned')}}">
|
||||
<i class="fa fa-th"></i> <span>{!! Lang::get('lang.unassigned') !!}</span>
|
||||
|
||||
<small class="label pull-right bg-green">{{count($unassigned)}}</small>
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="{{url('trash')}}">
|
||||
<i class="fa fa-trash-o"></i> <span>{!! Lang::get('lang.trash') !!}</span>
|
||||
<?php $deleted = App\Model\helpdesk\Ticket\Tickets::where('status', '5')->get();?>
|
||||
<small class="label pull-right bg-green">{{count($deleted)}}</small>
|
||||
</a>
|
||||
</li>
|
||||
<li class="header">{!! Lang::get('lang.Updates') !!}</li>
|
||||
<li>
|
||||
<li class="header">{!! Lang::get('lang.settings-2') !!}</li>
|
||||
<li class="treeview @yield('Staffs')">
|
||||
<a href="#">
|
||||
<i class="fa fa-users"></i> <span>{!! Lang::get('lang.staffs') !!}</span> <i class="fa fa-angle-left pull-right"></i>
|
||||
</a>
|
||||
<ul class="treeview-menu">
|
||||
<li @yield('agents')><a href="{{ url('agents') }}"><i class="fa fa-user "></i>{!! Lang::get('lang.agents') !!}</a></li>
|
||||
<li @yield('departments')><a href="{{ url('departments') }}"><i class="fa fa-sitemap"></i>{!! Lang::get('lang.departments') !!}</a></li>
|
||||
<li @yield('teams')><a href="{{ url('teams') }}"><i class="fa fa-users"></i>{!! Lang::get('lang.teams') !!}</a></li>
|
||||
<li @yield('groups')><a href="{{ url('groups') }}"><i class="fa fa-users"></i>{!! Lang::get('lang.groups') !!}</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
|
||||
<li class="treeview @yield('Emails')">
|
||||
<a href="#">
|
||||
<i class="fa fa-envelope-o"></i>
|
||||
<span>{!! Lang::get('lang.email') !!}</span>
|
||||
<i class="fa fa-angle-left pull-right"></i>
|
||||
</a>
|
||||
<ul class="treeview-menu">
|
||||
<li @yield('emails')><a href="{{ url('emails') }}"><i class="fa fa-envelope"></i>{!! Lang::get('lang.emails') !!}</a></li>
|
||||
<li @yield('ban')><a href="{{ url('banlist') }}"><i class="fa fa-ban"></i>{!! Lang::get('lang.ban_lists') !!}</a></li>
|
||||
<li @yield('template')><a href="{{ url('list-directories') }}"><i class="fa fa-mail-forward"></i>{!! Lang::get('lang.templates') !!}</a></li>
|
||||
<li @yield('diagnostics')><a href="{{ url('getdiagno') }}"><i class="fa fa-plus"></i>{!! Lang::get('lang.diagnostics') !!}</a></li>
|
||||
<!-- <li><a href="#"><i class="fa fa-circle-o"></i> Auto Response</a></li> -->
|
||||
<!-- <li><a href="#"><i class="fa fa-circle-o"></i> Rules/a></li> -->
|
||||
<!-- <li><a href="#"><i class="fa fa-circle-o"></i> Breaklines</a></li> -->
|
||||
<!-- <li><a href="#"><i class="fa fa-circle-o"></i> Log</a></li> -->
|
||||
</ul>
|
||||
</li>
|
||||
|
||||
<li class="treeview @yield('Manage')">
|
||||
<a href="#">
|
||||
<i class="fa fa-cubes"></i>
|
||||
<span>{!! Lang::get('lang.manage') !!}</span>
|
||||
<i class="fa fa-angle-left pull-right"></i>
|
||||
</a>
|
||||
<ul class="treeview-menu">
|
||||
<li @yield('help')><a href="{{url('helptopic')}}"><i class="fa fa-file-text-o"></i>{!! Lang::get('lang.help_topics') !!}</a></li>
|
||||
<li @yield('sla')><a href="{{url('sla')}}"><i class="fa fa-clock-o"></i>{!! Lang::get('lang.sla_plans') !!}</a></li>
|
||||
<li @yield('forms')><a href="{{url('forms')}}"><i class="fa fa-file-text"></i>{!! Lang::get('lang.forms') !!}</a></li>
|
||||
<li @yield('workflow')><a href="{{url('workflow')}}"><i class="fa fa-sitemap"></i>{!! Lang::get('lang.workflow') !!}</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
|
||||
<li class="treeview @yield('Settings')">
|
||||
<a href="#">
|
||||
<i class="fa fa-cog"></i>
|
||||
<span>{!! Lang::get('lang.system-settings') !!}</span>
|
||||
<i class="fa fa-angle-left pull-right"></i>
|
||||
</a>
|
||||
<ul class="treeview-menu">
|
||||
<li @yield('company')><a href="{{url('getcompany')}}"><i class="fa fa-building"></i>{!! Lang::get('lang.company') !!}</a></li>
|
||||
<li @yield('system')><a href="{{url('getsystem')}}"><i class="fa fa-laptop"></i>{!! Lang::get('lang.system') !!}</a></li>
|
||||
<li @yield('email')><a href="{{url('getemail')}}"><i class="fa fa-at"></i>{!! Lang::get('lang.email') !!}</a></li>
|
||||
<li @yield('tickets')><a href="{{url('getticket')}}"><i class="fa fa-file-text"></i>{!! Lang::get('lang.ticket') !!}</a></li>
|
||||
<li @yield('auto-response')><a href="{{url('getresponder')}}"><i class="fa fa-reply-all"></i>{!! Lang::get('lang.auto_response') !!}</a></li>
|
||||
<li @yield('alert')><a href="{{url('getalert')}}"><i class="fa fa-bell"></i>{!! Lang::get('lang.alert_notices') !!}</a></li>
|
||||
<li @yield('languages')><a href="{{url('languages')}}"><i class="fa fa-language"></i>{!! Lang::get('lang.language') !!}</a></li>
|
||||
<li @yield('cron')><a href="{{url('job-scheduler')}}"><i class="fa fa-hourglass"></i>{!! Lang::get('lang.cron') !!}</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="treeview @yield('Themes')">
|
||||
<a href="#">
|
||||
<i class="fa fa-pie-chart"></i>
|
||||
<span>{!! Lang::get('lang.widgets') !!}</span>
|
||||
<i class="fa fa-angle-left pull-right"></i>
|
||||
</a>
|
||||
<ul class="treeview-menu">
|
||||
<li @yield('widget')><a href="{{ url('widgets') }}"><i class="fa fa-list-alt"></i> {!! Lang::get('lang.widgets') !!}</a></li>
|
||||
<li @yield('socail')><a href="{{ url('social-buttons') }}"><i class="fa fa-cubes"></i> {!! Lang::get('lang.social') !!}</a></li>
|
||||
|
||||
|
||||
|
||||
</ul>
|
||||
</li>
|
||||
<li class="treeview @yield('Plugins')">
|
||||
<a href="{{ url('plugins') }}">
|
||||
<i class="fa fa-plug"></i>
|
||||
<span>{!! Lang::get('lang.plugin') !!}</span>
|
||||
<!-- <i class="fa fa-angle-left pull-right"></i> -->
|
||||
</a>
|
||||
<!-- <ul class="treeview-menu">
|
||||
<li @yield('plugin')><a href="{{ url('plugins') }}"><i class="fa fa-circle-o"></i>{!! Lang::get('lang.view-all')!!}</a></li>
|
||||
<li @yield('a')><a href="#"><i class="fa fa-circle-o"></i>{!! Lang::get('lang.add-new')!!}</a></li>
|
||||
|
||||
|
||||
|
||||
</ul> -->
|
||||
</li>
|
||||
<li class="header">{!! Lang::get('lang.Updates') !!}</li>
|
||||
<li @yield('update')>
|
||||
<?php $update = App\Model\helpdesk\Utility\Version_Check::where('id','=',1)->first();
|
||||
if($update->current_version == $update->new_version){?>
|
||||
<a href="{!! URL::route('checkupdate') !!}" id="checkUpdate">
|
||||
@@ -206,7 +273,8 @@ $i = count($tickets);
|
||||
</a>
|
||||
<?php } ?>
|
||||
</li>
|
||||
</section>
|
||||
</ul>
|
||||
</section>
|
||||
<!-- /.sidebar -->
|
||||
</aside>
|
||||
|
||||
@@ -231,7 +299,7 @@ $i = count($tickets);
|
||||
<?php
|
||||
$company = App\Model\helpdesk\Settings\Company::where('id','=','1')->first();
|
||||
?>
|
||||
<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>
|
||||
<strong>{!! Lang::get('lang.copyright') !!} © {!! date('Y') !!} <a href="{!! $company->website !!}" target="_blank">{!! $company->company_name !!}</a>.</strong> {!! Lang::get('lang.all_rights_reserved') !!}. {!! Lang::get('lang.powered_by') !!} <a href="http://www.faveohelpdesk.com/" target="_blank">Faveo</a>
|
||||
</footer>
|
||||
</div><!-- ./wrapper -->
|
||||
<!-- jQuery 2.1.3 -->
|
||||
|
Reference in New Issue
Block a user