update v 1.0.7.5
This commit is contained in:
@@ -17,7 +17,6 @@ class="active"
|
||||
<!-- header -->
|
||||
@section('PageHeader')
|
||||
|
||||
|
||||
@stop
|
||||
<!-- /header -->
|
||||
<!-- breadcrumbs -->
|
||||
@@ -29,100 +28,121 @@ class="active"
|
||||
<!-- /breadcrumbs -->
|
||||
<!-- content -->
|
||||
@section('content')
|
||||
|
||||
<!-- open a form -->
|
||||
|
||||
{!! Form::open(array('action' => 'Admin\helpdesk\AgentController@store' , 'method' => 'post') )!!}
|
||||
|
||||
|
||||
<div class="box box-primary">
|
||||
<div class="content-header">
|
||||
|
||||
<h4>Create {!! Form::submit(Lang::get('lang.save'),['class'=>'form-group btn btn-primary pull-right'])!!}</h4>
|
||||
|
||||
<div class="box-header with-border">
|
||||
<h3 class="box-title">{!! Lang::get('lang.create_an_agent') !!}</h3>
|
||||
</div>
|
||||
|
||||
<div class="box-body">
|
||||
|
||||
@if(Session::has('errors'))
|
||||
<?php //dd($errors); ?>
|
||||
<div class="alert alert-danger alert-dismissable">
|
||||
<i class="fa fa-ban"></i>
|
||||
<b>{!! Lang::get('lang.alert') !!}!</b>
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
<br/>
|
||||
@if($errors->first('user_name'))
|
||||
<li class="error-message-padding">{!! $errors->first('user_name', ':message') !!}</li>
|
||||
@endif
|
||||
@if($errors->first('first_name'))
|
||||
<li class="error-message-padding">{!! $errors->first('first_name', ':message') !!}</li>
|
||||
@endif
|
||||
@if($errors->first('last_name'))
|
||||
<li class="error-message-padding">{!! $errors->first('last_name', ':message') !!}</li>
|
||||
@endif
|
||||
@if($errors->first('email'))
|
||||
<li class="error-message-padding">{!! $errors->first('email', ':message') !!}</li>
|
||||
@endif
|
||||
@if($errors->first('ext'))
|
||||
<li class="error-message-padding">{!! $errors->first('ext', ':message') !!}</li>
|
||||
@endif
|
||||
@if($errors->first('phone_number'))
|
||||
<li class="error-message-padding">{!! $errors->first('phone_number', ':message') !!}</li>
|
||||
@endif
|
||||
@if($errors->first('mobile'))
|
||||
<li class="error-message-padding">{!! $errors->first('mobile', ':message') !!}</li>
|
||||
@endif
|
||||
@if($errors->first('active'))
|
||||
<li class="error-message-padding">{!! $errors->first('active', ':message') !!}</li>
|
||||
@endif
|
||||
@if($errors->first('role'))
|
||||
<li class="error-message-padding">{!! $errors->first('role', ':message') !!}</li>
|
||||
@endif
|
||||
@if($errors->first('group'))
|
||||
<li class="error-message-padding">{!! $errors->first('group', ':message') !!}</li>
|
||||
@endif
|
||||
@if($errors->first('primary_department'))
|
||||
<li class="error-message-padding">{!! $errors->first('primary_department', ':message') !!}</li>
|
||||
@endif
|
||||
@if($errors->first('agent_time_zone'))
|
||||
<li class="error-message-padding">{!! $errors->first('agent_time_zone', ':message') !!}</li>
|
||||
@endif
|
||||
@if($errors->first('team'))
|
||||
<li class="error-message-padding">{!! $errors->first('team', ':message') !!}</li>
|
||||
@endif
|
||||
</div>
|
||||
@endif
|
||||
@if(Session::has('fails2'))
|
||||
<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/>
|
||||
<li class="error-message-padding">{!! Session::get('fails2') !!}</li>
|
||||
</div>
|
||||
@endif
|
||||
<div class="row">
|
||||
<!-- username -->
|
||||
<div class="col-xs-4 form-group {{ $errors->has('user_name') ? 'has-error' : '' }}">
|
||||
|
||||
{!! Form::label('user_name',Lang::get('lang.user_name')) !!}
|
||||
{!! $errors->first('user_name', '<spam class="help-block">:message</spam>') !!}
|
||||
{!! Form::label('user_name',Lang::get('lang.user_name')) !!} <span class="text-red"> *</span>
|
||||
{!! Form::text('user_name',null,['class' => 'form-control']) !!}
|
||||
|
||||
</div>
|
||||
<!-- firstname -->
|
||||
<div class="col-xs-4 form-group {{ $errors->has('first_name') ? 'has-error' : '' }}">
|
||||
|
||||
{!! Form::label('first_name',Lang::get('lang.first_name')) !!}
|
||||
{!! $errors->first('first_name', '<spam class="help-block">:message</spam>') !!}
|
||||
{!! Form::label('first_name',Lang::get('lang.first_name')) !!} <span class="text-red"> *</span>
|
||||
{!! Form::text('first_name',null,['class' => 'form-control']) !!}
|
||||
|
||||
</div>
|
||||
<!-- lastname -->
|
||||
<div class="col-xs-4 form-group {{ $errors->has('last_name') ? 'has-error' : '' }}">
|
||||
|
||||
{!! Form::label('last_name',Lang::get('lang.last_name')) !!}
|
||||
{!! $errors->first('last_name', '<spam class="help-block">:message</spam>') !!}
|
||||
{!! Form::label('last_name',Lang::get('lang.last_name')) !!} <span class="text-red"> *</span>
|
||||
{!! Form::text('last_name',null,['class' => 'form-control']) !!}
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<!-- email address -->
|
||||
<div class="col-xs-4 form-group {{ $errors->has('email') ? 'has-error' : '' }}">
|
||||
|
||||
{!! Form::label('email',Lang::get('lang.email_address')) !!}
|
||||
{!! $errors->first('email', '<spam class="help-block">:message</spam>') !!}
|
||||
{!! Form::label('email',Lang::get('lang.email_address')) !!} <span class="text-red"> *</span>
|
||||
{!! Form::email('email',null,['class' => 'form-control']) !!}
|
||||
|
||||
</div>
|
||||
|
||||
<div class="col-xs-1 form-group {{ $errors->has('ext') ? 'has-error' : '' }}">
|
||||
|
||||
<label for="ext">{!! Lang::get('lang.ext') !!}</label>
|
||||
{!! $errors->first('ext', '<spam class="help-block">:message</spam>') !!}
|
||||
{!! Form::text('ext',null,['class' => 'form-control']) !!}
|
||||
</div>
|
||||
<!--country code-->
|
||||
<div class="col-xs-1 form-group {{ Session::has('country_code') ? 'has-error' : '' }}">
|
||||
|
||||
{!! Form::label('country_code',Lang::get('lang.country-code')) !!}
|
||||
{!! Form::text('country_code',null,['class' => 'form-control', 'placeholder' => $phonecode, 'title' => Lang::get('lang.enter-country-phone-code')]) !!}
|
||||
|
||||
</div>
|
||||
|
||||
<!-- phone -->
|
||||
<div class="col-xs-3 form-group {{ $errors->has('phone_number') ? 'has-error' : '' }}">
|
||||
|
||||
{!! Form::label('phone_number',Lang::get('lang.phone')) !!}
|
||||
{!! $errors->first('phone_number', '<spam class="help-block">:message</spam>') !!}
|
||||
{!! Form::text('phone_number',null,['class' => 'form-control']) !!}
|
||||
|
||||
</div>
|
||||
|
||||
<!-- Mobile -->
|
||||
<div class="col-xs-4 form-group {{ $errors->has('mobile') ? 'has-error' : '' }}">
|
||||
|
||||
<div class="col-xs-3 form-group {{ $errors->has('mobile') ? 'has-error' : '' }}">
|
||||
{!! Form::label('mobile',Lang::get('lang.mobile_number')) !!}
|
||||
{!! $errors->first('mobile', '<spam class="help-block">:message</spam>') !!}
|
||||
{!! Form::text('mobile',null,['class' => 'form-control']) !!}
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div>
|
||||
|
||||
<h4>{{Lang::get('lang.agent_signature')}}</h4>
|
||||
|
||||
<h4>{!! Lang::get('lang.agent_signature') !!}</h4>
|
||||
</div>
|
||||
|
||||
<div class="">
|
||||
|
||||
{!! Form::textarea('agent_sign',null,['class' => 'form-control','size' => '30x5']) !!}
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<div>
|
||||
<h4>{{Lang::get('lang.account_status_setting')}}</h4>
|
||||
</div>
|
||||
@@ -130,9 +150,7 @@ class="active"
|
||||
<div class="col-xs-6">
|
||||
<!-- acccount type -->
|
||||
<div class="form-group {{ $errors->has('active') ? 'has-error' : '' }}">
|
||||
|
||||
{!! Form::label('active',Lang::get('lang.status')) !!}
|
||||
{!! $errors->first('active', '<spam class="help-block">:message</spam>') !!}
|
||||
<div class="row">
|
||||
<div class="col-xs-3">
|
||||
{!! Form::radio('active','1',true) !!} {{Lang::get('lang.active')}}
|
||||
@@ -141,14 +159,10 @@ class="active"
|
||||
{!! Form::radio('active','0',null) !!} {{Lang::get('lang.inactive')}}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<!-- Role -->
|
||||
<div class="form-group {{ $errors->has('role') ? 'has-error' : '' }}">
|
||||
|
||||
{!! Form::label('role',Lang::get('lang.role')) !!}
|
||||
{!! $errors->first('role', '<spam class="help-block">:message</spam>') !!}
|
||||
<div class="row">
|
||||
<div class="col-xs-3">
|
||||
{!! Form::radio('role','admin',true) !!} {{Lang::get('lang.admin')}}
|
||||
@@ -158,55 +172,40 @@ class="active"
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="col-xs-6">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<!-- assigned group -->
|
||||
<div class="col-xs-4 form-group {{ $errors->has('assign_group') ? 'has-error' : '' }}">
|
||||
|
||||
{!! Form::label('assign_group',Lang::get('lang.assigned_group')) !!}
|
||||
{!! $errors->first('assign_group', '<spam class="help-block">:message</spam>') !!}
|
||||
{!!Form::select('assign_group',[''=>'Select a Group','Groups'=>$groups->lists('name','id')],null,['class' => 'form-control select']) !!}
|
||||
|
||||
<div class="col-xs-4 form-group {{ $errors->has('group') ? 'has-error' : '' }}">
|
||||
{!! Form::label('assign_group',Lang::get('lang.assigned_group')) !!} <span class="text-red"> *</span>
|
||||
{!!Form::select('group',[''=>Lang::get('lang.select_a_group'),Lang::get('lang.groups')=>$groups->lists('name','id')->toArray()],null,['class' => 'form-control select']) !!}
|
||||
</div>
|
||||
|
||||
<!-- primary dept -->
|
||||
<div class="col-xs-4 form-group {{ $errors->has('primary_dpt') ? 'has-error' : '' }}">
|
||||
|
||||
{!! Form::label('primary_dpt',Lang::get('lang.primary_department')) !!}
|
||||
{!! $errors->first('primary_dpt', '<spam class="help-block">:message</spam>') !!}
|
||||
{!! Form::select('primary_dpt', [''=>'Select a Department','Departments'=>$departments->lists('name','id')],null,['class' => 'form-control select']) !!}
|
||||
|
||||
<div class="col-xs-4 form-group {{ $errors->has('primary_department') ? 'has-error' : '' }}">
|
||||
{!! Form::label('primary_dpt',Lang::get('lang.primary_department')) !!} <span class="text-red"> *</span>
|
||||
{!! Form::select('primary_department', [''=>Lang::get('lang.select_a_department'),Lang::get('lang.departments')=>$departments->lists('name','id')->toArray()],null,['class' => 'form-control select']) !!}
|
||||
</div>
|
||||
|
||||
<!-- timezone -->
|
||||
<div class="col-xs-4 form-group {{ $errors->has('agent_tzone') ? 'has-error' : '' }}">
|
||||
|
||||
{!! Form::label('agent_tzone',Lang::get('lang.agent_time_zone')) !!}
|
||||
{!! $errors->first('agent_tzone', '<spam class="help-block">:message</spam>') !!}
|
||||
{!! Form::select('agent_tzone', [''=>'Select a Time Zone', 'Time Zones'=>$timezones->lists('name','id')],null,['class' => 'form-control select']) !!}
|
||||
|
||||
<div class="col-xs-4 form-group {{ $errors->has('agent_time_zone') ? 'has-error' : '' }}">
|
||||
{!! Form::label('agent_tzone',Lang::get('lang.agent_time_zone')) !!} <span class="text-red"> *</span>
|
||||
{!! Form::select('agent_time_zone', [''=>Lang::get('lang.select_a_time_zone'),Lang::get('lang.time_zones')=>$timezones->lists('name','id')->toArray()],null,['class' => 'form-control select']) !!}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Assign team -->
|
||||
|
||||
<div class="{{ $errors->has('team_id') ? 'has-error' : '' }}">
|
||||
<h4>{{Lang::get('lang.assigned_team')}}</h4>
|
||||
{!! $errors->first('team_id', '<spam class="help-block">Assign Team is Required</spam>') !!}
|
||||
|
||||
<div class="form-group {{ $errors->has('team') ? 'has-error' : '' }}">
|
||||
{!! Form::label('agent_tzone',Lang::get('lang.assigned_team')) !!} <span class="text-red"> *</span>
|
||||
@while (list($key, $val) = each($teams))
|
||||
<div class="form-group ">
|
||||
<input type="checkbox" name="team[]" value="<?php echo $val; ?>" > <?php echo $key; ?><br/>
|
||||
</div>
|
||||
@endwhile
|
||||
</div>
|
||||
|
||||
@while (list($key, $val) = each($teams))
|
||||
<div class="form-group ">
|
||||
<input type="checkbox" name="team_id[]" value="<?php echo $val; ?>" > <?php echo $key; ?><br/>
|
||||
</div>
|
||||
@endwhile
|
||||
|
||||
</div>
|
||||
@stop
|
||||
<div class="box-footer">
|
||||
{!! Form::submit(Lang::get('lang.submit'),['class'=>'form-group btn btn-primary'])!!}
|
||||
</div>
|
||||
</div>
|
||||
{!!Form::close()!!}
|
||||
@stop
|
||||
@@ -12,7 +12,6 @@ active
|
||||
class="active"
|
||||
@stop
|
||||
|
||||
|
||||
@section('HeadInclude')
|
||||
@stop
|
||||
<!-- header -->
|
||||
@@ -22,7 +21,6 @@ class="active"
|
||||
<!-- <small>Add</small> -->
|
||||
<!-- </h3> -->
|
||||
|
||||
|
||||
@stop
|
||||
<!-- /header -->
|
||||
<!-- breadcrumbs -->
|
||||
@@ -36,31 +34,87 @@ class="active"
|
||||
@section('content')
|
||||
|
||||
<!-- open a form -->
|
||||
|
||||
<?php //dd($user->agent_tzone); ?>
|
||||
{!! Form::model($user, ['url' => 'agents/'.$user->id,'method' => 'PATCH'] )!!}
|
||||
|
||||
<!-- <section class="content"> -->
|
||||
<!-- <section class="content"> -->
|
||||
<div class="box box-primary">
|
||||
<div class="content-header">
|
||||
<h4>Edit {!! Form::submit(Lang::get('lang.save'),['class'=>'form-group btn btn-primary pull-right'])!!}</h4>
|
||||
<div class="box-header with-border">
|
||||
<h3 class="box-title">{!! Lang::get('lang.edit_an_agent') !!}</h3>
|
||||
</div>
|
||||
<div class="box-body">
|
||||
|
||||
@if(Session::has('errors'))
|
||||
<?php //dd($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('user_name'))
|
||||
<li class="error-message-padding">{!! $errors->first('user_name', ':message') !!}</li>
|
||||
@endif
|
||||
@if($errors->first('first_name'))
|
||||
<li class="error-message-padding">{!! $errors->first('first_name', ':message') !!}</li>
|
||||
@endif
|
||||
@if($errors->first('last_name'))
|
||||
<li class="error-message-padding">{!! $errors->first('last_name', ':message') !!}</li>
|
||||
@endif
|
||||
@if($errors->first('email'))
|
||||
<li class="error-message-padding">{!! $errors->first('email', ':message') !!}</li>
|
||||
@endif
|
||||
@if($errors->first('ext'))
|
||||
<li class="error-message-padding">{!! $errors->first('ext', ':message') !!}</li>
|
||||
@endif
|
||||
@if($errors->first('phone_number'))
|
||||
<li class="error-message-padding">{!! $errors->first('phone_number', ':message') !!}</li>
|
||||
@endif
|
||||
@if($errors->first('mobile'))
|
||||
<li class="error-message-padding">{!! $errors->first('mobile', ':message') !!}</li>
|
||||
@endif
|
||||
@if($errors->first('active'))
|
||||
<li class="error-message-padding">{!! $errors->first('active', ':message') !!}</li>
|
||||
@endif
|
||||
@if($errors->first('role'))
|
||||
<li class="error-message-padding">{!! $errors->first('role', ':message') !!}</li>
|
||||
@endif
|
||||
@if($errors->first('group'))
|
||||
<li class="error-message-padding">{!! $errors->first('group', ':message') !!}</li>
|
||||
@endif
|
||||
@if($errors->first('primary_department'))
|
||||
<li class="error-message-padding">{!! $errors->first('primary_department', ':message') !!}</li>
|
||||
@endif
|
||||
@if($errors->first('agent_time_zone'))
|
||||
<li class="error-message-padding">{!! $errors->first('agent_time_zone', ':message') !!}</li>
|
||||
@endif
|
||||
@if($errors->first('team'))
|
||||
<li class="error-message-padding">{!! $errors->first('team', ':message') !!}</li>
|
||||
@endif
|
||||
</div>
|
||||
@endif
|
||||
@if(Session::has('fails2'))
|
||||
<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/>
|
||||
<li class="error-message-padding">{!! Session::get('fails2') !!}</li>
|
||||
</div>
|
||||
@endif
|
||||
<div class="row">
|
||||
<!-- username -->
|
||||
<div class="col-xs-4 form-group {{ $errors->has('user_name') ? 'has-error' : '' }}">
|
||||
|
||||
{!! Form::label('user_name',Lang::get('lang.user_name')) !!}
|
||||
{!! $errors->first('user_name', '<spam class="help-block">:message</spam>') !!}
|
||||
{!! Form::text('user_name',null,['disabled' => 'disabled','class' => 'form-control']) !!}
|
||||
{!! Form::label('user_name',Lang::get('lang.user_name')) !!} <span class="text-red"> *</span>
|
||||
|
||||
{!! Form::text('user_name',null,['class' => 'form-control']) !!}
|
||||
|
||||
</div>
|
||||
|
||||
<!-- firstname -->
|
||||
<div class="col-xs-4 form-group {{ $errors->has('first_name') ? 'has-error' : '' }}">
|
||||
|
||||
{!! Form::label('first_name',Lang::get('lang.first_name')) !!}
|
||||
{!! $errors->first('first_name', '<spam class="help-block">:message</spam>') !!}
|
||||
{!! Form::label('first_name',Lang::get('lang.first_name')) !!} <span class="text-red"> *</span>
|
||||
|
||||
{!! Form::text('first_name',null,['class' => 'form-control']) !!}
|
||||
|
||||
</div>
|
||||
@@ -68,8 +122,8 @@ class="active"
|
||||
<!-- Lastname -->
|
||||
<div class="col-xs-4 form-group {{ $errors->has('last_name') ? 'has-error' : '' }}">
|
||||
|
||||
{!! Form::label('last_name',Lang::get('lang.last_name')) !!}
|
||||
{!! $errors->first('last_name', '<spam class="help-block">:message</spam>') !!}
|
||||
{!! Form::label('last_name',Lang::get('lang.last_name')) !!} <span class="text-red"> *</span>
|
||||
|
||||
{!! Form::text('last_name',null,['class' => 'form-control']) !!}
|
||||
|
||||
</div>
|
||||
@@ -80,8 +134,8 @@ class="active"
|
||||
<!-- Email -->
|
||||
<div class="col-xs-4 form-group {{ $errors->has('email') ? 'has-error' : '' }}">
|
||||
|
||||
{!! Form::label('email',Lang::get('lang.email_address')) !!}
|
||||
{!! $errors->first('email', '<spam class="help-block">:message</spam>') !!}
|
||||
{!! Form::label('email',Lang::get('lang.email_address')) !!} <span class="text-red"> *</span>
|
||||
|
||||
{!! Form::email('email',null,['class' => 'form-control']) !!}
|
||||
|
||||
</div>
|
||||
@@ -89,25 +143,31 @@ class="active"
|
||||
<div class="col-xs-1 form-group {{ $errors->has('ext') ? 'has-error' : '' }}">
|
||||
|
||||
<label for="ext">EXT</label>
|
||||
{!! $errors->first('ext', '<spam class="help-block">:message</spam>') !!}
|
||||
|
||||
{!! Form::text('ext',null,['class' => 'form-control']) !!}
|
||||
|
||||
</div>
|
||||
<!--country code-->
|
||||
<div class="col-xs-1 form-group {{ Session::has('country_code') ? 'has-error' : '' }}">
|
||||
|
||||
{!! Form::label('country_code',Lang::get('lang.country-code')) !!}
|
||||
{!! Form::text('country_code',null,['class' => 'form-control', 'placeholder' => $phonecode, 'title' => Lang::get('lang.enter-country-phone-code')]) !!}
|
||||
|
||||
</div>
|
||||
<!-- phone -->
|
||||
<div class="col-xs-3 form-group {{ $errors->has('phone_number') ? 'has-error' : '' }}">
|
||||
|
||||
{!! Form::label('phone_number',Lang::get('lang.phone')) !!}
|
||||
{!! $errors->first('phone_number', '<spam class="help-block">Invalid Phone Number</spam>') !!}
|
||||
|
||||
{!! Form::text('phone_number',null,['class' => 'form-control']) !!}
|
||||
|
||||
</div>
|
||||
|
||||
<!-- Mobile -->
|
||||
<div class="col-xs-4 form-group {{ $errors->has('mobile') ? 'has-error' : '' }}">
|
||||
<div class="col-xs-3 form-group {{ $errors->has('mobile') ? 'has-error' : '' }}">
|
||||
|
||||
{!! Form::label('mobile',Lang::get('lang.mobile_number')) !!}
|
||||
{!! $errors->first('mobile', '<spam class="help-block">Invalid Mobile Number</spam>') !!}
|
||||
|
||||
{!! Form::text('mobile',null,['class' => 'form-control']) !!}
|
||||
|
||||
</div>
|
||||
@@ -136,7 +196,7 @@ class="active"
|
||||
<div class="form-group {{ $errors->has('active') ? 'has-error' : '' }}">
|
||||
|
||||
{!! Form::label('active',Lang::get('lang.status')) !!}
|
||||
{!! $errors->first('active', '<spam class="help-block">:message</spam>') !!}
|
||||
|
||||
<div class="row">
|
||||
<div class="col-xs-3">
|
||||
{!! Form::radio('active','1',true) !!} {{ Lang::get('lang.active') }}
|
||||
@@ -151,7 +211,7 @@ class="active"
|
||||
<div class="form-group {{ $errors->has('role') ? 'has-error' : '' }}">
|
||||
|
||||
{!! Form::label('role',Lang::get('lang.role')) !!}
|
||||
{!! $errors->first('role', '<spam class="help-block">:message</spam>') !!}
|
||||
|
||||
<div class="row">
|
||||
<div class="col-xs-3">
|
||||
{!! Form::radio('role','admin',true) !!} {{Lang::get('lang.admin')}}
|
||||
@@ -208,35 +268,34 @@ class="active"
|
||||
</div>
|
||||
<div class="row">
|
||||
<!-- assigned group -->
|
||||
<div class="col-xs-4 form-group {{ $errors->has('assign_group') ? 'has-error' : '' }}">
|
||||
{!! Form::label('assign_group', Lang::get('lang.assigned_group')) !!}
|
||||
{!! $errors->first('assign_group', '<spam class="help-block">:message</spam>') !!}
|
||||
{!!Form::select('assign_group', $groups->lists('name','id'),null,['class' => 'form-control select']) !!}
|
||||
<div class="col-xs-4 form-group {{ $errors->has('group') ? 'has-error' : '' }}">
|
||||
{!! Form::label('assign_group', Lang::get('lang.assigned_group')) !!} <span class="text-red"> *</span>
|
||||
|
||||
{!!Form::select('group',[''=>Lang::get('lang.select_a_group'), Lang::get('lang.groups')=>$groups->lists('name','id')->toArray()],$user->assign_group,['class' => 'form-control select']) !!}
|
||||
</div>
|
||||
|
||||
<!-- primary department -->
|
||||
<div class="col-xs-4 form-group {{ $errors->has('primary_dpt') ? 'has-error' : '' }}">
|
||||
{!! Form::label('primary_dpt', Lang::get('lang.primary_department')) !!}
|
||||
{!! $errors->first('primary_dpt', '<spam class="help-block">:message</spam>') !!}
|
||||
{!!Form::select('primary_dpt', $departments->lists('name','id'),null,['class' => 'form-control select']) !!}
|
||||
<div class="col-xs-4 form-group {{ $errors->has('primary_department') ? 'has-error' : '' }}">
|
||||
{!! Form::label('primary_dpt', Lang::get('lang.primary_department')) !!} <span class="text-red"> *</span>
|
||||
|
||||
{!!Form::select('primary_department', [''=>Lang::get('lang.select_a_department'), Lang::get('lang.departments')=>$departments->lists('name','id')->toArray()],$user->primary_dpt,['class' => 'form-control select']) !!}
|
||||
</div>
|
||||
|
||||
<!-- agent timezone -->
|
||||
<div class="col-xs-4 form-group {{ $errors->has('agent_tzone') ? 'has-error' : '' }}">
|
||||
{!! Form::label('agent_tzone', Lang::get('lang.agent_time_zone')) !!}
|
||||
{!! $errors->first('agent_tzone', '<spam class="help-block">:message</spam>') !!}
|
||||
{!!Form::select('agent_tzone', $timezones->lists('name','id'),null,['class' => 'form-control select']) !!}
|
||||
<div class="col-xs-4 form-group {{ $errors->has('agent_time_zone') ? 'has-error' : '' }}">
|
||||
{!! Form::label('agent_tzone', Lang::get('lang.agent_time_zone')) !!} <span class="text-red"> *</span>
|
||||
|
||||
{!!Form::select('agent_time_zone', [''=>Lang::get('lang.select_a_time_zone'), Lang::get('lang.time_zones')=>$timezones->lists('name','id')->toArray()],$user->agent_tzone,['class' => 'form-control select']) !!}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- team -->
|
||||
<div class="{{ $errors->has('team_id') ? 'has-error' : '' }}">
|
||||
<h4>{{Lang::get('lang.assigned_team')}}</h4>
|
||||
{!! $errors->first('team_id', '<spam class="help-block">Assign Team is Required</spam>') !!}
|
||||
<div class="{{ $errors->has('team') ? 'has-error' : '' }}">
|
||||
{!! Form::label('agent_tzone',Lang::get('lang.assigned_team')) !!} <span class="text-red"> *</span>
|
||||
</div>
|
||||
@while (list($key, $val) = each($teams))
|
||||
<div class="form-group ">
|
||||
<input type="checkbox" name="team_id[]" value="<?php echo $val; ?> " <?php
|
||||
<input type="checkbox" name="team[]" value="<?php echo $val; ?> " <?php
|
||||
if (in_array($val, $assign)) {
|
||||
echo ('checked');
|
||||
}
|
||||
@@ -244,4 +303,9 @@ class="active"
|
||||
</div>
|
||||
@endwhile
|
||||
</div>
|
||||
@stop
|
||||
<div class="box-footer">
|
||||
{!! Form::submit(Lang::get('lang.update'),['class'=>'form-group btn btn-primary'])!!}
|
||||
</div>
|
||||
</div>
|
||||
{!!Form::close()!!}
|
||||
@stop
|
||||
@@ -12,7 +12,6 @@ active
|
||||
class="active"
|
||||
@stop
|
||||
|
||||
|
||||
@section('HeadInclude')
|
||||
@stop
|
||||
<!-- header -->
|
||||
@@ -23,28 +22,22 @@ class="active"
|
||||
<!-- breadcrumbs -->
|
||||
@section('breadcrumbs')
|
||||
<ol class="breadcrumb">
|
||||
|
||||
</ol>
|
||||
@stop
|
||||
<!-- /breadcrumbs -->
|
||||
<!-- content -->
|
||||
@section('content')
|
||||
|
||||
|
||||
<div class="box box-primary">
|
||||
<div class="box-header">
|
||||
<h2 class="box-title">{!! Lang::get('lang.staffs') !!} </h2><a href="{{route('agents.create')}}" class="btn btn-primary pull-right">{{Lang::get('lang.create_agent')}}</a></div>
|
||||
|
||||
<h2 class="box-title">{!! Lang::get('lang.list_of_agents') !!} </h2><a href="{{route('agents.create')}}" class="btn btn-primary pull-right">{!! Lang::get('lang.create_an_agent') !!}</a></div>
|
||||
<div class="box-body table-responsive">
|
||||
<?php
|
||||
$user = App\User::where('role', '!=', 'user')->orderBy('id', 'ASC')->paginate(20);
|
||||
?>
|
||||
<!-- check whether success or not -->
|
||||
|
||||
@if(Session::has('success'))
|
||||
<div class="alert alert-success alert-dismissable">
|
||||
<i class="fa fa-check-circle"></i>
|
||||
<b>{!! Lang::get('lang.success') !!}</b>
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
{{Session::get('success')}}
|
||||
</div>
|
||||
@@ -58,6 +51,15 @@ class="active"
|
||||
{{Session::get('fails')}}
|
||||
</div>
|
||||
@endif
|
||||
<!-- Warning Message -->
|
||||
@if(Session::has('warning'))
|
||||
<div class="alert alert-warning alert-dismissable">
|
||||
<i class="fa fa-warning"></i>
|
||||
<b>{!! Lang::get('lang.warning') !!}!</b>
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
{{Session::get('warning')}}
|
||||
</div>
|
||||
@endif
|
||||
<!-- Agent table -->
|
||||
<table class="table table-bordered dataTable" style="overflow:hidden;">
|
||||
<tr>
|
||||
@@ -78,23 +80,21 @@ class="active"
|
||||
<td><a href="{{route('agents.edit', $use->id)}}"> {!! $use->user_name !!}</td>
|
||||
<?php
|
||||
if ($use->role == 'admin') {
|
||||
echo '<td><button class="btn btn-success btn-xs">Admin</button></td>';
|
||||
echo '<td><button class="btn btn-success btn-xs">' . Lang::get('lang.admin') . '</button></td>';
|
||||
} elseif ($use->role == 'agent') {
|
||||
echo '<td><button class="btn btn-primary btn-xs">Agent</button></td>';
|
||||
echo '<td><button class="btn btn-primary btn-xs">' . Lang::get('lang.agent') . '</button></td>';
|
||||
}
|
||||
?>
|
||||
<td>
|
||||
@if($use->active=='1')
|
||||
<span style="color:green">{{'Active'}}</span>
|
||||
<span style="color:green">{!! Lang::get('lang.active') !!}</span>
|
||||
@else
|
||||
<span style="color:red">{{'Inactive'}}</span>
|
||||
<span style="color:red">{!! Lang::get('lang.inactive') !!}</span>
|
||||
@endif
|
||||
|
||||
<?php
|
||||
$group = App\Model\helpdesk\Agent\Groups::whereId($use->assign_group)->first();
|
||||
$department = App\Model\helpdesk\Agent\Department::whereId($use->primary_dpt)->first();
|
||||
?>
|
||||
|
||||
<?php
|
||||
$group = App\Model\helpdesk\Agent\Groups::whereId($use->assign_group)->first();
|
||||
$department = App\Model\helpdesk\Agent\Department::whereId($use->primary_dpt)->first();
|
||||
?>
|
||||
<td>{{ $group->name }}</td>
|
||||
<td>{{ $department->name }}</td>
|
||||
<td>{{ UTC::usertimezone($use->created_at) }}</td>
|
||||
@@ -111,6 +111,5 @@ $department = App\Model\helpdesk\Agent\Department::whereId($use->primary_dpt)->f
|
||||
@endforeach
|
||||
</table>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
@stop
|
||||
@@ -30,69 +30,84 @@ class="active"
|
||||
<!-- /breadcrumbs -->
|
||||
<!-- content -->
|
||||
@section('content')
|
||||
|
||||
<!-- open a form -->
|
||||
{!! Form::open(array('action' => 'Admin\helpdesk\DepartmentController@store' , 'method' => 'post') )!!}
|
||||
|
||||
<div class="box box-primary">
|
||||
<div class="box-header">
|
||||
|
||||
<h4 class="box-title">{!! Lang::get('lang.create') !!}</h4> {!! Form::submit(Lang::get('lang.save'),['class'=>'form-group btn btn-primary pull-right'])!!}
|
||||
|
||||
</div>
|
||||
|
||||
<div class="box-body">
|
||||
|
||||
<div class="row">
|
||||
<!-- name -->
|
||||
<div class="col-xs-6 form-group {{ $errors->has('name') ? 'has-error' : '' }}">
|
||||
|
||||
{!! Form::label('name',Lang::get('lang.name')) !!}
|
||||
{!! $errors->first('name', '<spam class="help-block">:message</spam>') !!}
|
||||
{!! Form::text('name',null,['class' => 'form-control']) !!}
|
||||
|
||||
</div>
|
||||
<!-- account status -->
|
||||
<div class="col-xs-6 form-group {{ $errors->has('account_status') ? 'has-error' : '' }}">
|
||||
|
||||
{!! Form::label('type',Lang::get('lang.type')) !!}
|
||||
{!! $errors->first('account_status', '<spam class="help-block">:message</spam>') !!}
|
||||
|
||||
<div class="row">
|
||||
<div class="col-xs-2">
|
||||
{!! Form::radio('type','1',true) !!} {{Lang::get('lang.public')}}
|
||||
</div>
|
||||
<div class="col-xs-3">
|
||||
{!! Form::radio('type','0',null) !!} {{Lang::get('lang.private')}}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<!-- slaplan -->
|
||||
<div class="col-xs-6 form-group {{ $errors->has('sla') ? 'has-error' : '' }}">
|
||||
|
||||
{!! Form::label('sla',Lang::get('lang.SLA_plan')) !!}
|
||||
{!! $errors->first('sla', '<spam class="help-block">:message</spam>') !!}
|
||||
{!!Form::select('sla', ['SLA Plans'=>$slas->lists('grace_period','id')],null,['class' => 'form-control select']) !!}
|
||||
|
||||
</div>
|
||||
<!-- manager -->
|
||||
<div class="col-xs-6 form-group {{ $errors->has('manager') ? 'has-error' : '' }}">
|
||||
|
||||
{!! Form::label('manager',Lang::get('lang.manager')) !!}
|
||||
{!! $errors->first('manager', '<spam class="help-block">:message</spam>') !!}
|
||||
{!!Form::select('manager',[''=>'Select a Manager','Managers'=>$user->lists('user_name','id')],null,['class' => 'form-control select']) !!}
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
{!! Form::close() !!}
|
||||
<div class="box box-primary">
|
||||
<div class="box-header with-border">
|
||||
<h3 class="box-title">{!! Lang::get('lang.create_a_department') !!}</h3>
|
||||
</div>
|
||||
<div class="box-body">
|
||||
@if(Session::has('errors'))
|
||||
<?php //dd($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('account_status'))
|
||||
<li class="error-message-padding">{!! $errors->first('account_status', ':message') !!}</li>
|
||||
@endif
|
||||
@if($errors->first('sla'))
|
||||
<li class="error-message-padding">{!! $errors->first('sla', ':message') !!}</li>
|
||||
@endif
|
||||
@if($errors->first('manager'))
|
||||
<li class="error-message-padding">{!! $errors->first('manager', ':message') !!}</li>
|
||||
@endif
|
||||
@if($errors->first('outgoing_email'))
|
||||
<li class="error-message-padding">{!! $errors->first('outgoing_email', ':message') !!}</li>
|
||||
@endif
|
||||
</div>
|
||||
@endif
|
||||
<div class="row">
|
||||
<!-- name -->
|
||||
<div class="col-xs-6 form-group {{ $errors->has('name') ? 'has-error' : '' }}">
|
||||
{!! Form::label('name',Lang::get('lang.name')) !!} <span class="text-red"> *</span>
|
||||
{!! Form::text('name',null,['class' => 'form-control']) !!}
|
||||
</div>
|
||||
<!-- account status -->
|
||||
<div class="col-xs-6 form-group {{ $errors->has('account_status') ? 'has-error' : '' }}">
|
||||
{!! Form::label('type',Lang::get('lang.type')) !!}
|
||||
<div class="row">
|
||||
<div class="col-xs-2">
|
||||
{!! Form::radio('type','1',true) !!} {{Lang::get('lang.public')}}
|
||||
</div>
|
||||
<div class="col-xs-3">
|
||||
{!! Form::radio('type','0',null) !!} {{Lang::get('lang.private')}}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<!-- slaplan -->
|
||||
<div class="col-xs-6 form-group {{ $errors->has('sla') ? 'has-error' : '' }}">
|
||||
{!! Form::label('sla',Lang::get('lang.SLA_plan')) !!}
|
||||
{!!Form::select('sla', [''=>Lang::get('lang.select_a_sla'), Lang::get('lang.sla_plans')=>$slas->lists('grace_period','id')->toArray()],null,['class' => 'form-control select']) !!}
|
||||
</div>
|
||||
<!-- manager -->
|
||||
<div class="col-xs-6 form-group {{ $errors->has('manager') ? 'has-error' : '' }}">
|
||||
{!! Form::label('manager',Lang::get('lang.manager')) !!}
|
||||
{!!Form::select('manager',[''=>Lang::get('lang.select_a_manager'),Lang::get('lang.manager')=>$user->lists('user_name','id')->toArray()],null,['class' => 'form-control select']) !!}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="box-header with-border">
|
||||
<h4 class="box-title">{!! Lang::get('lang.outgoing_email_settings') !!}</h4>
|
||||
</div>
|
||||
<div class="box-body">
|
||||
<div class="row">
|
||||
<!-- sla -->
|
||||
<div class="col-xs-6 form-group {{ $errors->has('outgoing_email') ? 'has-error' : '' }}">
|
||||
{!! Form::label('outgoing_email',Lang::get('lang.outgoing_email')) !!}
|
||||
{!!Form::select('outgoing_email', ['' => Lang::get('lang.system_default'), Lang::get('lang.emails')=>$emails->lists('email_name','id')->toArray()],null,['class' => 'form-control select']) !!}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="box-footer">
|
||||
{!! Form::submit(Lang::get('lang.submit'),['class'=>'form-group btn btn-primary'])!!}
|
||||
</div>
|
||||
{!!Form::close()!!}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@stop
|
||||
@@ -16,8 +16,6 @@ class="active"
|
||||
@stop
|
||||
<!-- header -->
|
||||
@section('PageHeader')
|
||||
|
||||
|
||||
@stop
|
||||
<!-- /header -->
|
||||
<!-- breadcrumbs -->
|
||||
@@ -32,81 +30,86 @@ class="active"
|
||||
|
||||
<!-- open a form -->
|
||||
{!!Form::model($departments, ['url'=>'departments/'.$departments->id , 'method'=> 'PATCH'])!!}
|
||||
<div class="box box-primary">
|
||||
<div class="box-header with-border">
|
||||
<h3 class="box-title">{!! Lang::get('lang.edit_department') !!}</h3>
|
||||
</div>
|
||||
<div class="box-body">
|
||||
@if(Session::has('errors'))
|
||||
<?php //dd($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('account_status'))
|
||||
<li class="error-message-padding">{!! $errors->first('account_status', ':message') !!}</li>
|
||||
@endif
|
||||
@if($errors->first('sla'))
|
||||
<li class="error-message-padding">{!! $errors->first('sla', ':message') !!}</li>
|
||||
@endif
|
||||
@if($errors->first('manager'))
|
||||
<li class="error-message-padding">{!! $errors->first('manager', ':message') !!}</li>
|
||||
@endif
|
||||
@if($errors->first('outgoing_email'))
|
||||
<li class="error-message-padding">{!! $errors->first('outgoing_email', ':message') !!}</li>
|
||||
@endif
|
||||
</div>
|
||||
@endif
|
||||
<div class="row">
|
||||
<!-- name -->
|
||||
<div class="col-xs-6 form-group {{ $errors->has('name') ? 'has-error' : '' }}">
|
||||
{!! Form::label('name',Lang::get('lang.name')) !!} <span class="text-red"> *</span>
|
||||
{!! Form::text('name',null,['class' => 'form-control']) !!}
|
||||
</div>
|
||||
<!-- account status -->
|
||||
<div class="col-xs-6 form-group {{ $errors->has('account_status') ? 'has-error' : '' }}">
|
||||
{!! Form::label('type',Lang::get('lang.type')) !!}
|
||||
<div class="row">
|
||||
<div class="col-xs-2">
|
||||
{!! Form::radio('type','1',true) !!} {{Lang::get('lang.public')}}
|
||||
</div>
|
||||
<div class="col-xs-3">
|
||||
{!! Form::radio('type','0',null) !!} {{Lang::get('lang.private')}}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<!-- sla -->
|
||||
<div class="col-xs-6 form-group {{ $errors->has('sla') ? 'has-error' : '' }}">
|
||||
{!! Form::label('sla',Lang::get('lang.SLA_plan')) !!}
|
||||
{!!Form::select('sla', [''=>Lang::get('lang.select_a_sla'), Lang::get('lang.sla_plans')=>$slas->lists('grace_period','id')->toArray()],null,['class' => 'form-control select']) !!}
|
||||
</div>
|
||||
<!-- manager -->
|
||||
<div class="col-xs-6 form-group {{ $errors->has('manager') ? 'has-error' : '' }}">
|
||||
{!! Form::label('manager',Lang::get('lang.manager')) !!}
|
||||
{!!Form::select('manager',[null=>Lang::get('lang.select_a_manager'),Lang::get('lang.manager')=>$user->lists('user_name','id')->toArray()],null,['class' => 'form-control select']) !!}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="box-header with-border">
|
||||
<h4 class="box-title">{!! Lang::get('lang.outgoing_email_settings') !!}</h4>
|
||||
</div>
|
||||
<div class="box-body">
|
||||
<div class="row">
|
||||
<!-- sla -->
|
||||
<div class="col-xs-6 form-group {{ $errors->has('outgoing_email') ? 'has-error' : '' }}">
|
||||
{!! Form::label('outgoing_email',Lang::get('lang.outgoing_email')) !!}
|
||||
{!!Form::select('outgoing_email', ['' => Lang::get('lang.system_default'), Lang::get('lang.emails')=>$emails->lists('email_name','id')->toArray()],null,['class' => 'form-control select']) !!}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="box box-primary">
|
||||
<div class="box-header">
|
||||
|
||||
<h4 class="box-title">{!! Lang::get('lang.edit') !!}</h4> {!! Form::submit(Lang::get('lang.save'),['class'=>'form-group btn btn-primary pull-right'])!!}
|
||||
|
||||
</div>
|
||||
|
||||
<div class="box-body">
|
||||
|
||||
<div class="row">
|
||||
<!-- name -->
|
||||
<div class="col-xs-6 form-group {{ $errors->has('name') ? 'has-error' : '' }}">
|
||||
|
||||
{!! Form::label('name',Lang::get('lang.name')) !!}
|
||||
{!! $errors->first('name', '<spam class="help-block">:message</spam>') !!}
|
||||
{!! Form::text('name',null,['disabled'=>'disabled','class' => 'form-control']) !!}
|
||||
|
||||
</div>
|
||||
<!-- account status -->
|
||||
<div class="col-xs-6 form-group {{ $errors->has('account_status') ? 'has-error' : '' }}">
|
||||
|
||||
{!! Form::label('type',Lang::get('lang.type')) !!}
|
||||
{!! $errors->first('account_status', '<spam class="help-block">:message</spam>') !!}
|
||||
|
||||
<div class="row">
|
||||
<div class="col-xs-2">
|
||||
{!! Form::radio('type','1',true) !!} {{Lang::get('lang.public')}}
|
||||
</div>
|
||||
<div class="col-xs-3">
|
||||
{!! Form::radio('type','0',null) !!} {{Lang::get('lang.private')}}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<!-- sla -->
|
||||
<div class="col-xs-6 form-group {{ $errors->has('sla') ? 'has-error' : '' }}">
|
||||
|
||||
{!! Form::label('sla',Lang::get('lang.SLA_plan')) !!}
|
||||
{!! $errors->first('sla', '<spam class="help-block">:message</spam>') !!}
|
||||
{!!Form::select('sla', ['SLA Plans'=>$slas->lists('grace_period','id')],null,['class' => 'form-control select']) !!}
|
||||
|
||||
</div>
|
||||
<!-- manager -->
|
||||
<div class="col-xs-6 form-group {{ $errors->has('manager') ? 'has-error' : '' }}">
|
||||
|
||||
{!! Form::label('manager',Lang::get('lang.manager')) !!}
|
||||
{!! $errors->first('manager', '<spam class="help-block">:message</spam>') !!}
|
||||
{!!Form::select('manager',[null=>'Select a Manager','Managers'=>$user->lists('user_name','id')],null,['class' => 'form-control select']) !!}
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<hr>
|
||||
|
||||
<h4>Outgoing Email Settings</h4>
|
||||
<br/>
|
||||
|
||||
<div class="row">
|
||||
<!-- sla -->
|
||||
<div class="col-xs-6 form-group {{ $errors->has('outgoing_email') ? 'has-error' : '' }}">
|
||||
|
||||
{!! Form::label('outgoing_email',Lang::get('lang.outgoing_email')) !!}
|
||||
{!! $errors->first('outgoing_email', '<spam class="help-block">:message</spam>') !!}
|
||||
{!!Form::select('outgoing_email', ['' => 'System Default', 'Emails'=>$emails->lists('email_name','id')],null,['class' => 'form-control select']) !!}
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
{!!Form::close()!!}
|
||||
</div>
|
||||
</div>
|
||||
<div class="box-footer">
|
||||
<div class="form-group">
|
||||
<input type="checkbox" name="sys_department" @if($sys_department->department == $departments->id) checked disabled @endif> {{ Lang::get('lang.make-default-department')}}
|
||||
</div>
|
||||
{!! Form::submit(Lang::get('lang.update'),['class'=>'form-group btn btn-primary'])!!}
|
||||
</div>
|
||||
{!!Form::close()!!}
|
||||
</div>
|
||||
|
||||
@stop
|
||||
@@ -28,114 +28,97 @@ class="active"
|
||||
<!-- /breadcrumbs -->
|
||||
<!-- content -->
|
||||
@section('content')
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="box box-primary">
|
||||
<div class="box-header">
|
||||
<h2 class="box-title">{!! Lang::get('lang.departments') !!}</h2><a href="{{route('departments.create')}}" class="btn btn-primary pull-right">{{Lang::get('lang.create_department')}}</a></div>
|
||||
<div class="box-header">
|
||||
<h2 class="box-title">{!! Lang::get('lang.list_of_departments') !!}</h2><a href="{{route('departments.create')}}" class="btn btn-primary pull-right">{{Lang::get('lang.create_a_department')}}</a></div>
|
||||
<div class="box-body table-responsive ">
|
||||
<!-- check whether success or not -->
|
||||
@if(Session::has('success'))
|
||||
<div class="alert alert-success alert-dismissable">
|
||||
<i class="fa fa-check-circle"></i>
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
{!! Session::get('success') !!}
|
||||
</div>
|
||||
@endif
|
||||
<!-- failure message -->
|
||||
@if(Session::has('fails'))
|
||||
<div class="alert alert-danger alert-dismissable">
|
||||
<i class="fa fa-ban"></i>
|
||||
<b>{!! Lang::get('lang.fails') !!}!</b>
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
{!! Session::get('fails') !!}
|
||||
</div>
|
||||
@endif
|
||||
<!-- table -->
|
||||
<table class="table table-bordered dataTable" style="overflow:hidden;">
|
||||
<tr>
|
||||
<th>{{Lang::get('lang.name')}}</th>
|
||||
<th>{{Lang::get('lang.type')}}</th>
|
||||
<th>{{Lang::get('lang.sla_plan')}}</th>
|
||||
<th>{{Lang::get('lang.department_manager')}}</th>
|
||||
<th>{{Lang::get('lang.action')}}</th>
|
||||
</tr>
|
||||
<?php
|
||||
$default_department = App\Model\helpdesk\Settings\System::where('id', '=', '1')->first();
|
||||
$default_department = $default_department->department;
|
||||
?>
|
||||
@foreach($departments as $department)
|
||||
<tr>
|
||||
<td><a href="{{route('departments.edit', $department->id)}}"> {{$department -> name }}
|
||||
@if($default_department == $department->id)
|
||||
( Default )
|
||||
<?php
|
||||
$disable = 'disabled';
|
||||
?>
|
||||
@else
|
||||
<?php
|
||||
$disable = '';
|
||||
?>
|
||||
@endif
|
||||
</a></td>
|
||||
<td>
|
||||
@if($department->type=='1')
|
||||
<span style="color:green">{!! Lang::get('lang.public') !!}</span>
|
||||
@else
|
||||
<span style="color:red">{!! Lang::get('lang.private') !!}</span>
|
||||
@endif
|
||||
</td>
|
||||
<?php
|
||||
if ($department->manager == 0) {
|
||||
$manager = "";
|
||||
} else {
|
||||
$manager = App\User::whereId($department->manager)->first();
|
||||
$manager = $manager->user_name;
|
||||
}
|
||||
|
||||
<div class="box-body table-responsive ">
|
||||
if ($department->sla == null) {
|
||||
$sla = "";
|
||||
} else {
|
||||
$sla = App\Model\helpdesk\Manage\Sla_plan::whereId($department->sla)->first();
|
||||
$sla = $sla->grace_period;
|
||||
}
|
||||
?>
|
||||
|
||||
<td>{{ $sla }}</td>
|
||||
<td>{{ $manager }}</td>
|
||||
<td>
|
||||
{!! Form::open(['route'=>['departments.destroy', $department->id],'method'=>'DELETE']) !!}
|
||||
<a href="{{route('departments.edit', $department->id)}}" class="btn btn-info btn-xs btn-flat"><i class="fa fa-edit" style="color:black;"> </i> {!! Lang::get('lang.edit') !!}</a>
|
||||
{{-- @if($default_department == $department->id) --}}
|
||||
{{-- @else --}}
|
||||
<!-- To pop up a confirm Message -->
|
||||
{!! Form::button('<i class="fa fa-trash" style="color:black;"> </i> '.Lang::get('lang.delete'),
|
||||
['type' => 'submit',
|
||||
'class'=> 'btn btn-warning btn-xs btn-flat '.$disable,
|
||||
'onclick'=>'return confirm("Are you sure?")'])
|
||||
!!}
|
||||
{{-- @endif --}}
|
||||
|
||||
<!-- check whether success or not -->
|
||||
|
||||
@if(Session::has('success'))
|
||||
<div class="alert alert-success alert-dismissable">
|
||||
<i class="fa fa-check-circle"></i>
|
||||
<b>{!! Lang::get('lang.success') !!}</b>
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
{!! Session::get('success') !!}
|
||||
{!! Form::close() !!}
|
||||
</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</table>
|
||||
</div>
|
||||
@endif
|
||||
<!-- failure message -->
|
||||
@if(Session::has('fails'))
|
||||
<div class="alert alert-danger alert-dismissable">
|
||||
<i class="fa fa-ban"></i>
|
||||
<b>{!! Lang::get('lang.fails') !!}!</b>
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
{!! Session::get('fails') !!}
|
||||
</div>
|
||||
@endif
|
||||
<!-- table -->
|
||||
<table class="table table-bordered dataTable" style="overflow:hidden;">
|
||||
<tr>
|
||||
<tr>
|
||||
<th>{{Lang::get('lang.name')}}</th>
|
||||
<th>{{Lang::get('lang.type')}}</th>
|
||||
<th>{{Lang::get('lang.sla_plan')}}</th>
|
||||
<th>{{Lang::get('lang.department_manager')}}</th>
|
||||
<th>{{Lang::get('lang.action')}}</th>
|
||||
</tr>
|
||||
|
||||
<?php
|
||||
$default_department = App\Model\helpdesk\Settings\System::where('id','=','1')->first();
|
||||
$default_department = $default_department->department;
|
||||
?>
|
||||
|
||||
@foreach($departments as $department)
|
||||
<tr>
|
||||
<td><a href="{{route('departments.edit', $department->id)}}"> {{$department -> name }}
|
||||
@if($default_department == $department->id)
|
||||
( Default )
|
||||
<?php
|
||||
$disable = 'disabled';
|
||||
?>
|
||||
@else
|
||||
<?php
|
||||
$disable = '';
|
||||
?>
|
||||
@endif
|
||||
</a></td>
|
||||
<td>
|
||||
@if($department->type=='1')
|
||||
<span style="color:green">{{'Public'}}</span>
|
||||
@else
|
||||
<span style="color:red">{{'Private'}}</span>
|
||||
@endif
|
||||
</td>
|
||||
<?php
|
||||
if($department->manager == 0) {
|
||||
$manager ="";
|
||||
} else {
|
||||
$manager = App\User::whereId($department->manager)->first();
|
||||
$manager = $manager->user_name;
|
||||
}
|
||||
|
||||
if($department->sla == null){
|
||||
$sla = "";
|
||||
} else {
|
||||
$sla = App\Model\helpdesk\Manage\Sla_plan::whereId($department->sla)->first();
|
||||
$sla = $sla->grace_period;
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
<td>{{ $sla }}</td>
|
||||
<td>{{ $manager }}</td>
|
||||
<td>
|
||||
{!! Form::open(['route'=>['departments.destroy', $department->id],'method'=>'DELETE']) !!}
|
||||
<a href="{{route('departments.edit', $department->id)}}" class="btn btn-info btn-xs btn-flat"><i class="fa fa-edit" style="color:black;"> </i> Edit</a>
|
||||
{{-- @if($default_department == $department->id) --}}
|
||||
{{-- @else --}}
|
||||
<!-- To pop up a confirm Message -->
|
||||
{!! Form::button('<i class="fa fa-trash" style="color:black;"> </i> Delete',
|
||||
['type' => 'submit',
|
||||
'class'=> 'btn btn-warning btn-xs btn-flat '.$disable,
|
||||
'onclick'=>'return confirm("Are you sure?")'])
|
||||
!!}
|
||||
{{-- @endif --}}
|
||||
|
||||
{!! Form::close() !!}
|
||||
</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</td>
|
||||
</tr>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@stop
|
||||
@@ -17,7 +17,6 @@ class="active"
|
||||
<!-- header -->
|
||||
@section('PageHeader')
|
||||
|
||||
|
||||
@stop
|
||||
<!-- /header -->
|
||||
<!-- breadcrumbs -->
|
||||
@@ -29,121 +28,99 @@ class="active"
|
||||
<!-- /breadcrumbs -->
|
||||
<!-- content -->
|
||||
@section('content')
|
||||
|
||||
<!-- open a form -->
|
||||
|
||||
{!! Form::open(array('action' => 'Admin\helpdesk\GroupController@store' , 'method' => 'post') )!!}
|
||||
<div class="box box-primary">
|
||||
<div class="content-header">
|
||||
|
||||
<h4>{{Lang::get('lang.create')}} {!! Form::submit(Lang::get('lang.save'),['class'=>'form-group btn btn-primary pull-right'])!!}</h4>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="box-body">
|
||||
|
||||
<div class="row">
|
||||
<!-- name -->
|
||||
<div class="col-xs-4 form-group {{ $errors->has('name') ? 'has-error' : '' }}">
|
||||
|
||||
{!! Form::label('name',Lang::get('lang.name')) !!}
|
||||
{!! $errors->first('name', '<spam class="help-block">:message</spam>') !!}
|
||||
{!! Form::text('name',null,['class' => 'form-control']) !!}
|
||||
|
||||
</div>
|
||||
<!-- group status -->
|
||||
<div class="col-xs-6 form-group {{ $errors->has('group_status') ? 'has-error' : '' }}">
|
||||
|
||||
{!! Form::label('group_status',Lang::get('lang.status')) !!}
|
||||
{!! $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.active')}}
|
||||
</div>
|
||||
<div class="col-xs-3">
|
||||
{!! Form::radio('group_status','0',null) !!} {{Lang::get('lang.inactive')}}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<!-- can create ticket -->
|
||||
<div class="row">
|
||||
{!! Form::label('can_create_ticket',Lang::get('lang.can_create_ticket')) !!}
|
||||
<div class="col-xs-1">
|
||||
{!! Form::checkbox('can_create_ticket',1,null,['class' => 'checkbox']) !!}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
<!-- can_edit_ticket -->
|
||||
<div class="row">
|
||||
{!! Form::label('can_edit_ticket',Lang::get('lang.can_edit_ticket')) !!}
|
||||
<div class="col-xs-1">
|
||||
{!! Form::checkbox('can_edit_ticket',1,null,['class' => 'checkbox']) !!}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
<!-- can post ticket -->
|
||||
<div class="row">
|
||||
{!! Form::label('can_post_ticket',Lang::get('lang.can_post_ticket')) !!}
|
||||
<div class="col-xs-1">
|
||||
{!! Form::checkbox('can_post_ticket',1,null,['class' => 'checkbox']) !!}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
<!-- can_close_ticket -->
|
||||
<div class="row">
|
||||
{!! Form::label('can_close_ticket',Lang::get('lang.can_close_ticket')) !!}
|
||||
<div class="col-xs-1">
|
||||
{!! Form::checkbox('can_close_ticket',1,null,['class' => 'checkbox']) !!}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
<!-- can delete ticket -->
|
||||
<div class="row">
|
||||
{!! Form::label('can_delete_ticket',Lang::get('lang.can_delete_ticket')) !!}
|
||||
<div class="col-xs-1">
|
||||
{!! Form::checkbox('can_delete_ticket',1,null,['class' => 'checkbox']) !!}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
<!-- can assign ticket -->
|
||||
<div class="row">
|
||||
{!! Form::label('can_assign_ticket',Lang::get('lang.can_assign_ticket')) !!}
|
||||
<div class="col-xs-1">
|
||||
{!! Form::checkbox('can_assign_ticket',1,null,['class' => 'checkbox']) !!}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<!-- can ban email -->
|
||||
<div class="row">
|
||||
{!! Form::label('can_ban_email',Lang::get('lang.can_ban_emails')) !!}
|
||||
<div class="col-xs-1">
|
||||
{!! Form::checkbox('can_ban_email',1,null,['class' => 'checkbox']) !!}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="box box-primary">
|
||||
<div class="box-header with-border">
|
||||
<h3 class="box-title"> {{Lang::get('lang.create_a_group')}} </h3>
|
||||
</div>
|
||||
<div class="box-body">
|
||||
@if(Session::has('errors'))
|
||||
<div class="alert alert-danger alert-dismissable">
|
||||
<i class="fa fa-ban"></i>
|
||||
<b> {!! Lang::get('lang.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('group_status'))
|
||||
<li class="error-message-padding">{!! $errors->first('group_status', ':message') !!}</li>
|
||||
@endif
|
||||
</div>
|
||||
@endif
|
||||
<div class="row">
|
||||
<!-- name -->
|
||||
<div class="col-xs-4 form-group {{ $errors->has('name') ? 'has-error' : '' }}">
|
||||
{!! Form::label('name',Lang::get('lang.name')) !!} <span class="text-red"> *</span>
|
||||
{!! Form::text('name',null,['class' => 'form-control']) !!}
|
||||
</div>
|
||||
<!-- group status -->
|
||||
<div class="col-xs-6 form-group {{ $errors->has('group_status') ? 'has-error' : '' }}">
|
||||
{!! Form::label('group_status',Lang::get('lang.status')) !!}
|
||||
<div class="row">
|
||||
<div class="col-xs-2">
|
||||
{!! 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.inactive')}}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- can create ticket -->
|
||||
<div class="row">
|
||||
{!! Form::label('can_create_ticket',Lang::get('lang.can_create_ticket')) !!}
|
||||
<div class="col-xs-1">
|
||||
{!! Form::checkbox('can_create_ticket',1,null,['class' => 'checkbox']) !!}
|
||||
</div>
|
||||
</div>
|
||||
<!-- can_edit_ticket -->
|
||||
<div class="row">
|
||||
{!! Form::label('can_edit_ticket',Lang::get('lang.can_edit_ticket')) !!}
|
||||
<div class="col-xs-1">
|
||||
{!! Form::checkbox('can_edit_ticket',1,null,['class' => 'checkbox']) !!}
|
||||
</div>
|
||||
</div>
|
||||
<!-- can post ticket -->
|
||||
<div class="row">
|
||||
{!! Form::label('can_post_ticket',Lang::get('lang.can_post_ticket')) !!}
|
||||
<div class="col-xs-1">
|
||||
{!! Form::checkbox('can_post_ticket',1,null,['class' => 'checkbox']) !!}
|
||||
</div>
|
||||
</div>
|
||||
<!-- can_close_ticket -->
|
||||
<div class="row">
|
||||
{!! Form::label('can_close_ticket',Lang::get('lang.can_close_ticket')) !!}
|
||||
<div class="col-xs-1">
|
||||
{!! Form::checkbox('can_close_ticket',1,null,['class' => 'checkbox']) !!}
|
||||
</div>
|
||||
</div>
|
||||
<!-- can delete ticket -->
|
||||
<div class="row">
|
||||
{!! Form::label('can_delete_ticket',Lang::get('lang.can_delete_ticket')) !!}
|
||||
<div class="col-xs-1">
|
||||
{!! Form::checkbox('can_delete_ticket',1,null,['class' => 'checkbox']) !!}
|
||||
</div>
|
||||
</div>
|
||||
<!-- can assign ticket -->
|
||||
<div class="row">
|
||||
{!! Form::label('can_assign_ticket',Lang::get('lang.can_assign_ticket')) !!}
|
||||
<div class="col-xs-1">
|
||||
{!! Form::checkbox('can_assign_ticket',1,null,['class' => 'checkbox']) !!}
|
||||
</div>
|
||||
</div>
|
||||
<!-- can ban email -->
|
||||
<div class="row">
|
||||
{!! Form::label('can_ban_email',Lang::get('lang.can_ban_emails')) !!}
|
||||
<div class="col-xs-1">
|
||||
{!! Form::checkbox('can_ban_email',1,null,['class' => 'checkbox']) !!}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="box-footer">
|
||||
{!! Form::submit(Lang::get('lang.submit'),['class'=>'form-group btn btn-primary'])!!}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{!!Form::close()!!}
|
||||
@stop
|
||||
|
||||
@stop
|
||||
@@ -12,140 +12,113 @@ active
|
||||
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($groups, ['url'=>'groups/'.$groups->id , 'method'=> 'PATCH'])!!}
|
||||
|
||||
<div class="box box-primary">
|
||||
<div class="content-header">
|
||||
|
||||
<h4>{{Lang::get('lang.create')}} {!! Form::submit(Lang::get('lang.save'),['class'=>'form-group btn btn-primary pull-right'])!!}</h4>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="box-body">
|
||||
|
||||
<div class="row">
|
||||
<!-- name -->
|
||||
<div class="col-xs-4 form-group {{ $errors->has('name') ? 'has-error' : '' }}">
|
||||
|
||||
{!! Form::label('name',Lang::get('lang.name')) !!}
|
||||
{!! $errors->first('name', '<spam class="help-block">:message</spam>') !!}
|
||||
{!! Form::text('name',null,['disabled'=>'disabled','class' => 'form-control']) !!}
|
||||
|
||||
</div>
|
||||
<!-- group status -->
|
||||
<div class="col-xs-6 form-group {{ $errors->has('group_status') ? 'has-error' : '' }}">
|
||||
|
||||
{!! Form::label('group_status',Lang::get('lang.status')) !!}
|
||||
{!! $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.active')}}
|
||||
</div>
|
||||
<div class="col-xs-3">
|
||||
{!! Form::radio('group_status','0',null) !!} {{Lang::get('lang.inactive')}}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<!-- can create ticket -->
|
||||
<div class="row">
|
||||
{!! Form::label('can_create_ticket',Lang::get('lang.can_create_ticket')) !!}
|
||||
<div class="col-xs-1">
|
||||
{!! Form::checkbox('can_create_ticket',1,null,['class' => 'checkbox']) !!}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
<!-- can_edit_ticket -->
|
||||
<div class="row">
|
||||
{!! Form::label('can_edit_ticket',Lang::get('lang.can_edit_ticket')) !!}
|
||||
<div class="col-xs-1">
|
||||
{!! Form::checkbox('can_edit_ticket',1,null,['class' => 'checkbox']) !!}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<!-- can post ticket -->
|
||||
|
||||
<div class="row">
|
||||
{!! Form::label('can_post_ticket',Lang::get('lang.can_post_ticket')) !!}
|
||||
<div class="col-xs-1">
|
||||
{!! Form::checkbox('can_post_ticket',1,null,['class' => 'checkbox']) !!}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<!-- can_close_ticket -->
|
||||
|
||||
<div class="row">
|
||||
{!! Form::label('can_close_ticket',Lang::get('lang.can_close_ticket')) !!}
|
||||
<div class="col-xs-1">
|
||||
{!! Form::checkbox('can_close_ticket',1,null,['class' => 'checkbox']) !!}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
<!-- can delete ticket -->
|
||||
<div class="row">
|
||||
{!! Form::label('can_delete_ticket',Lang::get('lang.can_delete_ticket')) !!}
|
||||
<div class="col-xs-1">
|
||||
{!! Form::checkbox('can_delete_ticket',1,null,['class' => 'checkbox']) !!}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
<!-- can assign ticket -->
|
||||
<div class="row">
|
||||
{!! Form::label('can_assign_ticket',Lang::get('lang.can_assign_ticket')) !!}
|
||||
<div class="col-xs-1">
|
||||
{!! Form::checkbox('can_assign_ticket',1,null,['class' => 'checkbox']) !!}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<!-- can ban email -->
|
||||
<div class="row">
|
||||
{!! Form::label('can_ban_email',Lang::get('lang.can_ban_emails')) !!}
|
||||
<div class="col-xs-1">
|
||||
{!! Form::checkbox('can_ban_email',1,null,['class' => 'checkbox']) !!}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="box box-primary">
|
||||
<div class="box-header with-border">
|
||||
<h3 class="box-title"> {{Lang::get('lang.edit_a_group')}}</h3>
|
||||
</div>
|
||||
<div class="box-body">
|
||||
@if(Session::has('errors'))
|
||||
<div class="alert alert-danger alert-dismissable">
|
||||
<i class="fa fa-ban"></i>
|
||||
<b>{!! Lang::get('lang.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('group_status'))
|
||||
<li class="error-message-padding">{!! $errors->first('group_status', ':message') !!}</li>
|
||||
@endif
|
||||
</div>
|
||||
@endif
|
||||
<div class="row">
|
||||
<!-- name -->
|
||||
<div class="col-xs-4 form-group {{ $errors->has('name') ? 'has-error' : '' }}">
|
||||
{!! Form::label('name',Lang::get('lang.name')) !!} <span class="text-red"> *</span>
|
||||
{!! Form::text('name',null,['class' => 'form-control']) !!}
|
||||
</div>
|
||||
<!-- group status -->
|
||||
<div class="col-xs-6 form-group {{ $errors->has('group_status') ? 'has-error' : '' }}">
|
||||
{!! Form::label('group_status',Lang::get('lang.status')) !!}
|
||||
<div class="row">
|
||||
<div class="col-xs-2">
|
||||
{!! 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.inactive')}}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- can create ticket -->
|
||||
<div class="row">
|
||||
{!! Form::label('can_create_ticket',Lang::get('lang.can_create_ticket')) !!}
|
||||
<div class="col-xs-1">
|
||||
{!! Form::checkbox('can_create_ticket',1,null,['class' => 'checkbox']) !!}
|
||||
</div>
|
||||
</div>
|
||||
<!-- can_edit_ticket -->
|
||||
<div class="row">
|
||||
{!! Form::label('can_edit_ticket',Lang::get('lang.can_edit_ticket')) !!}
|
||||
<div class="col-xs-1">
|
||||
{!! Form::checkbox('can_edit_ticket',1,null,['class' => 'checkbox']) !!}
|
||||
</div>
|
||||
</div>
|
||||
<!-- can post ticket -->
|
||||
<div class="row">
|
||||
{!! Form::label('can_post_ticket',Lang::get('lang.can_post_ticket')) !!}
|
||||
<div class="col-xs-1">
|
||||
{!! Form::checkbox('can_post_ticket',1,null,['class' => 'checkbox']) !!}
|
||||
</div>
|
||||
</div>
|
||||
<!-- can_close_ticket -->
|
||||
<div class="row">
|
||||
{!! Form::label('can_close_ticket',Lang::get('lang.can_close_ticket')) !!}
|
||||
<div class="col-xs-1">
|
||||
{!! Form::checkbox('can_close_ticket',1,null,['class' => 'checkbox']) !!}
|
||||
</div>
|
||||
</div>
|
||||
<!-- can delete ticket -->
|
||||
<div class="row">
|
||||
{!! Form::label('can_delete_ticket',Lang::get('lang.can_delete_ticket')) !!}
|
||||
<div class="col-xs-1">
|
||||
{!! Form::checkbox('can_delete_ticket',1,null,['class' => 'checkbox']) !!}
|
||||
</div>
|
||||
</div>
|
||||
<!-- can assign ticket -->
|
||||
<div class="row">
|
||||
{!! Form::label('can_assign_ticket',Lang::get('lang.can_assign_ticket')) !!}
|
||||
<div class="col-xs-1">
|
||||
{!! Form::checkbox('can_assign_ticket',1,null,['class' => 'checkbox']) !!}
|
||||
</div>
|
||||
</div>
|
||||
<!-- can ban email -->
|
||||
<div class="row">
|
||||
{!! Form::label('can_ban_email',Lang::get('lang.can_ban_emails')) !!}
|
||||
<div class="col-xs-1">
|
||||
{!! Form::checkbox('can_ban_email',1,null,['class' => 'checkbox']) !!}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="box-footer">
|
||||
{!! Form::submit(Lang::get('lang.update'),['class'=>'form-group btn btn-primary'])!!}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{!!Form::close()!!}
|
||||
|
||||
@stop
|
||||
@@ -12,7 +12,6 @@ active
|
||||
class="active"
|
||||
@stop
|
||||
|
||||
|
||||
@section('HeadInclude')
|
||||
@stop
|
||||
<!-- header -->
|
||||
@@ -23,78 +22,66 @@ class="active"
|
||||
<!-- breadcrumbs -->
|
||||
@section('breadcrumbs')
|
||||
<ol class="breadcrumb">
|
||||
|
||||
</ol>
|
||||
@stop
|
||||
<!-- /breadcrumbs -->
|
||||
<!-- content -->
|
||||
@section('content')
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="box box-primary">
|
||||
<div class="box-header">
|
||||
<h2 class="box-title">{!! Lang::get('lang.groups') !!}</h2><a href="{{route('groups.create')}}" class="btn btn-primary pull-right">{{Lang::get('lang.create_group')}}</a></div>
|
||||
|
||||
<div class="box-body table-responsive">
|
||||
|
||||
<!-- 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 class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="box box-primary">
|
||||
<div class="box-header">
|
||||
<h2 class="box-title">{!! Lang::get('lang.groups') !!}</h2><a href="{{route('groups.create')}}" class="btn btn-primary pull-right">{{Lang::get('lang.create_group')}}</a></div>
|
||||
<div class="box-body table-responsive">
|
||||
<!-- check whether success or not -->
|
||||
@if(Session::has('success'))
|
||||
<div class="alert alert-success alert-dismissable">
|
||||
<i class="fa fa-check-circle"></i>
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
{!! Session::get('success') !!}
|
||||
</div>
|
||||
@endif
|
||||
<!-- failure message -->
|
||||
@if(Session::has('fails'))
|
||||
<div class="alert alert-danger alert-dismissable">
|
||||
<i class="fa fa-ban"></i>
|
||||
<b>Fail!</b>
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
{!! Session::get('fails') !!}
|
||||
</div>
|
||||
@endif
|
||||
<!-- Table -->
|
||||
<table class="table table-bordered dataTable" style="overflow:hidden;">
|
||||
<tr>
|
||||
<th>{{Lang::get('lang.group_name')}}</th>
|
||||
<th>{{Lang::get('lang.status')}}</th>
|
||||
<th>{{Lang::get('lang.action')}}</th>
|
||||
</tr>
|
||||
@foreach($groups as $group)
|
||||
<tr>
|
||||
<td><a href="{{route('groups.edit', $group->id)}}"> {{$group -> name }}</a></td>
|
||||
<td>
|
||||
@if($group->group_status=='1')
|
||||
<span style="color:green">{{'Active'}}</span>
|
||||
@else
|
||||
<span style="color:red">{{'Inactive'}}</span>
|
||||
@endif
|
||||
<td>
|
||||
{!! Form::open(['route'=>['groups.destroy', $group->id],'method'=>'DELETE']) !!}
|
||||
<a href="{{route('groups.edit', $group->id)}}" class="btn btn-info btn-xs btn-flat"><i class="fa fa-edit" style="color:black;"> </i> Edit</a>
|
||||
<!-- To pop up a confirm Message -->
|
||||
{!! Form::button('<i class="fa fa-trash" style="color:black;"> </i> Delete',
|
||||
['type' => 'submit',
|
||||
'class'=> 'btn btn-warning btn-xs btn-flat',
|
||||
'onclick'=>'return confirm("Are you sure?")'])
|
||||
!!}
|
||||
{!! Form::close() !!}
|
||||
</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endif
|
||||
<!-- failure message -->
|
||||
@if(Session::has('fails'))
|
||||
<div class="alert alert-danger alert-dismissable">
|
||||
<i class="fa fa-ban"></i>
|
||||
<b>Fail!</b>
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
{!! Session::get('fails') !!}
|
||||
</div>
|
||||
@endif
|
||||
<!-- Table -->
|
||||
<table class="table table-bordered dataTable" style="overflow:hidden;">
|
||||
|
||||
<tr>
|
||||
<th>{{Lang::get('lang.group_name')}}</th>
|
||||
<th>{{Lang::get('lang.status')}}</th>
|
||||
<th>{{Lang::get('lang.action')}}</th>
|
||||
</tr>
|
||||
@foreach($groups as $group)
|
||||
<tr>
|
||||
<td><a href="{{route('groups.edit', $group->id)}}"> {{$group -> name }}</a></td>
|
||||
<td>
|
||||
@if($group->group_status=='1')
|
||||
<span style="color:green">{{'Active'}}</span>
|
||||
@else
|
||||
<span style="color:red">{{'Inactive'}}</span>
|
||||
@endif
|
||||
|
||||
<td>
|
||||
{!! Form::open(['route'=>['groups.destroy', $group->id],'method'=>'DELETE']) !!}
|
||||
<a href="{{route('groups.edit', $group->id)}}" class="btn btn-info btn-xs btn-flat"><i class="fa fa-edit" style="color:black;"> </i> Edit</a>
|
||||
<!-- To pop up a confirm Message -->
|
||||
{!! Form::button('<i class="fa fa-trash" style="color:black;"> </i> Delete',
|
||||
['type' => 'submit',
|
||||
'class'=> 'btn btn-warning btn-xs btn-flat',
|
||||
'onclick'=>'return confirm("Are you sure?")'])
|
||||
!!}
|
||||
{!! Form::close() !!}
|
||||
</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@stop
|
||||
@@ -12,13 +12,11 @@ active
|
||||
class="active"
|
||||
@stop
|
||||
|
||||
|
||||
@section('HeadInclude')
|
||||
@stop
|
||||
<!-- header -->
|
||||
@section('PageHeader')
|
||||
|
||||
|
||||
@stop
|
||||
<!-- /header -->
|
||||
<!-- breadcrumbs -->
|
||||
@@ -30,49 +28,46 @@ class="active"
|
||||
<!-- /breadcrumbs -->
|
||||
<!-- content -->
|
||||
@section('content')
|
||||
|
||||
<!-- open a form -->
|
||||
|
||||
|
||||
{!! Form::open(array('action' => 'Admin\helpdesk\TeamController@store' , 'method' => 'post') )!!}
|
||||
|
||||
|
||||
<div class="box box-primary">
|
||||
<div class="content-header">
|
||||
|
||||
<h4>{!! Lang::get('lang.create') !!} {!! Form::submit(Lang::get('lang.save'),['class'=>'form-group btn btn-primary pull-right'])!!}</h4>
|
||||
|
||||
<div class="box-header with-border">
|
||||
<h3 class="box-title">{!! Lang::get('lang.create_a_team') !!} </h3>
|
||||
</div>
|
||||
|
||||
<div class="box-body">
|
||||
|
||||
@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('team_lead'))
|
||||
<li class="error-message-padding">{!! $errors->first('team_lead', ':message') !!}</li>
|
||||
@endif
|
||||
@if($errors->first('status'))
|
||||
<li class="error-message-padding">{!! $errors->first('status', ':message') !!}</li>
|
||||
@endif
|
||||
</div>
|
||||
@endif
|
||||
<div class="row">
|
||||
|
||||
<!-- name -->
|
||||
<div class="col-xs-6 form-group {{ $errors->has('name') ? 'has-error' : '' }}">
|
||||
|
||||
{!! Form::label('name',Lang::get('lang.name')) !!}
|
||||
{!! $errors->first('name', '<spam class="help-block">:message</spam>') !!}
|
||||
{!! Form::label('name',Lang::get('lang.name')) !!} <span class="text-red"> *</span>
|
||||
{!! Form::text('name',null,['class' => 'form-control']) !!}
|
||||
|
||||
</div>
|
||||
|
||||
<!-- team lead -->
|
||||
<div class="col-xs-6 form-group {{ $errors->has('team_lead') ? 'has-error' : '' }}">
|
||||
|
||||
{!! Form::label('team_lead',Lang::get('lang.team_lead')) !!}
|
||||
{!! $errors->first('team_lead', '<spam class="help-block">:message</spam>') !!}
|
||||
{!! Form::label('team_lead',Lang::get('lang.team_lead')) !!}
|
||||
<?php $user = App\User::where('role', 'admin')->orWhere('role', 'agent')->get(); ?>
|
||||
{!! Form::select('team_lead',[''=>'Select a Team Leader','Members'=>$user->lists('user_name','id')],null,['class' => 'form-control']) !!}
|
||||
|
||||
{!! Form::select('team_lead',[''=>Lang::get('lang.select_a_team_lead'), Lang::get('lang.members')=>$user->lists('user_name','id')->toArray()],null,['class' => 'form-control']) !!}
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<!-- status -->
|
||||
<div class="form-group {{ $errors->has('status') ? 'has-error' : '' }}">
|
||||
|
||||
{!! Form::label('status',Lang::get('lang.status')) !!}
|
||||
{!! $errors->first('status', '<spam class="help-block">:message</spam>') !!}
|
||||
<div class="row">
|
||||
<div class="col-xs-1">
|
||||
{!! Form::radio('status','1',true) !!} {{Lang::get('lang.active')}}
|
||||
@@ -81,20 +76,16 @@ class="active"
|
||||
{!! Form::radio('status','0',null) !!} {{Lang::get('lang.inactive')}}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<!-- admin notes -->
|
||||
<div class="form-group">
|
||||
|
||||
{!! Form::label('admin_notes',Lang::get('lang.admin_notes')) !!}
|
||||
{!! Form::textarea('admin_notes',null,['class' => 'form-control','size' => '30x5']) !!}
|
||||
|
||||
</div>
|
||||
|
||||
{!!Form::close()!!}
|
||||
</div>
|
||||
<div class="box-footer">
|
||||
{!! Form::submit(Lang::get('lang.submit'),['class'=>'form-group btn btn-primary'])!!}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{!!Form::close()!!}
|
||||
@stop
|
||||
@@ -23,54 +23,51 @@ class="active"
|
||||
<!-- breadcrumbs -->
|
||||
@section('breadcrumbs')
|
||||
<ol class="breadcrumb">
|
||||
|
||||
</ol>
|
||||
@stop
|
||||
<!-- /breadcrumbs -->
|
||||
<!-- content -->
|
||||
@section('content')
|
||||
|
||||
<!-- open a form -->
|
||||
|
||||
|
||||
{!!Form::model($teams, ['url'=>'teams/'.$teams->id , 'method'=> 'PATCH'])!!}
|
||||
|
||||
|
||||
<div class="box box-primary">
|
||||
<div class="content-header">
|
||||
|
||||
<h4>{!! Lang::get('lang.edit') !!} {!! Form::submit(Lang::get('lang.save'),['class'=>'form-group btn btn-primary pull-right'])!!}</h4>
|
||||
|
||||
<div class="box-header with-border">
|
||||
<h3 class="box-title">{!! Lang::get('lang.edit_a_team') !!}</h3>
|
||||
</div>
|
||||
|
||||
<div class="box-body">
|
||||
|
||||
@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('team_lead'))
|
||||
<li class="error-message-padding">{!! $errors->first('team_lead', ':message') !!}</li>
|
||||
@endif
|
||||
@if($errors->first('status'))
|
||||
<li class="error-message-padding">{!! $errors->first('status', ':message') !!}</li>
|
||||
@endif
|
||||
</div>
|
||||
@endif
|
||||
<div class="row">
|
||||
<!-- name -->
|
||||
<div class="col-xs-6 form-group {{ $errors->has('name') ? 'has-error' : '' }}">
|
||||
|
||||
{!! Form::label('name',Lang::get('lang.name')) !!}
|
||||
{!! $errors->first('name', '<spam class="help-block">:message</spam>') !!}
|
||||
{!! Form::label('name',Lang::get('lang.name')) !!} <span class="text-red"> *</span>
|
||||
{!! Form::text('name',null,['class' => 'form-control']) !!}
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<!-- team lead -->
|
||||
<div class="col-xs-6 form-group {{ $errors->has('team_lead') ? 'has-error' : '' }}">
|
||||
{!! Form::label('team_lead',Lang::get('lang.team_lead')) !!}
|
||||
{!! $errors->first('team_lead', '<spam class="help-block">:message</spam>') !!}
|
||||
<?php $user = App\User::where('role', 'admin')->orWhere('role', 'agent')->get(); ?>
|
||||
{!! Form::select('team_lead',[''=>'Select a Team Leader','Members'=>$user->lists('user_name','id')],null,['class' => 'form-control']) !!}
|
||||
|
||||
{!! Form::select('team_lead',[''=>Lang::get('lang.select_a_team_lead'), Lang::get('lang.members')=>$user->lists('user_name','id')->toArray()],null,['class' => 'form-control']) !!}
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<!-- status -->
|
||||
<div class="form-group {{ $errors->has('status') ? 'has-error' : '' }}">
|
||||
|
||||
{!! Form::label('status',Lang::get('lang.status')) !!}
|
||||
{!! $errors->first('status', '<spam class="help-block">:message</spam>') !!}
|
||||
<div class="row">
|
||||
<div class="col-xs-1">
|
||||
{!! Form::radio('status','1',true) !!} {{Lang::get('lang.active')}}
|
||||
@@ -79,20 +76,16 @@ class="active"
|
||||
{!! Form::radio('status','0',null) !!} {{Lang::get('lang.inactive')}}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<!-- admin notes -->
|
||||
<div class="form-group">
|
||||
|
||||
{!! Form::label('admin_notes',Lang::get('lang.admin_notes')) !!}
|
||||
{!! Form::textarea('admin_notes',null,['class' => 'form-control','size' => '30x5']) !!}
|
||||
|
||||
</div>
|
||||
|
||||
{!!Form::close()!!}
|
||||
</div>
|
||||
<div class="box-footer">
|
||||
{!! Form::submit(Lang::get('lang.update'),['class'=>'form-group btn btn-primary'])!!}
|
||||
</div>
|
||||
{!!Form::close()!!}
|
||||
</div>
|
||||
@stop
|
||||
@@ -22,7 +22,6 @@ class="active"
|
||||
<!-- breadcrumbs -->
|
||||
@section('breadcrumbs')
|
||||
<ol class="breadcrumb">
|
||||
|
||||
</ol>
|
||||
@stop
|
||||
<!-- /breadcrumbs -->
|
||||
@@ -32,16 +31,12 @@ class="active"
|
||||
<div class="col-md-12">
|
||||
<div class="box box-primary">
|
||||
<div class="box-header">
|
||||
<h2 class="box-title">{{Lang::get('lang.teams')}}</h2><a href="{{route('teams.create')}}" class="btn btn-primary pull-right">{{Lang::get('lang.create_team')}}</a></div>
|
||||
|
||||
<h2 class="box-title">{{Lang::get('lang.list_of_teams')}}</h2><a href="{{route('teams.create')}}" class="btn btn-primary pull-right">{{Lang::get('lang.create_team')}}</a></div>
|
||||
<div class="box-body table-responsive">
|
||||
|
||||
<!-- 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>
|
||||
@@ -55,7 +50,6 @@ class="active"
|
||||
{{Session::get('fails')}}
|
||||
</div>
|
||||
@endif
|
||||
|
||||
<table class="table table-bordered dataTable" style="overflow:hidden;">
|
||||
<tr>
|
||||
<th>{{Lang::get('lang.name')}}</th>
|
||||
@@ -66,14 +60,13 @@ class="active"
|
||||
</tr>
|
||||
@foreach($teams as $team)
|
||||
<tr>
|
||||
<td><a href="{{route('teams.edit', $team->id)}}"> {{$team -> name }}</a></td>
|
||||
<td><a href="{{route('teams.edit', $team->id)}}"> {{$team->name }}</a></td>
|
||||
<td>
|
||||
@if($team->status=='1')
|
||||
<span style="color:green">{{'Active'}}</span>
|
||||
<span style="color:green">{{Lang::get('lang.active')}}</span>
|
||||
@else
|
||||
<span style="color:red">{{'Inactive'}}</span>
|
||||
<span style="color:red">{{Lang::get('lang.inactive')}}</span>
|
||||
@endif
|
||||
|
||||
<?php
|
||||
if ($team->team_lead == 0) {
|
||||
$team_lead = "";
|
||||
@@ -87,8 +80,8 @@ class="active"
|
||||
<td>
|
||||
{!! Form::open(['route'=>['teams.destroy', $team->id],'method'=>'DELETE']) !!}
|
||||
<!-- To pop up a confirm Message -->
|
||||
<a href="{{route('teams.edit', $team->id)}}" class="btn btn-info btn-xs btn-flat"><i class="fa fa-edit" style="color:black;"> </i> Edit</a>
|
||||
{!! Form::button('<i class="fa fa-trash" style="color:black;"> </i> Delete',
|
||||
<a href="{{route('teams.edit', $team->id)}}" class="btn btn-info btn-xs btn-flat"><i class="fa fa-edit" style="color:black;"> </i> {!! Lang::get('lang.edit') !!}</a>
|
||||
{!! Form::button('<i class="fa fa-trash" style="color:black;"> </i> '.Lang::get('lang.delete'),
|
||||
['type' => 'submit',
|
||||
'class'=> 'btn btn-warning btn-xs btn-flat',
|
||||
'onclick'=>'return confirm("Are you sure?")'])
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
@extends('themes.default1.admin.layout.admin')
|
||||
|
||||
|
||||
@section('Emails')
|
||||
active
|
||||
@stop
|
||||
@@ -17,7 +16,7 @@ class="active"
|
||||
@stop
|
||||
<!-- header -->
|
||||
@section('PageHeader')
|
||||
|
||||
<h1>{!! Lang::get('lang.ban_email') !!}</h1>
|
||||
@stop
|
||||
<!-- /header -->
|
||||
<!-- breadcrumbs -->
|
||||
@@ -29,72 +28,59 @@ class="active"
|
||||
<!-- /breadcrumbs -->
|
||||
<!-- content -->
|
||||
@section('content')
|
||||
|
||||
{!! Form::open(['action' => 'Admin\helpdesk\BanlistController@store','method' => 'POST']) !!}
|
||||
|
||||
@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="row">
|
||||
<div class="col-md-12">
|
||||
<div class="box box-primary">
|
||||
<div class="box-header">
|
||||
<h3 class="box-title">{{Lang::get('lang.ban_email')}}</h3>
|
||||
<div class="pull-right">
|
||||
{!! Form::submit(Lang::get('lang.save'),['class'=>'btn btn-primary'])!!}</div>
|
||||
</div>
|
||||
<!-- Ban Status : Radio form : Required -->
|
||||
<div class="box-body table-responsive"style="overflow:hidden;">
|
||||
<div class="row">
|
||||
<div class="col-md-6">
|
||||
<div class="form-group {{ $errors->has('ban') ? 'has-error' : '' }}">
|
||||
{!! Form::label('ban',Lang::get('lang.ban_status')) !!}
|
||||
<div class="row">
|
||||
<div class="col-xs-3">
|
||||
{!! Form::radio('ban',1) !!} {{Lang::get('lang.active')}}
|
||||
</div>
|
||||
<div class="col-xs-3">
|
||||
{!! Form::radio('ban',0) !!} {{Lang::get('lang.inactive')}}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- email Address : Text form : Required -->
|
||||
|
||||
<div class="form-group {{ $errors->has('email') ? 'has-error' : '' }}">
|
||||
{!! Form::label('email',Lang::get('lang.email_address')) !!}
|
||||
{!! $errors->first('email', '<spam class="help-block">:message</spam>') !!}
|
||||
{!! Form::text('email',null,['class' => 'form-control']) !!}
|
||||
|
||||
</div>
|
||||
|
||||
<!-- intrnal Notes : Textarea : -->
|
||||
|
||||
<div class="form-group">
|
||||
{!! Form::label('internal_note',Lang::get('lang.internal_notes')) !!}
|
||||
{!! Form::textarea('internal_note',null,['class' => 'form-control']) !!}
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="box-header with-border">
|
||||
<h3 class="box-title">{{Lang::get('lang.create_a_banned_email')}}</h3>
|
||||
</div>
|
||||
<!-- Ban Status : Radio form : Required -->
|
||||
<div class="box-body">
|
||||
@if(Session::has('success'))
|
||||
<div class="alert alert-success alert-dismissable">
|
||||
<i class="fa fa-check-circle"></i>
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
{{Session::get('success')}}
|
||||
</div>
|
||||
@endif
|
||||
@if(Session::has('errors'))
|
||||
<div class="alert alert-danger alert-dismissable">
|
||||
<i class="fa fa-ban"></i>
|
||||
<b>{!! Lang::get('lang.alert') !!}!</b>
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
<br/>
|
||||
@if($errors->first('ban'))
|
||||
<li class="error-message-padding">{!! $errors->first('ban', ':message') !!}</li>
|
||||
@endif
|
||||
@if($errors->first('email'))
|
||||
<li class="error-message-padding">{!! $errors->first('email', ':message') !!}</li>
|
||||
@endif
|
||||
</div>
|
||||
@endif
|
||||
<div class="form-group {{ $errors->has('ban') ? 'has-error' : '' }}">
|
||||
{!! Form::label('ban',Lang::get('lang.ban_status')) !!} <span class="text-red"> *</span>
|
||||
<div class="row">
|
||||
<div class="col-xs-3">
|
||||
{!! Form::radio('ban',1) !!} {{Lang::get('lang.active')}}
|
||||
</div>
|
||||
<div class="col-xs-3">
|
||||
{!! Form::radio('ban',0) !!} {{Lang::get('lang.inactive')}}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- email Address : Text form : Required -->
|
||||
<div class="form-group {{ $errors->has('email') ? 'has-error' : '' }}">
|
||||
{!! Form::label('email',Lang::get('lang.email_address')) !!} <span class="text-red"> *</span>
|
||||
{!! Form::text('email',null,['class' => 'form-control']) !!}
|
||||
|
||||
</div>
|
||||
<!-- intrnal Notes : Textarea : -->
|
||||
<div class="form-group">
|
||||
{!! Form::label('internal_note',Lang::get('lang.internal_notes')) !!}
|
||||
{!! Form::textarea('internal_note',null,['class' => 'form-control']) !!}
|
||||
</div>
|
||||
</div>
|
||||
<div class="box-footer">
|
||||
{!! Form::submit(Lang::get('lang.submit'),['class'=>'btn btn-primary'])!!}
|
||||
</div>
|
||||
</div>
|
||||
@stop
|
||||
|
||||
@@ -16,65 +16,59 @@ class="active"
|
||||
@stop
|
||||
<!-- header -->
|
||||
@section('PageHeader')
|
||||
|
||||
<h1>{!! Lang::get('lang.ban_email') !!}</h1>
|
||||
@stop
|
||||
<!-- /header -->
|
||||
<!-- breadcrumbs -->
|
||||
@section('breadcrumbs')
|
||||
<ol class="breadcrumb">
|
||||
|
||||
</ol>
|
||||
@stop
|
||||
<!-- /breadcrumbs -->
|
||||
<!-- content -->
|
||||
@section('content')
|
||||
|
||||
{!! Form::model($bans,['url'=>'banlist/'.$bans->id,'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.ban_email')}}</h3>
|
||||
<div class="pull-right">
|
||||
{!! Form::submit(Lang::get('lang.save'),['class'=>'btn btn-primary'])!!}</div>
|
||||
</div>
|
||||
<!-- Ban Status : Radio form : Required -->
|
||||
<div class="box-body table-responsive"style="overflow:hidden;">
|
||||
<div class="row">
|
||||
<div class="col-md-6">
|
||||
<div class="form-group {{ $errors->has('ban') ? 'has-error' : '' }}">
|
||||
{!! Form::label('ban',Lang::get('lang.ban_status')) !!}
|
||||
<div class="row">
|
||||
<div class="col-xs-3">
|
||||
{!! Form::radio('ban',1) !!} {{Lang::get('lang.active')}}
|
||||
</div>
|
||||
<div class="col-xs-3">
|
||||
{!! Form::radio('ban',0) !!} {{Lang::get('lang.inactive')}}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- email Address : Text form : Required -->
|
||||
|
||||
<div class="form-group {{ $errors->has('email') ? 'has-error' : '' }}">
|
||||
{!! Form::label('email',Lang::get('lang.email_address')) !!}
|
||||
{!! $errors->first('email', '<spam class="help-block">:message</spam>') !!}
|
||||
{!! Form::text('email',null,['disabled'=>'disabled','class' => 'form-control']) !!}
|
||||
|
||||
</div>
|
||||
|
||||
<!-- intrnal Notes : Textarea : -->
|
||||
|
||||
<div class="form-group">
|
||||
{!! Form::label('internal_note',Lang::get('lang.internal_notes')) !!}
|
||||
{!! Form::textarea('internal_note',null,['class' => 'form-control']) !!}
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="box-header with-border">
|
||||
<h3 class="box-title">{{Lang::get('lang.edit_banned_email')}}</h3>
|
||||
</div>
|
||||
<!-- Ban Status : Radio form : Required -->
|
||||
<div class="box-body">
|
||||
@if(Session::has('errors'))
|
||||
<div class="alert alert-danger alert-dismissable">
|
||||
<i class="fa fa-ban"></i>
|
||||
<b>{!! Lang::get('lang.alert') !!}!</b>
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
<br/>
|
||||
@if($errors->first('ban'))
|
||||
<li class="error-message-padding">{!! $errors->first('ban', ':message') !!}</li>
|
||||
@endif
|
||||
</div>
|
||||
@endif
|
||||
<div class="form-group {{ $errors->has('ban') ? 'has-error' : '' }}">
|
||||
{!! Form::label('ban',Lang::get('lang.ban_status')) !!} <span class="text-red"> *</span>
|
||||
<div class="row">
|
||||
<div class="col-xs-2">
|
||||
{!! Form::radio('ban',1) !!} {{Lang::get('lang.active')}}
|
||||
</div>
|
||||
<div class="col-xs-2">
|
||||
{!! Form::radio('ban',0) !!} {{Lang::get('lang.inactive')}}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- email Address : Text form : Required -->
|
||||
<div class="form-group {{ $errors->has('email') ? 'has-error' : '' }}">
|
||||
{!! Form::label('email',Lang::get('lang.email_address')) !!} <span class="text-red"> *</span>
|
||||
{!! Form::text('email',null,['disabled'=>'disabled','class' => 'form-control']) !!}
|
||||
</div>
|
||||
<!-- intrnal Notes : Textarea : -->
|
||||
<div class="form-group">
|
||||
{!! Form::label('internal_note',Lang::get('lang.internal_notes')) !!}
|
||||
{!! Form::textarea('internal_note',null,['class' => 'form-control']) !!}
|
||||
</div>
|
||||
</div>
|
||||
<div class="box-footer">
|
||||
{!! Form::submit(Lang::get('lang.update'),['class'=>'btn btn-primary'])!!}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@stop
|
||||
@@ -16,7 +16,7 @@ class="active"
|
||||
@stop
|
||||
<!-- header -->
|
||||
@section('PageHeader')
|
||||
|
||||
<h1>{!! Lang::get('lang.ban_email') !!}</h1>
|
||||
@stop
|
||||
<!-- /header -->
|
||||
<!-- breadcrumbs -->
|
||||
@@ -28,59 +28,49 @@ class="active"
|
||||
<!-- /breadcrumbs -->
|
||||
<!-- content -->
|
||||
@section('content')
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="box box-primary">
|
||||
<div class="box-header">
|
||||
<h2 class="box-title">{{Lang::get('lang.banlists')}}</h2><a href="{{route('banlist.create')}}" class="pull-right btn btn-primary">{{Lang::get('lang.ban_email')}}</a>
|
||||
</div>
|
||||
<div class="box-body table-responsive">
|
||||
|
||||
|
||||
<!-- 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 class="box box-primary">
|
||||
<div class="box-header with-border">
|
||||
<h2 class="box-title">{{Lang::get('lang.list_of_banned_emails')}}</h2><a href="{{route('banlist.create')}}" class="pull-right btn btn-primary">{{Lang::get('lang.ban_email')}}</a>
|
||||
</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 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>
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
{{Session::get('success')}}
|
||||
</div>
|
||||
@endif
|
||||
<!-- failure message -->
|
||||
@if(Session::has('fails'))
|
||||
<div class="alert alert-danger alert-dismissable">
|
||||
<i class="fa fa-ban"></i>
|
||||
<b>{!! Lang::get('lang.fails') !!} ! </b>
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
{{Session::get('fails')}}
|
||||
</div>
|
||||
@endif
|
||||
<table class="table table-bordered dataTable" style="overflow:hidden;">
|
||||
<tr>
|
||||
<th width="100px">{{Lang::get('lang.email_address')}}</th>
|
||||
<th width="100px">{{Lang::get('lang.last_updated')}}</th>
|
||||
<th width="100px">{{Lang::get('lang.action')}}</th>
|
||||
</tr>
|
||||
<!-- Foreach @var bans as @var ban -->
|
||||
@foreach($bans as $ban)
|
||||
<tr>
|
||||
<!-- Email Address with Link to Edit page along Id -->
|
||||
<td><a href="{{route('banlist.edit',$ban->id)}}">{!! $ban->email !!}</a></td>
|
||||
<!-- Last Updated -->
|
||||
<td> {!! UTC::usertimezone($ban->updated_at) !!} </td>
|
||||
<!-- Deleting Fields -->
|
||||
<td>
|
||||
<a href="{{route('banlist.edit',$ban->id)}}" class="btn btn-info btn-xs btn-flat"><i class="fa fa-edit" style="color:black;"> </i> {!! Lang::get('lang.edit') !!}</a> <a href="{{route('banlist.delete',$ban->id)}}" class="btn btn-danger btn-xs btn-flat"><i class="fa fa-trash" style="color:black;"> </i> {!! Lang::get('lang.delete') !!}</a>
|
||||
</td>
|
||||
@endforeach
|
||||
</tr>
|
||||
<!-- Set a link to Create Page -->
|
||||
</table>
|
||||
</div>
|
||||
@endif
|
||||
<table class="table table-bordered dataTable" style="overflow:hidden;">
|
||||
<tr>
|
||||
<th width="100px">{{Lang::get('lang.email_address')}}</th>
|
||||
<th width="100px">{{Lang::get('lang.last_updated')}}</th>
|
||||
<th width="100px">{{Lang::get('lang.action')}}</th>
|
||||
</tr>
|
||||
<!-- Foreach @var bans as @var ban -->
|
||||
@foreach($bans as $ban)
|
||||
<tr>
|
||||
|
||||
<!-- Email Address with Link to Edit page along Id -->
|
||||
<td><a href="{{route('banlist.edit',$ban->id)}}">{!! $ban->email !!}</a></td>
|
||||
<!-- Last Updated -->
|
||||
<td> {!! UTC::usertimezone($ban->updated_at) !!} </td>
|
||||
<!-- Deleting Fields -->
|
||||
<td>
|
||||
<a href="{{route('banlist.edit',$ban->id)}}" class="btn btn-info btn-xs btn-flat"><i class="fa fa-edit" style="color:black;"> </i> Edit</a>
|
||||
</td>
|
||||
@endforeach
|
||||
</tr>
|
||||
<!-- Set a link to Create Page -->
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@stop
|
||||
|
||||
@@ -45,19 +45,19 @@ 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')) !!}
|
||||
{!! Form::label('email_address',Lang::get('lang.email_address')) !!} <span class="text-red"> *</span>
|
||||
{!! $errors->first('email_address', '<spam class="help-block">:message</spam>') !!}
|
||||
{!! Form::text('email_address',null,['class' => 'form-control', 'id' => 'email_address']) !!}
|
||||
</div>
|
||||
<!-- Email name -->
|
||||
<div class="col-xs-4 form-group {!! $errors->has('email_name') ? 'has-error' : ''!!}" id="email_name_error">
|
||||
{!! Form::label('email_name',Lang::get('lang.from_name')) !!}
|
||||
{!! Form::label('email_name',Lang::get('lang.from_name')) !!} <span class="text-red"> *</span>
|
||||
{!! $errors->first('email_name', '<spam class="help-block">:message</spam>') !!}
|
||||
{!! Form::text('email_name',null,['class' => 'form-control', 'id' => 'email_name']) !!}
|
||||
</div>
|
||||
<!-- password -->
|
||||
<div class="col-xs-4 form-group {!! $errors->has('password') ? 'has-error' : ''!!}" id="password_error">
|
||||
{!! Form::label('password',Lang::get('lang.password')) !!}
|
||||
{!! Form::label('password',Lang::get('lang.password')) !!} <span class="text-red"> *</span>
|
||||
{!! $errors->first('password', '<spam class="help-block">:message</spam>') !!}
|
||||
{!! Form::password('password',['class' => 'form-control', 'id' => 'password']) !!}
|
||||
</div>
|
||||
@@ -72,26 +72,26 @@ class="active"
|
||||
<div class="col-xs-4 form-group {!! $errors->has('department') ? 'has-error' : ''!!}" id="department_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', 'id' => 'department' ]) !!}
|
||||
{!!Form::select('department', [''=>'--System Default--','departments'=>$departments->lists('name','id')->toArray()],null,['class' => 'form-control select', 'id' => 'department' ]) !!}
|
||||
</div>
|
||||
<!-- Priority -->
|
||||
<div class="col-xs-4 form-group {!! $errors->has('priority') ? 'has-error' : ''!!}" id="priority_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', 'id' => 'priority']) !!}
|
||||
{!!Form::select('priority', [''=>'--System Default--','Priorities'=>$priority->lists('priority_desc','priority_id')->toArray()],null,['class' => 'form-control select', 'id' => 'priority']) !!}
|
||||
</div>
|
||||
<!-- Help topic -->
|
||||
<div class="col-xs-4 form-group {!! $errors->has('help_topic') ? 'has-error' : ''!!}" id="help_topic_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', 'id' => 'help_topic']) !!}
|
||||
{!!Form::select('help_topic', [''=>'--System Default--','Help Topics'=>$helps->lists('topic','id')->toArray()],null,['class' => 'form-control select', 'id' => 'help_topic']) !!}
|
||||
</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"> {{Lang::get('lang.disable_for_this_email_address')}}
|
||||
</div>
|
||||
</div>
|
||||
@@ -117,9 +117,9 @@ class="active"
|
||||
</div>
|
||||
<div class="row">
|
||||
<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')) !!}
|
||||
{!! Form::label('fetching_protocol',Lang::get('lang.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']) !!}
|
||||
{!!Form::select('fetching_protocol',['imap' => 'IMAP', 'pop' => 'POP3'],null,['class' => 'form-control select', 'id' => 'fetching_protocol']) !!}
|
||||
</div>
|
||||
<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')) !!}
|
||||
@@ -134,12 +134,15 @@ class="active"
|
||||
<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', 'starttls' => 'STARTTLS'],null,['class' => 'form-control select', 'id' => 'fetching_encryption']) !!}
|
||||
{!!Form::select('fetching_encryption',[''=>'-----Select-----', 'none' => 'None', 'ssl' => 'SSL', 'tls' => 'TLS', 'starttls' => 'STARTTLS'],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 class="col-xs-2 form-group {!! $errors->has('imap_authentication') ? 'has-error' : ''!!}" id="imap_authentication_error">
|
||||
{!! Form::label('fetching_authentication',Lang::get('lang.authentication')) !!}
|
||||
{!!Form::select('imap_authentication',['normal' => 'Normal Password'],null,['class' => 'form-control select', 'id' => 'imap_authentication']) !!}
|
||||
</div>
|
||||
<div class="col-xs-2 form-group">
|
||||
<br>
|
||||
<input type="checkbox" name="imap_validate" id="imap_validate"> {!! Lang::get('lang.validate_certificates_from_tls_or_ssl_server') !!}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -163,29 +166,37 @@ class="active"
|
||||
</div>
|
||||
<div class="row">
|
||||
<!-- Encryption -->
|
||||
<div class="col-xs-3 form-group {!! $errors->has('sending_protocol') ? 'has-error' : ''!!}" id="sending_protocol_error">
|
||||
<div class="col-xs-2 form-group {!! $errors->has('sending_protocol') ? 'has-error' : ''!!}" id="sending_protocol_error">
|
||||
{!! Form::label('sending_protocol',Lang::get('lang.transfer_protocol')) !!}
|
||||
{!! $errors->first('sending_protocol', '<spam class="help-block">:message</spam>') !!}
|
||||
{!!Form::select('sending_protocol',['smtp'=>'SMTP'],null,['class' => 'form-control select']) !!}
|
||||
{!!Form::select('sending_protocol',['smtp'=>'SMTP', 'mail' => 'PHP-MAIL'],null,['class' => 'form-control select']) !!}
|
||||
</div>
|
||||
<!-- sending hoost -->
|
||||
<div class="col-xs-3 form-group {!! $errors->has('sending_host') ? 'has-error' : ''!!}" id="sending_host_error">
|
||||
<div class="col-xs-2 form-group {!! $errors->has('sending_host') ? 'has-error' : ''!!}" id="sending_host_error">
|
||||
{!! Form::label('sending_host',Lang::get('lang.host_name')) !!}
|
||||
{!! $errors->first('sending_host', '<spam class="help-block">:message</spam>') !!}
|
||||
{!! Form::text('sending_host',null,['class' => 'form-control']) !!}
|
||||
</div>
|
||||
<!-- sending port -->
|
||||
<div class="col-xs-3 form-group {!! $errors->has('sending_port') ? 'has-error' : ''!!}" id="sending_port_error">
|
||||
<div class="col-xs-2 form-group {!! $errors->has('sending_port') ? 'has-error' : ''!!}" id="sending_port_error">
|
||||
{!! Form::label('sending_port',Lang::get('lang.port_number')) !!}
|
||||
{!! $errors->first('sending_port', '<spam class="help-block">:message</spam>') !!}
|
||||
{!! Form::text('sending_port',null,['class' => 'form-control']) !!}
|
||||
</div>
|
||||
<!-- Encryption -->
|
||||
<div class="col-xs-3 form-group {!! $errors->has('sending_encryption') ? 'has-error' : ''!!}" id="sending_encryption_error">
|
||||
<div class="col-xs-2 form-group {!! $errors->has('sending_encryption') ? 'has-error' : ''!!}" id="sending_encryption_error">
|
||||
{!! Form::label('sending_encryption',Lang::get('lang.encryption')) !!}
|
||||
{!! $errors->first('sending_encryption', '<spam class="help-block">:message</spam>') !!}
|
||||
{!!Form::select('sending_encryption',['ssl'=>'SSL','tls'=>'TLS', 'starttls' => 'STARTTLS'],null,['class' => 'form-control select']) !!}
|
||||
{!!Form::select('sending_encryption',[''=>'-----Select-----', 'none' => 'None', 'ssl' => 'SSL', 'tls' => 'TLS', 'starttls' => 'STARTTLS'],null,['class' => 'form-control select']) !!}
|
||||
</div>
|
||||
<div class="col-xs-2 form-group {!! $errors->has('smtp_authentication') ? 'has-error' : ''!!}" id="smtp_authentication_error">
|
||||
{!! Form::label('sending_authentication',Lang::get('lang.authentication')) !!}
|
||||
{!!Form::select('smtp_authentication',['normal' => 'Normal Password'],null,['class' => 'form-control select', 'id' => 'smtp_authentication']) !!}
|
||||
</div>
|
||||
<div class="col-xs-2 form-group">
|
||||
<br>
|
||||
<input type="checkbox" name="smtp_validate" id="smtp_validate"> {!! Lang::get('lang.validate_certificates_from_tls_or_ssl_server') !!}
|
||||
</div>
|
||||
</div>
|
||||
<!-- Internal notes -->
|
||||
<div class="form-group">
|
||||
@@ -195,7 +206,6 @@ class="active"
|
||||
</div>
|
||||
<div class="box-footer">
|
||||
{!! Form::button('<i id="spin" class="fa fa-spinner" style="display:none;"></i> <b>' . Lang::get("lang.create").'</b>' ,['class'=>'btn btn-primary', 'type' => 'submit'])!!}
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
@@ -225,7 +235,7 @@ class="active"
|
||||
|
||||
<script type="text/javascript">
|
||||
//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;
|
||||
@@ -244,7 +254,6 @@ 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 = [];
|
||||
@@ -339,29 +348,36 @@ class="active"
|
||||
}
|
||||
// checking for validation of sending status
|
||||
if (sending_status == 'on') {
|
||||
// checking for validation of sending host
|
||||
if (sending_host == "") {
|
||||
var error = "Sending Host is a required field";
|
||||
error_list.push(error);
|
||||
$("#sending_host_error").addClass("has-error");
|
||||
}
|
||||
// checking for validation of sending port
|
||||
if (sending_port == "") {
|
||||
var error = "Sending Port is a required field";
|
||||
error_list.push(error);
|
||||
$("#sending_port_error").addClass("has-error");
|
||||
}
|
||||
// checking for validation of sending encryption
|
||||
if (sending_encryption == "") {
|
||||
var error = "Sending Encryption is a required field";
|
||||
error_list.push(error);
|
||||
$("#sending_encryption_error").addClass("has-error");
|
||||
}
|
||||
// checking for validation of sending protocol
|
||||
if (sending_protocol == "") {
|
||||
var error = "Transfer Protocol is a required field";
|
||||
error_list.push(error);
|
||||
$("#sending_protocol_error").addClass("has-error");
|
||||
if (sending_protocol == 'smtp') {
|
||||
// checking for validation of sending host
|
||||
if (sending_host == "") {
|
||||
var error = "Sending Host is a required field";
|
||||
error_list.push(error);
|
||||
$("#sending_host_error").addClass("has-error");
|
||||
}
|
||||
// checking for validation of sending port
|
||||
if (sending_port == "") {
|
||||
var error = "Sending Port is a required field";
|
||||
error_list.push(error);
|
||||
$("#sending_port_error").addClass("has-error");
|
||||
}
|
||||
// checking for validation of sending encryption
|
||||
if (sending_encryption == "") {
|
||||
var error = "Sending Encryption is a required field";
|
||||
error_list.push(error);
|
||||
$("#sending_encryption_error").addClass("has-error");
|
||||
}
|
||||
// checking for validation of sending protocol
|
||||
if (sending_protocol == "") {
|
||||
var error = "Transfer Protocol is a required field";
|
||||
error_list.push(error);
|
||||
$("#sending_protocol_error").addClass("has-error");
|
||||
}
|
||||
} else if(sending_protocol == 'mail') {
|
||||
$("#sending_host_error").val('');
|
||||
$("#sending_port_error").val('');
|
||||
$("#sending_encryption_error").val('');
|
||||
$("#sending_protocol_error").val('');
|
||||
}
|
||||
} else {
|
||||
// checking for validation of fetching port
|
||||
@@ -376,7 +392,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) {
|
||||
@@ -398,12 +414,12 @@ 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>";
|
||||
@@ -416,7 +432,7 @@ class="active"
|
||||
$('#alert').show();
|
||||
}
|
||||
},
|
||||
error: function (response) {
|
||||
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();
|
||||
|
||||
@@ -16,14 +16,12 @@ class="active"
|
||||
@stop
|
||||
<!-- header -->
|
||||
@section('PageHeader')
|
||||
<h1>{{Lang::get('lang.edit_an_email')}}</h1>
|
||||
|
||||
<h1>{{Lang::get('lang.edit_an_email')}}</h1>
|
||||
@stop
|
||||
<!-- /header -->
|
||||
<!-- breadcrumbs -->
|
||||
@section('breadcrumbs')
|
||||
<ol class="breadcrumb">
|
||||
|
||||
</ol>
|
||||
@stop
|
||||
<!-- /breadcrumbs -->
|
||||
@@ -48,19 +46,19 @@ 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')) !!}
|
||||
{!! Form::label('email_address',Lang::get('lang.email_address')) !!} <span class="text-red"> *</span>
|
||||
{!! $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">
|
||||
{!! Form::label('email_name',Lang::get('lang.from_name')) !!}
|
||||
{!! Form::label('email_name',Lang::get('lang.from_name')) !!} <span class="text-red"> *</span>
|
||||
{!! $errors->first('email_name', '<spam class="help-block">:message</spam>') !!}
|
||||
{!! Form::text('email_name',null,['class' => 'form-control', 'id' => 'email_name']) !!}
|
||||
</div>
|
||||
<!-- password -->
|
||||
<div class="col-xs-4 form-group {!! $errors->has('password') ? 'has-error' : ''!!}" id="password_error">
|
||||
{!! Form::label('password',Lang::get('lang.password')) !!}
|
||||
{!! Form::label('password',Lang::get('lang.password')) !!} <span class="text-red"> *</span>
|
||||
{!! $errors->first('password', '<spam class="help-block">:message</spam>') !!}
|
||||
<input type="password" name="password" class="form-control" id="password" value={!! Crypt::decrypt($emails->password) !!} >
|
||||
</div>
|
||||
@@ -75,19 +73,19 @@ class="active"
|
||||
<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']) !!}
|
||||
{!!Form::select('department', [''=>'--System Default--','departments'=>$departments->lists('name','id')->toArray()],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']) !!}
|
||||
{!!Form::select('priority', [''=>'--System Default--','Priorities'=>$priority->lists('priority_desc','priority_id')->toArray()],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']) !!}
|
||||
{!!Form::select('help_topic', [''=>'--System Default--','Help Topics'=>$helps->lists('topic','id')->toArray()],null,['class' => 'form-control select']) !!}
|
||||
</div>
|
||||
<!-- status -->
|
||||
<div class="col-xs-2 form-group">
|
||||
@@ -115,10 +113,10 @@ class="active"
|
||||
<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')}}
|
||||
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')}}-->
|
||||
@@ -129,7 +127,7 @@ class="active"
|
||||
<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']) !!}
|
||||
{!!Form::select('fetching_protocol',['imap' => 'IMAP', 'pop' => 'POP3'],null,['class' => 'form-control select', 'id' => 'fetching_protocol']) !!}
|
||||
</div>
|
||||
<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')) !!}
|
||||
@@ -144,12 +142,37 @@ class="active"
|
||||
<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', 'starttls' => 'STARTTLS'],null,['class' => 'form-control select', 'id' => 'fetching_encryption']) !!}
|
||||
<select name="fetching_encryption" class='form-control' id='fetching_encryption'>
|
||||
<option value=""> -----Select----- </option>
|
||||
<option <?php
|
||||
if ($emails->fetching_encryption == 'none') {
|
||||
echo 'selected="selected"';
|
||||
}
|
||||
?> value="none">None</option>
|
||||
<option <?php
|
||||
if ($emails->fetching_encryption == '/ssl/novalidate-cert' || $emails->fetching_encryption === '/ssl/validate-cert') {
|
||||
echo 'selected="selected"';
|
||||
}
|
||||
?> value="ssl">SSL</option>
|
||||
<option <?php
|
||||
if ($emails->fetching_encryption == '/tls/novalidate-cert' || $emails->fetching_encryption === '/tls/validate-cert') {
|
||||
echo 'selected="selected"';
|
||||
}
|
||||
?> value="tls">TLS</option>
|
||||
<option <?php
|
||||
if ($emails->fetching_encryption == '/starttls/novalidate-cert' || $emails->fetching_encryption === '/starttls/validate-cert') {
|
||||
echo 'selected="selected"';
|
||||
}
|
||||
?> value="starttls">STARTTLS</option>
|
||||
</select>
|
||||
</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 class="col-xs-2 form-group {!! $errors->has('imap_authentication') ? 'has-error' : ''!!}" id="imap_authentication_error">
|
||||
{!! Form::label('fetching_authentication',Lang::get('lang.authentication')) !!}
|
||||
{!!Form::select('imap_authentication',['normal' => 'Normal Password'],null,['class' => 'form-control select', 'id' => 'imap_authentication']) !!}
|
||||
</div>
|
||||
<div class="col-xs-2 form-group">
|
||||
<br>
|
||||
<input type="checkbox" name="imap_validate" id="imap_validate"> {!! Lang::get('lang.validate_certificates_from_tls_or_ssl_server') !!}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -165,10 +188,10 @@ class="active"
|
||||
</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') !!}
|
||||
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') !!}-->
|
||||
@@ -177,29 +200,37 @@ class="active"
|
||||
</div>
|
||||
<div class="row">
|
||||
<!-- Encryption -->
|
||||
<div class="col-xs-3 form-group {!! $errors->has('sending_protocol') ? 'has-error' : ''!!}" id="sending_protocol_error">
|
||||
<div class="col-xs-2 form-group {!! $errors->has('sending_protocol') ? 'has-error' : ''!!}" id="sending_protocol_error">
|
||||
{!! Form::label('sending_protocol',Lang::get('lang.transfer_protocol')) !!}
|
||||
{!! $errors->first('sending_protocol', '<spam class="help-block">:message</spam>') !!}
|
||||
{!!Form::select('sending_protocol',['smtp'=>'SMTP'],null,['class' => 'form-control select']) !!}
|
||||
{!!Form::select('sending_protocol',['smtp'=>'SMTP', 'mail' => 'PHP-MAIL'],null,['class' => 'form-control select']) !!}
|
||||
</div>
|
||||
<!-- sending hoost -->
|
||||
<div class="col-xs-3 form-group {!! $errors->has('sending_host') ? 'has-error' : ''!!}" id="sending_host_error">
|
||||
<div class="col-xs-2 form-group {!! $errors->has('sending_host') ? 'has-error' : ''!!}" id="sending_host_error">
|
||||
{!! Form::label('sending_host',Lang::get('lang.host_name')) !!}
|
||||
{!! $errors->first('sending_host', '<spam class="help-block">:message</spam>') !!}
|
||||
{!! Form::text('sending_host',null,['class' => 'form-control']) !!}
|
||||
</div>
|
||||
<!-- sending port -->
|
||||
<div class="col-xs-3 form-group {!! $errors->has('sending_port') ? 'has-error' : ''!!}" id="sending_port_error">
|
||||
<div class="col-xs-2 form-group {!! $errors->has('sending_port') ? 'has-error' : ''!!}" id="sending_port_error">
|
||||
{!! Form::label('sending_port',Lang::get('lang.port_number')) !!}
|
||||
{!! $errors->first('sending_port', '<spam class="help-block">:message</spam>') !!}
|
||||
{!! Form::text('sending_port',null,['class' => 'form-control']) !!}
|
||||
</div>
|
||||
<!-- Encryption -->
|
||||
<div class="col-xs-3 form-group {!! $errors->has('sending_encryption') ? 'has-error' : ''!!}" id="sending_encryption_error">
|
||||
<div class="col-xs-2 form-group {!! $errors->has('sending_encryption') ? 'has-error' : ''!!}" id="sending_encryption_error">
|
||||
{!! Form::label('sending_encryption',Lang::get('lang.encryption')) !!}
|
||||
{!! $errors->first('sending_encryption', '<spam class="help-block">:message</spam>') !!}
|
||||
{!!Form::select('sending_encryption',['ssl'=>'SSL','tls'=>'TLS', 'starttls' => 'STARTTLS'],null,['class' => 'form-control select']) !!}
|
||||
{!!Form::select('sending_encryption',[''=>'-----Select-----', 'none' => 'None', 'ssl' => 'SSL', 'tls' => 'TLS', 'starttls' => 'STARTTLS'],null,['class' => 'form-control select']) !!}
|
||||
</div>
|
||||
<div class="col-xs-2 form-group {!! $errors->has('smtp_authentication') ? 'has-error' : ''!!}" id="smtp_authentication_error">
|
||||
{!! Form::label('sending_authentication',Lang::get('lang.authentication')) !!}
|
||||
{!!Form::select('smtp_authentication',['normal' => 'Normal Password'],null,['class' => 'form-control select', 'id' => 'smtp_authentication']) !!}
|
||||
</div>
|
||||
<div class="col-xs-2 form-group">
|
||||
<br>
|
||||
<input type="checkbox" name="smtp_validate" id="smtp_validate"> {!! Lang::get('lang.validate_certificates_from_tls_or_ssl_server') !!}
|
||||
</div>
|
||||
</div>
|
||||
<!-- Internal notes -->
|
||||
<div class="form-group">
|
||||
@@ -207,7 +238,11 @@ class="active"
|
||||
{!! Form::textarea('internal_notes',null,['class' => 'form-control','size' => '30x10']) !!}
|
||||
</div>
|
||||
</div>
|
||||
<input type="hidden" name="count" value="{{$count}}">
|
||||
<div class="box-footer">
|
||||
<div class="form-group">
|
||||
<input type="checkbox" name="sys_email" @if($sys_email->sys_email == $emails->id) checked @endif @if($count > 1 && $sys_email->sys_email == $emails->id) disabled @endif"> {{Lang::get('lang.make-system-default-mail')}}
|
||||
</div>
|
||||
{!! 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>
|
||||
@@ -254,7 +289,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 = "";
|
||||
@@ -346,30 +381,38 @@ class="active"
|
||||
}
|
||||
}
|
||||
// checking for validation of sending status
|
||||
// checking for validation of sending status
|
||||
if (sending_status == 'on') {
|
||||
// checking for validation of sending host
|
||||
if (sending_host == "") {
|
||||
var error = "Sending Host is a required field";
|
||||
error_list.push(error);
|
||||
$("#sending_host_error").addClass("has-error");
|
||||
}
|
||||
// checking for validation of sending port
|
||||
if (sending_port == "") {
|
||||
var error = "Sending Port is a required field";
|
||||
error_list.push(error);
|
||||
$("#sending_port_error").addClass("has-error");
|
||||
}
|
||||
// checking for validation of sending encryption
|
||||
if (sending_encryption == "") {
|
||||
var error = "Sending Encryption is a required field";
|
||||
error_list.push(error);
|
||||
$("#sending_encryption_error").addClass("has-error");
|
||||
}
|
||||
// checking for validation of sending protocol
|
||||
if (sending_protocol == "") {
|
||||
var error = "Transfer Protocol is a required field";
|
||||
error_list.push(error);
|
||||
$("#sending_protocol_error").addClass("has-error");
|
||||
if (sending_protocol == 'smtp') {
|
||||
// checking for validation of sending host
|
||||
if (sending_host == "") {
|
||||
var error = "Sending Host is a required field";
|
||||
error_list.push(error);
|
||||
$("#sending_host_error").addClass("has-error");
|
||||
}
|
||||
// checking for validation of sending port
|
||||
if (sending_port == "") {
|
||||
var error = "Sending Port is a required field";
|
||||
error_list.push(error);
|
||||
$("#sending_port_error").addClass("has-error");
|
||||
}
|
||||
// checking for validation of sending encryption
|
||||
if (sending_encryption == "") {
|
||||
var error = "Sending Encryption is a required field";
|
||||
error_list.push(error);
|
||||
$("#sending_encryption_error").addClass("has-error");
|
||||
}
|
||||
// checking for validation of sending protocol
|
||||
if (sending_protocol == "") {
|
||||
var error = "Transfer Protocol is a required field";
|
||||
error_list.push(error);
|
||||
$("#sending_protocol_error").addClass("has-error");
|
||||
}
|
||||
} else if(sending_protocol == 'mail') {
|
||||
$("#sending_host_error").val('');
|
||||
$("#sending_port_error").val('');
|
||||
$("#sending_encryption_error").val('');
|
||||
$("#sending_protocol_error").val('');
|
||||
}
|
||||
} else {
|
||||
// checking for validation of fetching port
|
||||
|
||||
@@ -18,90 +18,93 @@ class="active"
|
||||
<!-- /breadcrumbs -->
|
||||
<!-- content -->
|
||||
@section('content')
|
||||
|
||||
@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>Alert!</b> Failed.
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
{{Session::get('fails')}}
|
||||
</div>
|
||||
@endif
|
||||
|
||||
{!! Form::model($settings,['url'=>'post-smtp','method'=>'PATCH']) !!}
|
||||
<div class="box box-primary">
|
||||
<div class="box-header">
|
||||
<h3 class="box-title">{!! Lang::get('lang.outgoing_emails') !!}</h3>
|
||||
<div class="pull-right">
|
||||
{!! Form::submit(Lang::get('lang.save'),['class'=>'btn btn-primary'])!!}
|
||||
</div>
|
||||
</div>
|
||||
<!-- Ban Status : Radio form : Required -->
|
||||
<div class="box-body table-responsive"style="overflow:hidden;">
|
||||
<div class="row">
|
||||
<!-- email Address : Text form : Required -->
|
||||
<div class="col-md-3 form-group {{ $errors->has('driver') ? 'has-error' : '' }}">
|
||||
{!! Form::label('driver',Lang::get('lang.driver')) !!}
|
||||
{!! $errors->first('driver', '<spam class="help-block">:message</spam>') !!}
|
||||
<select name="driver" class="form-control">
|
||||
<option <?php if($settings->driver == "mail"){ echo "selected='selected'"; } ?> value="mail">mail</option>
|
||||
<option <?php if($settings->driver == "smtp"){ echo "selected='selected'"; } ?> value="smtp">smtp</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="box-header">
|
||||
<h3 class="box-title">{!! Lang::get('lang.outgoing_emails') !!}</h3>
|
||||
</div>
|
||||
<!-- Ban Status : Radio form : Required -->
|
||||
<div class="box-body">
|
||||
@if(Session::has('success'))
|
||||
<div class="alert alert-success alert-dismissable">
|
||||
<i class="fa fa-check-circle"></i>
|
||||
<b>Success!</b>
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
{{Session::get('success')}}
|
||||
</div>
|
||||
@endif
|
||||
<!-- failure message -->
|
||||
@if(Session::has('fails'))
|
||||
<div class="alert alert-danger alert-dismissable">
|
||||
<i class="fa fa-ban"></i>
|
||||
<b>Alert!</b> Failed.
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
{{Session::get('fails')}}
|
||||
</div>
|
||||
@endif
|
||||
<div class="row">
|
||||
<!-- email Address : Text form : Required -->
|
||||
<div class="col-md-3 form-group {{ $errors->has('driver') ? 'has-error' : '' }}">
|
||||
{!! Form::label('driver',Lang::get('lang.driver')) !!}
|
||||
{!! $errors->first('driver', '<spam class="help-block">:message</spam>') !!}
|
||||
<select name="driver" class="form-control">
|
||||
<option <?php if ($settings->driver == "mail") {
|
||||
echo "selected='selected'";
|
||||
} ?> value="mail">mail</option>
|
||||
<option <?php if ($settings->driver == "smtp") {
|
||||
echo "selected='selected'";
|
||||
} ?> value="smtp">smtp</option>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="col-md-3 form-group {{ $errors->has('host') ? 'has-error' : '' }}">
|
||||
{!! Form::label('host',Lang::get('lang.host')) !!}
|
||||
{!! $errors->first('host', '<spam class="help-block">:message</spam>') !!}
|
||||
{!! Form::text('host',null,['class' => 'form-control']) !!}
|
||||
</div>
|
||||
<div class="col-md-3 form-group {{ $errors->has('host') ? 'has-error' : '' }}">
|
||||
{!! Form::label('host',Lang::get('lang.host')) !!}
|
||||
{!! $errors->first('host', '<spam class="help-block">:message</spam>') !!}
|
||||
{!! Form::text('host',null,['class' => 'form-control']) !!}
|
||||
</div>
|
||||
|
||||
<div class="col-md-3 form-group {{ $errors->has('port') ? 'has-error' : '' }}">
|
||||
{!! Form::label('port',Lang::get('lang.port')) !!}
|
||||
{!! $errors->first('port', '<spam class="help-block">:message</spam>') !!}
|
||||
{!! Form::text('port',null,['class' => 'form-control']) !!}
|
||||
</div>
|
||||
<div class="col-md-3 form-group {{ $errors->has('port') ? 'has-error' : '' }}">
|
||||
{!! Form::label('port',Lang::get('lang.port')) !!}
|
||||
{!! $errors->first('port', '<spam class="help-block">:message</spam>') !!}
|
||||
{!! Form::text('port',null,['class' => 'form-control']) !!}
|
||||
</div>
|
||||
|
||||
<div class="col-md-3 form-group {{ $errors->has('encryption') ? 'has-error' : '' }}">
|
||||
{!! Form::label('encryption',Lang::get('lang.encryption')) !!}
|
||||
{!! $errors->first('encryption', '<spam class="help-block">:message</spam>') !!}
|
||||
<select name="encryption" class="form-control">
|
||||
<option <?php if($settings->encryption == "ssl"){ echo "selected='selected'"; } ?> value="ssl">SSL</option>
|
||||
<option <?php if($settings->encryption == "tls"){ echo "selected='selected'"; } ?> value="tls">TLS</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="col-md-3 form-group {{ $errors->has('encryption') ? 'has-error' : '' }}">
|
||||
{!! Form::label('encryption',Lang::get('lang.encryption')) !!}
|
||||
{!! $errors->first('encryption', '<spam class="help-block">:message</spam>') !!}
|
||||
<select name="encryption" class="form-control">
|
||||
<option <?php if ($settings->encryption == "ssl") {
|
||||
echo "selected='selected'";
|
||||
} ?> value="ssl">SSL</option>
|
||||
<option <?php if ($settings->encryption == "tls") {
|
||||
echo "selected='selected'";
|
||||
} ?> value="tls">TLS</option>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="col-md-4 form-group {{ $errors->has('name') ? 'has-error' : '' }}">
|
||||
{!! Form::label('name',Lang::get('lang.name')) !!}
|
||||
{!! $errors->first('name', '<spam class="help-block">:message</spam>') !!}
|
||||
{!! Form::text('name',null,['class' => 'form-control']) !!}
|
||||
</div>
|
||||
<div class="col-md-4 form-group {{ $errors->has('name') ? 'has-error' : '' }}">
|
||||
{!! Form::label('name',Lang::get('lang.name')) !!}
|
||||
{!! $errors->first('name', '<spam class="help-block">:message</spam>') !!}
|
||||
{!! Form::text('name',null,['class' => 'form-control']) !!}
|
||||
</div>
|
||||
|
||||
<div class="col-md-4 form-group {{ $errors->has('email') ? 'has-error' : '' }}">
|
||||
{!! Form::label('email',Lang::get('lang.email')) !!}
|
||||
{!! $errors->first('email', '<spam class="help-block">:message</spam>') !!}
|
||||
{!! Form::text('email',null,['class' => 'form-control']) !!}
|
||||
</div>
|
||||
<div class="col-md-4 form-group {{ $errors->has('email') ? 'has-error' : '' }}">
|
||||
{!! Form::label('email',Lang::get('lang.email')) !!}
|
||||
{!! $errors->first('email', '<spam class="help-block">:message</spam>') !!}
|
||||
{!! Form::text('email',null,['class' => 'form-control']) !!}
|
||||
</div>
|
||||
|
||||
<div class="col-md-4 form-group {{ $errors->has('password') ? 'has-error' : '' }}">
|
||||
{!! Form::label('password',Lang::get('lang.password')) !!}
|
||||
{!! $errors->first('password', '<spam class="help-block">:message</spam>') !!}
|
||||
@if($settings->password)
|
||||
<input type="password" name="password" class="form-control" value="{!! Crypt::decrypt($settings->password) !!}">
|
||||
@else
|
||||
<input type="password" name="password" class="form-control">
|
||||
@endif
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-4 form-group {{ $errors->has('password') ? 'has-error' : '' }}">
|
||||
{!! Form::label('password',Lang::get('lang.password')) !!}
|
||||
{!! $errors->first('password', '<spam class="help-block">:message</spam>') !!}
|
||||
@if($settings->password)
|
||||
<input type="password" name="password" class="form-control" value="{!! Crypt::decrypt($settings->password) !!}">
|
||||
@else
|
||||
<input type="password" name="password" class="form-control">
|
||||
@endif
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@stop
|
||||
@@ -18,55 +18,110 @@ class="active"
|
||||
@section('PageHeader')
|
||||
@stop
|
||||
<!-- /header -->
|
||||
<!-- breadcrumbs -->
|
||||
@section('breadcrumbs')
|
||||
|
||||
@stop
|
||||
<!-- /breadcrumbs -->
|
||||
<!-- content -->
|
||||
@section('content')
|
||||
<!-- 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')}}
|
||||
<!-- check whether success or not -->
|
||||
<form method="POST" action="{!! route('postdiagno') !!}">
|
||||
<input type="hidden" name="_token" value="{{ csrf_token() }}">
|
||||
<div class="box box-primary">
|
||||
<div class="box-header with-border">
|
||||
<h4 class="box-title">{{Lang::get('lang.email_diagnostic')}}</h4>
|
||||
</div>
|
||||
<div class="box-body">
|
||||
@if(Session::has('success'))
|
||||
<div class="alert alert-success alert-dismissable">
|
||||
<i class="fa fa-check-circle"></i>
|
||||
<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>
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
<b>{!! Lang::get('lang.alert') !!} !</b><br/>
|
||||
<li class="error-message-padding">{{Session::get('fails')}}</li>
|
||||
</div>
|
||||
@endif
|
||||
@if(Session::has('errors'))
|
||||
<?php //dd($errors); ?>
|
||||
<div class="alert alert-danger alert-dismissable">
|
||||
<i class="fa fa-ban"></i>
|
||||
<b>{!! Lang::get('lang.alert') !!} !</b>
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
<br/>
|
||||
@if($errors->first('from'))
|
||||
<li class="error-message-padding">{!! $errors->first('from', ':message') !!}</li>
|
||||
@endif
|
||||
@if($errors->first('to'))
|
||||
<li class="error-message-padding">{!! $errors->first('to', ':message') !!}</li>
|
||||
@endif
|
||||
@if($errors->first('subject'))
|
||||
<li class="error-message-padding">{!! $errors->first('subject', ':message') !!}</li>
|
||||
@endif
|
||||
@if($errors->first('message'))
|
||||
<li class="error-message-padding">{!! $errors->first('message', ':message') !!}</li>
|
||||
@endif
|
||||
</div>
|
||||
@endif
|
||||
<div class="row form-group no-padding {!! $errors->has('from') ? 'has-error' : '' !!}">
|
||||
<div class="col-md-2">
|
||||
<label>{!! Lang::get('lang.from') !!} <span class="text-red">*</span> :</label>
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
{!! $errors->first('fetching_encryption', '<spam class="help-block">:message</spam>') !!}
|
||||
<select name="from" class="form-control" id="from">
|
||||
<option value="">{!! Lang::get('lang.choose_an_email') !!}</option>
|
||||
<optgroup label="{!! Lang::get('lang.email') !!}">
|
||||
@foreach($emails as $email)
|
||||
<?php
|
||||
if ($email->email_address == $email->email_name) {
|
||||
$email1 = $email->email_address;
|
||||
} else {
|
||||
$email1 = $email->email_name . ' ( ' . $email->email_address . ' ) ';
|
||||
}
|
||||
?>
|
||||
<option value="{!! $email->id !!}"> {{ $email1 }} </option>
|
||||
@endforeach
|
||||
</optgroup>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row form-group no-padding {!! $errors->has('to') ? 'has-error' : '' !!}">
|
||||
<div class="col-md-2">
|
||||
<label>{!! Lang::get('lang.to') !!} <span class="text-red">*</span> :</label>
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
{!! Form::text('to',null,['class' => 'form-control']) !!}
|
||||
</div>
|
||||
</div>
|
||||
<div class="row form-group no-padding {!! $errors->has('subject') ? 'has-error' : '' !!}">
|
||||
<div class="col-md-2">
|
||||
<label>{!! Lang::get('lang.subject') !!} <span class="text-red">*</span> :</label>
|
||||
</div>
|
||||
<div class="col-md-8">
|
||||
{!! Form::text('subject',null,['class' => 'form-control']) !!}
|
||||
</div>
|
||||
</div>
|
||||
<div class="row form-group no-padding {!! $errors->has('message') ? 'has-error' : '' !!}">
|
||||
<div class="col-md-2">
|
||||
<label>{!! Lang::get('lang.message') !!} <span class="text-red">*</span> :</label>
|
||||
</div>
|
||||
<div class="col-md-10">
|
||||
<textarea name="message" id="message" class="form-control" style="height:200px;"></textarea>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="box-footer">
|
||||
<div class="row">
|
||||
<div class="col-md-2"></div>
|
||||
<div class="col-md-2">
|
||||
{!! Form::submit(Lang::get('lang.send'),['class'=>'form-group btn btn-primary'])!!}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
@endif
|
||||
<!-- failure message -->
|
||||
@if(Session::has('fails'))
|
||||
<div class="alert alert-danger alert-dismissable">
|
||||
<i class="fa fa-ban"></i>
|
||||
<b>Fail!</b>
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
{{Session::get('fails')}}
|
||||
</div>
|
||||
@endif
|
||||
|
||||
{!! Form::open(['method'=>'post' , 'action'=>'Admin\helpdesk\TemplateController@postDiagno']) !!}
|
||||
|
||||
|
||||
<div class="box box-primary">
|
||||
<div class="box-header">
|
||||
|
||||
<h4 class="box-title">{{Lang::get('lang.diagnostics')}}</h4> {!! Form::submit(Lang::get('lang.send'),['class'=>'form-group btn btn-primary pull-right'])!!}
|
||||
|
||||
</div>
|
||||
|
||||
<div class="box-body">
|
||||
|
||||
<!-- To : define To Address : Text form : Required -->
|
||||
<div class="form-group {{ $errors->has('to') ? 'has-error' : '' }}">
|
||||
{!! Form::label('to',Lang::get('lang.to')) !!}
|
||||
{!! $errors->first('to', '<spam class="help-block">:message</spam>') !!}
|
||||
{!! Form::text('to',null,['class' => 'form-control']) !!}
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
@stop
|
||||
</form>
|
||||
@stop
|
||||
@@ -28,8 +28,6 @@ class="active"
|
||||
<!-- /breadcrumbs -->
|
||||
<!-- content -->
|
||||
@section('content')
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="box box-primary">
|
||||
<div class="box-header">
|
||||
<h2 class="box-title">{{Lang::get('lang.template_set')}}</h2>
|
||||
@@ -94,9 +92,9 @@ class="active"
|
||||
<th width="100px">{{Lang::get('lang.action')}}</th>
|
||||
</tr>
|
||||
<!-- Foreach @var templates as @var template -->
|
||||
|
||||
@foreach($directories as $dir)
|
||||
<?php if ($dir === '.' or $dir === '..' or $dir === 'notifications') continue; ?>
|
||||
<?php //dd($directory); ?>
|
||||
<tr>
|
||||
<!-- Template Name with Link to Edit page along Id -->
|
||||
<td><a href="{{route('template.list',[$dir,$directory])}}"><?php $parts = explode('.',$dir); $names = $parts[0]; $name = str_replace('_', ' ', $names);$name1 = ucfirst($name); echo $name1?></a></td>
|
||||
@@ -133,16 +131,7 @@ if($dir == 'default') {
|
||||
</div> </td>
|
||||
</tr>
|
||||
@endforeach
|
||||
|
||||
<!-- Set a link to Create Page -->
|
||||
|
||||
|
||||
|
||||
|
||||
</table>
|
||||
@stop
|
||||
</div><!-- /.box -->
|
||||
@section('FooterInclude')
|
||||
<!-- page script -->
|
||||
<script type="text/javascript">
|
||||
$(function() {
|
||||
@@ -158,7 +147,7 @@ $(function() {
|
||||
});
|
||||
|
||||
</script>
|
||||
</div><!-- /.box -->
|
||||
</div>
|
||||
@stop
|
||||
|
||||
@stop
|
||||
@stop
|
||||
<!-- /content -->
|
||||
@@ -12,88 +12,89 @@ active
|
||||
class="active"
|
||||
@stop
|
||||
|
||||
|
||||
@section('HeadInclude')
|
||||
@stop
|
||||
<!-- header -->
|
||||
@section('PageHeader')
|
||||
|
||||
<h1>{!! Lang::get('lang.language') !!}</h1>
|
||||
@stop
|
||||
<!-- /header -->
|
||||
<!-- breadcrumbs -->
|
||||
@section('breadcrumbs')
|
||||
<ol class="breadcrumb">
|
||||
|
||||
</ol>
|
||||
@stop
|
||||
<!-- /breadcrumbs -->
|
||||
<!-- content -->
|
||||
@section('content')
|
||||
|
||||
<!-- open a form -->
|
||||
|
||||
{!! Form::open(array('url'=>'language/add' , 'method' => 'post', 'files'=>true) )!!}
|
||||
|
||||
|
||||
{!! Form::open(array('url'=>'language/add' , 'method' => 'post', 'files'=>true) )!!}
|
||||
<div class="box box-primary">
|
||||
<div class="content-header">
|
||||
|
||||
<h4>{{Lang::get('lang.add-lang-package')}} {!! Form::submit(Lang::get('lang.save'),['class'=>'form-group btn btn-primary pull-right'])!!}</h4>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="box-body">
|
||||
@if(Session::has('success'))
|
||||
<div class="alert alert-success alert-dismissable">
|
||||
<i class="fa fa-check-circle"></i>
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
<p>{{Session::get('success')}}</p>
|
||||
</div>
|
||||
<div class="box-header with-border">
|
||||
<h3 class="box-title">{{Lang::get('lang.add-lang-package')}}</h3>
|
||||
</div>
|
||||
<div class="box-body">
|
||||
@if(Session::has('success'))
|
||||
<div class="alert alert-success alert-dismissable">
|
||||
<i class="fa fa-check-circle"></i>
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
<p>{{Session::get('success')}}</p>
|
||||
</div>
|
||||
@endif
|
||||
<!-- failure message -->
|
||||
@if(Session::has('fails'))
|
||||
<div class="alert alert-danger alert-dismissable">
|
||||
<i class="fa fa-ban"></i>
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
{{Session::get('fails')}}
|
||||
@if(Session::has('link'))
|
||||
<a href="{{url(Session::get('link'))}}">{{Lang::get('lang.enable_lang')}}</a>
|
||||
@endif
|
||||
<!-- failure message -->
|
||||
@if(Session::has('fails'))
|
||||
<div class="alert alert-danger alert-dismissable">
|
||||
<i class="fa fa-ban"></i>
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
{{Session::get('fails')}}
|
||||
@if(Session::has('link'))
|
||||
<a href="{{url(Session::get('link'))}}">{{Lang::get('lang.enable_lang')}}</a>
|
||||
@endif
|
||||
@if(Session::has('link2'))
|
||||
<a href="{{url(Session::get('link2'))}}" target="blank">{{Lang::get('lang.read-more')}}</a>
|
||||
@endif
|
||||
</div>
|
||||
@if(Session::has('link2'))
|
||||
<a href="{{url(Session::get('link2'))}}" target="blank">{{Lang::get('lang.read-more')}}</a>
|
||||
@endif
|
||||
|
||||
<div class="row">
|
||||
<!-- username -->
|
||||
<div class="col-xs-4 form-group {{ $errors->has('language-name') ? 'has-error' : '' }}">
|
||||
|
||||
{!! Form::label('language-name',Lang::get('lang.language-name')) !!}
|
||||
{!! Form::text('language-name',null,['placeholder'=>'English','class' => 'form-control']) !!}
|
||||
{!! $errors->first('language-name', '<spam class="help-block" style="color:red">:message</spam>') !!}
|
||||
|
||||
|
||||
</div>
|
||||
<div class="col-xs-4 form-group {{ $errors->has('iso-code') ? 'has-error' : '' }}">
|
||||
|
||||
{!! Form::label('iso-code',Lang::get('lang.iso-code')) !!}
|
||||
{!! Form::text('iso-code',null,['placeholder'=>'en','class' => 'form-control']) !!}
|
||||
{!! $errors->first('iso-code', '<spam class="help-block" style="color:red">:message</spam>') !!}
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-xs-4 form-group {{ $errors->has('File') ? 'has-error' : '' }}">
|
||||
|
||||
{!! Form::label('File',Lang::get('lang.file')) !!} 
|
||||
<div class="btn bg-olive btn-file" style="color:blue"> {!! Lang::get('lang.upload_file') !!}
|
||||
{!! Form::file('File') !!}
|
||||
</div>
|
||||
{!! $errors->first('File', '<spam class="help-block" style="color:red">:message</spam>') !!}
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
@endif
|
||||
@if(Session::has('errors'))
|
||||
<?php //dd($errors); ?>
|
||||
<div class="alert alert-danger alert-dismissable">
|
||||
<i class="fa fa-ban"></i>
|
||||
<b>{!! Lang::get('lang.alert') !!}!</b>
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
<br/>
|
||||
@if($errors->first('language-name'))
|
||||
<li class="error-message-padding">{!! $errors->first('language-name', ':message') !!}</li>
|
||||
@endif
|
||||
@if($errors->first('iso-code'))
|
||||
<li class="error-message-padding">{!! $errors->first('iso-code', ':message') !!}</li>
|
||||
@endif
|
||||
@if($errors->first('File'))
|
||||
<li class="error-message-padding">{!! $errors->first('File', ':message') !!}</li>
|
||||
@endif
|
||||
</div>
|
||||
@endif
|
||||
<div class="row">
|
||||
<!-- username -->
|
||||
<div class="col-xs-4 form-group {{ $errors->has('language-name') ? 'has-error' : '' }}">
|
||||
{!! Form::label('language-name',Lang::get('lang.language-name')) !!} <span class="text-red"> *</span>
|
||||
{!! Form::text('language-name',null,['placeholder'=>'English','class' => 'form-control']) !!}
|
||||
</div>
|
||||
<div class="col-xs-4 form-group {{ $errors->has('iso-code') ? 'has-error' : '' }}">
|
||||
{!! Form::label('iso-code',Lang::get('lang.iso-code')) !!} <span class="text-red"> *</span>
|
||||
{!! Form::text('iso-code',null,['placeholder'=>'en','class' => 'form-control']) !!}
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-xs-4 form-group {{ $errors->has('File') ? 'has-error' : '' }}">
|
||||
{!! Form::label('File',Lang::get('lang.file')) !!} <span class="text-red"> *</span> 
|
||||
<div class="btn bg-olive btn-file" style="color:blue"> {!! Lang::get('lang.upload_file') !!}
|
||||
{!! Form::file('File') !!}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="box-footer">
|
||||
{!! Form::submit(Lang::get('lang.submit'),['class'=>'form-group btn btn-primary'])!!}
|
||||
</div>
|
||||
</div>
|
||||
@stop
|
||||
@@ -12,7 +12,6 @@ active
|
||||
class="active"
|
||||
@stop
|
||||
|
||||
|
||||
@section('HeadInclude')
|
||||
@stop
|
||||
<!-- header -->
|
||||
@@ -23,7 +22,6 @@ class="active"
|
||||
<!-- breadcrumbs -->
|
||||
@section('breadcrumbs')
|
||||
<ol class="breadcrumb">
|
||||
|
||||
</ol>
|
||||
@stop
|
||||
<!-- /breadcrumbs -->
|
||||
@@ -33,29 +31,28 @@ class="active"
|
||||
<div class="box box-primary">
|
||||
<div class="box-header">
|
||||
<h2 class="box-title">{{ Lang::get('lang.language') }}</h2><span class="pull-right"><a href="{{route('download')}}" title="click here to download template file" class="btn btn-primary"><i class="fa fa-download"></i> {{Lang::get('lang.download')}} </a> <a href="{{route('add-language')}}" class="btn btn-primary "><i class="fa fa-plus"></i> {{Lang::get('lang.add')}}</a></span>
|
||||
|
||||
</div>
|
||||
<div class="box-body">
|
||||
<!-- check whether success or not -->
|
||||
@if(Session::has('success'))
|
||||
<div class="alert alert-success alert-dismissable">
|
||||
<i class="fa fa-check-circle"></i>
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
{{Session::get('success')}} @if(Session::has('link'))<a href="{{url(Session::get('link'))}}">{{Lang::get('lang.enable_lang')}}</a> @endif
|
||||
</div>
|
||||
@endif
|
||||
<!-- failure message -->
|
||||
@if(Session::has('fails'))
|
||||
<div class="alert alert-danger alert-dismissable">
|
||||
<i class="fa fa-ban"></i>
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
{{Session::get('fails')}}
|
||||
</div>
|
||||
@endif
|
||||
{!! Datatable::table()
|
||||
->addColumn(Lang::get('lang.language'),Lang::get('lang.iso-code'),Lang::get('lang.status'),Lang::get('lang.Action')) // these are the column headings to be shown
|
||||
->setUrl(route('getAllLanguages')) // this is the route where data will be retrieved
|
||||
->render() !!}
|
||||
<div class="alert alert-success alert-dismissable">
|
||||
<i class="fa fa-check-circle"></i>
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
{{Session::get('success')}} @if(Session::has('link'))<a href="{{url(Session::get('link'))}}">{{Lang::get('lang.enable_lang')}}</a> @endif
|
||||
</div>
|
||||
@endif
|
||||
<!-- failure message -->
|
||||
@if(Session::has('fails'))
|
||||
<div class="alert alert-danger alert-dismissable">
|
||||
<i class="fa fa-ban"></i>
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
{{Session::get('fails')}}
|
||||
</div>
|
||||
@endif
|
||||
{!! Datatable::table()
|
||||
->addColumn(Lang::get('lang.language'),Lang::get('lang.iso-code'),Lang::get('lang.status'),Lang::get('lang.Action')) // these are the column headings to be shown
|
||||
->setUrl(route('getAllLanguages')) // this is the route where data will be retrieved
|
||||
->render() !!}
|
||||
</div>
|
||||
</div>
|
||||
@stop
|
||||
@@ -30,75 +30,73 @@ class="active"
|
||||
@section('content')
|
||||
<!-- open a form -->
|
||||
{!! Form::open(['action' => 'Admin\helpdesk\FormController@store','method' => 'post']) !!}
|
||||
<div class="row">
|
||||
<div class="col-xs-12">
|
||||
<div class="box box-primary">
|
||||
<div class="box-body">
|
||||
<div class="box-header">
|
||||
<h2 class="box-title"style="margin-left:-10px">{{Lang::get('lang.create')}}</h2>{!! Form::submit(Lang::get('lang.save'),['class'=>'pull-right btn btn-primary'])!!}</div>
|
||||
<!-- title: text -->
|
||||
<div class="box-body table-responsive no-padding"style="overflow:hidden">
|
||||
<div class="row">
|
||||
<div class="col-md-6">
|
||||
<div class="form-group {{ $errors->has('title') ? 'has-error' : '' }}">
|
||||
{!! Form::label('title',Lang::get('lang.title')) !!}
|
||||
{!! $errors->first('title', '<spam class="help-block">:message</spam>') !!}
|
||||
{!! Form::text('title',null,['class' => 'form-control']) !!}
|
||||
</div>
|
||||
</div>
|
||||
<!-- declare table head Label -->
|
||||
<div class="col-md-6">
|
||||
<div class="form-group {{ $errors->has('label') ? 'has-error' : '' }}">
|
||||
{!! Form::label('label',Lang::get('lang.label')) !!}
|
||||
{!! $errors->first('label', '<spam class="help-block">:message</spam>') !!}
|
||||
{!! Form::text('label',null,['class' => 'form-control']) !!}
|
||||
</div>
|
||||
</div>
|
||||
<!-- declare table head type -->
|
||||
<div class="col-md-4">
|
||||
<div class="form-group {{ $errors->has('type') ? 'has-error' : '' }}">
|
||||
{!! Form::label('type',Lang::get('lang.type')) !!}
|
||||
{!! $errors->first('type', '<spam class="help-block">:message</spam>') !!}
|
||||
{!!Form::select('type', [''=>'Select a Type','types'=>$type->lists('type','id')] ,null,['class' => 'form-control'] ) !!}
|
||||
<div class="box box-primary">
|
||||
<div class="box-header">
|
||||
<h2 class="box-title"style="margin-left:-10px">{{Lang::get('lang.create')}}</h2>{!! Form::submit(Lang::get('lang.save'),['class'=>'pull-right btn btn-primary'])!!}
|
||||
</div>
|
||||
<div class="box-body">
|
||||
<!-- title: text -->
|
||||
<div class="box-body table-responsive no-padding"style="overflow:hidden">
|
||||
<div class="row">
|
||||
<div class="col-md-6">
|
||||
<div class="form-group {{ $errors->has('title') ? 'has-error' : '' }}">
|
||||
{!! Form::label('title',Lang::get('lang.title')) !!}
|
||||
{!! $errors->first('title', '<spam class="help-block">:message</spam>') !!}
|
||||
{!! Form::text('title',null,['class' => 'form-control']) !!}
|
||||
</div>
|
||||
</div>
|
||||
<!-- declare table head Label -->
|
||||
<div class="col-md-6">
|
||||
<div class="form-group {{ $errors->has('label') ? 'has-error' : '' }}">
|
||||
{!! Form::label('label',Lang::get('lang.label')) !!}
|
||||
{!! $errors->first('label', '<spam class="help-block">:message</spam>') !!}
|
||||
{!! Form::text('label',null,['class' => 'form-control']) !!}
|
||||
</div>
|
||||
</div>
|
||||
<!-- declare table head type -->
|
||||
<div class="col-md-4">
|
||||
<div class="form-group {{ $errors->has('type') ? 'has-error' : '' }}">
|
||||
{!! Form::label('type',Lang::get('lang.type')) !!}
|
||||
{!! $errors->first('type', '<spam class="help-block">:message</spam>') !!}
|
||||
{!!Form::select('type', [''=>'Select a Type','types'=>$type->lists('type','id')] ,null,['class' => 'form-control'] ) !!}
|
||||
</div>
|
||||
</div>
|
||||
<!-- declare table head Vissibility -->
|
||||
<div class="col-md-4">
|
||||
<div class="form-group {{ $errors->has('visibility') ? 'has-error' : '' }}">
|
||||
{!! Form::label('visibility',Lang::get('lang.visibility')) !!}
|
||||
{!! $errors->first('visibility', '<spam class="help-block">:message</spam>') !!}
|
||||
{!!Form::select('visibility', [''=>'Select a Visibility','visibilities' =>$visibility->lists('visibility','id')],null,['class' => 'form-control'] ) !!}
|
||||
</div>
|
||||
</div>
|
||||
<!-- declare table head variable -->
|
||||
<div class="col-md-4">
|
||||
<div class="form-group">
|
||||
{!! Form::label('variable',Lang::get('lang.variable')) !!}
|
||||
{!! Form::text('variable',null,['class' => 'form-control']) !!}
|
||||
</div>
|
||||
</div>
|
||||
<!-- instruction: textarea -->
|
||||
<div class="col-md-6">
|
||||
<div class="form-group">
|
||||
{!! Form::label('instruction',Lang::get('lang.instruction')) !!}
|
||||
{!! Form::textarea('instruction',null,['class' => 'form-control','size' => '10x5']) !!}
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group {{ $errors->has('visibility') ? 'has-error' : '' }}">
|
||||
{!! Form::label('visibility',Lang::get('lang.visibility')) !!}
|
||||
{!! $errors->first('visibility', '<spam class="help-block">:message</spam>') !!}
|
||||
{!!Form::select('visibility', [''=>'Select a Visibility','visibilities' =>$visibility->lists('visibility','id')],null,['class' => 'form-control'] ) !!}
|
||||
</div>
|
||||
</div>
|
||||
<!-- declare table head variable -->
|
||||
<div class="col-md-4">
|
||||
<div class="form-group">
|
||||
{!! Form::label('variable',Lang::get('lang.variable')) !!}
|
||||
{!! Form::text('variable',null,['class' => 'form-control']) !!}
|
||||
</div>
|
||||
</div>
|
||||
<!-- instruction: textarea -->
|
||||
<div class="col-md-6">
|
||||
<div class="form-group">
|
||||
{!! Form::label('instruction',Lang::get('lang.instruction')) !!}
|
||||
{!! Form::textarea('instruction',null,['class' => 'form-control','size' => '10x5']) !!}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- /table -->
|
||||
<!-- /table -->
|
||||
|
||||
<!-- txt area -->
|
||||
<div class="col-md-6">
|
||||
<div class="form-group">
|
||||
{!! Form::label('internal_notes',Lang::get('lang.internal_notes')) !!}
|
||||
{!! Form::textarea('internal_notes',null,['class' => 'form-control','size' => '10x5']) !!}
|
||||
</div>
|
||||
</div>
|
||||
<!-- txt area -->
|
||||
<div class="col-md-6">
|
||||
<div class="form-group">
|
||||
{!! Form::label('internal_notes',Lang::get('lang.internal_notes')) !!}
|
||||
{!! Form::textarea('internal_notes',null,['class' => 'form-control','size' => '10x5']) !!}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@stop
|
||||
@stop
|
||||
|
||||
@@ -31,75 +31,75 @@ class="active"
|
||||
<!-- open a form -->
|
||||
{!! Form::model($forms,['url' => 'form/'.$forms->id,'method' => 'PATCH']) !!}
|
||||
|
||||
<div class="row">
|
||||
<div class="col-xs-12">
|
||||
<div class="box box-primary">
|
||||
<div class="box-body">
|
||||
<div class="box-header">
|
||||
<h2 class="box-title"style="margin-left:-10px">{{Lang::get('lang.create')}}</h2>{!! Form::submit(Lang::get('lang.save'),['class'=>'pull-right btn btn-primary'])!!}</div>
|
||||
<!-- title: text -->
|
||||
<div class="box-body table-responsive no-padding"style="overflow:hidden">
|
||||
<div class="row">
|
||||
<div class="col-md-6">
|
||||
<div class="form-group {{ $errors->has('title') ? 'has-error' : '' }}">
|
||||
{!! Form::label('title',Lang::get('lang.title')) !!}
|
||||
{!! $errors->first('title', '<spam class="help-block">:message</spam>') !!}
|
||||
{!! Form::text('title',null,['class' => 'form-control']) !!}
|
||||
</div>
|
||||
</div>
|
||||
<!-- declare table head Label -->
|
||||
<div class="col-md-6">
|
||||
<div class="form-group {{ $errors->has('label') ? 'has-error' : '' }}">
|
||||
{!! Form::label('label',Lang::get('lang.label')) !!}
|
||||
{!! $errors->first('label', '<spam class="help-block">:message</spam>') !!}
|
||||
{!! Form::text('label',null,['class' => 'form-control']) !!}
|
||||
</div>
|
||||
</div>
|
||||
<!-- declare table head type -->
|
||||
<div class="col-md-4">
|
||||
<div class="form-group {{ $errors->has('type') ? 'has-error' : '' }}">
|
||||
{!! Form::label('type',Lang::get('lang.type')) !!}
|
||||
{!! $errors->first('type', '<spam class="help-block">:message</spam>') !!}
|
||||
{!!Form::select('type', [''=>'Select a Type','types'=>$type->lists('type','id')] ,null,['class' => 'form-control'] ) !!}
|
||||
</div>
|
||||
</div>
|
||||
<!-- declare table head Vissibility -->
|
||||
<div class="col-md-4">
|
||||
<div class="form-group {{ $errors->has('visibility') ? 'has-error' : '' }}">
|
||||
{!! Form::label('visibility',Lang::get('lang.visibility')) !!}
|
||||
{!! $errors->first('visibility', '<spam class="help-block">:message</spam>') !!}
|
||||
{!!Form::select('visibility', [''=>'Select a Visibility','visibilities' =>$visibility->lists('visibility','id')],null,['class' => 'form-control'] ) !!}
|
||||
</div>
|
||||
</div>
|
||||
<!-- declare table head variable -->
|
||||
<div class="col-md-4">
|
||||
<div class="form-group">
|
||||
{!! Form::label('variable',Lang::get('lang.variable')) !!}
|
||||
{!! Form::text('variable',null,['class' => 'form-control']) !!}
|
||||
</div>
|
||||
</div>
|
||||
<!-- instruction: textarea -->
|
||||
<div class="col-md-6">
|
||||
<div class="form-group">
|
||||
{!! Form::label('instruction',Lang::get('lang.instruction')) !!}
|
||||
{!! Form::textarea('instruction',null,['class' => 'form-control','size' => '10x5']) !!}
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-xs-12">
|
||||
<div class="box box-primary">
|
||||
<div class="box-body">
|
||||
<div class="box-header">
|
||||
<h2 class="box-title"style="margin-left:-10px">{{Lang::get('lang.create')}}</h2>{!! Form::submit(Lang::get('lang.save'),['class'=>'pull-right btn btn-primary'])!!}</div>
|
||||
<!-- title: text -->
|
||||
<div class="box-body table-responsive no-padding"style="overflow:hidden">
|
||||
<div class="row">
|
||||
<div class="col-md-6">
|
||||
<div class="form-group {{ $errors->has('title') ? 'has-error' : '' }}">
|
||||
{!! Form::label('title',Lang::get('lang.title')) !!}
|
||||
{!! $errors->first('title', '<spam class="help-block">:message</spam>') !!}
|
||||
{!! Form::text('title',null,['class' => 'form-control']) !!}
|
||||
</div>
|
||||
</div>
|
||||
<!-- declare table head Label -->
|
||||
<div class="col-md-6">
|
||||
<div class="form-group {{ $errors->has('label') ? 'has-error' : '' }}">
|
||||
{!! Form::label('label',Lang::get('lang.label')) !!}
|
||||
{!! $errors->first('label', '<spam class="help-block">:message</spam>') !!}
|
||||
{!! Form::text('label',null,['class' => 'form-control']) !!}
|
||||
</div>
|
||||
</div>
|
||||
<!-- declare table head type -->
|
||||
<div class="col-md-4">
|
||||
<div class="form-group {{ $errors->has('type') ? 'has-error' : '' }}">
|
||||
{!! Form::label('type',Lang::get('lang.type')) !!}
|
||||
{!! $errors->first('type', '<spam class="help-block">:message</spam>') !!}
|
||||
{!!Form::select('type', [''=>'Select a Type','types'=>$type->lists('type','id')] ,null,['class' => 'form-control'] ) !!}
|
||||
</div>
|
||||
</div>
|
||||
<!-- declare table head Vissibility -->
|
||||
<div class="col-md-4">
|
||||
<div class="form-group {{ $errors->has('visibility') ? 'has-error' : '' }}">
|
||||
{!! Form::label('visibility',Lang::get('lang.visibility')) !!}
|
||||
{!! $errors->first('visibility', '<spam class="help-block">:message</spam>') !!}
|
||||
{!!Form::select('visibility', [''=>'Select a Visibility','visibilities' =>$visibility->lists('visibility','id')],null,['class' => 'form-control'] ) !!}
|
||||
</div>
|
||||
</div>
|
||||
<!-- declare table head variable -->
|
||||
<div class="col-md-4">
|
||||
<div class="form-group">
|
||||
{!! Form::label('variable',Lang::get('lang.variable')) !!}
|
||||
{!! Form::text('variable',null,['class' => 'form-control']) !!}
|
||||
</div>
|
||||
</div>
|
||||
<!-- instruction: textarea -->
|
||||
<div class="col-md-6">
|
||||
<div class="form-group">
|
||||
{!! Form::label('instruction',Lang::get('lang.instruction')) !!}
|
||||
{!! Form::textarea('instruction',null,['class' => 'form-control','size' => '10x5']) !!}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- /table -->
|
||||
<!-- /table -->
|
||||
|
||||
<!-- txt area -->
|
||||
<div class="col-md-6">
|
||||
<div class="form-group">
|
||||
{!! Form::label('internal_notes',Lang::get('lang.internal_notes')) !!}
|
||||
{!! Form::textarea('internal_notes',null,['class' => 'form-control','size' => '10x5']) !!}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- txt area -->
|
||||
<div class="col-md-6">
|
||||
<div class="form-group">
|
||||
{!! Form::label('internal_notes',Lang::get('lang.internal_notes')) !!}
|
||||
{!! Form::textarea('internal_notes',null,['class' => 'form-control','size' => '10x5']) !!}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
@@ -16,124 +16,112 @@ class="active"
|
||||
@stop
|
||||
<!-- header -->
|
||||
@section('PageHeader')
|
||||
|
||||
<h1>{!! Lang::get('lang.forms') !!}</h1>
|
||||
@stop
|
||||
<!-- /header -->
|
||||
<!-- breadcrumbs -->
|
||||
@section('breadcrumbs')
|
||||
<ol class="breadcrumb">
|
||||
|
||||
</ol>
|
||||
@stop
|
||||
<!-- /breadcrumbs -->
|
||||
<!-- content -->
|
||||
@section('content')
|
||||
|
||||
@if(Session::has('success'))
|
||||
<div class="alert alert-success alert-dismissable">
|
||||
<i class="fa fa-ban"></i>
|
||||
<b>Success!</b>
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
{{Session::get('success')}}
|
||||
</div>
|
||||
@endif
|
||||
@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">
|
||||
<div class="box-header">
|
||||
<h3 class="box-title">{!! Lang::get('lang.instructions') !!}</h3>
|
||||
<div class="callout callout-default" style="font-style: oblique;">{!! Lang::get('lang.instructions_on_creating_form') !!}.</div>
|
||||
</div>
|
||||
|
||||
<hr style="margin-top:0px;margin-bottom:0px;">
|
||||
<div class="box-header">
|
||||
<h3 class="box-title">{!! Lang::get('lang.form_properties') !!}</h3>
|
||||
</div>
|
||||
{!! Form::open(['route'=>'forms.store']) !!}
|
||||
<div class="form-group">
|
||||
<div class="row">
|
||||
<div class="col-md-4">
|
||||
</div></div></div>
|
||||
<div class="form-group">
|
||||
<div class="row" style="margin-top: 10px;">
|
||||
<div class="col-md-4">
|
||||
<h4 style="text-align: center">{!! Lang::get('lang.form_name') !!}:</h4>
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<input type="text" name="formname" class="form-control">
|
||||
<div class="box">
|
||||
<div class="box-header with-border">
|
||||
<h3 class="box-title">{!! Lang::get('lang.create') !!}</h3>
|
||||
</div>
|
||||
</div></div>
|
||||
<hr style="margin-top:0px;margin-bottom:0px;">
|
||||
<div class="form-group">
|
||||
<div class="box-header">
|
||||
<h3 class="box-title">{!! Lang::get('lang.adding_fields') !!}</h3>
|
||||
</div>
|
||||
<div class="callout callout-default col-md-4"> {!! Lang::get('lang.click_add_fields_button_to_add_fields') !!} </div>
|
||||
<div class="col-md-4">
|
||||
<button type="button" class="btn btn-primary addField" value="Show Div" onclick="showDiv()" ><i class="fa fa-plus"></i> {!! Lang::get('lang.add_fields') !!}</button>
|
||||
</div>
|
||||
<div class="row">
|
||||
|
||||
|
||||
|
||||
<div class="box-header with-border">
|
||||
<h3 class="box-title">{!! Lang::get('lang.instructions') !!}</h3>
|
||||
<div class="callout callout-default" style="font-style: oblique;">{!! Lang::get('lang.instructions_on_creating_form') !!}.</div>
|
||||
</div>
|
||||
<div class="box-body with-border">
|
||||
@if(Session::has('success'))
|
||||
<div class="alert alert-success alert-dismissable">
|
||||
<i class="fa fa-check-circle"></i>
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
{{Session::get('success')}}
|
||||
</div>
|
||||
@endif
|
||||
@if(Session::has('fails'))
|
||||
<div class="alert alert-danger alert-dismissable">
|
||||
<i class="fa fa-ban"></i>
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
<b>{!! Lang::get('lang.alert') !!}!</b><br>
|
||||
|
||||
<li class="error-message-padding" >{{Session::get('fails')}}</li>
|
||||
</div>
|
||||
@endif
|
||||
<h3 class="box-title">{!! Lang::get('lang.form_properties') !!}</h3>
|
||||
{!! Form::open(['route'=>'forms.store']) !!}
|
||||
<div class="form-group">
|
||||
<div class="row">
|
||||
<div class="col-md-4">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<div class="row" style="margin-top: 10px;">
|
||||
<div class="col-md-4">
|
||||
<h4 style="text-align: center">{!! Lang::get('lang.form_name') !!}: <span class="text-red"> *</span></h4>
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<input type="text" name="formname" class="form-control">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<h3 class="box-title">{!! Lang::get('lang.adding_fields') !!}</h3>
|
||||
<div class="callout callout-default col-md-4"> {!! Lang::get('lang.click_add_fields_button_to_add_fields') !!} </div>
|
||||
<div class="col-md-4">
|
||||
<button type="button" class="btn btn-primary addField" value="Show Div" onclick="showDiv()" ><i class="fa fa-plus"></i> {!! Lang::get('lang.add_fields') !!}</button>
|
||||
</div>
|
||||
<div class="row">
|
||||
</div>
|
||||
<div class="box-body" id="welcomeDiv" style="display:none;">
|
||||
<table id="example2" class="table table-bordered table-striped">
|
||||
<thead>
|
||||
<th>{!! Lang::get('lang.label') !!} </th>
|
||||
<th>{!! Lang::get('lang.name') !!} </th>
|
||||
<th>{!! Lang::get('lang.type') !!} </th>
|
||||
<th>{!! Lang::get('lang.values(selected_fields)') !!} </th>
|
||||
<th>{!! Lang::get('lang.required') !!} </th>
|
||||
<th>{!! Lang::get('lang.action') !!} </th>
|
||||
</thead>
|
||||
<tbody class="inputField">
|
||||
<tr></tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<hr>
|
||||
<div class="box-body" id="welcomeDiv" style="display:none;">
|
||||
<table id="example2" class="table table-bordered table-striped">
|
||||
<thead>
|
||||
<th>{!! Lang::get('lang.label') !!} </th>
|
||||
<th>{!! Lang::get('lang.name') !!} </th>
|
||||
<th>{!! Lang::get('lang.type') !!} </th>
|
||||
<th>{!! Lang::get('lang.values(selected_fields)') !!} </th>
|
||||
<th>{!! Lang::get('lang.required') !!} </th>
|
||||
<th>{!! Lang::get('lang.Action') !!} </th>
|
||||
</thead>
|
||||
<tbody class="inputField">
|
||||
<tr></tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<div class="box-footer">
|
||||
<input type="submit" class="btn btn-primary" value="{!! Lang::get('lang.save_form') !!}">
|
||||
</div>
|
||||
|
||||
{!! Form::close() !!}
|
||||
|
||||
</div>
|
||||
{!! Form::close() !!}
|
||||
<script>
|
||||
function showDiv() {
|
||||
document.getElementById('welcomeDiv').style.display = "block";
|
||||
}
|
||||
|
||||
$(document).ready(function() {
|
||||
var max_fields = 10;
|
||||
var wrapper = $(".inputField");
|
||||
var add_button = $(".addField");
|
||||
|
||||
var x = 1;
|
||||
$(add_button).click(function(e)
|
||||
{
|
||||
e.preventDefault();
|
||||
if(x < max_fields){
|
||||
x++;
|
||||
$(wrapper).append('<tr><td><input type="text" name="label[]"></td><td><input type="text" name="name[]"></td><td><select name="type[]"><option>text</option><option>email</option><option>password</option><option>textarea</option><option>select</option><option>radio</option><option>checkbox</option><option>submit</option></select></td><td><textarea name="value[]"></textarea></td><td>{!! Lang::get("lang.yes") !!} <input type=radio name="required['+x+'][]" value=1 checked> {!! Lang::get("lang.no") !!} <input type=radio name="required['+x+'][]" value=0></td><td><button type="button" class="remove_field btn btn-danger"><i class="fa fa-trash-o"></i>  {!! Lang::get("lang.remove") !!}</button></td></tr>');
|
||||
}
|
||||
document.getElementById('welcomeDiv').style.display = "block";
|
||||
}
|
||||
$(document).ready(function() {
|
||||
var max_fields = 10;
|
||||
var wrapper = $(".inputField");
|
||||
var add_button = $(".addField");
|
||||
var x = 1;
|
||||
$(add_button).click(function(e)
|
||||
{
|
||||
e.preventDefault();
|
||||
if (x < max_fields) {
|
||||
x++;
|
||||
$(wrapper).append('<tr><td><input type="text" class="form-control" name="label[]"></td><td><input type="text" class="form-control" name="name[]"></td><td><select name="type[]" class="form-control"><option>text</option><option>email</option><option>password</option><option>textarea</option><option>select</option><option>radio</option><option>checkbox</option><option>submit</option></select></td><td><textarea name="value[]" class="form-control"></textarea></td><td>{!! Lang::get("lang.yes") !!} <input type=radio name="required[' + x + '][]" value=1 checked> {!! Lang::get("lang.no") !!} <input type=radio name="required[' + x + '][]" value=0></td><td><button type="button" class="remove_field btn btn-danger"><i class="fa fa-trash-o"></i>  {!! Lang::get("lang.remove") !!}</button></td></tr>');
|
||||
}
|
||||
});
|
||||
$(wrapper).on("click", ".remove_field", function(e)
|
||||
{
|
||||
e.preventDefault();
|
||||
$(this).closest('tr').remove();
|
||||
x--;
|
||||
});
|
||||
});
|
||||
|
||||
$(wrapper).on("click",".remove_field", function(e)
|
||||
{
|
||||
e.preventDefault(); $(this).closest('tr').remove(); x--;
|
||||
});
|
||||
});
|
||||
</script>
|
||||
|
||||
@stop
|
||||
|
||||
|
||||
@@ -22,78 +22,65 @@ class="active"
|
||||
<!-- breadcrumbs -->
|
||||
@section('breadcrumbs')
|
||||
<ol class="breadcrumb">
|
||||
|
||||
</ol>
|
||||
@stop
|
||||
<!-- /breadcrumbs -->
|
||||
<!-- content -->
|
||||
@section('content')
|
||||
|
||||
@if(Session::has('success'))
|
||||
<div class="alert alert-success alert-dismissable">
|
||||
<i class="fa fa-ban"></i>
|
||||
<b>Success!</b>
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
{{Session::get('success')}}
|
||||
</div>
|
||||
@endif
|
||||
|
||||
<!-- -->
|
||||
<div class="box">
|
||||
<div class="box-header">
|
||||
<div class="box-title">
|
||||
{!! Lang::get('lang.forms') !!}
|
||||
</div>
|
||||
<a href="{!! url('forms/create') !!}" class="pull-right"><button class="btn btn-primary">{!! Lang::get('lang.create_form') !!}</button></a>
|
||||
</div>
|
||||
<div class="box-body">
|
||||
|
||||
<table id="example2" class="table table-bordered table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>{!! Lang::get('lang.form_name') !!}</th>
|
||||
<th>{!! Lang::get('lang.action') !!}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
$forms = App\Model\helpdesk\Form\Forms::all();
|
||||
?>
|
||||
@foreach($forms as $form)
|
||||
|
||||
<tr>
|
||||
|
||||
<td>{!! $form->formname !!}</td>
|
||||
|
||||
|
||||
<td>{!! link_to_route('forms.show', Lang::get('lang.view_this_form') ,[$form->id],['id'=>'View','class'=>'btn btn-primary btn-sm']) !!}
|
||||
<button class="btn btn-danger btn-sm" data-toggle="modal" data-target="#{{$form->id}}delete">{!! Lang::get('lang.delete_from') !!}</button>
|
||||
|
||||
<div class="modal fade" id="{{$form->id}}delete">
|
||||
<div class="modal-dialog">
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
|
||||
<h4 class="modal-title">{!! Lang::get('lang.delete') !!}</h4>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<p>{!! Lang::get('lang.are_you_sure_you_want_to_delete') !!} ?</p>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button type="button" class="btn btn-default pull-left" data-dismiss="modal">{!! Lang::get('lang.close') !!}</button>
|
||||
{!! link_to_route('forms.delete', Lang::get('lang.delete'),[$form->id],['id'=>'delete','class'=>'btn btn-danger btn-sm']) !!}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
@if(Session::has('success'))
|
||||
<div class="alert alert-success alert-dismissable">
|
||||
<i class="fa fa-check-circle"></i>
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
{{Session::get('success')}}
|
||||
</div>
|
||||
@endif
|
||||
<div class="box">
|
||||
<div class="box-header">
|
||||
<div class="box-title">
|
||||
{!! Lang::get('lang.forms') !!}
|
||||
</div>
|
||||
<a href="{!! url('forms/create') !!}" class="pull-right"><button class="btn btn-primary">{!! Lang::get('lang.create_form') !!}</button></a>
|
||||
</div>
|
||||
<div class="box-body">
|
||||
<table id="example2" class="table table-bordered table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>{!! Lang::get('lang.form_name') !!}</th>
|
||||
<th>{!! Lang::get('lang.action') !!}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
$forms = App\Model\helpdesk\Form\Forms::all();
|
||||
?>
|
||||
@foreach($forms as $form)
|
||||
<tr>
|
||||
<td>{!! $form->formname !!}</td>
|
||||
<td>{!! link_to_route('forms.show', Lang::get('lang.view_this_form') ,[$form->id],['id'=>'View','class'=>'btn btn-primary btn-sm']) !!}
|
||||
<button class="btn btn-danger btn-sm" data-toggle="modal" data-target="#{{$form->id}}delete">{!! Lang::get('lang.delete_from') !!}</button>
|
||||
<div class="modal fade" id="{{$form->id}}delete">
|
||||
<div class="modal-dialog">
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
|
||||
<h4 class="modal-title">{!! Lang::get('lang.delete') !!}</h4>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<p>{!! Lang::get('lang.are_you_sure_you_want_to_delete') !!} ?</p>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button type="button" class="btn btn-default pull-left" data-dismiss="modal">{!! Lang::get('lang.close') !!}</button>
|
||||
{!! link_to_route('forms.delete', Lang::get('lang.delete'),[$form->id],['id'=>'delete','class'=>'btn btn-danger btn-sm']) !!}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
|
||||
@stop
|
||||
</div>
|
||||
@stop
|
||||
@@ -12,79 +12,75 @@ active
|
||||
class="active"
|
||||
@stop
|
||||
|
||||
<!-- header -->
|
||||
@section('PageHeader')
|
||||
<h1>{!! Lang::get('lang.forms') !!}</h1>
|
||||
@stop
|
||||
<!-- /header -->
|
||||
|
||||
<!-- breadcrumbs -->
|
||||
@section('breadcrumbs')
|
||||
<ol class="breadcrumb">
|
||||
|
||||
</ol>
|
||||
@stop
|
||||
<!-- /breadcrumbs -->
|
||||
<!-- content -->
|
||||
@section('content')
|
||||
@if(Session::has('success'))
|
||||
<div class="alert alert-success alert-dismissable">
|
||||
<i class="fa fa-ban"></i>
|
||||
<b>Success!</b>
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
{{Session::get('success')}}
|
||||
</div>
|
||||
@endif
|
||||
@if(Session::has('fails'))
|
||||
<div class="alert alert-success 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('success'))
|
||||
<div class="alert alert-success alert-dismissable">
|
||||
<i class="fa fa-check-circle"></i>
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
{{Session::get('success')}}
|
||||
</div>
|
||||
@endif
|
||||
@if(Session::has('fails'))
|
||||
<div class="alert alert-success alert-dismissable">
|
||||
<i class="fa fa-ban"></i><button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
<b>{!! Lang::get('lang.alert') !!} !</b> <br>
|
||||
<li class="error-message-padding">{{Session::get('fails')}}</li>
|
||||
</div>
|
||||
@endif
|
||||
<!-- -->
|
||||
<div class="box">
|
||||
<div class="box-header">
|
||||
<?php $id = App\Model\helpdesk\Form\Forms::where('id',$id)->first(); ?>
|
||||
<h3 class="box-title">{!! Lang::get('lang.form_name') !!} : {!! $id->formname !!}</h3>
|
||||
|
||||
<?php $id = App\Model\helpdesk\Form\Forms::where('id', $id)->first(); ?>
|
||||
<h3 class="box-title">{!! Lang::get('lang.form_name') !!} : {!! $id->formname !!}</h3>
|
||||
</div>
|
||||
<div class="box-body">
|
||||
<?php
|
||||
$i=$id->id;
|
||||
$values = App\Model\helpdesk\Form\Fields::where('forms_id', '=', $i)->get();
|
||||
foreach($values as $value) {
|
||||
if($value->type == "select") {
|
||||
|
||||
$data = $value->value;
|
||||
$value = explode(',', $data);
|
||||
echo '<select class="form-control">';
|
||||
foreach($value as $option) {
|
||||
echo '<option>'.$option.'</option>';
|
||||
<div class="box-body">
|
||||
<?php
|
||||
$i = $id->id;
|
||||
$form_datas = App\Model\helpdesk\Form\Fields::where('forms_id', '=', $i)->get();
|
||||
foreach ($form_datas as $form_data) {
|
||||
if ($form_data->type == "select") {
|
||||
$form_fields = explode(',', $form_data->value);
|
||||
$var = "";
|
||||
foreach ($form_fields as $form_field) {
|
||||
$var .= '<option value="' . $form_field . '">' . $form_field . '</option>';
|
||||
}
|
||||
echo '<label>' . ucfirst($form_data->label) . '</label><select class="form-control" name="' . $form_data->name . '">' . $var . '</select>';
|
||||
} elseif ($form_data->type == "radio") {
|
||||
$type2 = $form_data->value;
|
||||
$vals = explode(',', $type2);
|
||||
echo '<br/><label>' . ucfirst($form_data->label) . '</label><br/>';
|
||||
foreach ($vals as $val) {
|
||||
echo '<input type="' . $form_data->type . '" name="' . $form_data->name . '"> ' . $form_data->name . ' ';
|
||||
}
|
||||
} elseif ($form_data->type == "textarea") {
|
||||
$type3 = $form_data->value;
|
||||
$v = explode(',', $type3);
|
||||
echo '<label>' . $form_data->label . '</label></br><textarea rows="' . $v[0] . '" cols="' . $v[1] . '"></textarea></br></br>';
|
||||
} elseif ($form_data->type == "checkbox") {
|
||||
$type4 = $form_data->value;
|
||||
$checks = explode(',', $type4);
|
||||
echo '<label>' . ucfirst($form_data->label) . '</label><br/>';
|
||||
foreach ($checks as $check) {
|
||||
echo '<input type="' . $form_data->type . '" name="' . $form_data->name . '">  ' . $check;
|
||||
}
|
||||
} else {
|
||||
echo '<label>' . ucfirst($form_data->label) . '</label><input type="' . $form_data->type . '" class="form-control" name="' . $form_data->name . '" /></br></br>';
|
||||
}
|
||||
echo '</select></br></br>';
|
||||
} elseif ($value->type == "radio" ) {
|
||||
|
||||
$type2 = $value->value;
|
||||
$val = explode(',', $type2);
|
||||
|
||||
echo '<label class="radio-inline">'.$value->label.'</label>   <input type="'.$value->type.'" name="'.$value->name.'"> '.$val[0].'
|
||||
   <input type="'.$value->type.'" name="'.$value->name.'"> '.$val[1].'</br></br>';
|
||||
|
||||
} elseif($value->type == "textarea" ) {
|
||||
$type3 = $value->value;
|
||||
$v = explode(',', $type3);
|
||||
echo '<label>'.$value->label.'</label></br><textarea rows="'.$v[0].'" cols="'.$v[1].'"></textarea></br></br>';
|
||||
|
||||
|
||||
} elseif($value->type == "checkbox" ) {
|
||||
|
||||
$type4 = $value->value;
|
||||
$check = explode(',', $type4);
|
||||
echo '<label class="radio-inline">'.$value->label.'   <input type="'.$value->type.'" name="'.$value->name.'">  '.$check[0].'</label>
|
||||
<label class="radio-inline"><input type="'.$value->type.'" name="'.$value->name.'">  '.$check[1].'</label></br></br>';
|
||||
|
||||
} else {
|
||||
|
||||
echo '<label>'.$value->label.'</label><input type="'.$value->type.'" class="form-control" name="'.$value->name.'" /></br></br>';
|
||||
}
|
||||
}
|
||||
?>
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
@stop
|
||||
</div>
|
||||
@stop
|
||||
@@ -16,162 +16,147 @@ class="active"
|
||||
@stop
|
||||
<!-- header -->
|
||||
@section('PageHeader')
|
||||
|
||||
<h1>{!! Lang::get('lang.help_topic') !!}</h1>
|
||||
@stop
|
||||
<!-- /header -->
|
||||
<!-- breadcrumbs -->
|
||||
@section('breadcrumbs')
|
||||
<ol class="breadcrumb">
|
||||
|
||||
</ol>
|
||||
@stop
|
||||
<!-- /breadcrumbs -->
|
||||
<!-- content -->
|
||||
@section('content')
|
||||
|
||||
<!-- open a form -->
|
||||
|
||||
{!! Form::open(['action' => 'Admin\helpdesk\HelptopicController@store', 'method' => 'post']) !!}
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="box box-primary">
|
||||
<div class="box-body">
|
||||
|
||||
<div class="form-group">
|
||||
<div class="box-header">
|
||||
<h2 class="box-title">{{Lang::get('lang.create')}}</h2><div class="pull-right">
|
||||
{!! Form::submit(Lang::get('lang.save'),['class'=>'btn btn-primary'])!!}
|
||||
</div>
|
||||
</div>
|
||||
<div class="box-body table-responsive no-padding" style="overflow:hidden">
|
||||
|
||||
<!-- status radio: required: Active|Dissable -->
|
||||
<div class="row">
|
||||
<div class="col-md-6">
|
||||
<div class="form-group {{ $errors->has('ticket_status') ? 'has-error' : '' }}">
|
||||
|
||||
{!! Form::label('ticket_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.inactive')}}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Type : Radio : required : Public|private -->
|
||||
<div class="col-md-6">
|
||||
<div class="form-group {{ $errors->has('type') ? 'has-error' : '' }}">
|
||||
|
||||
{!! Form::label('type',Lang::get('lang.type')) !!}
|
||||
{!! $errors->first('type', '<spam class="help-block">:message</spam>') !!}
|
||||
{!! Form::radio('type','1',true) !!} {{Lang::get('lang.public')}}
|
||||
{!! Form::radio('type','0') !!} {{Lang::get('lang.private')}}
|
||||
</div>
|
||||
</div>
|
||||
<!-- Topic text form Required -->
|
||||
<div class="col-md-6">
|
||||
<div class="form-group {{ $errors->has('topic') ? 'has-error' : '' }}">
|
||||
|
||||
{!! Form::label('topic',Lang::get('lang.topic')) !!}
|
||||
{!! $errors->first('topic', '<spam class="help-block">:message</spam>') !!}
|
||||
{!! Form::text('topic',null,['class' => 'form-control']) !!}
|
||||
</div>
|
||||
</div>
|
||||
<!-- Parent Topic: Drop down: value from helptopic table -->
|
||||
<div class="col-md-6">
|
||||
<div class="form-group {{ $errors->has('parent_topic') ? 'has-error' : '' }}">
|
||||
|
||||
{!! Form::label('parent_topic',Lang::get('lang.parent_topic')) !!}
|
||||
{!! $errors->first('parent_topic', '<spam class="help-block">:message</spam>') !!}
|
||||
{!!Form::select('parent_topic', [''=>'Select a Parent Topic','Help Topics'=>$topics->lists('topic','topic')],1,['class' => 'form-control']) !!}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<!-- Custom Form: Drop down: value from form table -->
|
||||
<div class="col-md-6">
|
||||
<div class="form-group {{ $errors->has('custom_form') ? 'has-error' : '' }}">
|
||||
|
||||
{!! 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>
|
||||
</div>
|
||||
|
||||
|
||||
<!-- Department: Drop down: value Department form table -->
|
||||
<div class="col-md-6">
|
||||
<div class="form-group {{ $errors->has('department') ? 'has-error' : '' }}">
|
||||
|
||||
{!! Form::label('department',Lang::get('lang.department')) !!}
|
||||
{!! $errors->first('department', '<spam class="help-block">:message</spam>') !!}
|
||||
{!!Form::select('department', [''=>'Select a Department','Departments'=>$departments->lists('name','id')],1,['class' => 'form-control']) !!}
|
||||
</div>
|
||||
</div>
|
||||
{!! Form::open(['action' => 'Admin\helpdesk\HelptopicController@store', 'method' => 'post']) !!}
|
||||
<div class="box box-primary">
|
||||
<div class="box-header with-border">
|
||||
<h3 class="box-title">{{Lang::get('lang.create')}}</h3>
|
||||
</div>
|
||||
<div class="box-body">
|
||||
@if(Session::has('errors'))
|
||||
<?php //dd($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('status'))
|
||||
<li class="error-message-padding">{!! $errors->first('status', ':message') !!}</li>
|
||||
@endif
|
||||
@if($errors->first('type'))
|
||||
<li class="error-message-padding">{!! $errors->first('type', ':message') !!}</li>
|
||||
@endif
|
||||
@if($errors->first('topic'))
|
||||
<li class="error-message-padding">{!! $errors->first('topic', ':message') !!}</li>
|
||||
@endif
|
||||
@if($errors->first('parent_topic'))
|
||||
<li class="error-message-padding">{!! $errors->first('parent_topic', ':message') !!}</li>
|
||||
@endif
|
||||
@if($errors->first('custom_form'))
|
||||
<li class="error-message-padding">{!! $errors->first('custom_form', ':message') !!}</li>
|
||||
@endif
|
||||
@if($errors->first('department'))
|
||||
<li class="error-message-padding">{!! $errors->first('department', ':message') !!}</li>
|
||||
@endif
|
||||
@if($errors->first('priority'))
|
||||
<li class="error-message-padding">{!! $errors->first('priority', ':message') !!}</li>
|
||||
@endif
|
||||
@if($errors->first('sla_plan'))
|
||||
<li class="error-message-padding">{!! $errors->first('sla_plan', ':message') !!}</li>
|
||||
@endif
|
||||
@if($errors->first('auto_assign'))
|
||||
<li class="error-message-padding">{!! $errors->first('auto_assign', ':message') !!}</li>
|
||||
@endif
|
||||
</div>
|
||||
@endif
|
||||
<div class="form-group">
|
||||
<div class="box-body table-responsive no-padding" style="overflow:hidden">
|
||||
<!-- status radio: required: Active|Dissable -->
|
||||
<div class="row">
|
||||
<div class="col-md-6">
|
||||
<div class="form-group {{ $errors->has('ticket_status') ? 'has-error' : '' }}">
|
||||
{!! Form::label('ticket_status',Lang::get('lang.status')) !!}
|
||||
{!! Form::radio('status','1',true) !!} {{Lang::get('lang.active')}}
|
||||
{!! Form::radio('status','0') !!} {{Lang::get('lang.inactive')}}
|
||||
</div>
|
||||
</div>
|
||||
<!-- Type : Radio : required : Public|private -->
|
||||
<div class="col-md-6">
|
||||
<div class="form-group {{ $errors->has('type') ? 'has-error' : '' }}">
|
||||
{!! Form::label('type',Lang::get('lang.type')) !!}
|
||||
{!! Form::radio('type','1',true) !!} {{Lang::get('lang.public')}}
|
||||
{!! Form::radio('type','0') !!} {{Lang::get('lang.private')}}
|
||||
</div>
|
||||
</div>
|
||||
<!-- Topic text form Required -->
|
||||
<div class="col-md-6">
|
||||
<div class="form-group {{ $errors->has('topic') ? 'has-error' : '' }}">
|
||||
{!! Form::label('topic',Lang::get('lang.topic')) !!} <span class="text-red"> *</span>
|
||||
{!! Form::text('topic',null,['class' => 'form-control']) !!}
|
||||
</div>
|
||||
</div>
|
||||
<!-- Parent Topic: Drop down: value from helptopic table -->
|
||||
<div class="col-md-6">
|
||||
<div class="form-group {{ $errors->has('parent_topic') ? 'has-error' : '' }}">
|
||||
{!! Form::label('parent_topic',Lang::get('lang.parent_topic')) !!}
|
||||
{!!Form::select('parent_topic', [''=>Lang::get('lang.select_a_parent_topic'),Lang::get('lang.help_topic')=>$topics->lists('topic','topic')->toArray()],1,['class' => 'form-control']) !!}
|
||||
</div>
|
||||
</div>
|
||||
<!-- Custom Form: Drop down: value from form table -->
|
||||
<div class="col-md-6">
|
||||
<div class="form-group {{ $errors->has('custom_form') ? 'has-error' : '' }}">
|
||||
{!! Form::label('custom_form',Lang::get('lang.Custom_form')) !!}
|
||||
{!!Form::select('custom_form', [''=>Lang::get('lang.select_a_form'),Lang::get('lang.custom_form')=>$forms->lists('formname','id')->toArray()],1,['class' => 'form-control']) !!}
|
||||
</div>
|
||||
</div>
|
||||
<!-- Department: Drop down: value Department form table -->
|
||||
<div class="col-md-6">
|
||||
<div class="form-group {{ $errors->has('department') ? 'has-error' : '' }}">
|
||||
{!! Form::label('department',Lang::get('lang.department')) !!}
|
||||
{!!Form::select('department', [''=>Lang::get('lang.select_a_department'),Lang::get('lang.departments')=>$departments->lists('name','id')->toArray()],1,['class' => 'form-control']) !!}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- Priority: Drop down: value from Priority table -->
|
||||
<div class="row">
|
||||
<div class="col-md-4">
|
||||
<div class="form-group {{ $errors->has('priority') ? 'has-error' : '' }}">
|
||||
{!! Form::label('priority',Lang::get('lang.priority')) !!} <span class="text-red"> *</span>
|
||||
{!!Form::select('priority', [''=>Lang::get('lang.select_a_priority'),Lang::get('lang.priorities')=>$priority->lists('priority_desc','priority_id')->toArray()],null,['class' => 'form-control']) !!}
|
||||
</div>
|
||||
</div>
|
||||
<!-- SLA Plan: Drop down: value SLA Plan table-->
|
||||
<div class="col-md-4">
|
||||
<div class="form-group {{ $errors->has('sla_plan') ? 'has-error' : '' }}">
|
||||
{!! Form::label('sla_plan',Lang::get('lang.SLA_plan')) !!}
|
||||
{!!Form::select('sla_plan', [''=>Lang::get('lang.select_a_sla_plan'),Lang::get('lang.sla_plans')=>$slas->lists('name','id')->toArray()],1,['class' => 'form-control']) !!}
|
||||
</div>
|
||||
</div>
|
||||
<!-- Auto-assign To: Drop Down: value from Agent table -->
|
||||
<div class="col-md-4">
|
||||
<div class="form-group {{ $errors->has('auto_assign') ? 'has-error' : '' }}">
|
||||
{!! Form::label('auto_assign',Lang::get('lang.auto_assign')) !!}
|
||||
{!!Form::select('auto_assign', [''=>Lang::get('lang.select_an_agent'),Lang::get('lang.agents')=>$agents->lists('first_name','id')->toArray()],null,['class' => 'form-control']) !!}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- Auto-response: checkbox : Disable new ticket auto-response -->
|
||||
<div class="row">
|
||||
<!-- intrnal Notes : Textarea : -->
|
||||
<div class="col-md-12">
|
||||
<div class="form-group">
|
||||
{!! Form::label('internal_notes',Lang::get('lang.internal_notes')) !!}
|
||||
{!! Form::textarea('internal_notes',null,['class' => 'form-control','size' => '10x5']) !!}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="box-footer">
|
||||
{!! Form::submit(Lang::get('lang.submit'),['class'=>'btn btn-primary'])!!}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Priority: Drop down: value from Priority table -->
|
||||
<div class="row">
|
||||
<div class="col-md-4">
|
||||
<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']) !!}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<!-- SLA Plan: Drop down: value SLA Plan table-->
|
||||
<div class="col-md-4">
|
||||
<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')],1,['class' => 'form-control']) !!}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<!-- Auto-assign To: Drop Down: value from Agent table -->
|
||||
<div class="col-md-4">
|
||||
<div class="form-group {{ $errors->has('auto_assign') ? 'has-error' : '' }}">
|
||||
|
||||
{!! 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('first_name','id')],null,['class' => 'form-control']) !!}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<!-- Auto-response: checkbox : Disable new ticket auto-response -->
|
||||
<div class="row">
|
||||
|
||||
<!-- intrnal Notes : Textarea : -->
|
||||
<div class="col-md-12">
|
||||
<div class="form-group">
|
||||
|
||||
{!! Form::label('internal_notes',Lang::get('lang.internal_notes')) !!}
|
||||
{!! Form::textarea('internal_notes',null,['class' => 'form-control','size' => '10x5']) !!}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Submit button -->
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- close form -->
|
||||
|
||||
{!! Form::close() !!}
|
||||
|
||||
@stop
|
||||
|
||||
@@ -16,143 +16,148 @@ class="active"
|
||||
@stop
|
||||
<!-- header -->
|
||||
@section('PageHeader')
|
||||
|
||||
<h1>{!! Lang::get('lang.help_topic') !!}</h1>
|
||||
@stop
|
||||
<!-- /header -->
|
||||
<!-- breadcrumbs -->
|
||||
@section('breadcrumbs')
|
||||
<ol class="breadcrumb">
|
||||
|
||||
</ol>
|
||||
@stop
|
||||
<!-- /breadcrumbs -->
|
||||
<!-- content -->
|
||||
@section('content')
|
||||
|
||||
<!-- open a form -->
|
||||
|
||||
{!! Form::model($topics,['url' => 'helptopic/'.$topics->id, 'method' => 'PATCH']) !!}
|
||||
|
||||
<div class="box box-primary">
|
||||
<div class="box-header">
|
||||
<h2 class="box-title">{{Lang::get('lang.edit')}}</h2><div class="pull-right">
|
||||
{!! Form::submit(Lang::get('lang.save'),['class'=>'btn btn-primary'])!!}
|
||||
</div>
|
||||
{!! Form::model($topics,['url' => 'helptopic/'.$topics->id, 'method' => 'PATCH']) !!}
|
||||
<div class="box box-primary">
|
||||
<div class="box-header with-border">
|
||||
<h3 class="box-title">{{Lang::get('lang.edit')}}</h3>
|
||||
</div>
|
||||
<div class="box-body">
|
||||
|
||||
@if(Session::has('errors'))
|
||||
<?php //dd($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('status'))
|
||||
<li class="error-message-padding">{!! $errors->first('status', ':message') !!}</li>
|
||||
@endif
|
||||
@if($errors->first('type'))
|
||||
<li class="error-message-padding">{!! $errors->first('type', ':message') !!}</li>
|
||||
@endif
|
||||
@if($errors->first('topic'))
|
||||
<li class="error-message-padding">{!! $errors->first('topic', ':message') !!}</li>
|
||||
@endif
|
||||
@if($errors->first('parent_topic'))
|
||||
<li class="error-message-padding">{!! $errors->first('parent_topic', ':message') !!}</li>
|
||||
@endif
|
||||
@if($errors->first('custom_form'))
|
||||
<li class="error-message-padding">{!! $errors->first('custom_form', ':message') !!}</li>
|
||||
@endif
|
||||
@if($errors->first('department'))
|
||||
<li class="error-message-padding">{!! $errors->first('department', ':message') !!}</li>
|
||||
@endif
|
||||
@if($errors->first('priority'))
|
||||
<li class="error-message-padding">{!! $errors->first('priority', ':message') !!}</li>
|
||||
@endif
|
||||
@if($errors->first('sla_plan'))
|
||||
<li class="error-message-padding">{!! $errors->first('sla_plan', ':message') !!}</li>
|
||||
@endif
|
||||
@if($errors->first('auto_assign'))
|
||||
<li class="error-message-padding">{!! $errors->first('auto_assign', ':message') !!}</li>
|
||||
@endif
|
||||
</div>
|
||||
@endif
|
||||
<!-- status radio: required: Active|Dissable -->
|
||||
<div class="row">
|
||||
<div class="col-md-6">
|
||||
<div class="form-group {{ $errors->has('ticket_status') ? 'has-error' : '' }}">
|
||||
|
||||
{!! Form::label('ticket_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.inactive')}}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Type : Radio : required : Public|private -->
|
||||
<div class="col-md-6">
|
||||
<div class="form-group {{ $errors->has('type') ? 'has-error' : '' }}">
|
||||
|
||||
{!! Form::label('type',Lang::get('lang.type')) !!}
|
||||
{!! $errors->first('type', '<spam class="help-block">:message</spam>') !!}
|
||||
{!! Form::radio('type','1',true) !!} {{Lang::get('lang.public')}}
|
||||
{!! Form::radio('type','0') !!} {{Lang::get('lang.private')}}
|
||||
</div>
|
||||
</div>
|
||||
<!-- Topic text form Required -->
|
||||
<div class="col-md-6">
|
||||
<div class="form-group {{ $errors->has('topic') ? 'has-error' : '' }}">
|
||||
|
||||
{!! Form::label('topic',Lang::get('lang.topic')) !!}
|
||||
{!! $errors->first('topic', '<spam class="help-block">:message</spam>') !!}
|
||||
{!! Form::text('topic',null,['class' => 'form-control']) !!}
|
||||
</div>
|
||||
</div>
|
||||
<!-- Parent Topic: Drop down: value from helptopic table -->
|
||||
<div class="col-md-6">
|
||||
<div class="form-group {{ $errors->has('parent_topic') ? 'has-error' : '' }}">
|
||||
|
||||
{!! Form::label('parent_topic',Lang::get('lang.parent_topic')) !!}
|
||||
{!! $errors->first('parent_topic', '<spam class="help-block">:message</spam>') !!}
|
||||
{!!Form::select('parent_topic', [''=>'Select a Parent Topic','Help Topics'=>$topics->lists('topic','id')],null,['class' => 'form-control']) !!}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Custom Form: Drop down: value from form table -->
|
||||
<div class="col-md-6">
|
||||
<div class="form-group {{ $errors->has('custom_form') ? 'has-error' : '' }}">
|
||||
|
||||
{!! 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>
|
||||
</div>
|
||||
<!-- Department: Drop down: value Department form table -->
|
||||
<div class="col-md-6">
|
||||
<div class="form-group {{ $errors->has('department') ? 'has-error' : '' }}">
|
||||
|
||||
{!! Form::label('department',Lang::get('lang.department')) !!}
|
||||
{!! $errors->first('department', '<spam class="help-block">:message</spam>') !!}
|
||||
{!!Form::select('department', [''=>'Select a Department','Departments'=>$departments->lists('name','id')],null,['class' => 'form-control']) !!}
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group {{ $errors->has('ticket_status') ? 'has-error' : '' }}">
|
||||
{!! Form::label('ticket_status',Lang::get('lang.status')) !!}
|
||||
{!! Form::radio('status','1',true) !!} {{Lang::get('lang.active')}}
|
||||
{!! Form::radio('status','0') !!} {{Lang::get('lang.inactive')}}
|
||||
</div>
|
||||
</div>
|
||||
<!-- Type : Radio : required : Public|private -->
|
||||
<div class="col-md-6">
|
||||
<div class="form-group {{ $errors->has('type') ? 'has-error' : '' }}">
|
||||
{!! Form::label('type',Lang::get('lang.type')) !!}
|
||||
{!! Form::radio('type','1',true) !!} {{Lang::get('lang.public')}}
|
||||
{!! Form::radio('type','0') !!} {{Lang::get('lang.private')}}
|
||||
</div>
|
||||
</div>
|
||||
<!-- Topic text form Required -->
|
||||
<div class="col-md-6">
|
||||
<div class="form-group {{ $errors->has('topic') ? 'has-error' : '' }}">
|
||||
{!! Form::label('topic',Lang::get('lang.topic')) !!} <span class="text-red"> *</span>
|
||||
{!! Form::text('topic',null,['class' => 'form-control']) !!}
|
||||
</div>
|
||||
</div>
|
||||
<!-- Parent Topic: Drop down: value from helptopic table -->
|
||||
<div class="col-md-6">
|
||||
<div class="form-group {{ $errors->has('parent_topic') ? 'has-error' : '' }}">
|
||||
{!! Form::label('parent_topic',Lang::get('lang.parent_topic')) !!}
|
||||
{!!Form::select('parent_topic', [''=>Lang::get('lang.select_a_parent_topic'),Lang::get('lang.help_topic')=>$topics->lists('topic','id')->toArray()],null,['class' => 'form-control']) !!}
|
||||
</div>
|
||||
</div>
|
||||
<!-- Custom Form: Drop down: value from form table -->
|
||||
<div class="col-md-6">
|
||||
<div class="form-group {{ $errors->has('custom_form') ? 'has-error' : '' }}">
|
||||
{!! Form::label('custom_form',Lang::get('lang.Custom_form')) !!}
|
||||
{!!Form::select('custom_form', [''=>Lang::get('lang.select_a_form'),Lang::get('lang.custom_form')=>$forms->lists('formname','id')->toArray()],null,['class' => 'form-control']) !!}
|
||||
</div>
|
||||
</div>
|
||||
<!-- Department: Drop down: value Department form table -->
|
||||
<div class="col-md-6">
|
||||
<div class="form-group {{ $errors->has('department') ? 'has-error' : '' }}">
|
||||
{!! Form::label('department',Lang::get('lang.department')) !!}
|
||||
{!!Form::select('department', [''=>Lang::get('lang.select_a_department'),Lang::get('lang.departments')=>$departments->lists('name','id')->toArray()],null,['class' => 'form-control']) !!}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- Priority: Drop down: value from Priority table -->
|
||||
<div class="row">
|
||||
<div class="col-md-4">
|
||||
<div class="form-group {{ $errors->has('priority') ? 'has-error' : '' }}">
|
||||
{!! Form::label('priority',Lang::get('lang.priority')) !!} <span class="text-red"> *</span>
|
||||
{!!Form::select('priority', [''=>Lang::get('lang.select_a_priority'),Lang::get('lang.priorities')=>$priority->lists('priority_desc','priority_id')->toArray()],null,['class' => 'form-control']) !!}
|
||||
</div>
|
||||
</div>
|
||||
<!-- SLA Plan: Drop down: value SLA Plan table-->
|
||||
<div class="col-md-4">
|
||||
<div class="form-group {{ $errors->has('sla_plan') ? 'has-error' : '' }}">
|
||||
{!! Form::label('sla_plan',Lang::get('lang.SLA_plan')) !!}
|
||||
{!!Form::select('sla_plan', [''=>Lang::get('lang.select_a_sla_plan'),Lang::get('lang.sla_plans')=>$slas->lists('name','id')->toArray()],null,['class' => 'form-control']) !!}
|
||||
</div>
|
||||
</div>
|
||||
<!-- Auto-assign To: Drop Down: value from Agent table -->
|
||||
<div class="col-md-4">
|
||||
<div class="form-group {{ $errors->has('auto_assign') ? 'has-error' : '' }}">
|
||||
{!! Form::label('auto_assign',Lang::get('lang.auto_assign')) !!}
|
||||
{!!Form::select('auto_assign', [''=>Lang::get('lang.select_an_agent'),Lang::get('lang.agents')=>$agents->lists('first_name','id')->toArray()],null,['class' => 'form-control']) !!}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- Auto-response: checkbox : Disable new ticket auto-response -->
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<!-- intrnal Notes : Textarea : -->
|
||||
<div class="form-group">
|
||||
{!! Form::label('internal_notes',Lang::get('lang.internal_notes')) !!}
|
||||
{!! Form::textarea('internal_notes',null,['class' => 'form-control','size' => '10x5']) !!}
|
||||
</div>
|
||||
</div>
|
||||
<!-- Submit button -->
|
||||
</div>
|
||||
</div>
|
||||
<div class="box-footer">
|
||||
<div class="form-group">
|
||||
<input type="checkbox" name="sys_help_tpoic" @if($sys_help_topic->help_topic == $topics->id) checked disabled @endif> {{ Lang::get('lang.make-default-helptopic')}}
|
||||
</div>
|
||||
{!! Form::submit(Lang::get('lang.update'),['class'=>'btn btn-primary'])!!}
|
||||
</div>
|
||||
</div>
|
||||
<!-- Priority: Drop down: value from Priority table -->
|
||||
<div class="row">
|
||||
<div class="col-md-4">
|
||||
<div class="form-group {{ $errors->has('priority') ? 'has-error' : '' }}">
|
||||
|
||||
{!! Form::label('priority',Lang::get('lang.priority')) !!}
|
||||
{!!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-->
|
||||
<div class="col-md-4">
|
||||
<div class="form-group {{ $errors->has('sla_plan') ? 'has-error' : '' }}">
|
||||
|
||||
{!! Form::label('sla_plan',Lang::get('lang.SLA_plan')) !!}
|
||||
|
||||
{!!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>
|
||||
|
||||
|
||||
<!-- Auto-assign To: Drop Down: value from Agent table -->
|
||||
<div class="col-md-4">
|
||||
<div class="form-group {{ $errors->has('auto_assign') ? 'has-error' : '' }}">
|
||||
|
||||
{!! 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('first_name','id')],null,['class' => 'form-control']) !!}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<!-- Auto-response: checkbox : Disable new ticket auto-response -->
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<!-- intrnal Notes : Textarea : -->
|
||||
<div class="form-group">
|
||||
{!! Form::label('internal_notes',Lang::get('lang.internal_notes')) !!}
|
||||
{!! Form::textarea('internal_notes',null,['class' => 'form-control','size' => '10x5']) !!}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Submit button -->
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- close form -->
|
||||
|
||||
{!! Form::close() !!}
|
||||
|
||||
@stop
|
||||
@stop
|
||||
@@ -28,124 +28,111 @@ class="active"
|
||||
<!-- /breadcrumbs -->
|
||||
<!-- content -->
|
||||
@section('content')
|
||||
<div class="box box-primary">
|
||||
<div class="form-group">
|
||||
<div class="box-header">
|
||||
<h2 class="box-title">{{Lang::get('lang.help_topic')}}</h2><a href="{{route('helptopic.create')}}" class="btn btn-primary pull-right">{{Lang::get('lang.create_help_topic')}}</a></div>
|
||||
<div class="box-body table-responsive">
|
||||
|
||||
<!-- 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 class="box box-primary">
|
||||
<div class="box-header with-border">
|
||||
<h3 class="box-title">{{Lang::get('lang.help_topic')}}</h3>
|
||||
<a href="{{route('helptopic.create')}}" class="btn btn-primary pull-right">{{Lang::get('lang.create_help_topic')}}</a>
|
||||
</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 class="box-body table-responsive">
|
||||
<!-- check whether success or not -->
|
||||
@if(Session::has('success'))
|
||||
<div class="alert alert-success alert-dismissable">
|
||||
<i class="fa fa-check-circle"></i>
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
{!! Session::get('success') !!}
|
||||
</div>
|
||||
@endif
|
||||
<!-- failure message -->
|
||||
@if(Session::has('fails'))
|
||||
<div class="alert alert-danger alert-dismissable">
|
||||
<i class="fa fa-ban"></i>
|
||||
<b>{!! Lang::get('lang.alert') !!} !</b>
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
{!! Session::get('fails') !!}
|
||||
</div>
|
||||
@endif
|
||||
<table class="table table-bordered dataTable">
|
||||
<tr>
|
||||
<th width="100px">{{Lang::get('lang.topic')}}</th>
|
||||
<th width="100px">{{Lang::get('lang.status')}}</th>
|
||||
<th width="100px">{{Lang::get('lang.type')}}</th>
|
||||
<th width="100px">{{Lang::get('lang.priority')}}</th>
|
||||
<th width="100px">{{Lang::get('lang.department')}}</th>
|
||||
<th width="100px">{{Lang::get('lang.last_updated')}}</th>
|
||||
<th width="100px">{{Lang::get('lang.action')}}</th>
|
||||
</tr>
|
||||
<?php
|
||||
$default_helptopic = App\Model\helpdesk\Settings\Ticket::where('id', '=', '1')->first();
|
||||
$default_helptopic = $default_helptopic->help_topic;
|
||||
?>
|
||||
<!-- Foreach @var$topics as @var topic -->
|
||||
@foreach($topics as $topic)
|
||||
<tr style="padding-bottom:-30px">
|
||||
<!-- topic Name with Link to Edit page along Id -->
|
||||
<td><a href="{{route('helptopic.edit',$topic->id)}}">{!! $topic->topic !!}
|
||||
@if($topic->id == $default_helptopic)
|
||||
( Default )
|
||||
<?php
|
||||
$disable = 'disabled';
|
||||
?>
|
||||
@else
|
||||
<?php
|
||||
$disable = '';
|
||||
?>
|
||||
@endif
|
||||
</a></td>
|
||||
|
||||
<!-- topic Status : if status==1 active -->
|
||||
<td>
|
||||
@if($topic->status=='1')
|
||||
<span style="color:green">{!! Lang::get('lang.active') !!}</span>
|
||||
@else
|
||||
<span style="color:red">{!! Lang::get('lang.disable') !!}</span>
|
||||
@endif
|
||||
</td>
|
||||
|
||||
<!-- Type -->
|
||||
|
||||
<td>
|
||||
@if($topic->type=='1')
|
||||
<span style="color:green">{!! Lang::get('lang.public') !!}</span>
|
||||
@else
|
||||
<span style="color:red">{!! Lang::get('lang.private') !!}</span>
|
||||
@endif
|
||||
</td>
|
||||
<!-- Priority -->
|
||||
<?php $priority = App\Model\helpdesk\Ticket\Ticket_Priority::where('priority_id', '=', $topic->priority)->first(); ?>
|
||||
<td>{!! $priority->priority_desc !!}</td>
|
||||
<!-- Department -->
|
||||
@if($topic->department != null)
|
||||
<?php
|
||||
$dept = App\Model\helpdesk\Agent\Department::where('id', '=', $topic->department)->first();
|
||||
$dept = $dept->name;
|
||||
?>
|
||||
@elseif($topic->department == null)
|
||||
<?php $dept = ""; ?>
|
||||
@endif
|
||||
<td> {!! $dept !!} </td>
|
||||
<!-- Last Updated -->
|
||||
<td> {!! UTC::usertimezone($topic->updated_at) !!} </td>
|
||||
<!-- Deleting Fields -->
|
||||
<td>
|
||||
{!! Form::open(['route'=>['helptopic.destroy', $topic->id],'method'=>'DELETE']) !!}
|
||||
<a href="{{route('helptopic.edit',$topic->id)}}" class="btn btn-info btn-xs btn-flat"><i class="fa fa-trash" style="color:black;"> </i> {!! Lang::get('lang.edit') !!}</a>
|
||||
<!-- To pop up a confirm Message -->
|
||||
{!! Form::button('<i class="fa fa-trash" style="color:black;"> </i> '.Lang::get('lang.delete'),
|
||||
['type' => 'submit',
|
||||
'class'=> 'btn btn-warning btn-xs btn-flat '.$disable,
|
||||
'onclick'=>'return confirm("Are you sure?")'])
|
||||
!!}
|
||||
</div>
|
||||
{!! Form::close() !!}
|
||||
</td>
|
||||
@endforeach
|
||||
</tr>
|
||||
<!-- Set a link to Create Page -->
|
||||
|
||||
</table>
|
||||
</div>
|
||||
@endif
|
||||
|
||||
<table class="table table-bordered dataTable" style="overflow:hidden;">
|
||||
|
||||
<tr>
|
||||
<th width="100px">{{Lang::get('lang.topic')}}</th>
|
||||
<th width="100px">{{Lang::get('lang.status')}}</th>
|
||||
<th width="100px">{{Lang::get('lang.type')}}</th>
|
||||
<th width="100px">{{Lang::get('lang.priority')}}</th>
|
||||
<th width="100px">{{Lang::get('lang.department')}}</th>
|
||||
<th width="100px">{{Lang::get('lang.last_updated')}}</th>
|
||||
<th width="100px">{{Lang::get('lang.action')}}</th>
|
||||
</tr>
|
||||
|
||||
<?php
|
||||
|
||||
$default_helptopic = App\Model\helpdesk\Settings\Ticket::where('id','=','1')->first();
|
||||
$default_helptopic = $default_helptopic->help_topic;
|
||||
|
||||
?>
|
||||
|
||||
<!-- Foreach @var$topics as @var topic -->
|
||||
@foreach($topics as $topic)
|
||||
<tr style="padding-bottom:-30px">
|
||||
|
||||
<!-- topic Name with Link to Edit page along Id -->
|
||||
<td><a href="{{route('helptopic.edit',$topic->id)}}">{!! $topic->topic !!}
|
||||
@if($topic->id == $default_helptopic)
|
||||
( Default )
|
||||
<?php
|
||||
$disable = 'disabled';
|
||||
?>
|
||||
@else
|
||||
<?php
|
||||
$disable = '';
|
||||
?>
|
||||
@endif
|
||||
</a></td>
|
||||
|
||||
<!-- topic Status : if status==1 active -->
|
||||
<td>
|
||||
@if($topic->status=='1')
|
||||
<span style="color:green">Active</span>
|
||||
@else
|
||||
<span style="color:red">Disable</span>
|
||||
@endif
|
||||
</td>
|
||||
|
||||
<!-- Type -->
|
||||
|
||||
<td>
|
||||
@if($topic->type=='1')
|
||||
<span style="color:green">Public</span>
|
||||
@else
|
||||
<span style="color:red">Private</span>
|
||||
@endif
|
||||
</td>
|
||||
<!-- Priority -->
|
||||
<?php $priority = App\Model\helpdesk\Ticket\Ticket_Priority::where('priority_id','=',$topic->priority)->first(); ?>
|
||||
<td>{!! $priority->priority_desc !!}</td>
|
||||
<!-- Department -->
|
||||
@if($topic->department != null)
|
||||
<?php $dept = App\Model\helpdesk\Agent\Department::where('id', '=', $topic->department)->first();
|
||||
$dept = $dept->name; ?>
|
||||
@elseif($topic->department == null)
|
||||
<?php $dept = ""; ?>
|
||||
@endif
|
||||
<td> {!! $dept !!} </td>
|
||||
<!-- Last Updated -->
|
||||
<td> {!! UTC::usertimezone($topic->updated_at) !!} </td>
|
||||
<!-- Deleting Fields -->
|
||||
<td>
|
||||
{!! Form::open(['route'=>['helptopic.destroy', $topic->id],'method'=>'DELETE']) !!}
|
||||
<a href="{{route('helptopic.edit',$topic->id)}}" class="btn btn-info btn-xs btn-flat"><i class="fa fa-trash" style="color:black;"> </i> Edit</a>
|
||||
<!-- To pop up a confirm Message -->
|
||||
{!! Form::button('<i class="fa fa-trash" style="color:black;"> </i> Delete',
|
||||
['type' => 'submit',
|
||||
'class'=> 'btn btn-warning btn-xs btn-flat '.$disable,
|
||||
'onclick'=>'return confirm("Are you sure?")'])
|
||||
!!}
|
||||
</div>
|
||||
{!! Form::close() !!}
|
||||
</td>
|
||||
@endforeach
|
||||
</tr>
|
||||
<!-- Set a link to Create Page -->
|
||||
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@stop
|
||||
@stop
|
||||
@@ -16,89 +16,80 @@ class="active"
|
||||
@stop
|
||||
<!-- header -->
|
||||
@section('PageHeader')
|
||||
|
||||
<h1>{!! Lang::get('lang.sla_plan') !!}</h1>
|
||||
@stop
|
||||
<!-- /header -->
|
||||
<!-- breadcrumbs -->
|
||||
@section('breadcrumbs')
|
||||
<ol class="breadcrumb">
|
||||
|
||||
</ol>
|
||||
@stop
|
||||
<!-- /breadcrumbs -->
|
||||
<!-- content -->
|
||||
@section('content')
|
||||
|
||||
<!-- open a form -->
|
||||
|
||||
{!! Form::open(['action' => 'Admin\helpdesk\SlaController@store', 'method' => 'post']) !!}
|
||||
|
||||
<div class="row">
|
||||
<div class="col-xs-12">
|
||||
<div class="box box-primary">
|
||||
<div class="box-body">
|
||||
|
||||
|
||||
<div class="box-header">
|
||||
<h2 class="box-title">{{Lang::get('lang.create')}}</h2>{!! Form::submit(Lang::get('lang.save'),['class'=>'pull-right btn btn-primary'])!!}</div>
|
||||
|
||||
|
||||
<!-- Name text form Required -->
|
||||
<div class="box-body table-responsive no-padding"style="overflow:hidden;">
|
||||
<!-- <table class="table table-hover" style="overflow:hidden;"> -->
|
||||
<div class="row">
|
||||
<div class="col-md-6">
|
||||
<div class="form-group {{ $errors->has('name') ? 'has-error' : '' }}">
|
||||
|
||||
{!! Form::label('name',Lang::get('lang.name')) !!}
|
||||
{!! $errors->first('name', '<spam class="help-block">:message</spam>') !!}
|
||||
{!! Form::text('name',null,['class' => 'form-control']) !!}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Grace Period text form Required -->
|
||||
<div class="col-md-6">
|
||||
<div class="form-group {{ $errors->has('grace_period') ? 'has-error' : '' }}">
|
||||
|
||||
{!! Form::label('grace_period',Lang::get('lang.grace_period')) !!}
|
||||
{!! $errors->first('grace_period', '<spam class="help-block">:message</spam>') !!}
|
||||
{!! Form::select('grace_period',['6 Hours'=>'6 Hours', '12 Hours'=>'12 Hours', '18 Hours'=>'18 Hours', '24 Hours'=>'24 Hours', '36 Hours'=>'36 Hours', '48 Hours'=>'48 Hours'],null,['class' => 'form-control']) !!}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- status radio: required: Active|Dissable -->
|
||||
<div class="col-md-6">
|
||||
<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.inactive')}}
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Admin Note : Textarea : -->
|
||||
<div class="row">
|
||||
{!! Form::open(['action' => 'Admin\helpdesk\SlaController@store', 'method' => 'post']) !!}
|
||||
<div class="box box-primary">
|
||||
<div class="box-header with-border">
|
||||
<h2 class="box-title">{{Lang::get('lang.create')}}</h2>
|
||||
</div>
|
||||
<div class="box-body">
|
||||
@if(Session::has('errors'))
|
||||
<?php //dd($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('grace_period'))
|
||||
<li class="error-message-padding">{!! $errors->first('grace_period', ':message') !!}</li>
|
||||
@endif
|
||||
@if($errors->first('status'))
|
||||
<li class="error-message-padding">{!! $errors->first('status', ':message') !!}</li>
|
||||
@endif
|
||||
</div>
|
||||
@endif
|
||||
<!-- <table class="table table-hover" style="overflow:hidden;"> -->
|
||||
<div class="row">
|
||||
<div class="col-md-6">
|
||||
<div class="form-group {{ $errors->has('name') ? 'has-error' : '' }}">
|
||||
{!! Form::label('name',Lang::get('lang.name')) !!} <span class="text-red"> *</span>
|
||||
{!! Form::text('name',null,['class' => 'form-control']) !!}
|
||||
</div>
|
||||
</div>
|
||||
<!-- Grace Period text form Required -->
|
||||
<div class="col-md-6">
|
||||
<div class="form-group {{ $errors->has('grace_period') ? 'has-error' : '' }}">
|
||||
{!! Form::label('grace_period',Lang::get('lang.grace_period')) !!}
|
||||
{!! Form::select('grace_period',['6 Hours'=>'6 Hours', '12 Hours'=>'12 Hours', '18 Hours'=>'18 Hours', '24 Hours'=>'24 Hours', '36 Hours'=>'36 Hours', '48 Hours'=>'48 Hours'],null,['class' => 'form-control']) !!}
|
||||
</div>
|
||||
</div>
|
||||
<!-- status radio: required: Active|Dissable -->
|
||||
<div class="col-md-6">
|
||||
<div class="form-group {{ $errors->has('status') ? 'has-error' : '' }}">
|
||||
{!! Form::label('status',Lang::get('lang.status')) !!}
|
||||
{!! Form::radio('status','1',true) !!} {{Lang::get('lang.active')}}
|
||||
{!! Form::radio('status','0') !!} {{Lang::get('lang.inactive')}}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- Admin Note : Textarea : -->
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="form-group">
|
||||
|
||||
{!! Form::label('admin_note',Lang::get('lang.admin_notes')) !!}
|
||||
{!! Form::textarea('admin_note',null,['class' => 'form-control','size' => '30x5']) !!}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
{!! Form::label('admin_note',Lang::get('lang.admin_notes')) !!}
|
||||
{!! Form::textarea('admin_note',null,['class' => 'form-control','size' => '30x5']) !!}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="box-footer">
|
||||
{!! Form::submit(Lang::get('lang.submit'),['class'=>'btn btn-primary'])!!}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- close form -->
|
||||
|
||||
{!! Form::close() !!}
|
||||
|
||||
@stop
|
||||
@stop
|
||||
@@ -16,89 +16,86 @@ class="active"
|
||||
@stop
|
||||
<!-- header -->
|
||||
@section('PageHeader')
|
||||
|
||||
<h1>{!! Lang::get('lang.sla_plan') !!}</h1>
|
||||
@stop
|
||||
<!-- /header -->
|
||||
<!-- breadcrumbs -->
|
||||
@section('breadcrumbs')
|
||||
<ol class="breadcrumb">
|
||||
|
||||
</ol>
|
||||
@stop
|
||||
<!-- /breadcrumbs -->
|
||||
<!-- content -->
|
||||
@section('content')
|
||||
|
||||
<!-- open a form -->
|
||||
|
||||
{!! Form::model($slas,['url' => 'sla/'.$slas->id, 'method' => 'PATCH']) !!}
|
||||
|
||||
<div class="row">
|
||||
<div class="col-xs-12">
|
||||
<div class="box box-primary">
|
||||
<div class="box-body">
|
||||
|
||||
|
||||
<div class="box-header">
|
||||
<h2 class="box-title">{{Lang::get('lang.edit')}}</h2>{!! Form::submit(Lang::get('lang.save'),['class'=>'pull-right btn btn-primary'])!!}</div>
|
||||
|
||||
|
||||
<!-- Name text form Required -->
|
||||
<div class="box-body table-responsive no-padding"style="overflow:hidden;">
|
||||
<!-- <table class="table table-hover" style="overflow:hidden;"> -->
|
||||
<div class="row">
|
||||
<div class="col-md-6">
|
||||
<div class="form-group {{ $errors->has('name') ? 'has-error' : '' }}">
|
||||
|
||||
{!! Form::label('name',Lang::get('lang.name')) !!}
|
||||
{!! $errors->first('name', '<spam class="help-block">:message</spam>') !!}
|
||||
{!! Form::text('name',null,['class' => 'form-control']) !!}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{!! Form::model($slas,['url' => 'sla/'.$slas->id, 'method' => 'PATCH']) !!}
|
||||
<div class="box box-primary">
|
||||
<div class="box-header with-border">
|
||||
<h2 class="box-title">{{Lang::get('lang.edit')}}</h2>
|
||||
</div>
|
||||
<div class="box-body">
|
||||
@if(Session::has('errors'))
|
||||
<?php //dd($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('grace_period'))
|
||||
<li class="error-message-padding">{!! $errors->first('grace_period', ':message') !!}</li>
|
||||
@endif
|
||||
@if($errors->first('status'))
|
||||
<li class="error-message-padding">{!! $errors->first('status', ':message') !!}</li>
|
||||
@endif
|
||||
</div>
|
||||
@endif
|
||||
<!-- Name text form Required -->
|
||||
<div class="box-body table-responsive no-padding"style="overflow:hidden;">
|
||||
<!-- <table class="table table-hover" style="overflow:hidden;"> -->
|
||||
<div class="row">
|
||||
<div class="col-md-6">
|
||||
<div class="form-group {{ $errors->has('name') ? 'has-error' : '' }}">
|
||||
{!! Form::label('name',Lang::get('lang.name')) !!} <span class="text-red"> *</span>
|
||||
{!! Form::text('name',null,['class' => 'form-control']) !!}
|
||||
</div>
|
||||
</div>
|
||||
<!-- Grace Period text form Required -->
|
||||
<div class="col-md-6">
|
||||
<div class="form-group {{ $errors->has('grace_period') ? 'has-error' : '' }}">
|
||||
|
||||
{!! Form::label('grace_period',Lang::get('lang.grace_period')) !!}
|
||||
{!! $errors->first('grace_period', '<spam class="help-block">:message</spam>') !!}
|
||||
{!! Form::select('grace_period',['6 Hours'=>'6 Hours', '12 Hours'=>'12 Hours', '18 Hours'=>'18 Hours', '24 Hours'=>'24 Hours', '36 Hours'=>'36 Hours', '48 Hours'=>'48 Hours'],null,['class' => 'form-control']) !!}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- status radio: required: Active|Dissable -->
|
||||
<div class="col-md-6">
|
||||
<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.inactive')}}
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<div class="form-group {{ $errors->has('grace_period') ? 'has-error' : '' }}">
|
||||
{!! Form::label('grace_period',Lang::get('lang.grace_period')) !!}
|
||||
{!! Form::select('grace_period',['6 Hours'=>'6 Hours', '12 Hours'=>'12 Hours', '18 Hours'=>'18 Hours', '24 Hours'=>'24 Hours', '36 Hours'=>'36 Hours', '48 Hours'=>'48 Hours'],null,['class' => 'form-control']) !!}
|
||||
</div>
|
||||
</div>
|
||||
<!-- status radio: required: Active|Dissable -->
|
||||
<div class="col-md-6">
|
||||
<div class="form-group {{ $errors->has('status') ? 'has-error' : '' }}">
|
||||
{!! Form::label('status',Lang::get('lang.status')) !!}
|
||||
{!! Form::radio('status','1',true) !!} {{Lang::get('lang.active')}}
|
||||
{!! Form::radio('status','0') !!} {{Lang::get('lang.inactive')}}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- Admin Note : Textarea : -->
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="form-group">
|
||||
{!! Form::label('admin_note',Lang::get('lang.admin_notes')) !!}
|
||||
{!! Form::textarea('admin_note',null,['class' => 'form-control','size' => '30x5']) !!}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="box-footer">
|
||||
<div class="form-group">
|
||||
<input type="checkbox" name="sys_sla" @if($slas->id == $sla->sla) checked disabled @endif> {{ Lang::get('lang.make-default-sla')}}
|
||||
</div>
|
||||
{!! Form::submit(Lang::get('lang.update'),['class'=>'btn btn-primary'])!!}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Admin Note : Textarea : -->
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="form-group">
|
||||
|
||||
{!! Form::label('admin_note',Lang::get('lang.admin_notes')) !!}
|
||||
{!! Form::textarea('admin_note',null,['class' => 'form-control','size' => '30x5']) !!}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- close form -->
|
||||
|
||||
{!! Form::close() !!}
|
||||
|
||||
@stop
|
||||
|
||||
@@ -39,7 +39,6 @@ class="active"
|
||||
@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>
|
||||
@@ -47,10 +46,9 @@ class="active"
|
||||
<!-- 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') !!}
|
||||
<i class="fa fa-ban"></i><button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
<b>{!! Lang::get('lang.alert') !!} !</b><br>
|
||||
<li class="error-message-padding">{!! Session::get('fails') !!}</li>
|
||||
</div>
|
||||
@endif
|
||||
@if(Session::has('errors'))
|
||||
@@ -77,44 +75,43 @@ class="active"
|
||||
</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>
|
||||
<label for="inputName" class="col-sm-2 control-label">{!! Lang::get('lang.name') !!} <span class="text-red"> *</span></label>
|
||||
<div class="col-sm-6">
|
||||
{!! Form::text('name',null,['class' => 'form-control', 'placeholder' => 'Name', 'id' => 'name']) !!}
|
||||
{!! Form::text('name',null,['class' => 'form-control', 'placeholder' => Lang::get('lang.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>
|
||||
<input type="radio" id="inputEmail2" name="status" value="1" > <label class="control-label" for="inputEmail2">{!! Lang::get('lang.active') !!}</label>
|
||||
<input type="radio" id="inputEmail1" name="status" value="0" checked> <label class="control-label" for="inputEmail1">{!! Lang::get('lang.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>
|
||||
<label for="Exceution" class="col-sm-2 control-label">{!! Lang::get('lang.execution_order') !!} <span class="text-red"> *</span></label>
|
||||
<div class="col-sm-6">
|
||||
{!! Form::input('number', 'execution_order',null,['class' => 'form-control', 'placeholder' => 'Exceution Order', 'id' => 'execution_order', 'min' => '0']) !!}
|
||||
{!! Form::input('number', 'execution_order',null,['class' => 'form-control', 'placeholder' => Lang::get('lang.execution_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>
|
||||
<label class="col-sm-2 control-label">{!! Lang::get('lang.target_channel') !!} <span class="text-red"> *</span></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']) !!}
|
||||
{!! Form::select('target_channel', [''=> '-- '.Lang::get('lang.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 class="active"><a href="#open" data-toggle="tab">{!! Lang::get('lang.workflow_rules') !!} <span class="text-red"> *</span></a>
|
||||
</li>
|
||||
<li><a href="#close" data-toggle="tab">{!! Lang::get('lang.workflow_action') !!}</a>
|
||||
<li><a href="#close" data-toggle="tab">{!! Lang::get('lang.workflow_action') !!} <span class="text-red"> *</span></a>
|
||||
</li>
|
||||
<li><a href="#delect" data-toggle="tab">{!! Lang::get('lang.internal_notes') !!}</a>
|
||||
<li><a href="#delect" data-toggle="tab">{!! Lang::get('lang.internal_notes') !!} </a>
|
||||
</li>
|
||||
</ul>
|
||||
<div class="tab-content">
|
||||
@@ -126,9 +123,9 @@ class="active"
|
||||
<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.rules') !!} <span class="text-red"> *</span></td>
|
||||
<td>{!! Lang::get('lang.condition') !!} <span class="text-red"> *</span></td>
|
||||
<td>{!! Lang::get('lang.statement') !!} <span class="text-red"> *</span></td>
|
||||
<td>{!! Lang::get('lang.action') !!}</td>
|
||||
</tr>
|
||||
</thead>
|
||||
@@ -136,24 +133,24 @@ class="active"
|
||||
<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>
|
||||
<option value="">-- {!! Lang::get('lang.select_one') !!} --</option>
|
||||
<option value="email">{!! Lang::get('lang.email') !!}</option>
|
||||
<option value="email_name">{!! Lang::get('lang.email_name') !!}</option>
|
||||
<option value="subject">{!! Lang::get('lang.subject') !!}</option>
|
||||
<option value="message">{!! Lang::get('lang.message') !!}/{!! Lang::get('lang.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>-->
|
||||
<option value="">-- {!! Lang::get('lang.select_one') !!} --</option>
|
||||
<option value="equal">{!! Lang::get('lang.equal_to') !!}</option>
|
||||
<option value="not_equal">{!! Lang::get('lang.not_equal_to') !!}</option>
|
||||
<option value="contains">{!! Lang::get('lang.contains') !!}</option>
|
||||
<option value="dn_contain">{!! Lang::get('lang.does_not_contain') !!}</option>
|
||||
<option value="starts">{!! Lang::get('lang.starts_with') !!}</option>
|
||||
<option value="ends">{!! Lang::get('lang.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">
|
||||
@@ -190,8 +187,8 @@ class="active"
|
||||
<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.condition') !!} <span class="text-red"> *</span></td>
|
||||
<td>{!! Lang::get('lang.rules') !!} <span class="text-red"> *</span></td>
|
||||
<td>{!! Lang::get('lang.action') !!}</td>
|
||||
</tr>
|
||||
</thead>
|
||||
@@ -199,16 +196,16 @@ class="active"
|
||||
<tr id="firstdata1">
|
||||
<td>
|
||||
<select class="form-control" onChange="selectdata(0)" id="selected0" name="action[0][a]" required>
|
||||
<option value="">Select an Action</option>
|
||||
<option value="">-- {!! Lang::get('lang.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>
|
||||
<option value="reject">{!! Lang::get('lang.reject_ticket') !!}</option>
|
||||
<option value="department">{!! Lang::get('lang.set_department') !!}</option>
|
||||
<option value="priority">{!! Lang::get('lang.set_priority') !!}</option>
|
||||
<option value="sla">{!! Lang::get('lang.set_sla_plan') !!}</option>
|
||||
<option value="team">{!! Lang::get('lang.assign_team') !!}</option>
|
||||
<option value="agent">{!! Lang::get('lang.assign_agent') !!}</option>
|
||||
<option value="helptopic">{!! Lang::get('lang.set_help_topic') !!}</option>
|
||||
<option value="status">{!! Lang::get('lang.set_ticket_status') !!}</option>
|
||||
</optgroup>
|
||||
</select>
|
||||
</td>
|
||||
@@ -256,7 +253,6 @@ class="active"
|
||||
</div>
|
||||
<!-- /.row -->
|
||||
</form>
|
||||
|
||||
<script>
|
||||
$(function() {
|
||||
$("#example1").DataTable();
|
||||
@@ -290,16 +286,16 @@ class="active"
|
||||
$('.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>' +
|
||||
'<option value="">-- {!! Lang::get("lang.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>' +
|
||||
'<option value="reject">{!! Lang::get("lang.reject_ticket") !!} </option>' +
|
||||
'<option value="department">{!! Lang::get("lang.set_department") !!} </option>' +
|
||||
'<option value="priority">{!! Lang::get("lang.set_priority") !!} </option>' +
|
||||
'<option value="sla">{!! Lang::get("lang.set_sla_plan") !!} </option>' +
|
||||
'<option value="team">{!! Lang::get("lang.assign_team") !!} </option>' +
|
||||
'<option value="agent">{!! Lang::get("lang.assign_agent") !!} </option>' +
|
||||
'<option value="helptopic">{!! Lang::get("lang.set_help_topic") !!} </option>' +
|
||||
'<option value="status">{!! Lang::get("lang.set_ticket_status") !!} </option>' +
|
||||
'</select>' +
|
||||
'</td>' +
|
||||
'<td id="fill' + n + '">' +
|
||||
@@ -330,22 +326,22 @@ class="active"
|
||||
$('.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>' +
|
||||
'<option>-- {!! Lang::get("lang.select_one") !!} --</option>' +
|
||||
'<option value="email">{!! Lang::get("lang.email") !!}</option>' +
|
||||
'<option value="email_name">{!! Lang::get("lang.email_name") !!}</option>' +
|
||||
'<option value="subject">{!! Lang::get("lang.subject") !!}</option>' +
|
||||
'<option value="message">{!! Lang::get("lang.message") !!}/{!! Lang::get("lang.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>' +
|
||||
'<option value="">-- {!! Lang::get("lang.select_one") !!} --</option>' +
|
||||
'<option value="equal">{!! Lang::get("lang.equal_to") !!}</option>' +
|
||||
'<option value="not_equal">{!! Lang::get("lang.not_equal_to") !!}</option>' +
|
||||
'<option value="contains">{!! Lang::get("lang.contains") !!}</option>' +
|
||||
'<option value="dn_contain">{!! Lang::get("lang.does_not_contain") !!}</option>' +
|
||||
'<option value="starts">{!! Lang::get("lang.starts_with") !!}</option>' +
|
||||
'<option value="ends">{!! Lang::get("lang.ends_with") !!}</option>' +
|
||||
'</select>' +
|
||||
'</td>' +
|
||||
'<td class="col-md-3"> <input class="form-control" type="text" name="rule[' + n + '][c]" required> </td>' +
|
||||
@@ -362,19 +358,19 @@ class="active"
|
||||
});
|
||||
|
||||
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);
|
||||
}
|
||||
});
|
||||
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>
|
||||
|
||||
|
||||
@@ -25,7 +25,7 @@ class="active"
|
||||
<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>
|
||||
<li class="active"><a href="">{!! Lang::get('lang.edit_workflow') !!}</a></li>
|
||||
</ol>
|
||||
@stop
|
||||
<!-- /breadcrumbs -->
|
||||
@@ -39,7 +39,6 @@ class="active"
|
||||
@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>
|
||||
@@ -47,16 +46,15 @@ class="active"
|
||||
<!-- 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>
|
||||
<i class="fa fa-ban"></i><button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
<b>{!! Lang::get('lang.alert') !!} !</b><br>
|
||||
{{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>
|
||||
<b>{!! Lang::get('lang.alert') !!}!</b>
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
<br/>
|
||||
@if($errors->first('name'))
|
||||
@@ -77,33 +75,39 @@ class="active"
|
||||
</div>
|
||||
@endif
|
||||
<div class="form-group {!! $errors->has('name') ? 'has-error' : '' !!}">
|
||||
<label for="inputName" class="col-sm-2 control-label">Name</label>
|
||||
<label for="inputName" class="col-sm-2 control-label">{!! Lang::get('lang.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>
|
||||
<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" <?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>
|
||||
<input type="radio" id="inputEmail2" name="status" value="1" <?php
|
||||
if ($workflow->status == 1) {
|
||||
echo "checked";
|
||||
}
|
||||
?> > <label class="control-label" for="inputEmail2">{!! Lang::get('lang.active') !!}</label>
|
||||
<input type="radio" id="inputEmail1" name="status" value="0" <?php
|
||||
if ($workflow->status == 0) {
|
||||
echo "checked";
|
||||
}
|
||||
?> > <label class="control-label" for="inputEmail1">{!! Lang::get('lang.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>
|
||||
<label for="Exceution" class="col-sm-2 control-label">{!! Lang::get('lang.execution_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>
|
||||
<input type="number" class="form-control" id="execution_order" name="execution_order" placeholder="{!! Lang::get('lang.execution_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>
|
||||
|
||||
<label class="col-sm-2 control-label">{!! Lang::get('target_channel') !!}</label>
|
||||
<div class="col-sm-6">
|
||||
|
||||
<select class="form-control" name="target_channel" required>
|
||||
<option value=""> -- Select a Channel -- </option>
|
||||
<option value=""> -- {!! Lang::get('lang.select_a_channel') !!} -- </option>
|
||||
<option value="A-0" <?php
|
||||
if ($workflow->target == "A-0") {
|
||||
echo "selected='selected'";
|
||||
@@ -115,33 +119,31 @@ class="active"
|
||||
}
|
||||
?> >Web Forms</option>
|
||||
<option value="A-4" <?php
|
||||
if ($workflow->target == "A-4") {
|
||||
echo "selected='selected'";
|
||||
}
|
||||
?> >API Calls</option>
|
||||
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>
|
||||
|
||||
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 class="active"><a href="#open" data-toggle="tab">{!! Lang::get('lang.workflow_rules') !!}</a>
|
||||
</li>
|
||||
<li><a href="#close" data-toggle="tab">Workflow Action</a>
|
||||
<li><a href="#close" data-toggle="tab">{!! Lang::get('lang.workflow_action') !!}</a>
|
||||
</li>
|
||||
<li><a href="#delect" data-toggle="tab">Internal Notes</a>
|
||||
<li><a href="#delect" data-toggle="tab">{!! Lang::get('lang.internal_notes') !!}</a>
|
||||
</li>
|
||||
</ul>
|
||||
<div class="tab-content">
|
||||
@@ -153,10 +155,10 @@ class="active"
|
||||
<table class="table table-bordered table-hover">
|
||||
<thead>
|
||||
<tr>
|
||||
<td>Rules</td>
|
||||
<td>Condition</td>
|
||||
<td>Statement</td>
|
||||
<td>Action</td>
|
||||
<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">
|
||||
@@ -166,24 +168,72 @@ class="active"
|
||||
<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>
|
||||
<option value="">-- {!! Lang::get('lang.select_one') !!} --</option>
|
||||
<option value="email" <?php
|
||||
if ($workflow_rule->matching_scenario == 'email') {
|
||||
echo "selected='selected'";
|
||||
}
|
||||
?> >{!! Lang::get('lang.email') !!}</option>
|
||||
<option value="email_name" <?php
|
||||
if ($workflow_rule->matching_scenario == 'email_name') {
|
||||
echo "selected='selected'";
|
||||
}
|
||||
?> >{!! Lang::get('lang.email_name') !!}</option>
|
||||
<option value="subject" <?php
|
||||
if ($workflow_rule->matching_scenario == 'subject') {
|
||||
echo "selected='selected'";
|
||||
}
|
||||
?>>{!! Lang::get('lang.subject') !!}</option>
|
||||
<option value="message" <?php
|
||||
if ($workflow_rule->matching_scenario == 'message') {
|
||||
echo "selected='selected'";
|
||||
}
|
||||
?> >{!! Lang::get('lang.message') !!}/{!! Lang::get('lang.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>-->
|
||||
<option value="">-- {!! Lang::get('lang.select_one') !!} --</option>
|
||||
<option value="equal" <?php
|
||||
if ($workflow_rule->matching_relation == 'equal') {
|
||||
echo "selected='selected'";
|
||||
}
|
||||
?> >{!! Lang::get('lang.equal_to') !!}</option>
|
||||
<option value="not_equal" <?php
|
||||
if ($workflow_rule->matching_relation == 'not_equal') {
|
||||
echo "selected='selected'";
|
||||
}
|
||||
?> >{!! Lang::get('lang.not_equal_to') !!}</option>
|
||||
<option value="contains" <?php
|
||||
if ($workflow_rule->matching_relation == 'contains') {
|
||||
echo "selected='selected'";
|
||||
}
|
||||
?> >{!! Lang::get('lang.contains') !!}</option>
|
||||
<option value="dn_contain" <?php
|
||||
if ($workflow_rule->matching_relation == 'dn_contain') {
|
||||
echo "selected='selected'";
|
||||
}
|
||||
?> >{!! Lang::get('lang.does_not_contain') !!}</option>
|
||||
<option value="starts" <?php
|
||||
if ($workflow_rule->matching_relation == 'starts') {
|
||||
echo "selected='selected'";
|
||||
}
|
||||
?> >{!! Lang::get('lang.starts_with') !!}</option>
|
||||
<option value="ends" <?php
|
||||
if ($workflow_rule->matching_relation == 'ends') {
|
||||
echo "selected='selected'";
|
||||
}
|
||||
?> >{!! Lang::get('lang.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">
|
||||
@@ -192,7 +242,7 @@ class="active"
|
||||
<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 = ''">
|
||||
<a data-toggle="tooltip" data-placement="top" title="{!! Lang::get('lang.delete') !!}" onclick="document.getElementById('firstdata{!! $j !!}').innerHTML = ''">
|
||||
<i class="fa fa-trash-o"></i>
|
||||
</a>
|
||||
</span>
|
||||
@@ -203,10 +253,8 @@ class="active"
|
||||
</tbody>
|
||||
</table>
|
||||
<div class="row" style="padding: 10px 15px 0px">
|
||||
|
||||
<div class="pull-right" >
|
||||
|
||||
<a class="btn btn-primary btnAdd1">Add</a>
|
||||
<a class="btn btn-primary btnAdd1">{!! Lang::get('lang.add') !!}</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -223,9 +271,9 @@ class="active"
|
||||
<table class="table table-bordered table-hover">
|
||||
<thead>
|
||||
<tr>
|
||||
<td>Condition</td>
|
||||
<td>Rule</td>
|
||||
<td>Action</td>
|
||||
<td>{!! Lang::get('lang.condition') !!}</td>
|
||||
<td>{!! Lang::get('lang.rules') !!}</td>
|
||||
<td>{!! Lang::get('lang.action') !!}</td>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody class="buttons">
|
||||
@@ -235,118 +283,149 @@ class="active"
|
||||
<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>
|
||||
<option value="">-- {!! Lang::get('lang.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>
|
||||
<option value="reject" <?php
|
||||
if ($workflow_action->condition == 'reject') {
|
||||
echo "selected='selected'";
|
||||
}
|
||||
?> >{!! Lang::get('lang.reject_ticket') !!}</option>
|
||||
<option value="department" <?php
|
||||
if ($workflow_action->condition == 'department') {
|
||||
echo "selected='selected'";
|
||||
}
|
||||
?> >{!! Lang::get('lang.set_department') !!}</option>
|
||||
<option value="priority" <?php
|
||||
if ($workflow_action->condition == 'priority') {
|
||||
echo "selected='selected'";
|
||||
}
|
||||
?> >{!! Lang::get('lang.set_priority') !!}</option>
|
||||
<option value="sla" <?php
|
||||
if ($workflow_action->condition == 'sla') {
|
||||
echo "selected='selected'";
|
||||
}
|
||||
?> >{!! Lang::get('lang.set_sla_plan') !!}</option>
|
||||
<option value="team" <?php
|
||||
if ($workflow_action->condition == 'team') {
|
||||
echo "selected='selected'";
|
||||
}
|
||||
?> >{!! Lang::get('lang.assign_team') !!}</option>
|
||||
<option value="agent" <?php
|
||||
if ($workflow_action->condition == 'agent') {
|
||||
echo "selected='selected'";
|
||||
}
|
||||
?> >{!! Lang::get('lang.assign_agent') !!}</option>
|
||||
<option value="helptopic" <?php
|
||||
if ($workflow_action->condition == 'helptopic') {
|
||||
echo "selected='selected'";
|
||||
}
|
||||
?> >{!! Lang::get('lang.set_help_topic') !!}</option>
|
||||
<option value="status" <?php
|
||||
if ($workflow_action->condition == 'status') {
|
||||
echo "selected='selected'";
|
||||
}
|
||||
?> >{!! Lang::get('lang.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>";
|
||||
<?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>";
|
||||
$var = "<select name='action[" . $i . "][b]' class='form-control' required>";
|
||||
foreach ($departments as $department) {
|
||||
if($workflow_action->action == $department->id) {
|
||||
if ($workflow_action->action == $department->id) {
|
||||
$depart = "selected";
|
||||
} else {
|
||||
$depart = "";
|
||||
}
|
||||
$var .= "<option value='" . $department->id . "' ".$depart.">" . $department->name . "</option>";
|
||||
$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>";
|
||||
$var = "<select name='action[" . $i . "][b]' class='form-control' required>";
|
||||
foreach ($priorities as $priority) {
|
||||
if($workflow_action->action == $priority->priority_id) {
|
||||
if ($workflow_action->action == $priority->priority_id) {
|
||||
$priority1 = "selected";
|
||||
} else {
|
||||
$priority1 = "";
|
||||
}
|
||||
$var .= "<option value='" . $priority->priority_id . "' ".$priority1.">" . $priority->priority_desc . "</option>";
|
||||
$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>";
|
||||
$var = "<select name='action[" . $i . "][b]' class='form-control' required>";
|
||||
foreach ($sla_plans as $sla_plan) {
|
||||
if($workflow_action->action == $sla_plan->id) {
|
||||
if ($workflow_action->action == $sla_plan->id) {
|
||||
$sla = "selected";
|
||||
} else {
|
||||
$sla = "";
|
||||
}
|
||||
$var .= "<option value='" . $sla_plan->id . "' ". $sla .">" . $sla_plan->grace_period . "</option>";
|
||||
$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>";
|
||||
$var = "<select name='action[" . $i . "][b]' class='form-control' required>";
|
||||
foreach ($teams as $team) {
|
||||
if($workflow_action->action == $team->id) {
|
||||
if ($workflow_action->action == $team->id) {
|
||||
$team1 = "selected";
|
||||
} else {
|
||||
$team1 = "";
|
||||
}
|
||||
$var .= "<option value='" . $team->id . "' ".$team1.">" . $team->name . "</option>";
|
||||
$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>";
|
||||
$var = "<select name='action[" . $i . "][b]' class='form-control' required>";
|
||||
foreach ($users as $user) {
|
||||
if($workflow_action->action == $user->id) {
|
||||
if ($workflow_action->action == $user->id) {
|
||||
$user1 = "selected";
|
||||
} else {
|
||||
$user1 = "";
|
||||
}
|
||||
$var .= "<option value='" . $user->id . "' ".$user1.">" . $user->first_name . " " . $user->last_name . "</option>";
|
||||
$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>";
|
||||
$var = "<select name='action[" . $i . "][b]' class='form-control' required>";
|
||||
foreach ($help_topics as $help_topic) {
|
||||
if($workflow_action->action == $help_topic->id) {
|
||||
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 .= "<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>";
|
||||
$var = "<select name='action[" . $i . "][b]' class='form-control' required>";
|
||||
foreach ($ticket_status as $status) {
|
||||
if($workflow_action->action == $status->id) {
|
||||
if ($workflow_action->action == $status->id) {
|
||||
$status1 = "selected";
|
||||
} else {
|
||||
$status1 = "";
|
||||
}
|
||||
$var .= "<option value='" . $status->id . "' ".$status1.">" . $status->name . "</option>";
|
||||
$var .= "<option value='" . $status->id . "' " . $status1 . ">" . $status->name . "</option>";
|
||||
}
|
||||
$var .= "</select>";
|
||||
echo $var;
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
||||
|
||||
</td>
|
||||
<td style="text-align: center">
|
||||
<div class="tools">
|
||||
@@ -363,7 +442,7 @@ class="active"
|
||||
</table>
|
||||
<div class="row" style="padding: 10px 15px 0px">
|
||||
<div class="pull-right">
|
||||
<a class="btn btn-primary btnAdd">Add</a>
|
||||
<a class="btn btn-primary btnAdd">{!! Lang::get('lang.add') !!}</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -374,7 +453,7 @@ class="active"
|
||||
<!-- /.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>
|
||||
<textarea name="internal_note" class="textarea" placeholder="Please Enter an internal note for your team!" style="width: 100%; height: 200px; font-size: 14px; line-height: 18px; border: 1px solid #dddddd; padding: 10px;"></textarea>
|
||||
</div>
|
||||
<!-- /.col -->
|
||||
</div>
|
||||
@@ -382,7 +461,7 @@ class="active"
|
||||
</div>
|
||||
<!-- /.tab-content -->
|
||||
<div class="box-footer">
|
||||
<input type="submit" class="btn btn-primary" value="SUBMIT">
|
||||
<input type="submit" class="btn btn-primary" value="{!! Lang::get('lang.submit') !!}">
|
||||
</div>
|
||||
</div>
|
||||
<!-- /.nav-tabs-custom -->
|
||||
@@ -391,129 +470,123 @@ class="active"
|
||||
</div>
|
||||
<!-- /.row -->
|
||||
</form>
|
||||
|
||||
<script>
|
||||
$(function() {
|
||||
$("#example1").DataTable();
|
||||
$('#example2').DataTable({
|
||||
$(function() {
|
||||
$("#example1").DataTable();
|
||||
$('#example2').DataTable({
|
||||
"paging": true,
|
||||
"lengthChange": false,
|
||||
"searching": false,
|
||||
"ordering": true,
|
||||
"info": true,
|
||||
"autoWidth": false
|
||||
});
|
||||
});
|
||||
"lengthChange": false,
|
||||
"searching": false,
|
||||
"ordering": true,
|
||||
"info": true,
|
||||
"autoWidth": false
|
||||
});
|
||||
});
|
||||
function getSelectVal(val) {
|
||||
|
||||
|
||||
function getSelectVal(val) {
|
||||
|
||||
$.ajax({
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: "",
|
||||
data: 'select_box=' + val,
|
||||
success: function(data) {
|
||||
$("#select-list").html(data);
|
||||
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++;
|
||||
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
|
||||
'<td>' +
|
||||
'<select class="form-control" onChange="selectdata(' + n + ')" name="action[' + n + '][a]" id="selected' + n + '" required>' +
|
||||
'<option value="">-- {!! Lang::get("lang.select_an_action") !!} --</option>' +
|
||||
'<optgroup label="Ticket">' +
|
||||
'<option value="reject">{!! Lang::get("lang.reject_ticket") !!}</option>' +
|
||||
'<option value="department">{!! Lang::get("lang.set_department") !!}</option>' +
|
||||
'<option value="priority">{!! Lang::get("lang.set_priority") !!}</option>' +
|
||||
'<option value="sla">{!! Lang::get("lang.set_sla_plan") !!}</option>' +
|
||||
'<option value="team">{!! Lang::get("lang.assign_team") !!}</option>' +
|
||||
'<option value="agent">{!! Lang::get("lang.assign_agent") !!} </option>' +
|
||||
'<option value="helptopic">{!! Lang::get("lang.set_help_topic") !!} </option>' +
|
||||
'<option value="status">{!! Lang::get("lang.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--;
|
||||
});
|
||||
});
|
||||
e.preventDefault();
|
||||
$(this).closest('tr').remove();
|
||||
x--;
|
||||
});
|
||||
|
||||
$(document).ready(function() {
|
||||
var x = 0;
|
||||
var n = {!! $j !!};
|
||||
$('.btnAdd1').click(function() {
|
||||
n++;
|
||||
});
|
||||
});
|
||||
$(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
|
||||
'<td>' +
|
||||
'<select class="form-control" name="rule[' + n + '][a]" required>' +
|
||||
'<option>-- {!! Lang::get("lang.select_one") !!} --</option>' +
|
||||
'<option value="email">{!! Lang::get("lang.email") !!}</option>' +
|
||||
'<option value="email_name">{!! Lang::get("lang.email_name") !!}</option>' +
|
||||
'<option value="subject">{!! Lang::get("lang.subject") !!}</option>' +
|
||||
'<option value="message">{!! Lang::get("lang.message") !!}/{!! Lang::get("lang.body") !!}</option>' +
|
||||
'</select>' +
|
||||
'</td>' +
|
||||
'<td class="col-md-3">' +
|
||||
'<select class="form-control" name="rule[' + n + '][b]" required>' +
|
||||
'<option value="">-- {!! Lang::get("lang.select_one") !!} --</option>' +
|
||||
'<option value="equal">{!! Lang::get("lang.equal_to") !!}</option>' +
|
||||
'<option value="not_equal">{!! Lang::get("lang.not_equal_to") !!}</option>' +
|
||||
'<option value="contains">{!! Lang::get("lang.contains") !!}</option>' +
|
||||
'<option value="dn_contain">{!! Lang::get("lang.does_not_contain") !!}</option>' +
|
||||
'<option value="starts">{!! Lang::get("lang.starts_with") !!}</option>' +
|
||||
'<option value="ends">{!! Lang::get("lang.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--;
|
||||
});
|
||||
});
|
||||
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);
|
||||
});
|
||||
});
|
||||
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>
|
||||
|
||||
|
||||
@@ -20,7 +20,6 @@ class="active"
|
||||
<!-- /header -->
|
||||
<!-- breadcrumbs -->
|
||||
@section('breadcrumbs')
|
||||
|
||||
@stop
|
||||
<!-- /breadcrumbs -->
|
||||
<!-- content -->
|
||||
@@ -38,7 +37,6 @@ class="active"
|
||||
@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>
|
||||
@@ -47,7 +45,7 @@ class="active"
|
||||
@if(Session::has('fails'))
|
||||
<div class="alert alert-danger alert-dismissable">
|
||||
<i class="fa fa-ban"></i>
|
||||
<b>Fail!</b>
|
||||
<b>{!! Lang::get('lang.alert') !!} !</b>
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
{!! Session::get('fails') !!}
|
||||
</div>
|
||||
@@ -64,16 +62,12 @@ class="active"
|
||||
->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();
|
||||
|
||||
@@ -3,425 +3,577 @@
|
||||
@stop
|
||||
<!-- header -->
|
||||
@section('PageHeader')
|
||||
<h1>{!! Lang::get('lang.admin_panel') !!}</h1>
|
||||
<h1>{!! Lang::get('lang.admin_panel') !!}</h1>
|
||||
@stop
|
||||
<!-- /header -->
|
||||
<!-- breadcrumbs -->
|
||||
@section('breadcrumbs')
|
||||
<ol class="breadcrumb">
|
||||
</ol>
|
||||
@stop
|
||||
<!-- /breadcrumbs -->
|
||||
<!-- content -->
|
||||
@section('content')
|
||||
<div class="box">
|
||||
<div class="box-header with-border">
|
||||
<h3 class="box-title">{!! Lang::get('lang.staffs') !!}</h3>
|
||||
</div>
|
||||
<!-- /.box-header -->
|
||||
<div class="box-body">
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<!--/.col-md-2-->
|
||||
<div class="col-md-2 col-sm-6">
|
||||
<div class="settingiconblue">
|
||||
<div class="settingdivblue">
|
||||
<a href="{{ url('agents') }}"><span class="fa-stack fa-2x">
|
||||
<i class="fa fa-user fa-stack-1x"></i>
|
||||
</span></a>
|
||||
</div>
|
||||
<center class="box-title" >{!! Lang::get('lang.agents') !!}</center>
|
||||
</div>
|
||||
</div>
|
||||
<!--/.col-md-2-->
|
||||
<!--/.col-md-2-->
|
||||
<div class="col-md-2 col-sm-6">
|
||||
<div class="settingiconblue">
|
||||
<div class="settingdivblue">
|
||||
<a href="{{ url('departments') }}"><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.departments') !!}</center>
|
||||
</div>
|
||||
</div>
|
||||
<!--/.col-md-2-->
|
||||
|
||||
<!--/.col-md-2-->
|
||||
<div class="col-md-2 col-sm-6">
|
||||
<div class="settingiconblue">
|
||||
<div class="settingdivblue">
|
||||
<a href="{{ url('teams') }}"><span class="fa-stack fa-2x">
|
||||
<i class="fa fa-users fa-stack-1x"></i>
|
||||
</span></a>
|
||||
</div>
|
||||
<center class="box-title" >{!! Lang::get('lang.teams') !!}</center>
|
||||
</div>
|
||||
</div>
|
||||
<!--/.col-md-2-->
|
||||
<!--/.col-md-2-->
|
||||
<div class="col-md-2 col-sm-6">
|
||||
<div class="settingiconblue">
|
||||
<div class="settingdivblue">
|
||||
<a href="{{ url('groups') }}"><span class="fa-stack fa-2x">
|
||||
|
||||
<i class="fa fa-group fa-stack-1x"></i>
|
||||
</span></a>
|
||||
</div>
|
||||
<center class="box-title" >{!! Lang::get('lang.groups') !!}</center>
|
||||
</div>
|
||||
</div>
|
||||
<!--/.col-md-2-->
|
||||
</div>
|
||||
</div>
|
||||
<!-- /.row -->
|
||||
</div>
|
||||
<!-- ./box-body -->
|
||||
<!-- failure message -->
|
||||
@if(Session::has('fails'))
|
||||
<div class="alert alert-danger alert-dismissable">
|
||||
<i class="fa fa-ban"> </i> <b> {!! Lang::get('lang.alert') !!}! </b>
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
{{Session::get('fails')}}
|
||||
</div>
|
||||
@endif
|
||||
<div class="box">
|
||||
<div class="box-header with-border">
|
||||
<h3 class="box-title">{!! Lang::get('lang.staffs') !!}</h3>
|
||||
</div>
|
||||
<!-- /.box-header -->
|
||||
<div class="box-body">
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<!--/.col-md-2-->
|
||||
<div class="col-md-2 col-sm-6">
|
||||
<div class="settingiconblue">
|
||||
<div class="settingdivblue">
|
||||
<a href="{{ url('agents') }}">
|
||||
<span class="fa-stack fa-2x">
|
||||
<i class="fa fa-user fa-stack-1x"></i>
|
||||
</span>
|
||||
</a>
|
||||
</div>
|
||||
<!-- /.box -->
|
||||
|
||||
|
||||
|
||||
<div class="box">
|
||||
<div class="box-header with-border">
|
||||
<h3 class="box-title">{!! Lang::get('lang.email') !!}</h3>
|
||||
</div>
|
||||
<!-- /.box-header -->
|
||||
<div class="box-body">
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<!--/.col-md-2-->
|
||||
<div class="col-md-2 col-sm-6">
|
||||
<div class="settingiconblue">
|
||||
<div class="settingdivblue">
|
||||
<a href="{{ url('emails') }}"><span class="fa-stack fa-2x">
|
||||
<i class="fa fa-envelope-o fa-stack-1x"></i>
|
||||
</span></a>
|
||||
</div>
|
||||
<center class="box-title" >{!! Lang::get('lang.emails') !!}</center>
|
||||
</div>
|
||||
</div>
|
||||
<!--/.col-md-2-->
|
||||
|
||||
<!--/.col-md-2-->
|
||||
<div class="col-md-2 col-sm-6">
|
||||
<div class="settingiconblue">
|
||||
<div class="settingdivblue">
|
||||
<a href="{{ url('banlist') }}"><span class="fa-stack fa-2x">
|
||||
<i class="fa fa-ban fa-stack-1x"></i>
|
||||
</span></a>
|
||||
</div>
|
||||
<center class="box-title" >{!! Lang::get('lang.ban_lists') !!}</center>
|
||||
</div>
|
||||
</div>
|
||||
<!--/.col-md-2-->
|
||||
|
||||
<!--/.col-md-2-->
|
||||
<div class="col-md-2 col-sm-6">
|
||||
<div class="settingiconblue">
|
||||
<div class="settingdivblue">
|
||||
<a href="{{ url('list-directories') }}"><span class="fa-stack fa-2x">
|
||||
|
||||
<i class="fa fa-mail-forward fa-stack-1x"></i>
|
||||
</span></a>
|
||||
</div>
|
||||
<center class="box-title" >{!! Lang::get('lang.templates') !!}</center>
|
||||
</div>
|
||||
</div>
|
||||
<!--/.col-md-2-->
|
||||
|
||||
<!--/.col-md-2-->
|
||||
<div class="col-md-2 col-sm-6">
|
||||
<div class="settingiconblue">
|
||||
<div class="settingdivblue">
|
||||
<a href="{{ url('getdiagno') }}"><span class="fa-stack fa-2x">
|
||||
|
||||
<i class="fa fa-plus fa-stack-1x"></i>
|
||||
</span></a>
|
||||
</div>
|
||||
<center class="box-title" >{!! Lang::get('lang.diagnostics') !!}</center>
|
||||
</div>
|
||||
</div>
|
||||
<!--/.col-md-2-->
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<!-- /.row -->
|
||||
</div>
|
||||
<!-- ./box-body -->
|
||||
<p class="box-title" >{!! Lang::get('lang.agents') !!}</p>
|
||||
</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('departments') }}">
|
||||
<span class="fa-stack fa-2x">
|
||||
<i class="fa fa-sitemap fa-stack-1x"></i>
|
||||
</span>
|
||||
</a>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="box">
|
||||
<div class="box-header with-border">
|
||||
<h3 class="box-title">{!! Lang::get('lang.manage') !!}</h3>
|
||||
</div>
|
||||
<!-- /.box-header -->
|
||||
<div class="box-body">
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<!--/.col-md-2-->
|
||||
<div class="col-md-2 col-sm-6">
|
||||
<div class="settingiconblue">
|
||||
<div class="settingdivblue">
|
||||
<a href="{{url('helptopic')}}"><span class="fa-stack fa-2x">
|
||||
|
||||
<i class="fa fa-file-text-o fa-stack-1x"></i>
|
||||
</span></a>
|
||||
</div>
|
||||
<center class="box-title" >{!! Lang::get('lang.help_topics') !!}</center>
|
||||
</div>
|
||||
</div>
|
||||
<!--/.col-md-2-->
|
||||
<!--/.col-md-2-->
|
||||
<div class="col-md-2 col-sm-6">
|
||||
<div class="settingiconblue">
|
||||
<div class="settingdivblue">
|
||||
<a href="{{url('sla')}}"><span class="fa-stack fa-2x">
|
||||
|
||||
<i class="fa fa-clock-o fa-stack-1x"></i>
|
||||
</span></a>
|
||||
</div>
|
||||
<center class="box-title" >{!! Lang::get('lang.sla_plans') !!}</center>
|
||||
</div>
|
||||
</div>
|
||||
<!--/.col-md-2-->
|
||||
|
||||
<!--/.col-md-2-->
|
||||
<div class="col-md-2 col-sm-6">
|
||||
<div class="settingiconblue">
|
||||
<div class="settingdivblue">
|
||||
<a href="{{url('forms')}}"><span class="fa-stack fa-2x">
|
||||
|
||||
<i class="fa fa-file-text fa-stack-1x"></i>
|
||||
</span></a>
|
||||
</div>
|
||||
<center class="box-title" >{!! Lang::get('lang.forms') !!}</center>
|
||||
</div>
|
||||
</div>
|
||||
<!--/.col-md-2-->
|
||||
<!--/.col-md-2-->
|
||||
<div class="col-md-2 col-sm-6">
|
||||
<div class="settingiconblue">
|
||||
<div class="settingdivblue">
|
||||
<a href="{{url('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>
|
||||
<!-- /.row -->
|
||||
</div>
|
||||
<!-- ./box-body -->
|
||||
<p class="box-title" >{!! Lang::get('lang.departments') !!}</p>
|
||||
</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('teams') }}">
|
||||
<span class="fa-stack fa-2x">
|
||||
<i class="fa fa-users fa-stack-1x"></i>
|
||||
</span>
|
||||
</a>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<div class="box">
|
||||
<div class="box-header with-border">
|
||||
<h3 class="box-title">{!! Lang::get('lang.settings') !!}</h3>
|
||||
</div>
|
||||
<!-- /.box-header -->
|
||||
<div class="box-body">
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<!--/.col-md-2-->
|
||||
<div class="col-md-2 col-sm-6">
|
||||
<div class="settingiconblue">
|
||||
<div class="settingdivblue">
|
||||
<a href="{{url('getcompany')}}"><span class="fa-stack fa-2x">
|
||||
|
||||
<i class="fa fa-building-o fa-stack-1x"></i>
|
||||
</span></a>
|
||||
</div>
|
||||
<center class="box-title" >{!! Lang::get('lang.company') !!}</center>
|
||||
</div>
|
||||
</div>
|
||||
<!--/.col-md-2-->
|
||||
<!--/.col-md-2-->
|
||||
<div class="col-md-2 col-sm-6">
|
||||
<div class="settingiconblue">
|
||||
<div class="settingdivblue">
|
||||
<a href="{{url('getsystem')}}"><span class="fa-stack fa-2x">
|
||||
|
||||
<i class="fa fa-laptop fa-stack-1x"></i>
|
||||
</span></a>
|
||||
</div>
|
||||
<center class="box-title" >{!! Lang::get('lang.system') !!}</center>
|
||||
</div>
|
||||
</div>
|
||||
<!--/.col-md-2-->
|
||||
|
||||
<!--/.col-md-2-->
|
||||
<div class="col-md-2 col-sm-6">
|
||||
<div class="settingiconblue">
|
||||
<div class="settingdivblue">
|
||||
<a href="{{url('getemail')}}"><span class="fa-stack fa-2x">
|
||||
|
||||
<i class="fa fa-at fa-stack-1x"></i>
|
||||
</span></a>
|
||||
</div>
|
||||
<center class="box-title" >{!! Lang::get('lang.email') !!}</center>
|
||||
</div>
|
||||
</div>
|
||||
<!--/.col-md-2-->
|
||||
|
||||
<!--/.col-md-2-->
|
||||
<div class="col-md-2 col-sm-6">
|
||||
<div class="settingiconblue">
|
||||
<div class="settingdivblue">
|
||||
<a href="{{url('getticket')}}"><span class="fa-stack fa-2x">
|
||||
|
||||
<i class="fa fa-file-text-o fa-stack-1x"></i>
|
||||
</span></a>
|
||||
</div>
|
||||
<center class="box-title" >{!! Lang::get('lang.ticket') !!}</center>
|
||||
</div>
|
||||
</div>
|
||||
<!--/.col-md-2-->
|
||||
|
||||
<!--/.col-md-2-->
|
||||
<div class="col-md-2 col-sm-6">
|
||||
<div class="settingiconblue">
|
||||
<div class="settingdivblue">
|
||||
<a href="{{url('getresponder')}}"><span class="fa-stack fa-2x">
|
||||
|
||||
<i class="fa fa-reply-all fa-stack-1x"></i>
|
||||
</span></a>
|
||||
</div>
|
||||
<center class="box-title" >{!! Lang::get('lang.auto_response') !!}</center>
|
||||
</div>
|
||||
</div>
|
||||
<!--/.col-md-2-->
|
||||
|
||||
<!--/.col-md-2-->
|
||||
<div class="col-md-2 col-sm-6">
|
||||
<div class="settingiconblue">
|
||||
<div class="settingdivblue">
|
||||
<a href="{{url('getalert')}}"><span class="fa-stack fa-2x">
|
||||
<i class="fa fa-bell-o fa-stack-1x"></i>
|
||||
</span></a>
|
||||
</div>
|
||||
<center class="box-title" >{!! Lang::get('lang.alert_notices') !!}</center>
|
||||
</div>
|
||||
</div>
|
||||
<!--/.col-md-2-->
|
||||
|
||||
<!--/.col-md-2-->
|
||||
<div class="col-md-2 col-sm-6">
|
||||
<div class="settingiconblue">
|
||||
<div class="settingdivblue">
|
||||
<a href="{{url('languages')}}"><span class="fa-stack fa-2x">
|
||||
<i class="fa fa-language fa-stack-1x"></i>
|
||||
</span></a>
|
||||
</div>
|
||||
<center class="box-title">{!! Lang::get('lang.language') !!}</center>
|
||||
</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>
|
||||
<!-- /.row -->
|
||||
</div>
|
||||
<!-- ./box-body -->
|
||||
<p class="box-title" >{!! Lang::get('lang.teams') !!}</p>
|
||||
</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('groups') }}">
|
||||
<span class="fa-stack fa-2x">
|
||||
<i class="fa fa-group fa-stack-1x"></i>
|
||||
</span>
|
||||
</a>
|
||||
</div>
|
||||
<p class="box-title" >{!! Lang::get('lang.groups') !!}</p>
|
||||
</div>
|
||||
</div>
|
||||
<!--/.col-md-2-->
|
||||
</div>
|
||||
</div>
|
||||
<!-- /.row -->
|
||||
</div>
|
||||
<!-- ./box-body -->
|
||||
</div>
|
||||
<!-- /.box -->
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="box">
|
||||
<div class="box-header with-border">
|
||||
<h3 class="box-title">{!! Lang::get('lang.widgets') !!}</h3>
|
||||
</div>
|
||||
<!-- /.box-header -->
|
||||
<div class="box-body">
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<!--/.col-md-2-->
|
||||
<div class="col-md-2 col-sm-6">
|
||||
<div class="settingiconblue">
|
||||
<div class="settingdivblue">
|
||||
<a href="{{ url('widgets') }}"><span class="fa-stack fa-2x">
|
||||
<i class="fa fa-list-alt fa-stack-1x"></i>
|
||||
</span></a>
|
||||
</div>
|
||||
<center class="box-title" >{!! Lang::get('lang.widgets') !!}</center>
|
||||
</div>
|
||||
</div>
|
||||
<!--/.col-md-2-->
|
||||
|
||||
|
||||
<!--/.col-md-2-->
|
||||
<div class="col-md-2 col-sm-6">
|
||||
<div class="settingiconblue">
|
||||
<div class="settingdivblue">
|
||||
<a href="{{ url('social-buttons') }}"><span class="fa-stack fa-2x">
|
||||
<i class="fa fa-cubes fa-stack-1x"></i>
|
||||
</span></a>
|
||||
</div>
|
||||
<center class="box-title" >{!! Lang::get('lang.social') !!}</center>
|
||||
</div>
|
||||
</div>
|
||||
<!--/.col-md-2-->
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<!-- /.row -->
|
||||
</div>
|
||||
<!-- ./box-body -->
|
||||
<div class="box">
|
||||
<div class="box-header with-border">
|
||||
<h3 class="box-title">{!! Lang::get('lang.email') !!}</h3>
|
||||
</div>
|
||||
<!-- /.box-header -->
|
||||
<div class="box-body">
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<!--col-md-2-->
|
||||
<div class="col-md-2 col-sm-6">
|
||||
<div class="settingiconblue">
|
||||
<div class="settingdivblue">
|
||||
<a href="{{ url('emails') }}">
|
||||
<span class="fa-stack fa-2x">
|
||||
<i class="fa fa-envelope-o fa-stack-1x"></i>
|
||||
</span>
|
||||
</a>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="box">
|
||||
<div class="box-header with-border">
|
||||
<h3 class="box-title">{!! Lang::get('lang.plugin') !!}</h3>
|
||||
</div>
|
||||
<!-- /.box-header -->
|
||||
<div class="box-body">
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<!--/.col-md-2-->
|
||||
<div class="col-md-2 col-sm-6">
|
||||
<div class="settingiconblue">
|
||||
<div class="settingdivblue">
|
||||
<a href="{{ url('plugins') }}"><span class="fa-stack fa-2x">
|
||||
|
||||
<i class="fa fa-plug fa-stack-1x"></i>
|
||||
</span></a>
|
||||
</div>
|
||||
<center class="box-title" >{!! Lang::get('lang.plugin') !!}</center>
|
||||
</div>
|
||||
</div>
|
||||
<!--/.col-md-2-->
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<!-- /.row -->
|
||||
</div>
|
||||
<!-- ./box-body -->
|
||||
<p class="box-title" >{!! Lang::get('lang.emails') !!}</p>
|
||||
</div>
|
||||
</div>
|
||||
<!--/.col-md-2-->
|
||||
<!--col-md-2-->
|
||||
<div class="col-md-2 col-sm-6">
|
||||
<div class="settingiconblue">
|
||||
<div class="settingdivblue">
|
||||
<a href="{{ url('banlist') }}">
|
||||
<span class="fa-stack fa-2x">
|
||||
<i class="fa fa-ban fa-stack-1x"></i>
|
||||
</span>
|
||||
</a>
|
||||
</div>
|
||||
<p class="box-title" >{!! Lang::get('lang.ban_lists') !!}</p>
|
||||
</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('template-sets') }}">
|
||||
<span class="fa-stack fa-2x">
|
||||
<i class="fa fa-mail-forward fa-stack-1x"></i>
|
||||
</span>
|
||||
</a>
|
||||
</div>
|
||||
<p class="box-title" >{!! Lang::get('lang.templates') !!}</p>
|
||||
</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('getemail')}}">
|
||||
<span class="fa-stack fa-2x">
|
||||
<i class="fa fa-at fa-stack-1x"></i>
|
||||
</span>
|
||||
</a>
|
||||
</div>
|
||||
<p class="box-title" >{!! Lang::get('lang.email-settings') !!}</p>
|
||||
</div>
|
||||
</div>
|
||||
<!--col-md-2-->
|
||||
<div class="col-md-2 col-sm-6">
|
||||
<div class="settingiconblue">
|
||||
<div class="settingdivblue">
|
||||
<a href="{{ url('getdiagno') }}">
|
||||
<span class="fa-stack fa-2x">
|
||||
<i class="fa fa-plus fa-stack-1x"></i>
|
||||
</span>
|
||||
</a>
|
||||
</div>
|
||||
<p class="box-title" >{!! Lang::get('lang.diagnostics') !!}</p>
|
||||
</div>
|
||||
</div>
|
||||
<!--/.col-md-2-->
|
||||
</div>
|
||||
</div>
|
||||
<!-- /.row -->
|
||||
</div>
|
||||
<!-- ./box-body -->
|
||||
</div>
|
||||
|
||||
<div class="box">
|
||||
<div class="box-header with-border">
|
||||
<h3 class="box-title">{!! Lang::get('lang.manage') !!}</h3>
|
||||
</div>
|
||||
<!-- /.box-header -->
|
||||
<div class="box-body">
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<!--/.col-md-2-->
|
||||
<div class="col-md-2 col-sm-6">
|
||||
<div class="settingiconblue">
|
||||
<div class="settingdivblue">
|
||||
<a href="{{url('helptopic')}}">
|
||||
<span class="fa-stack fa-2x">
|
||||
<i class="fa fa-file-text-o fa-stack-1x"></i>
|
||||
</span>
|
||||
</a>
|
||||
</div>
|
||||
<p class="box-title" >{!! Lang::get('lang.help_topics') !!}</p>
|
||||
</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('sla')}}">
|
||||
<span class="fa-stack fa-2x">
|
||||
<i class="fa fa-clock-o fa-stack-1x"></i>
|
||||
</span>
|
||||
</a>
|
||||
</div>
|
||||
<p class="box-title" >{!! Lang::get('lang.sla_plans') !!}</p>
|
||||
</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('forms')}}">
|
||||
<span class="fa-stack fa-2x">
|
||||
<i class="fa fa-file-text fa-stack-1x"></i>
|
||||
</span>
|
||||
</a>
|
||||
</div>
|
||||
<p class="box-title" >{!! Lang::get('lang.forms') !!}</p>
|
||||
</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>
|
||||
<p class="box-title" >{!! Lang::get('lang.workflow') !!}</p>
|
||||
</div>
|
||||
</div>
|
||||
<!--/.col-md-2-->
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<!-- /.row -->
|
||||
</div>
|
||||
<!-- ./box-body -->
|
||||
</div>
|
||||
|
||||
<div class="box">
|
||||
<div class="box-header with-border">
|
||||
<h3 class="box-title">{!! Lang::get('lang.settings') !!}</h3>
|
||||
</div>
|
||||
<!-- /.box-header -->
|
||||
<div class="box-body">
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<!--/.col-md-2-->
|
||||
<div class="col-md-2 col-sm-6">
|
||||
<div class="settingiconblue">
|
||||
<div class="settingdivblue">
|
||||
<a href="{!! url('getcompany') !!}">
|
||||
<span class="fa-stack fa-2x">
|
||||
<i class="fa fa-building-o fa-stack-1x"></i>
|
||||
</span>
|
||||
</a>
|
||||
</div>
|
||||
<p class="box-title" >{!! Lang::get('lang.company') !!}</p>
|
||||
</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('getsystem')}}">
|
||||
<span class="fa-stack fa-2x">
|
||||
<i class="fa fa-laptop fa-stack-1x"></i>
|
||||
</span>
|
||||
</a>
|
||||
</div>
|
||||
<p class="box-title" >{!! Lang::get('lang.system') !!}</p>
|
||||
</div>
|
||||
</div>
|
||||
<!--/.col-md-2-->
|
||||
|
||||
|
||||
<!--/.col-md-2-->
|
||||
|
||||
<!--/.col-md-2-->
|
||||
<div class="col-md-2 col-sm-6">
|
||||
<div class="settingiconblue">
|
||||
<div class="settingdivblue">
|
||||
<a href="{{url('getticket')}}">
|
||||
<span class="fa-stack fa-2x">
|
||||
<i class="fa fa-file-text-o fa-stack-1x"></i>
|
||||
</span>
|
||||
</a>
|
||||
</div>
|
||||
<p class="box-title" >{!! Lang::get('lang.ticket') !!}</p>
|
||||
</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('getresponder')}}">
|
||||
<span class="fa-stack fa-2x">
|
||||
<i class="fa fa-reply-all fa-stack-1x"></i>
|
||||
</span>
|
||||
</a>
|
||||
</div>
|
||||
<p class="box-title" >{!! Lang::get('lang.auto_response') !!}</p>
|
||||
</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('getalert')}}">
|
||||
<span class="fa-stack fa-2x">
|
||||
<i class="fa fa-bell-o fa-stack-1x"></i>
|
||||
</span>
|
||||
</a>
|
||||
</div>
|
||||
<p class="box-title" >{!! Lang::get('lang.alert_notices') !!}</p>
|
||||
</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('languages')}}">
|
||||
<span class="fa-stack fa-2x">
|
||||
<i class="fa fa-language fa-stack-1x"></i>
|
||||
</span>
|
||||
</a>
|
||||
</div>
|
||||
<p class="box-title">{!! Lang::get('lang.language') !!}</p>
|
||||
</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>
|
||||
<p class="box-title" >{!! Lang::get('lang.cron') !!}</p>
|
||||
</div>
|
||||
</div>
|
||||
<!--/.col-md-2-->
|
||||
<div class="col-md-2 col-sm-6">
|
||||
<div class="settingiconblue">
|
||||
<div class="settingdivblue">
|
||||
<a href="{{url('security')}}">
|
||||
<span class="fa-stack fa-2x">
|
||||
<i class="fa fa-lock fa-stack-1x"></i>
|
||||
</span>
|
||||
</a>
|
||||
</div>
|
||||
<p class="box-title" >{!! Lang::get('lang.security') !!}</p>
|
||||
</div>
|
||||
</div>
|
||||
<!--/.col-md-2-->
|
||||
<div class="col-md-2 col-sm-6">
|
||||
<div class="settingiconblue">
|
||||
<div class="settingdivblue">
|
||||
<a href="{{url('setting-status')}}">
|
||||
<span class="fa-stack fa-2x">
|
||||
<i class="fa fa-plus-square-o"></i>
|
||||
</span>
|
||||
</a>
|
||||
</div>
|
||||
<p class="box-title" >Statuses</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-2 col-sm-6">
|
||||
<div class="settingiconblue">
|
||||
<div class="settingdivblue">
|
||||
<a href="{{url('settings-notification')}}">
|
||||
<span class="fa-stack fa-2x">
|
||||
<i class="fa fa-bell"></i>
|
||||
</span>
|
||||
</a>
|
||||
</div>
|
||||
<p class="box-title" >{!! Lang::get('lang.notification') !!}</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-2 col-sm-6">
|
||||
<div class="settingiconblue">
|
||||
<div class="settingdivblue">
|
||||
<a href="{{url('getratings')}}">
|
||||
<span class="fa-stack fa-2x">
|
||||
<i class="fa fa-star"></i>
|
||||
</span>
|
||||
</a>
|
||||
</div>
|
||||
<p class="box-title" >{!! Lang::get('lang.ratings') !!}</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-2 col-sm-6">
|
||||
<div class="settingiconblue">
|
||||
<div class="settingdivblue">
|
||||
<a href="{{url('close-workflow')}}">
|
||||
<span class="fa-stack fa-2x">
|
||||
<i class="fa fa-sitemap"></i>
|
||||
</span>
|
||||
</a>
|
||||
</div>
|
||||
<p class="box-title" >{!! Lang::get('lang.close_ticket_workflow') !!}</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- /.row -->
|
||||
</div>
|
||||
<!-- ./box-body -->
|
||||
</div>
|
||||
|
||||
<div class="box">
|
||||
<div class="box-header with-border">
|
||||
<h3 class="box-title">{!! Lang::get('lang.error-debug') !!}</h3>
|
||||
</div>
|
||||
<!-- /.box-header -->
|
||||
<div class="box-body">
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<!--/.col-md-2-->
|
||||
<!-- <div class="col-md-2 col-sm-6">
|
||||
<div class="settingiconblue">
|
||||
<div class="settingdivblue">
|
||||
<a href="{{ route('error.logs') }}">
|
||||
<span class="fa-stack fa-2x">
|
||||
<i class="fa fa-list-alt fa-stack-1x"></i>
|
||||
</span>
|
||||
</a>
|
||||
</div>
|
||||
<p class="box-title" >{!! Lang::get('lang.view-logs') !!}</p>
|
||||
</div>
|
||||
</div>
|
||||
--> <!--/.col-md-2-->
|
||||
<!--col-md-2-->
|
||||
<div class="col-md-2 col-sm-6">
|
||||
<div class="settingiconblue">
|
||||
<div class="settingdivblue">
|
||||
<a href="{{ route('err.debug.settings') }}">
|
||||
<span class="fa-stack fa-2x">
|
||||
<i class="fa fa-bug fa-stack-1x"></i>
|
||||
</span>
|
||||
</a>
|
||||
</div>
|
||||
<p class="box-title" >{!! Lang::get('lang.debug-options') !!}</p>
|
||||
</div>
|
||||
</div>
|
||||
<!--/.col-md-2-->
|
||||
</div>
|
||||
</div>
|
||||
<!-- /.row -->
|
||||
</div>
|
||||
<!-- ./box-body -->
|
||||
</div>
|
||||
|
||||
|
||||
<div class="box">
|
||||
<div class="box-header with-border">
|
||||
<h3 class="box-title">{!! Lang::get('lang.widgets') !!}</h3>
|
||||
</div>
|
||||
<!-- /.box-header -->
|
||||
<div class="box-body">
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<!--/.col-md-2-->
|
||||
<div class="col-md-2 col-sm-6">
|
||||
<div class="settingiconblue">
|
||||
<div class="settingdivblue">
|
||||
<a href="{{ url('widgets') }}">
|
||||
<span class="fa-stack fa-2x">
|
||||
<i class="fa fa-list-alt fa-stack-1x"></i>
|
||||
</span>
|
||||
</a>
|
||||
</div>
|
||||
<p class="box-title" >{!! Lang::get('lang.widgets') !!}</p>
|
||||
</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('social-buttons') }}">
|
||||
<span class="fa-stack fa-2x">
|
||||
<i class="fa fa-cubes fa-stack-1x"></i>
|
||||
</span>
|
||||
</a>
|
||||
</div>
|
||||
<p class="box-title" >{!! Lang::get('lang.social') !!}</p>
|
||||
</div>
|
||||
</div>
|
||||
<!--/.col-md-2-->
|
||||
</div>
|
||||
</div>
|
||||
<!-- /.row -->
|
||||
</div>
|
||||
<!-- ./box-body -->
|
||||
</div>
|
||||
|
||||
<div class="box">
|
||||
<div class="box-header with-border">
|
||||
<h3 class="box-title">{!! Lang::get('lang.plugin') !!}</h3>
|
||||
</div>
|
||||
<!-- /.box-header -->
|
||||
<div class="box-body">
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<!--/.col-md-2-->
|
||||
<div class="col-md-2 col-sm-6">
|
||||
<div class="settingiconblue">
|
||||
<div class="settingdivblue">
|
||||
<a href="{{ url('plugins') }}">
|
||||
<span class="fa-stack fa-2x">
|
||||
<i class="fa fa-plug fa-stack-1x"></i>
|
||||
</span>
|
||||
</a>
|
||||
</div>
|
||||
<p class="box-title" >{!! Lang::get('lang.plugin') !!}</p>
|
||||
</div>
|
||||
</div>
|
||||
<!--/.col-md-2-->
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<!-- /.row -->
|
||||
</div>
|
||||
<!-- ./box-body -->
|
||||
</div>
|
||||
<div class="box">
|
||||
<div class="box-header with-border">
|
||||
<h3 class="box-title">{!! Lang::get('lang.api') !!}</h3>
|
||||
</div>
|
||||
<!-- /.box-header -->
|
||||
<div class="box-body">
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<!--/.col-md-2-->
|
||||
<div class="col-md-2 col-sm-6">
|
||||
<div class="settingiconblue">
|
||||
<div class="settingdivblue">
|
||||
<a href="{{ url('api') }}">
|
||||
<span class="fa-stack fa-2x">
|
||||
<i class="fa fa-archive"></i>
|
||||
</span>
|
||||
</a>
|
||||
</div>
|
||||
<p class="box-title" >{!! Lang::get('lang.api') !!}</p>
|
||||
</div>
|
||||
</div>
|
||||
<!--/.col-md-2-->
|
||||
</div>
|
||||
</div>
|
||||
<!-- /.row -->
|
||||
</div>
|
||||
<!-- ./box-body -->
|
||||
</div>
|
||||
<?php \Event::fire('service.desk.admin.settings', array()); ?>
|
||||
|
||||
|
||||
@stop
|
||||
|
||||
@@ -0,0 +1,427 @@
|
||||
@extends('themes.default1.admin.layout.admin')
|
||||
@section('HeadInclude')
|
||||
@stop
|
||||
<!-- header -->
|
||||
@section('PageHeader')
|
||||
<h1>{!! Lang::get('lang.admin_panel') !!}</h1>
|
||||
@stop
|
||||
<!-- /header -->
|
||||
<!-- breadcrumbs -->
|
||||
@section('breadcrumbs')
|
||||
<ol class="breadcrumb">
|
||||
</ol>
|
||||
@stop
|
||||
<!-- /breadcrumbs -->
|
||||
<!-- content -->
|
||||
@section('content')
|
||||
<div class="box">
|
||||
<div class="box-header with-border">
|
||||
<h3 class="box-title">{!! Lang::get('lang.staffs') !!}</h3>
|
||||
</div>
|
||||
<!-- /.box-header -->
|
||||
<div class="box-body">
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<!--/.col-md-2-->
|
||||
<div class="col-md-2 col-sm-6">
|
||||
<div class="settingiconblue">
|
||||
<div class="settingdivblue">
|
||||
<a href="{{ url('agents') }}"><span class="fa-stack fa-2x">
|
||||
<i class="fa fa-user fa-stack-1x"></i>
|
||||
</span></a>
|
||||
</div>
|
||||
<center class="box-title" >{!! Lang::get('lang.agents') !!}</center>
|
||||
</div>
|
||||
</div>
|
||||
<!--/.col-md-2-->
|
||||
<!--/.col-md-2-->
|
||||
<div class="col-md-2 col-sm-6">
|
||||
<div class="settingiconblue">
|
||||
<div class="settingdivblue">
|
||||
<a href="{{ url('departments') }}"><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.departments') !!}</center>
|
||||
</div>
|
||||
</div>
|
||||
<!--/.col-md-2-->
|
||||
|
||||
<!--/.col-md-2-->
|
||||
<div class="col-md-2 col-sm-6">
|
||||
<div class="settingiconblue">
|
||||
<div class="settingdivblue">
|
||||
<a href="{{ url('teams') }}"><span class="fa-stack fa-2x">
|
||||
<i class="fa fa-users fa-stack-1x"></i>
|
||||
</span></a>
|
||||
</div>
|
||||
<center class="box-title" >{!! Lang::get('lang.teams') !!}</center>
|
||||
</div>
|
||||
</div>
|
||||
<!--/.col-md-2-->
|
||||
<!--/.col-md-2-->
|
||||
<div class="col-md-2 col-sm-6">
|
||||
<div class="settingiconblue">
|
||||
<div class="settingdivblue">
|
||||
<a href="{{ url('groups') }}"><span class="fa-stack fa-2x">
|
||||
|
||||
<i class="fa fa-group fa-stack-1x"></i>
|
||||
</span></a>
|
||||
</div>
|
||||
<center class="box-title" >{!! Lang::get('lang.groups') !!}</center>
|
||||
</div>
|
||||
</div>
|
||||
<!--/.col-md-2-->
|
||||
</div>
|
||||
</div>
|
||||
<!-- /.row -->
|
||||
</div>
|
||||
<!-- ./box-body -->
|
||||
</div>
|
||||
<!-- /.box -->
|
||||
|
||||
|
||||
|
||||
<div class="box">
|
||||
<div class="box-header with-border">
|
||||
<h3 class="box-title">{!! Lang::get('lang.email') !!}</h3>
|
||||
</div>
|
||||
<!-- /.box-header -->
|
||||
<div class="box-body">
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<!--/.col-md-2-->
|
||||
<div class="col-md-2 col-sm-6">
|
||||
<div class="settingiconblue">
|
||||
<div class="settingdivblue">
|
||||
<a href="{{ url('emails') }}"><span class="fa-stack fa-2x">
|
||||
<i class="fa fa-envelope-o fa-stack-1x"></i>
|
||||
</span></a>
|
||||
</div>
|
||||
<center class="box-title" >{!! Lang::get('lang.emails') !!}</center>
|
||||
</div>
|
||||
</div>
|
||||
<!--/.col-md-2-->
|
||||
|
||||
<!--/.col-md-2-->
|
||||
<div class="col-md-2 col-sm-6">
|
||||
<div class="settingiconblue">
|
||||
<div class="settingdivblue">
|
||||
<a href="{{ url('banlist') }}"><span class="fa-stack fa-2x">
|
||||
<i class="fa fa-ban fa-stack-1x"></i>
|
||||
</span></a>
|
||||
</div>
|
||||
<center class="box-title" >{!! Lang::get('lang.ban_lists') !!}</center>
|
||||
</div>
|
||||
</div>
|
||||
<!--/.col-md-2-->
|
||||
|
||||
<!--/.col-md-2-->
|
||||
<div class="col-md-2 col-sm-6">
|
||||
<div class="settingiconblue">
|
||||
<div class="settingdivblue">
|
||||
<a href="{{ url('list-directories') }}"><span class="fa-stack fa-2x">
|
||||
|
||||
<i class="fa fa-mail-forward fa-stack-1x"></i>
|
||||
</span></a>
|
||||
</div>
|
||||
<center class="box-title" >{!! Lang::get('lang.templates') !!}</center>
|
||||
</div>
|
||||
</div>
|
||||
<!--/.col-md-2-->
|
||||
|
||||
<!--/.col-md-2-->
|
||||
<div class="col-md-2 col-sm-6">
|
||||
<div class="settingiconblue">
|
||||
<div class="settingdivblue">
|
||||
<a href="{{ url('getdiagno') }}"><span class="fa-stack fa-2x">
|
||||
|
||||
<i class="fa fa-plus fa-stack-1x"></i>
|
||||
</span></a>
|
||||
</div>
|
||||
<center class="box-title" >{!! Lang::get('lang.diagnostics') !!}</center>
|
||||
</div>
|
||||
</div>
|
||||
<!--/.col-md-2-->
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<!-- /.row -->
|
||||
</div>
|
||||
<!-- ./box-body -->
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="box">
|
||||
<div class="box-header with-border">
|
||||
<h3 class="box-title">{!! Lang::get('lang.manage') !!}</h3>
|
||||
</div>
|
||||
<!-- /.box-header -->
|
||||
<div class="box-body">
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<!--/.col-md-2-->
|
||||
<div class="col-md-2 col-sm-6">
|
||||
<div class="settingiconblue">
|
||||
<div class="settingdivblue">
|
||||
<a href="{{url('helptopic')}}"><span class="fa-stack fa-2x">
|
||||
|
||||
<i class="fa fa-file-text-o fa-stack-1x"></i>
|
||||
</span></a>
|
||||
</div>
|
||||
<center class="box-title" >{!! Lang::get('lang.help_topics') !!}</center>
|
||||
</div>
|
||||
</div>
|
||||
<!--/.col-md-2-->
|
||||
<!--/.col-md-2-->
|
||||
<div class="col-md-2 col-sm-6">
|
||||
<div class="settingiconblue">
|
||||
<div class="settingdivblue">
|
||||
<a href="{{url('sla')}}"><span class="fa-stack fa-2x">
|
||||
|
||||
<i class="fa fa-clock-o fa-stack-1x"></i>
|
||||
</span></a>
|
||||
</div>
|
||||
<center class="box-title" >{!! Lang::get('lang.sla_plans') !!}</center>
|
||||
</div>
|
||||
</div>
|
||||
<!--/.col-md-2-->
|
||||
|
||||
<!--/.col-md-2-->
|
||||
<div class="col-md-2 col-sm-6">
|
||||
<div class="settingiconblue">
|
||||
<div class="settingdivblue">
|
||||
<a href="{{url('forms')}}"><span class="fa-stack fa-2x">
|
||||
|
||||
<i class="fa fa-file-text fa-stack-1x"></i>
|
||||
</span></a>
|
||||
</div>
|
||||
<center class="box-title" >{!! Lang::get('lang.forms') !!}</center>
|
||||
</div>
|
||||
</div>
|
||||
<!--/.col-md-2-->
|
||||
<!--/.col-md-2-->
|
||||
<div class="col-md-2 col-sm-6">
|
||||
<div class="settingiconblue">
|
||||
<div class="settingdivblue">
|
||||
<a href="{{url('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>
|
||||
<!-- /.row -->
|
||||
</div>
|
||||
<!-- ./box-body -->
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<div class="box">
|
||||
<div class="box-header with-border">
|
||||
<h3 class="box-title">{!! Lang::get('lang.settings') !!}</h3>
|
||||
</div>
|
||||
<!-- /.box-header -->
|
||||
<div class="box-body">
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<!--/.col-md-2-->
|
||||
<div class="col-md-2 col-sm-6">
|
||||
<div class="settingiconblue">
|
||||
<div class="settingdivblue">
|
||||
<a href="{{url('getcompany')}}"><span class="fa-stack fa-2x">
|
||||
|
||||
<i class="fa fa-building-o fa-stack-1x"></i>
|
||||
</span></a>
|
||||
</div>
|
||||
<center class="box-title" >{!! Lang::get('lang.company') !!}</center>
|
||||
</div>
|
||||
</div>
|
||||
<!--/.col-md-2-->
|
||||
<!--/.col-md-2-->
|
||||
<div class="col-md-2 col-sm-6">
|
||||
<div class="settingiconblue">
|
||||
<div class="settingdivblue">
|
||||
<a href="{{url('getsystem')}}"><span class="fa-stack fa-2x">
|
||||
|
||||
<i class="fa fa-laptop fa-stack-1x"></i>
|
||||
</span></a>
|
||||
</div>
|
||||
<center class="box-title" >{!! Lang::get('lang.system') !!}</center>
|
||||
</div>
|
||||
</div>
|
||||
<!--/.col-md-2-->
|
||||
|
||||
<!--/.col-md-2-->
|
||||
<div class="col-md-2 col-sm-6">
|
||||
<div class="settingiconblue">
|
||||
<div class="settingdivblue">
|
||||
<a href="{{url('getemail')}}"><span class="fa-stack fa-2x">
|
||||
|
||||
<i class="fa fa-at fa-stack-1x"></i>
|
||||
</span></a>
|
||||
</div>
|
||||
<center class="box-title" >{!! Lang::get('lang.email') !!}</center>
|
||||
</div>
|
||||
</div>
|
||||
<!--/.col-md-2-->
|
||||
|
||||
<!--/.col-md-2-->
|
||||
<div class="col-md-2 col-sm-6">
|
||||
<div class="settingiconblue">
|
||||
<div class="settingdivblue">
|
||||
<a href="{{url('getticket')}}"><span class="fa-stack fa-2x">
|
||||
|
||||
<i class="fa fa-file-text-o fa-stack-1x"></i>
|
||||
</span></a>
|
||||
</div>
|
||||
<center class="box-title" >{!! Lang::get('lang.ticket') !!}</center>
|
||||
</div>
|
||||
</div>
|
||||
<!--/.col-md-2-->
|
||||
|
||||
<!--/.col-md-2-->
|
||||
<div class="col-md-2 col-sm-6">
|
||||
<div class="settingiconblue">
|
||||
<div class="settingdivblue">
|
||||
<a href="{{url('getresponder')}}"><span class="fa-stack fa-2x">
|
||||
|
||||
<i class="fa fa-reply-all fa-stack-1x"></i>
|
||||
</span></a>
|
||||
</div>
|
||||
<center class="box-title" >{!! Lang::get('lang.auto_response') !!}</center>
|
||||
</div>
|
||||
</div>
|
||||
<!--/.col-md-2-->
|
||||
|
||||
<!--/.col-md-2-->
|
||||
<div class="col-md-2 col-sm-6">
|
||||
<div class="settingiconblue">
|
||||
<div class="settingdivblue">
|
||||
<a href="{{url('getalert')}}"><span class="fa-stack fa-2x">
|
||||
<i class="fa fa-bell-o fa-stack-1x"></i>
|
||||
</span></a>
|
||||
</div>
|
||||
<center class="box-title" >{!! Lang::get('lang.alert_notices') !!}</center>
|
||||
</div>
|
||||
</div>
|
||||
<!--/.col-md-2-->
|
||||
|
||||
<!--/.col-md-2-->
|
||||
<div class="col-md-2 col-sm-6">
|
||||
<div class="settingiconblue">
|
||||
<div class="settingdivblue">
|
||||
<a href="{{url('languages')}}"><span class="fa-stack fa-2x">
|
||||
<i class="fa fa-language fa-stack-1x"></i>
|
||||
</span></a>
|
||||
</div>
|
||||
<center class="box-title">{!! Lang::get('lang.language') !!}</center>
|
||||
</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>
|
||||
<!-- /.row -->
|
||||
</div>
|
||||
<!-- ./box-body -->
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="box">
|
||||
<div class="box-header with-border">
|
||||
<h3 class="box-title">{!! Lang::get('lang.widgets') !!}</h3>
|
||||
</div>
|
||||
<!-- /.box-header -->
|
||||
<div class="box-body">
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<!--/.col-md-2-->
|
||||
<div class="col-md-2 col-sm-6">
|
||||
<div class="settingiconblue">
|
||||
<div class="settingdivblue">
|
||||
<a href="{{ url('widgets') }}"><span class="fa-stack fa-2x">
|
||||
<i class="fa fa-list-alt fa-stack-1x"></i>
|
||||
</span></a>
|
||||
</div>
|
||||
<center class="box-title" >{!! Lang::get('lang.widgets') !!}</center>
|
||||
</div>
|
||||
</div>
|
||||
<!--/.col-md-2-->
|
||||
|
||||
|
||||
<!--/.col-md-2-->
|
||||
<div class="col-md-2 col-sm-6">
|
||||
<div class="settingiconblue">
|
||||
<div class="settingdivblue">
|
||||
<a href="{{ url('social-buttons') }}"><span class="fa-stack fa-2x">
|
||||
<i class="fa fa-cubes fa-stack-1x"></i>
|
||||
</span></a>
|
||||
</div>
|
||||
<center class="box-title" >{!! Lang::get('lang.social') !!}</center>
|
||||
</div>
|
||||
</div>
|
||||
<!--/.col-md-2-->
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<!-- /.row -->
|
||||
</div>
|
||||
<!-- ./box-body -->
|
||||
</div>
|
||||
|
||||
|
||||
<div class="box">
|
||||
<div class="box-header with-border">
|
||||
<h3 class="box-title">{!! Lang::get('lang.plugin') !!}</h3>
|
||||
</div>
|
||||
<!-- /.box-header -->
|
||||
<div class="box-body">
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<!--/.col-md-2-->
|
||||
<div class="col-md-2 col-sm-6">
|
||||
<div class="settingiconblue">
|
||||
<div class="settingdivblue">
|
||||
<a href="{{ url('plugins') }}"><span class="fa-stack fa-2x">
|
||||
|
||||
<i class="fa fa-plug fa-stack-1x"></i>
|
||||
</span></a>
|
||||
</div>
|
||||
<center class="box-title" >{!! Lang::get('lang.plugin') !!}</center>
|
||||
</div>
|
||||
</div>
|
||||
<!--/.col-md-2-->
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<!-- /.row -->
|
||||
</div>
|
||||
<!-- ./box-body -->
|
||||
</div>
|
||||
|
||||
|
||||
@stop
|
||||
@@ -27,350 +27,96 @@ class="active"
|
||||
<!-- /breadcrumbs -->
|
||||
<!-- content -->
|
||||
@section('content')
|
||||
|
||||
<!-- open a form -->
|
||||
|
||||
{!! Form::model($alerts,['url' => 'postalert/'.$alerts->id, 'method' => 'PATCH']) !!}
|
||||
|
||||
<div class="box box-primary">
|
||||
<div class="box-header">
|
||||
|
||||
<h4 class="box-title">{{Lang::get('lang.alert_notices')}}</h4> {!! Form::submit(Lang::get('lang.save'),['class'=>' btn btn-primary pull-right'])!!}
|
||||
|
||||
</div>
|
||||
{!! Form::model($alerts,['url' => 'postalert/'.$alerts->id, 'method' => 'PATCH']) !!}
|
||||
<div class="box box-primary">
|
||||
<div class="box-header">
|
||||
<h4 class="box-title">{{Lang::get('lang.alert_notices')}}</h4> {!! Form::submit(Lang::get('lang.submit'),['class'=>' btn btn-primary pull-right'])!!}
|
||||
</div>
|
||||
<!-- check whether success or not -->
|
||||
|
||||
</div>
|
||||
@if(Session::has('success'))
|
||||
<div class="alert alert-success alert-dismissable">
|
||||
<i class="fa fa-check-circle"></i>
|
||||
<b>Success!</b>
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
{!!Session::get('success')!!}
|
||||
</div>
|
||||
@endif
|
||||
<!-- failure message -->
|
||||
@if(Session::has('fails'))
|
||||
<div class="alert alert-danger alert-dismissable">
|
||||
<i class="fa fa-ban"></i>
|
||||
<b>Fail!</b>
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
{!!Session::get('fails')!!}
|
||||
</div>
|
||||
@endif
|
||||
|
||||
<div class="row">
|
||||
<!-- left column -->
|
||||
<div class="col-md-6">
|
||||
<!-- general form elements -->
|
||||
<div class="box box-primary">
|
||||
<div class="box-header">
|
||||
<h3 class="box-title">{{Lang::get('lang.new_ticket_alert')}}</h3>
|
||||
<div class="pull-right">
|
||||
|
||||
</div>
|
||||
</div><!-- /.box-header -->
|
||||
<!-- form start -->
|
||||
<hr style="margin-top: 0;margin-bottom: 0;">
|
||||
|
||||
<div class="box-body">
|
||||
<div class="form-group">
|
||||
<div class="alert alert-success alert-dismissable">
|
||||
<i class="fa fa-check-circle"></i>
|
||||
<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><button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
<b>{!! lang::get('lang.alert') !!}!</b><br/>
|
||||
{!!Session::get('fails')!!}
|
||||
</div>
|
||||
@endif
|
||||
<div class="row">
|
||||
<!-- left column -->
|
||||
<div class="col-md-6">
|
||||
<!-- general form elements -->
|
||||
<div class="box box-primary">
|
||||
<div class="box-header with-border">
|
||||
<h3 class="box-title">{{Lang::get('lang.new_ticket_alert')}}</h3>
|
||||
</div><!-- /.box-header -->
|
||||
<!-- form start -->
|
||||
<div class="box-body">
|
||||
<div class="form-group">
|
||||
<!-- Status: Enable Disable -->
|
||||
|
||||
{!! Form::label('ticket_status',Lang::get('lang.status').":") !!}
|
||||
{!! Form::radio('ticket_status',1) !!} {!! Lang::get('lang.enable') !!} {!! Form::radio('ticket_status',0) !!} {!! Lang::get('lang.disable') !!}
|
||||
</div>
|
||||
<div class="form-group">
|
||||
{!! Form::label('ticket_status',Lang::get('lang.status').":") !!}
|
||||
{!! Form::radio('ticket_status',1) !!} {!! Lang::get('lang.enable') !!} {!! Form::radio('ticket_status',0) !!} {!! Lang::get('lang.disable') !!}
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<!-- Admin Email -->
|
||||
{!! Form::checkbox('ticket_admin_email',1) !!}
|
||||
{!! Form::label('ticket_admin_email',Lang::get('lang.admin_email_2')) !!}
|
||||
</div>
|
||||
<!-- Department Manager -->
|
||||
{{-- <div class="form-group"> --}}
|
||||
{{-- {!! Form::checkbox('ticket_department_manager',1) !!} --}}
|
||||
{{-- {!! Form::label('ticket_department_manager',Lang::get('lang.department_manager')) !!} --}}
|
||||
{{-- </div> --}}
|
||||
<!-- Department Members -->
|
||||
<div class="form-group">
|
||||
{!! Form::checkbox('ticket_department_member',1) !!}
|
||||
{!! Form::label('ticket_department_member',Lang::get('lang.department_members')) !!}
|
||||
</div>
|
||||
<!-- Organization Account Manager -->
|
||||
{{-- <div class="form-group"> --}}
|
||||
{{-- {!! Form::checkbox('ticket_organization_accmanager',1) !!} --}}
|
||||
{{-- {!! Form::label('ticket_organization_accmanager',Lang::get('lang.organization_account_manager')) !!} --}}
|
||||
{{-- </div> --}}
|
||||
</div><!-- /.box-body -->
|
||||
|
||||
|
||||
|
||||
</div><!-- /.box -->
|
||||
{{-- <div class ="box box-primary"> --}}
|
||||
{{-- <div class="box-header"> --}}
|
||||
{{-- <h3 class="box-title">{{Lang::get('lang.new_message_alert')}}</h3> --}}
|
||||
{{-- <div class="pull-right"> --}}
|
||||
|
||||
{{-- </div> --}}
|
||||
{{-- </div>/.box-header --}}
|
||||
<!-- form start -->
|
||||
{{-- <hr style="margin-top: 0;margin-bottom: 0;"> --}}
|
||||
{{-- <div class="box-body"> --}}
|
||||
<!-- Status: Enable Disable -->
|
||||
{{-- <div class="form-group"> --}}
|
||||
{{-- {!! Form::label('message_status',Lang::get('lang.status').":") !!} --}}
|
||||
{{-- {!! Form::radio('message_status',1) !!} {!! Lang::get('lang.enable') !!} {!! Form::radio('message_status',0) !!} {!! Lang::get('lang.disable') !!} --}}
|
||||
{{-- </div> --}}
|
||||
<!-- Last Respondent -->
|
||||
{{-- <div class="form-group"> --}}
|
||||
{{-- {!! Form::checkbox('message_last_responder',1) !!} --}}
|
||||
{{-- {!! Form::label('message_last_responder',Lang::get('lang.last_respondent')) !!} --}}
|
||||
{{-- </div> --}}
|
||||
<!-- Assigned Agent / Team -->
|
||||
{{-- <div class="form-group"> --}}
|
||||
{{-- {!! Form::checkbox('message_assigned_agent',1) !!} --}}
|
||||
{{-- {!! Form::label('message_assigned_agent',Lang::get('lang.assigned_agent_team')) !!} --}}
|
||||
{{-- </div> --}}
|
||||
<!-- Department Manager -->
|
||||
{{-- <div class="form-group"> --}}
|
||||
{{-- {!! Form::checkbox('message_department_manager',1) !!} --}}
|
||||
{{-- {!! Form::label('message_department_manager',Lang::get('lang.department_manager')) !!} --}}
|
||||
{{-- </div> --}}
|
||||
<!-- Organization Account Manager -->
|
||||
{{-- <div class="form-group"> --}}
|
||||
{{-- {!! Form::checkbox('message_organization_accmanager',1) !!} --}}
|
||||
{{-- {!! Form::label('message_organization_accmanager',Lang::get('lang.organization_account_manager')) !!} --}}
|
||||
{{-- </div> --}}
|
||||
{{-- </div>/.box-body --}}
|
||||
|
||||
|
||||
|
||||
{{-- </div>/.box --}}
|
||||
{{-- <div class="box box-primary"> --}}
|
||||
{{-- <div class="box-header"> --}}
|
||||
{{-- <h3 class="box-title">{{Lang::get('lang.new_internal_note_alert')}}</h3> --}}
|
||||
{{-- <div class="pull-right"> --}}
|
||||
|
||||
{{-- </div> --}}
|
||||
{{-- </div> --}}
|
||||
<!-- form start -->
|
||||
{{-- <hr style="margin-top: 0;margin-bottom: 0;"> --}}
|
||||
{{-- <div class="box-body"> --}}
|
||||
<!-- Status: Enable Disable -->
|
||||
|
||||
{{-- <div class="form-group"> --}}
|
||||
{{-- {!! Form::label('transfer_status',Lang::get('lang.status').":") !!} --}}
|
||||
{{-- {!! Form::radio('transfer_status',1) !!} {!! Lang::get('lang.enable') !!} {!! Form::radio('transfer_status',0) !!} {!! Lang::get('lang.disable') !!} --}}
|
||||
{{-- </div> --}}
|
||||
|
||||
<!-- Assigned Agent / Team -->
|
||||
|
||||
{{-- <div class="form-group"> --}}
|
||||
{{-- {!! Form::checkbox('transfer_assigned_agent',1) !!} --}}
|
||||
{{-- {!! Form::label('transfer_assigned_agent',Lang::get('lang.ticket_assignment_alert')) !!} --}}
|
||||
{{-- </div> --}}
|
||||
|
||||
<!-- Department Manager -->
|
||||
|
||||
{{-- <div class="form-group"> --}}
|
||||
{{-- {!! Form::checkbox('transfer_department_manager',1) !!} --}}
|
||||
{{-- {!! Form::label('transfer_department_manager',Lang::get('lang.department_manager')) !!} --}}
|
||||
{{-- </div> --}}
|
||||
|
||||
<!-- Department Members -->
|
||||
|
||||
{{-- <div class="form-group"> --}}
|
||||
{{-- {!! Form::checkbox('transfer_department_member',1) !!} --}}
|
||||
{{-- {!! Form::label('transfer_department_member',Lang::get('lang.department_members')) !!} --}}
|
||||
{{-- </div> --}}
|
||||
{{-- </div>/.box-body --}}
|
||||
|
||||
{{-- </div>/.box --}}
|
||||
{{-- <div class="box box-primary"> --}}
|
||||
{{-- <div class="box-header"> --}}
|
||||
{{-- <h3 class="box-title">{{Lang::get('lang.system_alerts')}}</h3> --}}
|
||||
{{-- <div class="pull-right"> --}}
|
||||
|
||||
{{-- </div> --}}
|
||||
{{-- </div> --}}
|
||||
<!-- /.box-header -->
|
||||
<!-- form start -->
|
||||
{{-- <hr style="margin-top: 0;margin-bottom: 0;"> --}}
|
||||
{{-- <div class="box-body"> --}}
|
||||
<!-- System Errors (enabled by default) -->
|
||||
|
||||
{{-- <div class="form-group"> --}}
|
||||
{{-- {!! Form::checkbox('system_error',1) !!} --}}
|
||||
{{-- {!! Form::label('system_error',Lang::get('lang.system_errors')) !!} --}}
|
||||
{{-- </div> --}}
|
||||
|
||||
<!-- SQL errors -->
|
||||
|
||||
{{-- <div class="form-group"> --}}
|
||||
{{-- {!! Form::checkbox('sql_error',1) !!} --}}
|
||||
{{-- {!! Form::label('sql_error',Lang::get('lang.SQL_errors')) !!} --}}
|
||||
{{-- </div> --}}
|
||||
|
||||
<!-- Excessive failed login attempts -->
|
||||
|
||||
{{-- <div class="form-group"> --}}
|
||||
{{-- {!! Form::checkbox('excessive_failure',1) !!} --}}
|
||||
{{-- {!! Form::label('excessive_failure',Lang::get('lang.excessive_failed_login_attempts')) !!} --}}
|
||||
{{-- </div> --}}
|
||||
{{-- </div> --}}
|
||||
<!-- /.box-body -->
|
||||
|
||||
{{-- </div> --}}
|
||||
<!-- /.box -->
|
||||
</div><!--/.col (left) -->
|
||||
<div class="col-md-6">
|
||||
<!-- general form elements -->
|
||||
{{-- <div class="box box-primary"> --}}
|
||||
{{-- <div class="box-header"> --}}
|
||||
{{-- <h3 class="box-title">{{Lang::get('lang.overdue_ticket_alert')}}</h3> --}}
|
||||
{{-- <div class="pull-right"> --}}
|
||||
|
||||
{{-- </div> --}}
|
||||
{{-- </div>/.box-header --}}
|
||||
<!-- form start -->
|
||||
{{-- <hr style="margin-top: 0;margin-bottom: 0;"> --}}
|
||||
{{-- <div class="box-body"> --}}
|
||||
{{-- <div class="form-group"> --}}
|
||||
{{-- {!! Form::label('overdue_status',Lang::get('lang.status').":") !!} --}}
|
||||
{{-- {!! Form::radio('overdue_status',1) !!} {!! Lang::get('lang.enable') !!} {!! Form::radio('overdue_status',0) !!} {!! Lang::get('lang.disable') !!} --}}
|
||||
|
||||
{{-- </div> --}}
|
||||
<!-- Assigned Agent / Team -->
|
||||
|
||||
{{-- <div class="form-group"> --}}
|
||||
{{-- {!! Form::checkbox('overdue_assigned_agent',1) !!} --}}
|
||||
{{-- {!! Form::label('overdue_assigned_agent',Lang::get('lang.assigned_agent_team')) !!} --}}
|
||||
|
||||
|
||||
{{-- </div> --}}
|
||||
|
||||
<!-- Department Manager -->
|
||||
|
||||
|
||||
{{-- <div class="form-group"> --}}
|
||||
{{-- {!! Form::checkbox('overdue_department_manager',1) !!} --}}
|
||||
{{-- {!! Form::label('overdue_department_manager',Lang::get('lang.department_manager')) !!} --}}
|
||||
|
||||
|
||||
{{-- </div> --}}
|
||||
|
||||
<!-- Department Members -->
|
||||
|
||||
{{-- <div class="form-group"> --}}
|
||||
{{-- {!! Form::checkbox('overdue_department_member',1) !!} --}}
|
||||
{{-- {!! Form::label('overdue_department_member',Lang::get('lang.department_members')) !!} --}}
|
||||
|
||||
|
||||
{{-- </div> --}}
|
||||
{{-- </div>/.box-body --}}
|
||||
|
||||
|
||||
|
||||
{{-- </div>/.box --}}
|
||||
{{-- <div class="box box-primary"> --}}
|
||||
{{-- <div class="box-header"> --}}
|
||||
{{-- <h3 class="box-title">{{Lang::get('lang.ticket_transfer_alert')}}</h3> --}}
|
||||
{{-- <div class="pull-right"> --}}
|
||||
|
||||
{{-- </div> --}}
|
||||
{{-- </div>/.box-header --}}
|
||||
<!-- form start -->
|
||||
{{-- <hr style="margin-top: 0;margin-bottom: 0;"> --}}
|
||||
{{-- <div class="box-body"> --}}
|
||||
{{-- <div class="form-group"> --}}
|
||||
<!-- Status: Enable Disable -->
|
||||
{{-- {!! Form::label('internal_status',Lang::get('lang.status').":") !!} --}}
|
||||
{{-- {!! Form::radio('internal_status',1) !!} {!! Lang::get('lang.enable') !!} {!! Form::radio('internal_status',0) !!} {!! Lang::get('lang.disable') !!} --}}
|
||||
{{-- </div>/ --}}
|
||||
|
||||
<!-- Last Respondent -->
|
||||
|
||||
{{-- <div class="form-group"> --}}
|
||||
{{-- {!! Form::checkbox('internal_last_responder',1) !!} --}}
|
||||
{{-- {!! Form::label('internal_last_responder',Lang::get('lang.last_respondent')) !!} --}}
|
||||
{{-- </div> --}}
|
||||
|
||||
<!-- Assigned Agent / Team -->
|
||||
|
||||
{{-- <div class="form-group"> --}}
|
||||
{{-- {!! Form::checkbox('internal_assigned_agent',1) !!} --}}
|
||||
{{-- {!! Form::label('internal_assigned_agent',Lang::get('lang.assigned_agent_team')) !!} --}}
|
||||
{{-- </div> --}}
|
||||
|
||||
<!-- Department Manager -->
|
||||
|
||||
{{-- <div class="form-group"> --}}
|
||||
{{-- {!! Form::checkbox('internal_department_manager',1) !!} --}}
|
||||
{{-- {!! Form::label('internal_department_manager',Lang::get('lang.department_manager')) !!} --}}
|
||||
{{-- </div> --}}
|
||||
{{-- </div>/.box-body --}}
|
||||
|
||||
|
||||
|
||||
{{-- </div>/.box --}}
|
||||
<div class="box box-primary">
|
||||
<div class="box-header">
|
||||
<h3 class="box-title">{{Lang::get('lang.ticket_assignment_alert')}}</h3>
|
||||
<div class="pull-right">
|
||||
|
||||
</div>
|
||||
</div><!-- /.box-header -->
|
||||
<!-- form start -->
|
||||
<hr style="margin-top: 0;margin-bottom: 0;">
|
||||
<div class="box-body">
|
||||
<!-- Status: Enable Disable -->
|
||||
|
||||
<div class="form-group">
|
||||
{!! Form::label('assignment_status',Lang::get('lang.status').":") !!}
|
||||
{!! Form::radio('assignment_status',1) !!} {!! Lang::get('lang.enable') !!} {!! Form::radio('assignment_status',0) !!} {!! Lang::get('lang.disable') !!}
|
||||
</div>
|
||||
|
||||
<!-- Assigned Agent / Team -->
|
||||
|
||||
<div class="form-group">
|
||||
{!! Form::checkbox('assignment_assigned_agent',1) !!}
|
||||
{!! Form::label('assignment_assigned_agent',Lang::get('lang.agent')) !!}
|
||||
</div>
|
||||
|
||||
<!-- Team Lead -->
|
||||
|
||||
{{-- <div class="form-group"> --}}
|
||||
{{-- {!! Form::checkbox('assignment_team_leader',1) !!} --}}
|
||||
{{-- {!! Form::label('assignment_team_leader',Lang::get('lang.team_lead')) !!} --}}
|
||||
{{-- </div> --}}
|
||||
|
||||
<!-- Team Members -->
|
||||
|
||||
<div class="form-group">
|
||||
{!! Form::checkbox('assignment_team_member',1) !!}
|
||||
{!! Form::label('assignment_team_member',Lang::get('lang.team_members')) !!}
|
||||
</div>
|
||||
</div><!-- /.box-body -->
|
||||
</div><!-- /.box -->
|
||||
</div><!--/.col (left) -->
|
||||
<div class="col-md-6">
|
||||
<div class="box box-primary">
|
||||
<div class="box-header">
|
||||
<h3 class="box-title">{{Lang::get('lang.system_error_reports')}}</h3>
|
||||
{!! Form::label('ticket_admin_email',Lang::get('lang.admin_email_2')) !!}
|
||||
</div>
|
||||
<!-- /.box-header -->
|
||||
<!-- form start -->
|
||||
<hr style="margin-top: 0;margin-bottom: 0;">
|
||||
<div class="box-body">
|
||||
<!-- Department Members -->
|
||||
<div class="form-group">
|
||||
{!! Form::checkbox('ticket_department_member',1) !!}
|
||||
{!! Form::label('ticket_department_member',Lang::get('lang.department_members')) !!}
|
||||
</div>
|
||||
</div><!-- /.box-body -->
|
||||
</div><!-- /.box -->
|
||||
<!-- /.box -->
|
||||
</div><!--/.col (left) -->
|
||||
<div class="col-md-6">
|
||||
<div class="box box-primary">
|
||||
<div class="box-header with-border">
|
||||
<h3 class="box-title">{{Lang::get('lang.ticket_assignment_alert')}}</h3>
|
||||
</div><!-- /.box-header -->
|
||||
<div class="box-body">
|
||||
<!-- Status: Enable Disable -->
|
||||
<div class="form-group">
|
||||
{!! Form::label('assignment_status',Lang::get('lang.status').":") !!}
|
||||
{!! Form::radio('assignment_status',1) !!} {!! Lang::get('lang.enable') !!} {!! Form::radio('assignment_status',0) !!} {!! Lang::get('lang.disable') !!}
|
||||
</div>
|
||||
<!-- Assigned Agent / Team -->
|
||||
<div class="form-group">
|
||||
{!! Form::checkbox('assignment_assigned_agent',1) !!}
|
||||
{!! Form::label('assignment_assigned_agent',Lang::get('lang.agent')) !!}
|
||||
</div>
|
||||
<!-- Team Members -->
|
||||
<div class="form-group">
|
||||
{!! Form::checkbox('assignment_team_member',1) !!}
|
||||
{!! Form::label('assignment_team_member',Lang::get('lang.team_members')) !!}
|
||||
</div>
|
||||
</div><!-- /.box-body -->
|
||||
</div><!-- /.box -->
|
||||
</div><!--/.col (left) -->
|
||||
<div class="col-md-6">
|
||||
<div class="box box-primary">
|
||||
<div class="box-header with-border">
|
||||
<h3 class="box-title">{{Lang::get('lang.system_error_reports')}}</h3>
|
||||
</div>
|
||||
<!-- /.box-header -->
|
||||
<div class="box-body">
|
||||
<!-- System Errors (enabled by default) -->
|
||||
|
||||
<div class="form-group">
|
||||
{!! Form::checkbox('system_error',1) !!}
|
||||
{!! Form::label('system_error',Lang::get('lang.Send_app_crash_reports_to_help_Ladybird_improve_Faveo')) !!}
|
||||
</div>
|
||||
<div class="form-group">
|
||||
{!! Form::checkbox('system_error',1) !!}
|
||||
{!! Form::label('system_error',Lang::get('lang.Send_app_crash_reports_to_help_Ladybird_improve_Faveo')) !!}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
</div>
|
||||
@stop
|
||||
|
||||
@@ -0,0 +1,132 @@
|
||||
@extends('themes.default1.admin.layout.admin')
|
||||
|
||||
@section('Settings')
|
||||
active
|
||||
@stop
|
||||
|
||||
@section('close-workflow')
|
||||
class="active"
|
||||
@stop
|
||||
|
||||
@section('PageHeader')
|
||||
<h1>{!! Lang::get('lang.auto_close_workflow') !!}</h1>
|
||||
@stop
|
||||
|
||||
@section('header')
|
||||
@stop
|
||||
|
||||
@section('content')
|
||||
<div class="box box-primary">
|
||||
<div class="box-header with-border">
|
||||
<h3 class="box-title">{!! Lang::get('lang.close_ticket_workflow_settings') !!}</h3>
|
||||
</div><!-- /.box-header -->
|
||||
<div class="box-body">
|
||||
@if(Session::has('success'))
|
||||
<div class="alert alert-success alert-dismissable">
|
||||
<i class="fa fa-check-circle"></i>
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
{{Session::get('success')}}
|
||||
</div>
|
||||
@endif
|
||||
@if(Session::has('failed'))
|
||||
<div class="alert alert-danger alert-dismissable">
|
||||
<i class="fa fa-ban"></i>
|
||||
<b>{!! Lang::get('lang.alert') !!}!</b>
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
<p>{{Session::get('failed')}}</p>
|
||||
</div>
|
||||
@endif
|
||||
@if(Session::has('errors'))
|
||||
<?php //dd($errors); ?>
|
||||
<div class="alert alert-danger alert-dismissable">
|
||||
<i class="fa fa-ban"></i>
|
||||
<b>{!! Lang::get('lang.alert') !!}!</b>
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
<br/>
|
||||
@if($errors->first('days'))
|
||||
<li class="error-message-padding">{!! $errors->first('days', ':message') !!}</li>
|
||||
@endif
|
||||
@if($errors->first('condition'))
|
||||
<li class="error-message-padding">{!! $errors->first('condition', ':message') !!}</li>
|
||||
@endif
|
||||
@if($errors->first('send_email'))
|
||||
<li class="error-message-padding">{!! $errors->first('send_email', ':message') !!}</li>
|
||||
@endif
|
||||
@if($errors->first('status'))
|
||||
<li class="error-message-padding">{!! $errors->first('status', ':message') !!}</li>
|
||||
@endif
|
||||
</div>
|
||||
@endif
|
||||
{!! Form::model($security,['route'=>['close-workflow.update', $security->id],'method'=>'PATCH','files' => true]) !!}
|
||||
<div class="form-group {{ $errors->has('days') ? 'has-error' : '' }}">
|
||||
<div class="row">
|
||||
<div class="col-md-3">
|
||||
<label for="title">{!! Lang::get('lang.no_of_days') !!}: <span class="text-red"> *</span></label>
|
||||
</div>
|
||||
<div class="col-md-9">
|
||||
<div class="callout callout-default" style="font-style: oblique;">{!! Lang::get('lang.close-msg1') !!}</div>
|
||||
{!! Form::text('days',null,['class'=>'form-control'])!!}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group {{ $errors->has('condition') ? 'has-error' : '' }}">
|
||||
<div class="row">
|
||||
<div class="col-md-3">
|
||||
<label for="title">{!! Lang::get('lang.enable_workflow') !!}:</label>
|
||||
</div>
|
||||
<div class="col-md-9">
|
||||
<div class="callout callout-default" style="font-style: oblique;">{!! Lang::get('lang.close-msg2') !!}</div>
|
||||
<div class="row">
|
||||
<div class="col-xs-3">
|
||||
{!! Form::radio('condition','1') !!} {{Lang::get('lang.yes')}}
|
||||
</div>
|
||||
<div class="col-xs-3">
|
||||
{!! Form::radio('condition','0') !!} {{Lang::get('lang.no')}}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group {{ $errors->has('send_email') ? 'has-error' : '' }}">
|
||||
<div class="row">
|
||||
<div class="col-md-3">
|
||||
<label for="title">{!! Lang::get('lang.send_email_to_user') !!}:</label>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<div class="callout callout-default" style="font-style: oblique;">{!! Lang::get('lang.close-msg4') !!}</div>
|
||||
<div class="row">
|
||||
<div class="col-xs-3">
|
||||
{!! Form::radio('send_email','1') !!} {{Lang::get('lang.yes')}}
|
||||
</div>
|
||||
<div class="col-xs-3">
|
||||
{!! Form::radio('send_email','0') !!} {{Lang::get('lang.no')}}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group {{ $errors->has('status') ? 'has-error' : '' }}">
|
||||
<div class="row">
|
||||
<div class="col-md-3">
|
||||
<label for="title">{!! Lang::get('lang.ticket_status') !!}:</label>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<div class="callout callout-default" style="font-style: oblique;">{!! Lang::get('lang.close-msg3') !!}</div>
|
||||
<?php $user = \App\Model\helpdesk\Ticket\Ticket_Status::where('state', '=', 'closed')->get(); ?>
|
||||
{!! Form::select('status',[ Lang::get('lang.status')=>$user->lists('name','id')->toArray()],null,['class' => 'form-control']) !!}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div><!-- /.box-body -->
|
||||
<div class="box-footer">
|
||||
<div class="row">
|
||||
<div class="col-md-3">
|
||||
</div>
|
||||
<div class="col-md-9">
|
||||
<button type="submit" class="btn btn-primary">{!! Lang::get('lang.submit') !!}</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{!! Form::close() !!}
|
||||
</div>
|
||||
@stop
|
||||
@@ -1,5 +1,5 @@
|
||||
@extends('themes.default1.admin.layout.admin')
|
||||
<link href="{{asset("lb-faveo/css/faveo-css.css")}}" rel="stylesheet" type="text/css" />
|
||||
<link href="{{asset("lb-faveo/css/faveo-css.css")}}" rel="stylesheet" type="text/css" />
|
||||
@section('Settings')
|
||||
active
|
||||
@stop
|
||||
@@ -22,207 +22,166 @@ class="active"
|
||||
<!-- breadcrumbs -->
|
||||
@section('breadcrumbs')
|
||||
<ol class="breadcrumb">
|
||||
|
||||
</ol>
|
||||
@stop
|
||||
<!-- /breadcrumbs -->
|
||||
<!-- content -->
|
||||
@section('content')
|
||||
|
||||
<!-- open a form -->
|
||||
|
||||
{!! Form::model($companys,['url' => 'postcompany/'.$companys->id, 'method' => 'PATCH','files'=>true]) !!}
|
||||
|
||||
{!! Form::model($companys,['url' => 'postcompany/'.$companys->id, 'method' => 'PATCH','files'=>true]) !!}
|
||||
<!-- <div class="form-group {{ $errors->has('company_name') ? 'has-error' : '' }}"> -->
|
||||
<!-- table -->
|
||||
|
||||
<!-- table -->
|
||||
<div class="box box-primary">
|
||||
<div class="box-header">
|
||||
<h4 class="box-title">{{Lang::get('lang.company')}}</h4>{!! Form::submit(Lang::get('lang.save'),['class'=>'form-group btn btn-primary pull-right'])!!}
|
||||
<div class="box-header with-border">
|
||||
<h3 class="box-title">{{Lang::get('lang.company')}}</h3>
|
||||
</div>
|
||||
|
||||
<!-- check whether success or not -->
|
||||
@if(Session::has('success'))
|
||||
<!-- Name text form Required -->
|
||||
<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'))
|
||||
@endif
|
||||
<!-- failure message -->
|
||||
@if(Session::has('fails'))
|
||||
<div class="alert alert-danger alert-dismissable">
|
||||
<i class="fa fa-ban"></i>
|
||||
<b>Fail!</b>
|
||||
<b>{!! Lang::get('lang.alert') !!}!</b>
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
{!!Session::get('fails')!!}
|
||||
</div>
|
||||
@endif
|
||||
@endif
|
||||
|
||||
<!-- Name text form Required -->
|
||||
<div class="box-body">
|
||||
<div class="row">
|
||||
|
||||
{{-- <div class="row"> --}}
|
||||
<div class="col-md-4">
|
||||
@if(Session::has('errors'))
|
||||
<?php //dd($errors); ?>
|
||||
<div class="alert alert-danger alert-dismissable">
|
||||
<i class="fa fa-ban"></i>
|
||||
<b>{!! Lang::get('lang.alert') !!}!</b>
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
<br/>
|
||||
@if($errors->first('company_name'))
|
||||
<li class="error-message-padding">{!! $errors->first('company_name', ':message') !!}</li>
|
||||
@endif
|
||||
@if($errors->first('website'))
|
||||
<li class="error-message-padding">{!! $errors->first('website', ':message') !!}</li>
|
||||
@endif
|
||||
@if($errors->first('phone'))
|
||||
<li class="error-message-padding">{!! $errors->first('phone', ':message') !!}</li>
|
||||
@endif
|
||||
</div>
|
||||
@endif
|
||||
<div class="row">
|
||||
<div class="col-md-4">
|
||||
<!-- comapny name -->
|
||||
<div class="form-group {{ $errors->has('company_name') ? 'has-error' : '' }}">
|
||||
|
||||
{!! Form::label('company_name',Lang::get('lang.name')) !!}
|
||||
{!! Form::text('company_name',$companys->company_name,['class' => 'form-control']) !!}
|
||||
{!! $errors->first('company_name', '<spam class="help-block">:message</spam>') !!}
|
||||
|
||||
{!! Form::label('company_name',Lang::get('lang.name')) !!} <span class="text-red"> *</span>
|
||||
{!! Form::text('company_name',$companys->company_name,['class' => 'form-control']) !!}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="col-md-4">
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<!-- website -->
|
||||
<div class="form-group {{ $errors->has('website') ? 'has-error' : '' }}">
|
||||
|
||||
{!! Form::label('website',Lang::get('lang.website')) !!}
|
||||
{!! Form::url('website',$companys->website,['class' => 'form-control']) !!}
|
||||
{!! $errors->first('website', '<spam class="help-block">:message</spam>') !!}
|
||||
|
||||
|
||||
{!! Form::url('website',$companys->website,['class' => 'form-control']) !!}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-md-4">
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<!-- phone -->
|
||||
<div class="form-group {{ $errors->has('phone') ? 'has-error' : '' }}">
|
||||
|
||||
{!! Form::label('phone',Lang::get('lang.phone')) !!}
|
||||
{!! Form::text('phone',$companys->phone,['class' => 'form-control']) !!}
|
||||
{!! $errors->first('phone', '<spam class="help-block">:message</spam>') !!}
|
||||
|
||||
{!! Form::text('phone',$companys->phone,['class' => 'form-control']) !!}
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-12">
|
||||
<!-- comapny address -->
|
||||
<div class="form-group {{ $errors->has('address') ? 'has-error' : '' }}">
|
||||
{!! Form::label('address',Lang::get('lang.address')) !!}
|
||||
{!! Form::textarea('address',$companys->address,['class' => 'form-control','size' => '30x5']) !!}
|
||||
</div>
|
||||
|
||||
<div class="col-md-12">
|
||||
<!-- comapny address -->
|
||||
<div class="form-group {{ $errors->has('address') ? 'has-error' : '' }}">
|
||||
|
||||
{!! Form::label('address',Lang::get('lang.address')) !!}
|
||||
{!! $errors->first('address', '<spam class="help-block">:message</spam>') !!}
|
||||
{!! Form::textarea('address',$companys->address,['class' => 'form-control','size' => '30x5']) !!}
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{{-- <div class="col-md-4"> --}}
|
||||
<!-- landing page -->
|
||||
{{-- <div class="form-group"> --}}
|
||||
|
||||
{{-- {!! Form::label('landing_page',Lang::get('lang.landing')) !!} --}}
|
||||
{{-- {!!Form::select('landing_page', ['landing page'],null,['class' => 'form-control select']) !!} --}}
|
||||
|
||||
{{-- </div> --}}
|
||||
{{-- </div> --}}
|
||||
|
||||
{{-- <div class="col-md-4"> --}}
|
||||
<!-- offline page -->
|
||||
{{-- <div class="form-group"> --}}
|
||||
|
||||
{{-- {!! Form::label('offline_page',Lang::get('lang.offline')) !!} --}}
|
||||
{{-- {!!FooterIncluderm::select('offline_page', ['offline page'],null,['class' => 'form-control select']) !!} --}}
|
||||
|
||||
{{-- </div> --}}
|
||||
{{-- </div> --}}
|
||||
|
||||
{{-- <div class="col-md-4"> --}}
|
||||
<!-- thank page -->
|
||||
{{-- <div class="form-group"> --}}
|
||||
|
||||
{{-- {!! Form::label('thank_page',Lang::get('lang.thank')) !!} --}}
|
||||
{{-- {!! Form::select('thank_page', ['thank page'],null,['class' => 'form-control select']) !!} --}}
|
||||
|
||||
{{-- </div> --}}
|
||||
{{-- </div> --}}
|
||||
|
||||
<div class="col-md-2">
|
||||
<!-- logo -->
|
||||
|
||||
{!! Form::label('logo',Lang::get('lang.logo')) !!}
|
||||
<div class="btn bg-olive btn-file" style="color:blue"> Upload file
|
||||
{!! Form::file('logo') !!}
|
||||
</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>
|
||||
</div>
|
||||
@endif
|
||||
|
||||
<?php $company = App\Model\helpdesk\Settings\Company::where('id', '=', '1')->first(); ?>
|
||||
|
||||
@if($companys->logo != null)
|
||||
<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 class="col-md-2">
|
||||
<!-- logo -->
|
||||
{!! Form::label('logo',Lang::get('lang.logo')) !!}
|
||||
<div class="btn bg-olive btn-file" style="color:blue"> Upload file
|
||||
{!! Form::file('logo') !!}
|
||||
</div>
|
||||
</div>
|
||||
<div id="logo-display" style="display: block;">
|
||||
@if($companys->logo != null)
|
||||
<div class="col-md-2">
|
||||
{!! Form::checkbox('use_logo') !!} <label> {!! Lang::get('lang.use_logo') !!}</label>
|
||||
</div>
|
||||
@endif
|
||||
<?php $company = App\Model\helpdesk\Settings\Company::where('id', '=', '1')->first(); ?>
|
||||
@if($companys->logo != null)
|
||||
<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 class="box-footer">
|
||||
{!! Form::submit(Lang::get('lang.submit'),['class'=>'form-group btn btn-primary'])!!}
|
||||
</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 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>
|
||||
|
||||
<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];
|
||||
</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");
|
||||
}
|
||||
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>
|
||||
});
|
||||
</script>
|
||||
@stop
|
||||
@@ -0,0 +1,111 @@
|
||||
@extends('themes.default1.admin.layout.admin')
|
||||
|
||||
@section('Settings')
|
||||
active
|
||||
@stop
|
||||
|
||||
@section('ratings')
|
||||
class="active"
|
||||
@stop
|
||||
|
||||
@section('HeadInclude')
|
||||
@stop
|
||||
|
||||
<!-- header -->
|
||||
@section('PageHeader')
|
||||
<h1>Create Ratings</h1>
|
||||
@stop
|
||||
<!-- /header -->
|
||||
<!-- breadcrumbs -->
|
||||
@section('breadcrumbs')
|
||||
<ol class="breadcrumb">
|
||||
|
||||
</ol>
|
||||
@stop
|
||||
<!-- /breadcrumbs -->
|
||||
<!-- content -->
|
||||
@section('content')
|
||||
{!! Form::open(['route'=>'rating.store']) !!}
|
||||
<div class="box box-primary">
|
||||
<div class="box-header with-border">
|
||||
<h2 class="box-title">{{Lang::get('lang.create')}}</h2>
|
||||
</div>
|
||||
<div class="box-body">
|
||||
@if(Session::has('success'))
|
||||
<div class="alert alert-success alert-dismissable">
|
||||
<i class="fa fa-check-circle"></i>
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
{{Session::get('success')}}
|
||||
</div>
|
||||
@endif
|
||||
@if(Session::has('errors'))
|
||||
<?php //dd($errors); ?>
|
||||
<div class="alert alert-danger alert-dismissable">
|
||||
<i class="fa fa-ban"></i>
|
||||
<b>{!! Lang::get('lang.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('display_order'))
|
||||
<li class="error-message-padding">{!! $errors->first('display_order', ':message') !!}</li>
|
||||
@endif
|
||||
@if($errors->first('rating_scale'))
|
||||
<li class="error-message-padding">{!! $errors->first('rating_scale', ':message') !!}</li>
|
||||
@endif
|
||||
@if($errors->first('rating_area'))
|
||||
<li class="error-message-padding">{!! $errors->first('rating_area', ':message') !!}</li>
|
||||
@endif
|
||||
@if($errors->first('restrict'))
|
||||
<li class="error-message-padding">{!! $errors->first('restrict', ':message') !!}</li>
|
||||
@endif
|
||||
@if($errors->first('allow_modification'))
|
||||
<li class="error-message-padding">{!! $errors->first('allow_modification', ':message') !!}</li>
|
||||
@endif
|
||||
</div>
|
||||
@endif
|
||||
<div class="row">
|
||||
<div class="col-md-6 form-group {{ $errors->has('name') ? 'has-error' : '' }}">
|
||||
{!! Form::label('name',Lang::get('lang.rating_label')) !!}<span style="color:red;">*</span>
|
||||
{!! Form::text('name',null,['class' => 'form-control']) !!}
|
||||
</div>
|
||||
<div class="col-md-6 form-group {{ $errors->has('display_order') ? 'has-error' : '' }}">
|
||||
{!! Form::label('display_order',Lang::get('lang.display_order')) !!}<span style="color:red;">*</span>
|
||||
{!! Form::text('display_order',null,['class' => 'form-control']) !!}
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group {{ $errors->has('rating_scale') ? 'has-error' : '' }}">
|
||||
{!! Form::label('rating_scale',Lang::get('lang.rating_scale')) !!}<span style="color:red;">*</span>
|
||||
<div class="callout callout-default" style="font-style: oblique;">{!! Lang::get('lang.rating-msg1') !!}</div>
|
||||
{!! Form::select('rating_scale',['1' => '1','2'=>'2','3'=>'3','4'=>'4','5'=>'5','6'=>'6','7'=>'7','8'=>'8'],null,['class' => 'form-control']) !!}
|
||||
</div>
|
||||
<div class="form-group {{ $errors->has('rating_area') ? 'has-error' : '' }}">
|
||||
{!! Form::label('rating_area',Lang::get('lang.rating_area')) !!}<span style="color:red;">*</span>
|
||||
{!! Form::select('rating_area',['Helpdesk Area' => 'Helpdesk Area','Comment Area'=>'Comment Area'],null,['class' => 'form-control']) !!}
|
||||
</div>
|
||||
<div class="form-group {{ $errors->has('restrict') ? 'has-error' : '' }}">
|
||||
<!-- gender -->
|
||||
{!! Form::label('gender',Lang::get('lang.rating_restrict')) !!}<span style="color:red;">*</span>
|
||||
<div class="callout callout-default" style="font-style: oblique;">{!! Lang::get('lang.rating-msg2') !!}</div>
|
||||
{!! Form::select('restrict',['General' => 'general','Support'=>'support'],null,['class' => 'form-control']) !!}
|
||||
</div>
|
||||
<div class="form-group {{ $errors->has('allow_modification') ? 'has-error' : '' }}">
|
||||
<!-- Email user -->
|
||||
{!! Form::label('allow_modification',Lang::get('lang.rating_change')) !!}<span style="color:red;">*</span>
|
||||
<div class="callout callout-default" style="font-style: oblique;">{!! Lang::get('lang.rating-msg3') !!}</div>
|
||||
<div class="row">
|
||||
<div class="col-xs-2">
|
||||
{!! Form::radio('allow_modification','1') !!} {{Lang::get('lang.yes')}}
|
||||
</div>
|
||||
<div class="col-xs-2">
|
||||
{!! Form::radio('allow_modification','0') !!} {{Lang::get('lang.no')}}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="box-footer">
|
||||
{!! Form::submit(Lang::get('lang.submit'),['class'=>'btn btn-primary'])!!}
|
||||
</div>
|
||||
</div>
|
||||
@stop
|
||||
@@ -21,115 +21,100 @@ class="active"
|
||||
<!-- 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="box box-primary">
|
||||
<div class="box-header with-border">
|
||||
<h3 class="box-title">{{Lang::get('lang.cron')}}</h3>
|
||||
</div>
|
||||
|
||||
<div class="box-body table-responsive"style="overflow:hidden;">
|
||||
<!-- check whether success or not -->
|
||||
@if(Session::has('success'))
|
||||
<div class="alert alert-success alert-dismissable">
|
||||
<i class="fa fa-check-circle"></i>
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
{!!Session::get('success')!!}
|
||||
</div>
|
||||
@endif
|
||||
<!-- failure message -->
|
||||
@if(Session::has('fails'))
|
||||
<div class="alert alert-danger alert-dismissable">
|
||||
<i class="fa fa-ban"></i>
|
||||
<b>{!! Lang::get('lang.alert') !!}!</b>
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
{!!Session::get('fails')!!}
|
||||
</div>
|
||||
@endif
|
||||
<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')!!}
|
||||
</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">
|
||||
<!-- 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="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-8">
|
||||
<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 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 class="box-footer">
|
||||
{!! Form::submit(Lang::get('lang.submit'),['class'=>'btn btn-primary'])!!}
|
||||
</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;
|
||||
})
|
||||
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
|
||||
|
||||
@@ -0,0 +1,105 @@
|
||||
@extends('themes.default1.admin.layout.admin')
|
||||
|
||||
@section('Settings')
|
||||
active
|
||||
@stop
|
||||
|
||||
@section('ratings')
|
||||
class="active"
|
||||
@stop
|
||||
|
||||
@section('HeadInclude')
|
||||
@stop
|
||||
|
||||
<!-- header -->
|
||||
@section('PageHeader')
|
||||
<h1>{!! Lang::get('lang.ratings') !!}</h1>
|
||||
@stop
|
||||
|
||||
<!-- content -->
|
||||
@section('content')
|
||||
{!! Form::model($rating,['route'=>['settings.rating', $rating->id],'method'=>'PATCH','files' => true]) !!}
|
||||
<div class="box box-primary">
|
||||
<div class="box-header with-border">
|
||||
<h3 class="box-title">{{Lang::get('lang.edit')}}</h3>
|
||||
</div>
|
||||
<div class="box-body">
|
||||
@if(Session::has('success'))
|
||||
<div class="alert alert-success alert-dismissable">
|
||||
<i class="fa fa-check-circle"></i>
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
{{Session::get('success')}}
|
||||
</div>
|
||||
@endif
|
||||
@if(Session::has('errors'))
|
||||
<?php //dd($errors); ?>
|
||||
<div class="alert alert-danger alert-dismissable">
|
||||
<i class="fa fa-ban"></i>
|
||||
<b>{!! Lang::get('lang.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('display_order'))
|
||||
<li class="error-message-padding">{!! $errors->first('display_order', ':message') !!}</li>
|
||||
@endif
|
||||
@if($errors->first('rating_scale'))
|
||||
<li class="error-message-padding">{!! $errors->first('rating_scale', ':message') !!}</li>
|
||||
@endif
|
||||
@if($errors->first('rating_area'))
|
||||
<li class="error-message-padding">{!! $errors->first('rating_area', ':message') !!}</li>
|
||||
@endif
|
||||
@if($errors->first('restrict'))
|
||||
<li class="error-message-padding">{!! $errors->first('restrict', ':message') !!}</li>
|
||||
@endif
|
||||
@if($errors->first('allow_modification'))
|
||||
<li class="error-message-padding">{!! $errors->first('allow_modification', ':message') !!}</li>
|
||||
@endif
|
||||
</div>
|
||||
@endif
|
||||
<div class="row">
|
||||
<div class="col-md-6 form-group {{ $errors->has('name') ? 'has-error' : '' }}">
|
||||
{!! Form::label('name',Lang::get('lang.rating_label')) !!}<span style="color:red;">*</span>
|
||||
{!! Form::text('name',null,['class' => 'form-control']) !!}
|
||||
</div>
|
||||
<div class="col-md-6 form-group {{ $errors->has('display_order') ? 'has-error' : '' }}">
|
||||
{!! Form::label('display_order',Lang::get('lang.display_order')) !!}<span style="color:red;">*</span>
|
||||
{!! Form::text('display_order',null,['class' => 'form-control']) !!}
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group {{ $errors->has('rating_scale') ? 'has-error' : '' }}">
|
||||
{!! Form::label('rating_scale',Lang::get('lang.rating_scale')) !!}<span style="color:red;">*</span>
|
||||
<div class="callout callout-default" style="font-style: oblique;">{!! Lang::get('lang.rating-msg1') !!}</div>
|
||||
{!! Form::select('rating_scale',['1' => '1','2'=>'2','3'=>'3','4'=>'4','5'=>'5','6'=>'6','7'=>'7','8'=>'8'],null,['class' => 'form-control']) !!}
|
||||
</div>
|
||||
<div class="form-group {{ $errors->has('rating_area') ? 'has-error' : '' }}">
|
||||
{!! Form::label('rating_area',Lang::get('lang.rating_area')) !!}<span style="color:red;">*</span>
|
||||
{!! Form::select('rating_area',['Helpdesk Area' => 'Helpdesk Area','Comment Area'=>'Comment Area'],null,['class' => 'form-control','disabled' => 'disabled']) !!}
|
||||
</div>
|
||||
<div class="form-group {{ $errors->has('restrict') ? 'has-error' : '' }}">
|
||||
<!-- gender -->
|
||||
{!! Form::label('gender',Lang::get('lang.rating_restrict')) !!}<span style="color:red;">*</span>
|
||||
<div class="callout callout-default" style="font-style: oblique;">{!! Lang::get('lang.rating-msg2') !!}</div>
|
||||
{!! Form::select('restrict',['General' => 'general','Support'=>'support'],null,['class' => 'form-control']) !!}
|
||||
</div>
|
||||
<div class="form-group {{ $errors->has('allow_modification') ? 'has-error' : '' }}">
|
||||
<!-- Email user -->
|
||||
{!! Form::label('allow_modification',Lang::get('lang.rating_change')) !!}<span style="color:red;">*</span>
|
||||
<div class="callout callout-default" style="font-style: oblique;">{!! Lang::get('lang.rating-msg3') !!}</div>
|
||||
<div class="row">
|
||||
<div class="col-xs-2">
|
||||
{!! Form::radio('allow_modification','1') !!} {{Lang::get('lang.yes')}}
|
||||
</div>
|
||||
<div class="col-xs-2">
|
||||
{!! Form::radio('allow_modification','0') !!} {{Lang::get('lang.no')}}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="box-footer">
|
||||
{!! Form::submit(Lang::get('lang.update'),['class'=>'btn btn-primary'])!!}
|
||||
</div>
|
||||
</div>
|
||||
{!! Form::close() !!}
|
||||
@stop
|
||||
@@ -1,6 +1,6 @@
|
||||
@extends('themes.default1.admin.layout.admin')
|
||||
|
||||
@section('Settings')
|
||||
@section('Emails')
|
||||
active
|
||||
@stop
|
||||
|
||||
@@ -21,86 +21,80 @@ class="active"
|
||||
<!-- breadcrumbs -->
|
||||
@section('breadcrumbs')
|
||||
<ol class="breadcrumb">
|
||||
|
||||
</ol>
|
||||
@stop
|
||||
<!-- /breadcrumbs -->
|
||||
<!-- content -->
|
||||
@section('content')
|
||||
|
||||
<!-- open a form -->
|
||||
{!! Form::model($emails,['url' => 'postemail/'.$emails->id, '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.email')}}</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>
|
||||
<div class="box box-primary">
|
||||
<div class="box-header with-border">
|
||||
<h3 class="box-title">{{Lang::get('lang.email-settings')}}</h3>
|
||||
</div>
|
||||
<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>
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
{!!Session::get('success')!!}
|
||||
</div>
|
||||
@endif
|
||||
<!-- failure message -->
|
||||
@if(Session::has('fails'))
|
||||
<div class="alert alert-danger alert-dismissable">
|
||||
<i class="fa fa-ban"></i>
|
||||
<b>{!! lang::get('lang.success') !!} !</b>
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
{!!Session::get('fails')!!}
|
||||
</div>
|
||||
@endif
|
||||
@if(Session::has('errors'))
|
||||
<?php //dd($errors); ?>
|
||||
<div class="alert alert-danger alert-dismissable">
|
||||
<i class="fa fa-ban"></i>
|
||||
<b>{!! Lang::get('lang.alert') !!}!</b>
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
<br/>
|
||||
@if($errors->first('sys_email'))
|
||||
<li class="error-message-padding">{!! $errors->first('sys_email', ':message') !!}</li>
|
||||
@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="row">
|
||||
</div>
|
||||
<!-- Accept All Emails: CHECKBOX: Accept email from unknown Users -->
|
||||
<div class="row">
|
||||
<div class="col-md-6">
|
||||
<div class="form-group">
|
||||
{!! Form::checkbox('all_emails',1,true) !!} {{Lang::get('lang.accept_all_email')}}
|
||||
</div>
|
||||
</div>
|
||||
@endif
|
||||
<div class="box-body table-responsive"style="overflow:hidden;">
|
||||
<div class="row">
|
||||
<!-- Default System Email: DROPDOWN value from emails table : Required -->
|
||||
<div class="col-md-12">
|
||||
<div class="col-md-3 no-padding">
|
||||
<div class="form-group {{ $errors->has('sys_email') ? 'has-error' : '' }}">
|
||||
{!! Form::label('sys_email',Lang::get('lang.default_system_email')) !!}
|
||||
{!! $errors->first('sys_email', '<spam class="help-block">:message</spam>') !!}
|
||||
{!!Form::select('sys_email', [ 'Select an Email', 'Emails' => $emails1->lists('email_name','id')],null,['class'=>'form-control']) !!}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<!-- Admin's Email Address: Text : Required -->
|
||||
<div class="row">
|
||||
</div>
|
||||
<!-- Accept Email Collaborators: CHECKBOX : Automatically add collaborators from email fields -->
|
||||
<div class="row">
|
||||
<div class="col-md-4">
|
||||
<div class="form-group">
|
||||
{!! Form::checkbox('email_collaborator',1) !!} {{Lang::get('lang.accept_email_collab')}}
|
||||
</div>
|
||||
<div class="row">
|
||||
</div>
|
||||
<!-- Accept All Emails: CHECKBOX: Accept email from unknown Users -->
|
||||
<div class="row">
|
||||
<div class="col-md-6">
|
||||
<div class="form-group">
|
||||
{!! Form::checkbox('all_emails',1,true) !!} {{Lang::get('lang.accept_all_email')}}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- Admin's Email Address: Text : Required -->
|
||||
<div class="row">
|
||||
</div>
|
||||
<!-- Accept Email Collaborators: CHECKBOX : Automatically add collaborators from email fields -->
|
||||
<div class="row">
|
||||
<div class="col-md-4">
|
||||
<div class="form-group">
|
||||
{!! Form::checkbox('email_collaborator',1) !!} {{Lang::get('lang.accept_email_collab')}}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- Attachments: CHECKBOX : Email attachments to the user -->
|
||||
<div class="row">
|
||||
<div class="col-md-4">
|
||||
<div class="form-group">
|
||||
{!! Form::checkbox('attachment',1) !!} {{Lang::get('lang.attachments')}}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- Attachments: CHECKBOX : Email attachments to the user -->
|
||||
<div class="row">
|
||||
<div class="col-md-4">
|
||||
<div class="form-group">
|
||||
{!! Form::checkbox('attachment',1) !!} {{Lang::get('lang.attachments')}}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="box-footer">
|
||||
{!! Form::submit(Lang::get('lang.submit'),['class'=>'btn btn-primary'])!!}
|
||||
</div>
|
||||
</div>
|
||||
@stop
|
||||
@stop
|
||||
@@ -0,0 +1,87 @@
|
||||
@extends('themes.default1.admin.layout.admin')
|
||||
|
||||
@section('error-bugs')
|
||||
active
|
||||
@stop
|
||||
|
||||
@section('settings-bar')
|
||||
active
|
||||
@stop
|
||||
|
||||
@section('debugging-option')
|
||||
class="active"
|
||||
@stop
|
||||
|
||||
@section('HeadInclude')
|
||||
@stop
|
||||
<!-- header -->
|
||||
@section('PageHeader')
|
||||
|
||||
@stop
|
||||
<!-- /header -->
|
||||
<!-- breadcrumbs -->
|
||||
@section('breadcrumbs')
|
||||
<ol class="breadcrumb">
|
||||
</ol>
|
||||
@stop
|
||||
<!-- /breadcrumbs -->
|
||||
<!-- content -->
|
||||
@section('content')
|
||||
<div class="box box-primary">
|
||||
<div class="box-header with-border">
|
||||
<h3 class="box-title">{{Lang::get('lang.error-debug-settings')}}</h3>
|
||||
</div>
|
||||
<!-- Helpdesk Status: radio Online Offline -->
|
||||
<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>
|
||||
<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><button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
<b>{!! Lang::get('lang.alert') !!}!</b><br/>
|
||||
<li class="error-message-padding">{!!Session::get('fails')!!}</li>
|
||||
</div>
|
||||
@endif
|
||||
{!! Form::open(['url' => route('post.error.debug.settings'), 'method' => 'POST']) !!}
|
||||
<div class="row">
|
||||
<div class="col-md-4">
|
||||
<div class="form-group">
|
||||
{!! Form::label('debug',Lang::get('lang.debugging')) !!}
|
||||
<div class="row">
|
||||
<div class="col-xs-3">
|
||||
<input type="radio" name="debug" value="true" @if($debug == true) checked="true" @endif> {{Lang::get('lang.enable')}}
|
||||
</div>
|
||||
<div class="col-xs-3">
|
||||
<input type="radio" name="debug" value="false" @if($debug == false) checked="true" @endif> {{Lang::get('lang.disable')}}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<div class="form-group">
|
||||
{!! Form::label('bugsnag',Lang::get('lang.bugsnag-debugging')) !!}
|
||||
<div class="row">
|
||||
<div class="col-xs-3">
|
||||
<input type="radio" name="bugsnag" value="true" @if($bugsnag == true) checked="true" @endif> {{Lang::get('lang.yes')}}
|
||||
</div>
|
||||
<div class="col-xs-3">
|
||||
<input type="radio" name="bugsnag" value="false" @if($bugsnag == false) checked="true" @endif> {{Lang::get('lang.no')}}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="box-footer">
|
||||
{!! Form::submit(Lang::get('lang.save'),['onclick'=>'sendForm()','class'=>'btn btn-primary'])!!}
|
||||
</div>
|
||||
{!! Form::close() !!}
|
||||
</div>
|
||||
@stop
|
||||
@@ -0,0 +1,490 @@
|
||||
@extends('themes.default1.admin.layout.admin')
|
||||
|
||||
@section('error-bugs')
|
||||
active
|
||||
@stop
|
||||
|
||||
@section('settings-bar')
|
||||
active
|
||||
@stop
|
||||
|
||||
@section('error-logs')
|
||||
class="active"
|
||||
@stop
|
||||
|
||||
@section('HeadInclude')
|
||||
@stop
|
||||
<!-- header -->
|
||||
@section('PageHeader')
|
||||
|
||||
@stop
|
||||
<!-- /header -->
|
||||
<!-- breadcrumbs -->
|
||||
@section('breadcrumbs')
|
||||
<ol class="breadcrumb">
|
||||
</ol>
|
||||
@stop
|
||||
<!-- /breadcrumbs -->
|
||||
<!-- content -->
|
||||
@section('content')
|
||||
<div class="box box-primary">
|
||||
<div class="box-header">
|
||||
<h2 class="box-title">{{Lang::get('lang.error-logs')}}</h2>
|
||||
</div>
|
||||
<!-- /.box-header -->
|
||||
<div class="box-body">
|
||||
@if(Session::has('success'))
|
||||
<div class="alert alert-success alert-dismissable">
|
||||
<i class="fa fa-check-circle"></i>
|
||||
<b>Success!</b>
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
{{Session::get('success')}}
|
||||
</div>
|
||||
@endif
|
||||
<!-- failure message -->
|
||||
@if(Session::has('fails'))
|
||||
<div class="alert alert-danger alert-dismissable">
|
||||
<i class="fa fa-ban"></i>
|
||||
<b>Fail!</b>
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
{{Session::get('fails')}}
|
||||
</div>
|
||||
@endif
|
||||
<table id="example1" class="table table-bordered table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Rendering engine</th>
|
||||
<th>Browser</th>
|
||||
<th>Platform(s)</th>
|
||||
<th>Engine version</th>
|
||||
<th>CSS grade</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>Trident</td>
|
||||
<td>Internet
|
||||
Explorer 4.0
|
||||
</td>
|
||||
<td>Win 95+</td>
|
||||
<td> 4</td>
|
||||
<td>X</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Trident</td>
|
||||
<td>Internet
|
||||
Explorer 5.0
|
||||
</td>
|
||||
<td>Win 95+</td>
|
||||
<td>5</td>
|
||||
<td>C</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Trident</td>
|
||||
<td>Internet
|
||||
Explorer 5.5
|
||||
</td>
|
||||
<td>Win 95+</td>
|
||||
<td>5.5</td>
|
||||
<td>A</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Trident</td>
|
||||
<td>Internet
|
||||
Explorer 6
|
||||
</td>
|
||||
<td>Win 98+</td>
|
||||
<td>6</td>
|
||||
<td>A</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Trident</td>
|
||||
<td>Internet Explorer 7</td>
|
||||
<td>Win XP SP2+</td>
|
||||
<td>7</td>
|
||||
<td>A</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Trident</td>
|
||||
<td>AOL browser (AOL desktop)</td>
|
||||
<td>Win XP</td>
|
||||
<td>6</td>
|
||||
<td>A</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Gecko</td>
|
||||
<td>Firefox 1.0</td>
|
||||
<td>Win 98+ / OSX.2+</td>
|
||||
<td>1.7</td>
|
||||
<td>A</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Gecko</td>
|
||||
<td>Firefox 1.5</td>
|
||||
<td>Win 98+ / OSX.2+</td>
|
||||
<td>1.8</td>
|
||||
<td>A</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Gecko</td>
|
||||
<td>Firefox 2.0</td>
|
||||
<td>Win 98+ / OSX.2+</td>
|
||||
<td>1.8</td>
|
||||
<td>A</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Gecko</td>
|
||||
<td>Firefox 3.0</td>
|
||||
<td>Win 2k+ / OSX.3+</td>
|
||||
<td>1.9</td>
|
||||
<td>A</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Gecko</td>
|
||||
<td>Camino 1.0</td>
|
||||
<td>OSX.2+</td>
|
||||
<td>1.8</td>
|
||||
<td>A</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Gecko</td>
|
||||
<td>Camino 1.5</td>
|
||||
<td>OSX.3+</td>
|
||||
<td>1.8</td>
|
||||
<td>A</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Gecko</td>
|
||||
<td>Netscape 7.2</td>
|
||||
<td>Win 95+ / Mac OS 8.6-9.2</td>
|
||||
<td>1.7</td>
|
||||
<td>A</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Gecko</td>
|
||||
<td>Netscape Browser 8</td>
|
||||
<td>Win 98SE+</td>
|
||||
<td>1.7</td>
|
||||
<td>A</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Gecko</td>
|
||||
<td>Netscape Navigator 9</td>
|
||||
<td>Win 98+ / OSX.2+</td>
|
||||
<td>1.8</td>
|
||||
<td>A</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Gecko</td>
|
||||
<td>Mozilla 1.0</td>
|
||||
<td>Win 95+ / OSX.1+</td>
|
||||
<td>1</td>
|
||||
<td>A</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Gecko</td>
|
||||
<td>Mozilla 1.1</td>
|
||||
<td>Win 95+ / OSX.1+</td>
|
||||
<td>1.1</td>
|
||||
<td>A</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Gecko</td>
|
||||
<td>Mozilla 1.2</td>
|
||||
<td>Win 95+ / OSX.1+</td>
|
||||
<td>1.2</td>
|
||||
<td>A</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Gecko</td>
|
||||
<td>Mozilla 1.3</td>
|
||||
<td>Win 95+ / OSX.1+</td>
|
||||
<td>1.3</td>
|
||||
<td>A</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Gecko</td>
|
||||
<td>Mozilla 1.4</td>
|
||||
<td>Win 95+ / OSX.1+</td>
|
||||
<td>1.4</td>
|
||||
<td>A</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Gecko</td>
|
||||
<td>Mozilla 1.5</td>
|
||||
<td>Win 95+ / OSX.1+</td>
|
||||
<td>1.5</td>
|
||||
<td>A</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Gecko</td>
|
||||
<td>Mozilla 1.6</td>
|
||||
<td>Win 95+ / OSX.1+</td>
|
||||
<td>1.6</td>
|
||||
<td>A</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Gecko</td>
|
||||
<td>Mozilla 1.7</td>
|
||||
<td>Win 98+ / OSX.1+</td>
|
||||
<td>1.7</td>
|
||||
<td>A</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Gecko</td>
|
||||
<td>Mozilla 1.8</td>
|
||||
<td>Win 98+ / OSX.1+</td>
|
||||
<td>1.8</td>
|
||||
<td>A</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Gecko</td>
|
||||
<td>Seamonkey 1.1</td>
|
||||
<td>Win 98+ / OSX.2+</td>
|
||||
<td>1.8</td>
|
||||
<td>A</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Gecko</td>
|
||||
<td>Epiphany 2.20</td>
|
||||
<td>Gnome</td>
|
||||
<td>1.8</td>
|
||||
<td>A</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Webkit</td>
|
||||
<td>Safari 1.2</td>
|
||||
<td>OSX.3</td>
|
||||
<td>125.5</td>
|
||||
<td>A</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Webkit</td>
|
||||
<td>Safari 1.3</td>
|
||||
<td>OSX.3</td>
|
||||
<td>312.8</td>
|
||||
<td>A</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Webkit</td>
|
||||
<td>Safari 2.0</td>
|
||||
<td>OSX.4+</td>
|
||||
<td>419.3</td>
|
||||
<td>A</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Webkit</td>
|
||||
<td>Safari 3.0</td>
|
||||
<td>OSX.4+</td>
|
||||
<td>522.1</td>
|
||||
<td>A</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Webkit</td>
|
||||
<td>OmniWeb 5.5</td>
|
||||
<td>OSX.4+</td>
|
||||
<td>420</td>
|
||||
<td>A</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Webkit</td>
|
||||
<td>iPod Touch / iPhone</td>
|
||||
<td>iPod</td>
|
||||
<td>420.1</td>
|
||||
<td>A</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Webkit</td>
|
||||
<td>S60</td>
|
||||
<td>S60</td>
|
||||
<td>413</td>
|
||||
<td>A</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Presto</td>
|
||||
<td>Opera 7.0</td>
|
||||
<td>Win 95+ / OSX.1+</td>
|
||||
<td>-</td>
|
||||
<td>A</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Presto</td>
|
||||
<td>Opera 7.5</td>
|
||||
<td>Win 95+ / OSX.2+</td>
|
||||
<td>-</td>
|
||||
<td>A</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Presto</td>
|
||||
<td>Opera 8.0</td>
|
||||
<td>Win 95+ / OSX.2+</td>
|
||||
<td>-</td>
|
||||
<td>A</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Presto</td>
|
||||
<td>Opera 8.5</td>
|
||||
<td>Win 95+ / OSX.2+</td>
|
||||
<td>-</td>
|
||||
<td>A</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Presto</td>
|
||||
<td>Opera 9.0</td>
|
||||
<td>Win 95+ / OSX.3+</td>
|
||||
<td>-</td>
|
||||
<td>A</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Presto</td>
|
||||
<td>Opera 9.2</td>
|
||||
<td>Win 88+ / OSX.3+</td>
|
||||
<td>-</td>
|
||||
<td>A</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Presto</td>
|
||||
<td>Opera 9.5</td>
|
||||
<td>Win 88+ / OSX.3+</td>
|
||||
<td>-</td>
|
||||
<td>A</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Presto</td>
|
||||
<td>Opera for Wii</td>
|
||||
<td>Wii</td>
|
||||
<td>-</td>
|
||||
<td>A</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Presto</td>
|
||||
<td>Nokia N800</td>
|
||||
<td>N800</td>
|
||||
<td>-</td>
|
||||
<td>A</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Presto</td>
|
||||
<td>Nintendo DS browser</td>
|
||||
<td>Nintendo DS</td>
|
||||
<td>8.5</td>
|
||||
<td>C/A<sup>1</sup></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>KHTML</td>
|
||||
<td>Konqureror 3.1</td>
|
||||
<td>KDE 3.1</td>
|
||||
<td>3.1</td>
|
||||
<td>C</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>KHTML</td>
|
||||
<td>Konqureror 3.3</td>
|
||||
<td>KDE 3.3</td>
|
||||
<td>3.3</td>
|
||||
<td>A</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>KHTML</td>
|
||||
<td>Konqureror 3.5</td>
|
||||
<td>KDE 3.5</td>
|
||||
<td>3.5</td>
|
||||
<td>A</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Tasman</td>
|
||||
<td>Internet Explorer 4.5</td>
|
||||
<td>Mac OS 8-9</td>
|
||||
<td>-</td>
|
||||
<td>X</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Tasman</td>
|
||||
<td>Internet Explorer 5.1</td>
|
||||
<td>Mac OS 7.6-9</td>
|
||||
<td>1</td>
|
||||
<td>C</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Tasman</td>
|
||||
<td>Internet Explorer 5.2</td>
|
||||
<td>Mac OS 8-X</td>
|
||||
<td>1</td>
|
||||
<td>C</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Misc</td>
|
||||
<td>NetFront 3.1</td>
|
||||
<td>Embedded devices</td>
|
||||
<td>-</td>
|
||||
<td>C</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Misc</td>
|
||||
<td>NetFront 3.4</td>
|
||||
<td>Embedded devices</td>
|
||||
<td>-</td>
|
||||
<td>A</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Misc</td>
|
||||
<td>Dillo 0.8</td>
|
||||
<td>Embedded devices</td>
|
||||
<td>-</td>
|
||||
<td>X</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Misc</td>
|
||||
<td>Links</td>
|
||||
<td>Text only</td>
|
||||
<td>-</td>
|
||||
<td>X</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Misc</td>
|
||||
<td>Lynx</td>
|
||||
<td>Text only</td>
|
||||
<td>-</td>
|
||||
<td>X</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Misc</td>
|
||||
<td>IE Mobile</td>
|
||||
<td>Windows Mobile 6</td>
|
||||
<td>-</td>
|
||||
<td>C</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Misc</td>
|
||||
<td>PSP browser</td>
|
||||
<td>PSP</td>
|
||||
<td>-</td>
|
||||
<td>C</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Other browsers</td>
|
||||
<td>All others</td>
|
||||
<td>-</td>
|
||||
<td>-</td>
|
||||
<td>U</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<!-- /.box-body -->
|
||||
</div>
|
||||
<!-- /.box -->
|
||||
<script>
|
||||
$(function () {
|
||||
$("#example1").DataTable();
|
||||
$('#example2').DataTable({
|
||||
"paging": true,
|
||||
"lengthChange": false,
|
||||
"searching": false,
|
||||
"ordering": true,
|
||||
"info": true,
|
||||
"autoWidth": false
|
||||
});
|
||||
});
|
||||
</script>
|
||||
@stop
|
||||
@@ -0,0 +1,87 @@
|
||||
@extends('themes.default1.admin.layout.admin')
|
||||
|
||||
@section('Settings')
|
||||
active
|
||||
@stop
|
||||
|
||||
@section('settings-bar')
|
||||
active
|
||||
@stop
|
||||
|
||||
@section('notification')
|
||||
class="active"
|
||||
@stop
|
||||
|
||||
@section('HeadInclude')
|
||||
@stop
|
||||
<!-- header -->
|
||||
@section('PageHeader')
|
||||
<h1>{!! Lang::get('lang.settings') !!}</h1>
|
||||
@stop
|
||||
<!-- /header -->
|
||||
<!-- breadcrumbs -->
|
||||
@section('breadcrumbs')
|
||||
<ol class="breadcrumb">
|
||||
</ol>
|
||||
@stop
|
||||
<!-- /breadcrumbs -->
|
||||
<!-- content -->
|
||||
@section('content')
|
||||
<!-- open a form -->
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="box box-primary">
|
||||
<div class="box-header with-border">
|
||||
<h3 class="box-title">{{Lang::get('lang.notification_settings')}}</h3>
|
||||
</div>
|
||||
<!-- check whether success or not -->
|
||||
<div class="box-body table-responsive"style="overflow:hidden;">
|
||||
@if(Session::has('success'))
|
||||
<div class="alert alert-success alert-dismissable">
|
||||
<i class="fa fa-check-circle"></i>
|
||||
<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>
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
<b> {!! Lang::get('lang.alert') !!} ! </b>
|
||||
<li class="error-message-padding">{!!Session::get('fails')!!}</li>
|
||||
</div>
|
||||
@endif
|
||||
<div class="row">
|
||||
<!-- Default System Email: DROPDOWN value from emails table : Required -->
|
||||
<div class="col-md-12">
|
||||
<div class="col-md-3 no-padding">
|
||||
<div class="form-group">
|
||||
{!! Form::label('del_noti', Lang::get('lang.delete_noti')) !!}
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<a href="{{ url('delete-read-notification') }}" class="btn btn-danger">{!! Lang::get('lang.del_all_read') !!}</a>
|
||||
</div>
|
||||
</div>
|
||||
<br>
|
||||
<div class="col-md-12">
|
||||
<div class="col-md-3 no-padding">
|
||||
<div class="form-group">
|
||||
{!! Form::label('del_noti', Lang::get('lang.noti_msg1')) !!}<span class="text-red"> *</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<form action="{{ url('delete-notification-log') }}" method="post">
|
||||
<div class="callout callout-default" style="font-style: oblique;">{!! Lang::get('lang.noti_msg2') !!}</div>
|
||||
<input type="number" class="form-control" name='no_of_days' placeholder="{!! lang::get('lang.enter_no_of_days') !!}">
|
||||
<button type="submit" class="btn btn-primary">{!! Lang::get('lang.submit') !!}</button>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@stop
|
||||
@@ -16,55 +16,47 @@ class="active"
|
||||
@stop
|
||||
<!-- header -->
|
||||
@section('PageHeader')
|
||||
|
||||
@stop
|
||||
<!-- /header -->
|
||||
<!-- breadcrumbs -->
|
||||
@section('breadcrumbs')
|
||||
<ol class="breadcrumb">
|
||||
|
||||
</ol>
|
||||
@stop
|
||||
<!-- /breadcrumbs -->
|
||||
<!-- content -->
|
||||
@section('content')
|
||||
<div class="box box-primary">
|
||||
<div class="box-header">
|
||||
<h3>Plugins
|
||||
<button type="button" class="btn btn-default" id="Edit_Ticket" data-toggle="modal" data-target="#Edit"><b>Add New</b></button>
|
||||
</h3>
|
||||
<div class="box-header with-border">
|
||||
<h3 class="box-title">{!! Lang::get('lang.plugins') !!}</h3>
|
||||
<button type="button" class="btn btn-primary pull-right" id="Edit_Ticket" data-toggle="modal" data-target="#Edit"><b>{!! Lang::get('lang.add_plugin') !!}</b></button>
|
||||
<div class="modal fade" id="Edit">
|
||||
<div class="modal-dialog">
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<h4 class="modal-title">Add Plugin</h4>
|
||||
<h4 class="modal-title">{!! Lang::get('lang.add_plugin') !!}</h4>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
{!! Form::open(['url'=>'post-plugin','files'=>true]) !!}
|
||||
<table>
|
||||
<tr>
|
||||
<td>Plugin :</td>
|
||||
<td><input type="file" name="plugin" class="btn btn-file"></td>
|
||||
|
||||
</tr>
|
||||
</table>
|
||||
<div class="modal-footer">
|
||||
<button type="button" class="btn btn-default pull-left" data-dismiss="modal" id="dismis">{!! Lang::get('lang.close') !!}</button>
|
||||
<input type="submit" class="btn btn-primary pull-right" value="Upload">
|
||||
<label>{!! Lang::get('lang.plugin') !!} :</label>
|
||||
<div class="btn bg-olive btn-file" style="color:blue">
|
||||
{!! Lang::get('lang.upload_file') !!}<input type="file" name="plugin">
|
||||
</div>
|
||||
{!! Form::close() !!}
|
||||
|
||||
</div><!-- /.modal-content -->
|
||||
</div><!-- /.modal-content -->
|
||||
<div class="modal-footer">
|
||||
<button type="button" class="btn btn-default pull-left" data-dismiss="modal" id="dismis">{!! Lang::get('lang.close') !!}</button>
|
||||
<input type="submit" class="btn btn-primary pull-right" value="{!! Lang::get('lang.upload') !!}">
|
||||
</div>
|
||||
{!! Form::close() !!}
|
||||
</div>
|
||||
</div><!-- /.modal-dialog -->
|
||||
</div><!-- /.modal -->
|
||||
</div>
|
||||
|
||||
<div class="box-body">
|
||||
|
||||
@if (count($errors) > 0)
|
||||
<div class="alert alert-danger">
|
||||
<strong>Whoops!</strong> There were some problems with your input.<br><br>
|
||||
<div class="alert alert-danger alert-dismissable">
|
||||
<i class="fa fa-ban"></i>
|
||||
<b>{!! Lang::get('lang.alert') !!}!</b><br/>
|
||||
<ul>
|
||||
@foreach ($errors->all() as $error)
|
||||
<li>{{ $error }}</li>
|
||||
@@ -72,12 +64,9 @@ class="active"
|
||||
</ul>
|
||||
</div>
|
||||
@endif
|
||||
|
||||
|
||||
@if(Session::has('success'))
|
||||
<div class="alert alert-success alert-dismissable">
|
||||
<i class="fa fa-check-circle"></i>
|
||||
<b>Success!</b>
|
||||
<i class="fa fa-check-circle"></i>
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
{!!Session::get('success')!!}
|
||||
</div>
|
||||
@@ -86,20 +75,17 @@ class="active"
|
||||
@if(Session::has('fails'))
|
||||
<div class="alert alert-danger alert-dismissable">
|
||||
<i class="fa fa-ban"></i>
|
||||
<b>Alert!</b> Failed.
|
||||
<b>{!! Lang::get('lang.alert') !!}!</b>
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
{!!Session::get('fails')!!}
|
||||
</div>
|
||||
@endif
|
||||
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<script src="{{asset('lb-faveo/plugins/jQuery/jQuery-2.1.4.min.js')}}" type="text/javascript"></script>
|
||||
<script type="text/javascript" src="{{asset('lb-faveo/plugins/datatables/jquery.dataTables.js')}}"></script>
|
||||
<script type="text/javascript" src="{{asset('lb-faveo/plugins/datatables/dataTables.bootstrap.js')}}"></script>
|
||||
|
||||
|
||||
<script type="text/javascript" src="{{asset('lb-faveo/plugins/datatables/jquery.dataTables.js')}}"></script>
|
||||
<script type="text/javascript" src="{{asset('lb-faveo/plugins/datatables/dataTables.bootstrap.js')}}"></script>
|
||||
|
||||
{!! Datatable::table()
|
||||
->addColumn('Name','Description','Author','Website','Version') // these are the column headings to be shown
|
||||
->setUrl('getplugin') // this is the route where data will be retrieved
|
||||
|
||||
@@ -0,0 +1,104 @@
|
||||
@extends('themes.default1.admin.layout.admin')
|
||||
|
||||
@section('Settings')
|
||||
active
|
||||
@stop
|
||||
|
||||
@section('ratings')
|
||||
class="active"
|
||||
@stop
|
||||
|
||||
@section('PageHeader')
|
||||
<h1>{!! Lang::get('lang.ratings') !!}</h1>
|
||||
@stop
|
||||
|
||||
@section('header')
|
||||
@stop
|
||||
|
||||
@section('content')
|
||||
<div class="box box-primary">
|
||||
<div class="box-header with-border">
|
||||
<h3 class="box-title">{!! Lang::get('lang.current_ratings') !!}</h3>
|
||||
<div class="box-tools pull-right">
|
||||
<div class="box-tools pull-right">
|
||||
<a class="btn btn-box-tool" href="{{ route('rating.create') }}" title="{!! Lang::get('lang.create') !!}"><i class="fa fa-plus-circle fa-2x"></i></a>
|
||||
</div>
|
||||
</div><!-- /.box-header -->
|
||||
</div>
|
||||
<div class="box-body">
|
||||
@if(Session::has('success'))
|
||||
<div class="alert alert-success alert-dismissable">
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
<p>{{Session::get('success')}}</p>
|
||||
</div>
|
||||
@endif
|
||||
<table id="example1" class="table table-bordered table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>{!! Lang::get('lang.name') !!}</th>
|
||||
<th>{!! Lang::get('lang.display_order') !!}</th>
|
||||
<th>{!! Lang::get('lang.rating_area') !!}</th>
|
||||
<th>{!! Lang::get('lang.action') !!}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach($ratings as $rating)
|
||||
<tr>
|
||||
<td>{!! $rating->name !!}</td>
|
||||
<td>{!! $rating->display_order !!}</td>
|
||||
<td>{!! $rating->rating_area !!}</td>
|
||||
<td>
|
||||
{!! link_to_route('rating.edit','Edit Ratings',[$rating->id],['class'=>'btn btn-info btn-sm']) !!}
|
||||
<button class="btn btn-danger btn-sm" data-toggle="modal" data-target="#{{$rating->id}}delete">Delete</button>
|
||||
<div class="modal fade" id="{{$rating->id}}delete">
|
||||
<div class="modal-dialog">
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
|
||||
<h4 class="modal-title">{!! Lang::get('lang.delete') !!}</h4>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<p>{!! Lang::get('lang.are_you_sure_you_want_to_delete') !!} ?</p>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button type="button" class="btn btn-default pull-left" data-dismiss="modal">{!! Lang::get('lang.close') !!}</button>
|
||||
{!! link_to_route('ratings.delete',Lang::get('lang.delete'),[$rating->id],['id'=>'delete','class'=>'btn btn-danger btn-sm']) !!}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
</div><!-- /.box-body -->
|
||||
</div>
|
||||
@stop
|
||||
@section('footer')
|
||||
<script src="{{asset("lb-sample/plugins/datatables/jquery.dataTables.js")}}" type="text/javascript"></script>
|
||||
<script src="{{asset("lb-sample/plugins/datatables/dataTables.bootstrap.js")}}" type="text/javascript"></script>
|
||||
|
||||
<!-- page script -->
|
||||
<script type="text/javascript">
|
||||
$(function() {
|
||||
$("#example1").dataTable();
|
||||
$('#example2').dataTable({
|
||||
"bPaginate": true,
|
||||
"bLengthChange": false,
|
||||
"bFilter": false,
|
||||
"bSort": true,
|
||||
"bInfo": true,
|
||||
"bAutoWidth": false
|
||||
});
|
||||
});
|
||||
|
||||
</script>
|
||||
|
||||
<script type="text/javascript">
|
||||
<?php if (count($errors) > 0) { ?>
|
||||
$('#create').modal('show');
|
||||
<?php } ?>
|
||||
</script>
|
||||
|
||||
@stop
|
||||
@@ -22,83 +22,48 @@ class="active"
|
||||
<!-- breadcrumbs -->
|
||||
@section('breadcrumbs')
|
||||
<ol class="breadcrumb">
|
||||
|
||||
</ol>
|
||||
@stop
|
||||
<!-- /breadcrumbs -->
|
||||
<!-- content -->
|
||||
@section('content')
|
||||
|
||||
<!-- open a form -->
|
||||
|
||||
{!! Form::model($responders,['url' => 'postresponder/'.$responders->id, '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.auto_responce')}}</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')!!}
|
||||
{!! Form::model($responders,['url' => 'postresponder/'.$responders->id, 'method' => 'PATCH']) !!}
|
||||
<div class="box box-primary">
|
||||
<div class="box-header with-border">
|
||||
<h3 class="box-title">{{Lang::get('lang.auto_responce')}}</h3>
|
||||
</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')!!}
|
||||
<!-- New Ticket: CHECKBOX Ticket Owner -->
|
||||
<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>
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
{!!Session::get('success')!!}
|
||||
</div>
|
||||
@endif
|
||||
<!-- failure message -->
|
||||
@if(Session::has('fails'))
|
||||
<div class="alert alert-danger alert-dismissable">
|
||||
<i class="fa fa-ban"></i>
|
||||
<b>{!! lang::get('lang.alert') !!}!</b>
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
{!!Session::get('fails')!!}
|
||||
</div>
|
||||
@endif
|
||||
<div class="form-group">
|
||||
{!! Form::checkbox('new_ticket',1) !!}
|
||||
{!! Form::label('new_ticket',Lang::get('lang.new_ticket')) !!}
|
||||
</div>
|
||||
<!-- New Ticket by Agent: CHECKBOX Ticket Owner -->
|
||||
<div class="form-group">
|
||||
{!! Form::checkbox('agent_new_ticket',1) !!}
|
||||
{!! Form::label('agent_new_ticket',Lang::get('lang.new_ticket_by_agent')) !!}
|
||||
</div>
|
||||
</div>
|
||||
@endif
|
||||
|
||||
|
||||
|
||||
<!-- New Ticket: CHECKBOX Ticket Owner -->
|
||||
<div class="box-body table-responsive"style="overflow:hidden;">
|
||||
<div class="form-group">
|
||||
{!! Form::checkbox('new_ticket',1) !!}
|
||||
{!! Form::label('new_ticket',Lang::get('lang.new_ticket')) !!}
|
||||
</div>
|
||||
|
||||
<!-- New Ticket by Agent: CHECKBOX Ticket Owner -->
|
||||
|
||||
<div class="form-group">
|
||||
{!! Form::checkbox('agent_new_ticket',1) !!}
|
||||
{!! Form::label('agent_new_ticket',Lang::get('lang.new_ticket_by_agent')) !!}
|
||||
</div>
|
||||
|
||||
<!-- New Message:
|
||||
Submitter: CHECKBOX Send receipt confirmation
|
||||
Participants: CHECKBOX Send new activity notice -->
|
||||
|
||||
{{-- <div class="form-group"> --}}
|
||||
{{-- {!! Form::label('new_message',Lang::get('lang.new_message')) !!}<br> --}}
|
||||
{{-- {!! Form::checkbox('submitter',1,true) !!} {{Lang::get('lang.submitter')}} {{Lang::get('lang.send_receipt_confirmation')}} <p><p> --}}
|
||||
{{-- {!! Form::checkbox('participants',1) !!} {{Lang::get('lang.participants')}} {{Lang::get('lang.send_new_activity_notice')}} --}}
|
||||
{{-- </div> --}}
|
||||
|
||||
<!-- Overlimit Notice: CHECKBOX Ticket Submitter -->
|
||||
|
||||
{{-- <div class="form-group"> --}}
|
||||
{{-- {!! Form::checkbox('overlimit',1) !!} --}}
|
||||
{{-- {!! Form::label('overlimit',Lang::get('lang.overlimit_notice')) !!} --}}
|
||||
{{-- </div> --}}
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="box-footer">
|
||||
{!! Form::submit(Lang::get('lang.submit'),['class'=>'btn btn-primary'])!!}
|
||||
</div>
|
||||
</div>
|
||||
@stop
|
||||
|
||||
@@ -0,0 +1,96 @@
|
||||
@extends('themes.default1.admin.layout.admin')
|
||||
|
||||
@section('Settings')
|
||||
active
|
||||
@stop
|
||||
|
||||
@section('security')
|
||||
class="active"
|
||||
@stop
|
||||
|
||||
@section('PageHeader')
|
||||
<h1>{!! Lang::get('lang.security') !!}</h1>
|
||||
@stop
|
||||
|
||||
@section('header')
|
||||
@stop
|
||||
|
||||
@section('content')
|
||||
<div class="box box-primary">
|
||||
<div class="box-header with-border">
|
||||
<h3 class="box-title">{!! Lang::get('lang.security_settings') !!}</h3>
|
||||
</div><!-- /.box-header -->
|
||||
<div class="box-body">
|
||||
@if(Session::has('success'))
|
||||
<div class="alert alert-success alert-dismissable">
|
||||
<i class="fa fa-check-circle"></i>
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
{!! Session::get('success') !!}
|
||||
</div>
|
||||
@endif
|
||||
@if(Session::has('failed'))
|
||||
<div class="alert alert-danger alert-dismissable">
|
||||
<i class="fa fa-ban"></i>
|
||||
<b>{!! Lang::get('lang/alert') !!}!</b>
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
<p>{{Session::get('failed')}}</p>
|
||||
</div>
|
||||
@endif
|
||||
@if(Session::has('errors'))
|
||||
<div class="alert alert-danger alert-dismissable">
|
||||
<i class="fa fa-ban"></i>
|
||||
<b>{!! Lang::get('lang.alert') !!}!</b>
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
<br/>
|
||||
@if($errors->first('lockout_message'))
|
||||
<li class="error-message-padding">{!! $errors->first('lockout_message', ':message') !!}</li>
|
||||
@endif
|
||||
@if($errors->first('backlist_threshold'))
|
||||
<li class="error-message-padding">{!! $errors->first('backlist_threshold', ':message') !!}</li>
|
||||
@endif
|
||||
@if($errors->first('lockout_period'))
|
||||
<li class="error-message-padding">{!! $errors->first('lockout_period', ':message') !!}</li>
|
||||
@endif
|
||||
</div>
|
||||
@endif
|
||||
{!! Form::model($security,['route'=>['securitys.update', $security->id],'method'=>'PATCH','files' => true]) !!}
|
||||
<div class="form-group {{ $errors->has('lockout_message') ? 'has-error' : '' }}">
|
||||
<div class="row">
|
||||
<div class="col-md-3">
|
||||
<label for="title">Lockout Message: <span class="text-red"> *</span></label>
|
||||
</div>
|
||||
<div class="col-md-9">
|
||||
<div class="callout callout-default" style="font-style: oblique;">{!! Lang::get('lang.security_msg1') !!}</div>
|
||||
{!! Form::textarea('lockout_message',null,['class'=>'form-control'])!!}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group {{ $errors->has('backlist_threshold') ? 'has-error' : '' }}">
|
||||
<div class="row">
|
||||
<div class="col-md-3">
|
||||
<label for="title">{!! Lang::get('lang.max_attempt') !!}: <span class="text-red"> *</span></label>
|
||||
</div>
|
||||
<div class="col-md-9">
|
||||
<div class="callout callout-default" style="font-style: oblique;">{!! Lang::get('lang.security_msg2') !!}</div>
|
||||
<span>{!! Form::text('backlist_threshold',null,['class'=>'form-control'])!!} {!! Lang::get('lang.lockouts') !!}</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group {{ $errors->has('lockout_period') ? 'has-error' : '' }}">
|
||||
<div class="row">
|
||||
<div class="col-md-3">
|
||||
<label for="title">Lockout Period: <span class="text-red"> *</span></label>
|
||||
</div>
|
||||
<div class="col-md-8">
|
||||
<div class="callout callout-default" style="font-style: oblique;">{!! Lang::get('lang.security_msg3') !!}</div>
|
||||
<span> {!! Form::text('lockout_period',null,['class'=>'form-control'])!!} {!! Lang::get('lang.minutes') !!}</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div><!-- /.box-body -->
|
||||
<div class="box-footer">
|
||||
<button type="submit" class="btn btn-primary">{!! lang::get('lang.submit') !!}</button>
|
||||
</div>
|
||||
{!! Form::close() !!}
|
||||
</div>
|
||||
@stop
|
||||
@@ -0,0 +1,113 @@
|
||||
@extends('themes.default1.admin.layout.admin')
|
||||
|
||||
@section('Settings')
|
||||
active
|
||||
@stop
|
||||
|
||||
@section('status')
|
||||
class="active"
|
||||
@stop
|
||||
|
||||
@section('PageHeader')
|
||||
<h1>{!! Lang::get('lang.status_settings') !!}</h1>
|
||||
@stop
|
||||
|
||||
@section('content')
|
||||
{!! Form::model($status,['route'=>['statuss.update', $status->id],'method'=>'PATCH','files' => true]) !!}
|
||||
<div class="box box-primary">
|
||||
<div class="box-header with-border">
|
||||
<h4 class="box-title">{!! Lang::get('lang.edit_details') !!}</h4>
|
||||
</div><!-- /.box-header -->
|
||||
<div class="box-body">
|
||||
@if(Session::has('errors'))
|
||||
<div class="alert alert-danger alert-dismissable">
|
||||
<i class="fa fa-ban"></i>
|
||||
<b>{!! Lang::get('lang.alert') !!}!</b>
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
<br/>
|
||||
@foreach ($errors->all() as $error)
|
||||
<li class="error-message-padding">{{ $error }}</li>
|
||||
@endforeach
|
||||
</div>
|
||||
@endif
|
||||
@if(Session::has('success'))
|
||||
<div class="alert alert-success alert-dismissable">
|
||||
<i class="fa fa-check-circle"></i>
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
{{Session::get('success')}}
|
||||
</div>
|
||||
@endif
|
||||
@if(Session::has('failed'))
|
||||
<div class="alert alert-danger alert-dismissable">
|
||||
<i class="fa fa-ban"></i>
|
||||
<b>{!! Lang::get('lang.alert') !!} !</b>
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
<p>{{Session::get('failed')}}</p>
|
||||
</div>
|
||||
@endif
|
||||
<div class="row">
|
||||
<div class="col-md-4">
|
||||
<div class="form-group {{ $errors->has('name') ? 'has-error' : '' }}">
|
||||
<label>{!! Lang::get('lang.name') !!}: <span class="text-red"> *</span></label><br>
|
||||
{!! Form::text('name',null,['class'=>'form-control'])!!}
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<div class="form-group {{ $errors->has('sort') ? 'has-error' : '' }}">
|
||||
<label>{!! Lang::get('lang.display_order') !!}: <span class="text-red"> *</span></label><br>
|
||||
<input type="number" name="sort" min="1" class="form-control" value="{!! $status->sort !!}">
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<div class="form-group {{ $errors->has('icon_class') ? 'has-error' : '' }}">
|
||||
<label>{!! Lang::get('lang.icon_class') !!}: <span class="text-red"> *</span></label><br>
|
||||
{!! Form::text('icon_class',null,['class'=>'form-control'])!!}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<!-- gender -->
|
||||
{!! Form::label('gender',Lang::get('lang.resolved_status')) !!}
|
||||
<div class="callout callout-default" style="font-style: oblique;">{!! Lang::get('lang.status_msg3') !!}</div>
|
||||
<div class="row">
|
||||
<div class="col-xs-3">
|
||||
{!! Form::radio('state','closed',true) !!} {{Lang::get('lang.yes')}}
|
||||
</div>
|
||||
<div class="col-xs-3">
|
||||
{!! Form::radio('state','open') !!} {{Lang::get('lang.no')}}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<!-- Email user -->
|
||||
{!! Form::label('gender',Lang::get('lang.deleted_status')) !!}
|
||||
<div class="callout callout-default" style="font-style: oblique;">{!! Lang::get('lang.status_msg2') !!}</div>
|
||||
<div class="row">
|
||||
<div class="col-xs-3">
|
||||
{!! Form::radio('delete','yes') !!} {{Lang::get('lang.yes')}}
|
||||
</div>
|
||||
<div class="col-xs-3">
|
||||
{!! Form::radio('delete','no') !!} {{Lang::get('lang.no')}}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<!-- gender -->
|
||||
{!! Form::label('gender',Lang::get('lang.notify_user')) !!}
|
||||
<div class="callout callout-default" style="font-style: oblique;">{!! Lang::get('lang.status_msg1') !!}</div>
|
||||
<div class="row">
|
||||
<div class="col-xs-3">
|
||||
{!! Form::radio('email_user','yes') !!} {{Lang::get('lang.yes')}}
|
||||
</div>
|
||||
<div class="col-xs-3">
|
||||
{!! Form::radio('email_user','no') !!} {{Lang::get('lang.no')}}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="box-footer">
|
||||
{!! Form::submit(Lang::get('lang.update'),['class'=>'btn btn-primary'])!!}
|
||||
</div>
|
||||
{!! Form::close() !!}
|
||||
</div>
|
||||
@stop
|
||||
@@ -0,0 +1,176 @@
|
||||
@extends('themes.default1.admin.layout.admin')
|
||||
|
||||
@section('Settings')
|
||||
active
|
||||
@stop
|
||||
|
||||
@section('status')
|
||||
class="active"
|
||||
@stop
|
||||
|
||||
@section('PageHeader')
|
||||
<h1>{!! Lang::get('lang.status_settings') !!}</h1>
|
||||
@stop
|
||||
|
||||
@section('content')
|
||||
<div class="box box-primary">
|
||||
<div class="box-header with-border">
|
||||
<h3 class="box-title">{!! Lang::get('lang.list_of_status') !!}</h3>
|
||||
<div class="box-tools pull-right">
|
||||
<!--<button class="btn btn-box-tool" data-toggle="modal" data-target="#2create" id="create" title="{!! Lang::get('lang.create') !!}"><i class="fa fa-plus-circle fa-2x"></i></button>-->
|
||||
</div>
|
||||
</div><!-- /.box-header -->
|
||||
<div class="box-body">
|
||||
|
||||
@if(Session::has('success'))
|
||||
<div class="alert alert-success alert-dismissable">
|
||||
<i class="fa fa-check-circle"></i>
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
{{Session::get('success')}}
|
||||
</div>
|
||||
@endif
|
||||
@if(Session::has('failed'))
|
||||
<div class="alert alert-danger alert-dismissable">
|
||||
<i class="fa fa-ban"></i>
|
||||
<b>{!! Lang::get('lang.alert') !!} !</b>
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
<p>{{Session::get('failed')}}</p>
|
||||
</div>
|
||||
@endif
|
||||
<table id="example1" class="table table-bordered table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>{!! Lang::get('lang.name') !!}</th>
|
||||
<th>{!! Lang::get('lang.display_order') !!}</th>
|
||||
<!--<th>{!! Lang::get('lang.action') !!}</th>-->
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach($statuss as $status)
|
||||
<?php if ($status->name == 'Deleted') continue; ?>
|
||||
<tr>
|
||||
<td>{!! $status->name !!}</td>
|
||||
<td>{!! $status->sort !!}</td>
|
||||
<td>
|
||||
<!--<a href="{!! route('status.edit',$status->id) !!}"><button class="btn btn-info btn-sm">{!! Lang::get('lang.edit_details') !!}</button></a>-->
|
||||
<!--<button class="btn btn-danger btn-sm" data-toggle="modal" data-target="#{{$status->id}}delete">{!! Lang::get('lang.delete') !!}</button>-->
|
||||
<!-- <div class="modal fade" id="{{$status->id}}delete">
|
||||
<div class="modal-dialog">
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
|
||||
<h4 class="modal-title">{!! Lang::get('lang.delete') !!}</h4>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<p>{!! Lang::get('lang.are_you_sure_you_want_to_delete') !!} ?</p>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button type="button" class="btn btn-default pull-left" data-dismiss="modal">Close</button>
|
||||
{!! link_to_route('statuss.delete',Lang::get('lang.delete'),[$status->id],['id'=>'delete','class'=>'btn btn-danger btn-sm']) !!}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div> -->
|
||||
</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
</div><!-- /.box-body -->
|
||||
</div>
|
||||
|
||||
<!-- create modal -->
|
||||
<!--<div class="modal fade" id="2create">
|
||||
<div class="modal-dialog">
|
||||
<div class="modal-content">
|
||||
{!! Form::open(['route'=>'statuss.create']) !!}
|
||||
<div class="modal-header">
|
||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
|
||||
<h4 class="modal-title">{!! Lang::get('lang.create') !!}</h4>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
@if(Session::has('errors'))
|
||||
<script type="text/javascript">
|
||||
// $(document).ready(function() {
|
||||
// $("#create").click();
|
||||
// });
|
||||
</script>
|
||||
<div class="alert alert-danger alert-dismissable">
|
||||
<i class="fa fa-ban"></i>
|
||||
<b>{!! Lang::get('lang.alert') !!}!</b>
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
<br/>
|
||||
@foreach ($errors->all() as $error)
|
||||
<li class="error-message-padding">{{ $error }}</li>
|
||||
@endforeach
|
||||
</div>
|
||||
@endif
|
||||
<div class="row">
|
||||
<div class="col-md-6">
|
||||
<div class="form-group {{ $errors->has('name') ? 'has-error' : '' }}">
|
||||
<label for="title">{!! Lang::get('lang.name') !!}: <span class="text-red"> *</span></label><br>
|
||||
{!! Form::text('name',null,['class'=>'form-control'])!!}
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<div class="form-group {{ $errors->has('sort') ? 'has-error' : '' }}">
|
||||
<label for="title">{!! Lang::get('lang.display_order') !!}: <span class="text-red"> *</span></label><br>
|
||||
{!! Form::text('sort',null,['class'=>'form-control'])!!}
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<div class="form-group {{ $errors->has('icon_class') ? 'has-error' : '' }}">
|
||||
<label for="title">{!! Lang::get('lang.icon_class') !!}: <span class="text-red"> *</span></label><br>
|
||||
{!! Form::text('icon_class',null,['class'=>'form-control'])!!}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
gender
|
||||
{!! Form::label('gender',Lang::get('lang.resolved_status')) !!}
|
||||
<div class="callout callout-default" style="font-style: oblique;">{!! Lang::get('lang.status_msg3') !!}</div>
|
||||
<div class="row">
|
||||
<div class="col-xs-3">
|
||||
{!! Form::radio('state','closed') !!} {{Lang::get('lang.yes')}}
|
||||
</div>
|
||||
<div class="col-xs-3">
|
||||
{!! Form::radio('state','open') !!} {{Lang::get('lang.no')}}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
Email user
|
||||
{!! Form::label('gender',Lang::get('lang.deleted_status')) !!}
|
||||
<div class="callout callout-default" style="font-style: oblique;">{!! Lang::get('lang.status_msg2') !!}</div>
|
||||
<div class="row">
|
||||
<div class="col-xs-3">
|
||||
{!! Form::radio('delete','yes') !!} {{Lang::get('lang.yes')}}
|
||||
</div>
|
||||
<div class="col-xs-3">
|
||||
{!! Form::radio('delete','no') !!} {{Lang::get('lang.no')}}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
Email user
|
||||
{!! Form::label('gender',Lang::get('lang.notify_user')) !!}
|
||||
<div class="callout callout-default" style="font-style: oblique;">{!! Lang::get('lang.status_msg1') !!}</div>
|
||||
<div class="row">
|
||||
<div class="col-xs-3">
|
||||
{!! Form::radio('email_user','yes') !!} {{Lang::get('lang.yes')}}
|
||||
</div>
|
||||
<div class="col-xs-3">
|
||||
{!! Form::radio('email_user','no') !!} {{Lang::get('lang.no')}}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
{!! Form::submit(Lang::get('lang.create_status'),['class'=>'btn btn-primary'])!!}
|
||||
<button type="button" class="btn btn-default pull-left" data-dismiss="modal">{!! Lang::get('lang.close') !!}</button>
|
||||
</div>
|
||||
{!! Form::close() !!}
|
||||
</div>
|
||||
</div>
|
||||
</div>-->
|
||||
@stop
|
||||
@@ -12,7 +12,6 @@ active
|
||||
class="active"
|
||||
@stop
|
||||
|
||||
|
||||
@section('HeadInclude')
|
||||
@stop
|
||||
<!-- header -->
|
||||
@@ -23,125 +22,121 @@ class="active"
|
||||
<!-- breadcrumbs -->
|
||||
@section('breadcrumbs')
|
||||
<ol class="breadcrumb">
|
||||
|
||||
</ol>
|
||||
@stop
|
||||
<!-- /breadcrumbs -->
|
||||
<!-- content -->
|
||||
@section('content')
|
||||
|
||||
<!-- open a form -->
|
||||
|
||||
{!! Form::model($systems,['url' => 'postsystem/'.$systems->id, 'method' => 'PATCH' , 'id'=>'formID']) !!}
|
||||
|
||||
<div class="box box-primary">
|
||||
<div class="box-header">
|
||||
|
||||
<h3 class="box-title">{{Lang::get('lang.system')}}</h3> {!! Form::submit('Save',['onclick'=>'sendForm()','class'=>'btn btn-primary pull-right'])!!}
|
||||
<!-- <input type="submit" value="sumit" onclick="sendForm();"> -->
|
||||
<div class="box-header with-border">
|
||||
<h3 class="box-title">{{Lang::get('lang.system')}}</h3>
|
||||
</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
|
||||
|
||||
|
||||
<!-- Helpdesk Status: radio Online Offline -->
|
||||
|
||||
<!-- Helpdesk Status: radio Online Offline -->
|
||||
<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>
|
||||
<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><button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
<b>{!! Lang::get('lang.alert') !!}!</b><br/>
|
||||
<li class="error-message-padding">{!!Session::get('fails')!!}</li>
|
||||
</div>
|
||||
@endif
|
||||
@if(Session::has('errors'))
|
||||
<?php //dd($errors); ?>
|
||||
<div class="alert alert-danger alert-dismissable">
|
||||
<i class="fa fa-ban"></i>
|
||||
<b>{!! Lang::get('lang.alert') !!}!</b>
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
<br/>
|
||||
@if($errors->first('user_name'))
|
||||
<li class="error-message-padding">{!! $errors->first('user_name', ':message') !!}</li>
|
||||
@endif
|
||||
@if($errors->first('first_name'))
|
||||
<li class="error-message-padding">{!! $errors->first('first_name', ':message') !!}</li>
|
||||
@endif
|
||||
@if($errors->first('last_name'))
|
||||
<li class="error-message-padding">{!! $errors->first('last_name', ':message') !!}</li>
|
||||
@endif
|
||||
@if($errors->first('email'))
|
||||
<li class="error-message-padding">{!! $errors->first('email', ':message') !!}</li>
|
||||
@endif
|
||||
</div>
|
||||
@endif
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="form-group">
|
||||
{!! Form::label('status',Lang::get('lang.status')) !!}
|
||||
<div class="row">
|
||||
<div class="col-xs-3">
|
||||
{!! Form::radio('status','1',true) !!} {{Lang::get('lang.online')}}
|
||||
</div>
|
||||
<div class="col-xs-3">
|
||||
{!! Form::radio('status','0') !!} {{Lang::get('lang.offline')}}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<!-- Helpdesk Name/Title: text Required -->
|
||||
|
||||
<div class="col-md-6">
|
||||
<div class="col-md-4">
|
||||
<div class="form-group {{ $errors->has('name') ? 'has-error' : '' }}">
|
||||
{!! Form::label('name',Lang::get('lang.name/title')) !!}
|
||||
{!! $errors->first('name', '<spam class="help-block">:message</spam>') !!}
|
||||
{!! Form::text('name',$systems->name,['class' => 'form-control']) !!}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<!-- Helpdesk URL: text Required -->
|
||||
<div class="col-md-6">
|
||||
<!-- Helpdesk URL: text Required -->
|
||||
<div class="col-md-4">
|
||||
<div class="form-group {{ $errors->has('url') ? 'has-error' : '' }}">
|
||||
{!! Form::label('url',Lang::get('lang.url')) !!}
|
||||
{!! $errors->first('url', '<spam class="help-block">:message</spam>') !!}
|
||||
{!! Form::text('url',$systems->url,['class' => 'form-control']) !!}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Default Department: Dropdown From Department table: required -->
|
||||
<div class="col-md-6">
|
||||
<div class="form-group {{ $errors->has('department') ? 'has-error' : '' }}">
|
||||
|
||||
{!! Form::label('department',Lang::get('lang.default_department')) !!}
|
||||
{!! $errors->first('department', '<spam class="help-block">:message</spam>') !!}
|
||||
{!!Form::select('department', [''=>'Select a Department','Department'=>$departments->lists('name','id')],null,['class'=>'form-control']) !!}
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Default Time Zone: Drop down: timezones table : Required -->
|
||||
<div class="col-md-6">
|
||||
<!-- Default Time Zone: Drop down: timezones table : Required -->
|
||||
<div class="col-md-4">
|
||||
<div class="form-group {{ $errors->has('time_zone') ? 'has-error' : '' }}">
|
||||
{!! Form::label('time_zone',Lang::get('lang.timezone')) !!}
|
||||
{!! $errors->first('time_zone', '<spam class="help-block">:message</spam>') !!}
|
||||
{!!Form::select('time_zone',[''=>'Select a Time Zone','Time Zones'=>$timezones->lists('name','id')],null,['class'=>'form-control']) !!}
|
||||
{!!Form::select('time_zone',[''=>Lang::get('lang.select_a_time_zone'),'Time Zones'=>$timezones->lists('name','id')->toArray()],null,['class'=>'form-control']) !!}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
<div class="row">
|
||||
<!-- Date and Time Format: text: required: eg - 03/25/2015 7:14 am -->
|
||||
|
||||
<div class="col-md-6">
|
||||
<div class="col-md-4">
|
||||
<div class="form-group {{ $errors->has('date_time_format') ? 'has-error' : '' }}">
|
||||
|
||||
{!! Form::label('date_time_format',Lang::get('lang.date_time')) !!}
|
||||
{!! $errors->first('date_time_format', '<spam class="help-block">:message</spam>') !!}
|
||||
{!! Form::select('date_time_format',[''=>'Select a date Time Format','Date Time Formats'=>$date_time->lists('format','id')],null,['class' => 'form-control']) !!}
|
||||
|
||||
{!! Form::select('date_time_format',[''=>Lang::get('lang.select_a_date_time_format'),'Date Time Formats'=>$date_time->lists('format','id')->toArray()],null,['class' => 'form-control']) !!}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="col-md-4">
|
||||
<div class="form-group">
|
||||
{!! Form::label('status',Lang::get('lang.status')) !!}
|
||||
<div class="row">
|
||||
<div class="col-xs-6">
|
||||
{!! Form::radio('status','1',true) !!} {{Lang::get('lang.online')}}
|
||||
</div>
|
||||
<div class="col-xs-6">
|
||||
{!! Form::radio('status','0') !!} {{Lang::get('lang.offline')}}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- Default Department: Dropdown From Department table: required -->
|
||||
<!-- <div class="col-md-4">
|
||||
<div class="form-group {{ $errors->has('department') ? 'has-error' : '' }}">
|
||||
{!! Form::label('department',Lang::get('lang.default_department')) !!}
|
||||
{!! $errors->first('department', '<spam class="help-block">:message</spam>') !!}
|
||||
{!!Form::select('department', [''=>Lang::get('lang.select_a_department'),'Department'=>$departments->lists('name','id')->toArray()],null,['class'=>'form-control']) !!}
|
||||
</div>
|
||||
</div> -->
|
||||
|
||||
</div>
|
||||
|
||||
<hr/>
|
||||
</div>
|
||||
<div class="box-footer">
|
||||
<h4>{!! Lang::get('lang.api_configurations') !!}</h4>
|
||||
|
||||
<!-- Guest user page Content -->
|
||||
<div class="row">
|
||||
|
||||
<div class="col-md-3">
|
||||
<div class="form-group {{ $errors->has('api_enable') ? 'has-error' : '' }}">
|
||||
{!! Form::label('api',Lang::get('lang.api')) !!}
|
||||
@@ -156,7 +151,6 @@ class="active"
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-md-3">
|
||||
<div class="form-group {{ $errors->has('api_key_mandatory') ? 'has-error' : '' }}">
|
||||
{!! Form::label('api_key_mandatory',Lang::get('lang.api_key_mandatory')) !!}
|
||||
@@ -171,71 +165,68 @@ class="active"
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Date and Time Format: text: required: eg - 03/25/2015 7:14 am -->
|
||||
|
||||
<div class="col-md-3">
|
||||
<div class="form-group {{ $errors->has('api_key') ? 'has-error' : '' }}">
|
||||
|
||||
{!! Form::label('api_key',Lang::get('lang.api_key')) !!}
|
||||
{!! $errors->first('api_key', '<spam class="help-block">:message</spam>') !!}
|
||||
{!! Form::text('api_key',$systems->api_key,['class' => 'form-control']) !!}
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-md-3">
|
||||
<br/>
|
||||
<a class="btn btn-primary" id="generate"> <i class="fa fa-refresh"> </i> {!! Lang::get('lang.generate_key') !!}</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<a href="#" id="clickGenerate" data-toggle="modal" data-target="#generateModal"></a>
|
||||
<div class="modal fade" id="generateModal">
|
||||
<div class="modal-dialog">
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
|
||||
<h4 class="modal-title">{!! Lang::get('lang.api_key') !!}</h4>
|
||||
</div>
|
||||
<div class="modal-body" id="messageBody">
|
||||
<div class="box-footer">
|
||||
{!! Form::submit(Lang::get('lang.submit'),['onclick'=>'sendForm()','class'=>'btn btn-primary'])!!}
|
||||
</div>
|
||||
</div>
|
||||
<a href="#" id="clickGenerate" data-toggle="modal" data-target="#generateModal"></a>
|
||||
<div class="modal fade" id="generateModal">
|
||||
<div class="modal-dialog">
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
|
||||
<h4 class="modal-title">{!! Lang::get('lang.api_key') !!}</h4>
|
||||
</div>
|
||||
<div class="modal-body" id="messageBody">
|
||||
</div>
|
||||
<div class="modal-footer" id="messageBody">
|
||||
<button type="button" class="btn btn-default" data-dismiss="modal" aria-label="Close">{!! Lang::get('lang.close') !!}</button>
|
||||
</div>
|
||||
</div><!-- /.modal-content -->
|
||||
</div><!-- /.modal-dialog -->
|
||||
</div><!-- /.modal -->
|
||||
<script src="{{asset("lb-faveo/js/ajax-jquery.min.js")}}"></script>
|
||||
<script type="text/javascript">
|
||||
jQuery(document).ready(function() {
|
||||
// Close a ticket
|
||||
$('#generate').on('click', function(e) {
|
||||
$.ajax({
|
||||
type: "GET",
|
||||
url: "{!! url('generate-api-key') !!}",
|
||||
beforeSend: function() {
|
||||
$("#generate").empty();
|
||||
var message = "<i class='fa fa-refresh fa-spin'> </i> <?php echo Lang::get('lang.generate_key'); ?>";
|
||||
$('#generate').html(message);
|
||||
},
|
||||
success: function(response) {
|
||||
// alert(response);
|
||||
|
||||
</div>
|
||||
<div class="modal-footer" id="messageBody">
|
||||
<button type="button" class="btn btn-default" data-dismiss="modal" aria-label="Close">{!! Lang::get('lang.close') !!}</button>
|
||||
</div>
|
||||
</div><!-- /.modal-content -->
|
||||
</div><!-- /.modal-dialog -->
|
||||
</div><!-- /.modal -->
|
||||
<script src="{{asset("lb-faveo/js/ajax-jquery.min.js")}}"></script>
|
||||
<script type="text/javascript">
|
||||
jQuery(document).ready(function () {
|
||||
// Close a ticket
|
||||
$('#generate').on('click', function (e) {
|
||||
$.ajax({
|
||||
type: "GET",
|
||||
url: "{!! url('generate-api-key') !!}",
|
||||
beforeSend: function () {
|
||||
$("#generate").empty();
|
||||
var message = "<i class='fa fa-refresh fa-spin'> </i> <?php echo Lang::get('lang.generate_key'); ?>";
|
||||
$('#generate').html(message);
|
||||
},
|
||||
success: function (response) {
|
||||
// alert(response);
|
||||
$("#messageBody").empty();
|
||||
var message = "<div class='alert alert-default' style='margin-bottom: -5px;'>Copy and paste in the api to set a different Api key</div> <br/><b>Api key</b> : " + response;
|
||||
$('#messageBody').html(message);
|
||||
|
||||
$("#messageBody").empty();
|
||||
var message = "<div class='alert alert-default' style='margin-bottom: -5px;'>Copy and paste in the api to set a different Api key</div> <br/><b>Api key</b> : " + response;
|
||||
$('#messageBody').html(message);
|
||||
|
||||
$('#clickGenerate').trigger("click");
|
||||
$("#generate").empty();
|
||||
var message = "<i class='fa fa-refresh'> </i> <?php echo Lang::get('lang.generate_key'); ?>";
|
||||
$('#generate').html(message);
|
||||
}
|
||||
})
|
||||
return false;
|
||||
});
|
||||
$('#clickGenerate').trigger("click");
|
||||
$("#generate").empty();
|
||||
var message = "<i class='fa fa-refresh'> </i> <?php echo Lang::get('lang.generate_key'); ?>";
|
||||
$('#generate').html(message);
|
||||
}
|
||||
})
|
||||
return false;
|
||||
});
|
||||
</script>
|
||||
|
||||
@stop
|
||||
});
|
||||
</script>
|
||||
@stop
|
||||
|
||||
@@ -0,0 +1,8 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
* To change this license header, choose License Headers in Project Properties.
|
||||
* To change this template file, choose Tools | Templates
|
||||
* and open the template in the editor.
|
||||
*/
|
||||
|
||||
@@ -12,7 +12,6 @@ active
|
||||
class="active"
|
||||
@stop
|
||||
|
||||
|
||||
@section('HeadInclude')
|
||||
@stop
|
||||
<!-- header -->
|
||||
@@ -23,201 +22,121 @@ class="active"
|
||||
<!-- breadcrumbs -->
|
||||
@section('breadcrumbs')
|
||||
<ol class="breadcrumb">
|
||||
|
||||
</ol>
|
||||
@stop
|
||||
<!-- /breadcrumbs -->
|
||||
<!-- content -->
|
||||
@section('content')
|
||||
|
||||
<!-- open a form -->
|
||||
|
||||
{!! Form::model($tickets,['url' => 'postticket/'.$tickets->id, '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.ticket')}}</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') !!}
|
||||
{!! Form::model($tickets,['url' => 'postticket/'.$tickets->id, 'method' => 'PATCH']) !!}
|
||||
<div class="box box-primary">
|
||||
<div class="box-header with-border">
|
||||
<h3 class="box-title">{{Lang::get('lang.ticket')}}</h3>
|
||||
</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="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>
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
{!! Session::get('success') !!}
|
||||
</div>
|
||||
@endif
|
||||
<!-- failure message -->
|
||||
@if(Session::has('fails'))
|
||||
<div class="alert alert-danger alert-dismissable">
|
||||
<i class="fa fa-ban"></i>
|
||||
<b>{!! Lang::get('lang.alert') !!}!</b>
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
{!! Session::get('fails') !!}
|
||||
</div>
|
||||
@endif
|
||||
@if(Session::has('errors'))
|
||||
<?php //dd($errors); ?>
|
||||
<div class="alert alert-danger alert-dismissable">
|
||||
<i class="fa fa-ban"></i>
|
||||
<b>{!! Lang::get('lang.alert') !!}!</b>
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
<br/>
|
||||
@if($errors->first('status'))
|
||||
<li class="error-message-padding">{!! $errors->first('status', ':message') !!}</li>
|
||||
@endif
|
||||
@if($errors->first('priority'))
|
||||
<li class="error-message-padding">{!! $errors->first('priority', ':message') !!}</li>
|
||||
@endif
|
||||
@if($errors->first('sla'))
|
||||
<li class="error-message-padding">{!! $errors->first('sla', ':message') !!}</li>
|
||||
@endif
|
||||
@if($errors->first('help_topic'))
|
||||
<li class="error-message-padding">{!! $errors->first('help_topic', ':message') !!}</li>
|
||||
@endif
|
||||
@if($errors->first('collision_avoid'))
|
||||
<li class="error-message-padding">{!! $errors->first('collision_avoid', ':message') !!}</li>
|
||||
@endif
|
||||
</div>
|
||||
@endif
|
||||
<div class="row">
|
||||
{{-- <div class="col-md-6"> --}}
|
||||
{{-- <div class="form-group"> --}}
|
||||
|
||||
<!-- Default Ticket Number Format: text e.g. 268330 -->
|
||||
|
||||
<!-- <div class="form-group {{ $errors->has('num_format') ? 'has-error' : '' }}"> -->
|
||||
|
||||
{{-- {!! Form::label('num_format',Lang::get('lang.default_ticket_number_format')) !!} --}}
|
||||
{{-- {!! $errors->first('num_format', '<spam class="help-block">:message</spam>') !!} --}}
|
||||
{{-- {!! Form::text('num_format',$tickets->num_format,['class' => 'form-control']) !!} --}}
|
||||
|
||||
{{-- </div> --}}
|
||||
{{-- </div> --}}
|
||||
|
||||
<!-- Default Ticket Number Sequence: dropdown : manual Manage -->
|
||||
{{-- <div class="col-md-6"> --}}
|
||||
{{-- <div class="form-group {{ $errors->has('num_sequence') ? 'has-error' : '' }}"> --}}
|
||||
|
||||
{{-- {!! Form::label('num_sequence',Lang::get('lang.default_ticket_number_sequence')) !!} --}}
|
||||
{{-- {!! $errors->first('num_sequence', '<spam class="help-block">:message</spam>') !!} --}}
|
||||
{{-- {!!Form::select('num_sequence', ['random','general'],null,['class' => 'form-control select']) !!} --}}
|
||||
|
||||
{{-- </div> --}}
|
||||
{{-- </div> --}}
|
||||
|
||||
<!-- Default Status: Required : manual: Dropdowm -->
|
||||
<div class="col-md-3">
|
||||
<div class="form-group {{ $errors->has('status') ? 'has-error' : '' }}">
|
||||
{!! Form::label('status',Lang::get('lang.default_status')) !!}
|
||||
{!! $errors->first('status', '<spam class="help-block">:message</spam>') !!}
|
||||
<select class="form-control" id="status" name="status">
|
||||
<option value="1" >Open</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Default Priority: Required : manual : Dropdowm -->
|
||||
<div class="col-md-2">
|
||||
<div class="form-group {{ $errors->has('priority') ? 'has-error' : '' }}">
|
||||
{!! Form::label('priority',Lang::get('lang.default_priority')) !!}
|
||||
{!! $errors->first('priority', '<spam class="help-block">:message</spam>') !!}
|
||||
{!!Form::select('priority', [''=>'select a priority','Priorities'=>$priority->lists('priority_desc','priority_id')],null,['class' => 'form-control']) !!}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Default SLA: Required : manual : Dropdowm -->
|
||||
<div class="col-md-2">
|
||||
<div class="form-group {{ $errors->has('sla') ? 'has-error' : '' }}">
|
||||
{!! Form::label('sla',Lang::get('lang.default_sla')) !!}
|
||||
{!! $errors->first('sla', '<spam class="help-block">:message</spam>') !!}
|
||||
{!!Form::select('sla', $slas->lists('grace_period','id'),null,['class' => 'form-control']) !!}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Default Help Topic: Dropdowm from Help topic table -->
|
||||
<div class="col-md-2">
|
||||
<div class="form-group {{ $errors->has('help_topic') ? 'has-error' : '' }}">
|
||||
{!! Form::label('help_topic',Lang::get('lang.default_help_topic')) !!}
|
||||
{!! $errors->first('help_topic', '<spam class="help-block">:message</spam>') !!}
|
||||
{!!Form::select('help_topic', $topics->lists('topic','id'),null,['class' => 'form-control']) !!}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Maximum Open Tickets: text-number per end user -->
|
||||
{{-- <div class="col-md-6"> --}}
|
||||
{{-- <div class="form-group {{ $errors->has('max_open_ticket') ? 'has-error' : '' }}"> --}}
|
||||
{{-- {!! Form::label('max_open_ticket',Lang::get('lang.maximum_open_tickets')) !!} --}}
|
||||
{{-- {!! $errors->first('max_open_ticket', '<spam class="help-block">:message</spam>') !!} --}}
|
||||
{{-- {!! Form::text('max_open_ticket',$tickets->max_open_ticket,['class' => 'form-control']) !!} --}}
|
||||
{{-- </div> --}}
|
||||
{{-- </div> --}}
|
||||
|
||||
<!-- Agent Collision Avoidance Duration: text-number -minutes -->
|
||||
<div class="col-md-3">
|
||||
<div class="form-group {{ $errors->has('collision_avoid') ? 'has-error' : '' }}">
|
||||
{!! Form::label('collision_avoid',Lang::get('lang.agent_collision_avoidance_duration')) !!}
|
||||
{!! $errors->first('collision_avoid', '<spam class="help-block">:message</spam>') !!}
|
||||
<div class="input-group">
|
||||
<input type="number" class="form-control" name="collision_avoid" min="0" step="1" value="{{$tickets->collision_avoid}}" placeholder="in minutes">
|
||||
<div class="input-group-addon">
|
||||
<span><i class="fa fa-clock-o"></i> {!!Lang::get('lang.in_minutes')!!}</span>
|
||||
</div>
|
||||
<!-- Default Status: Required : manual: Dropdowm -->
|
||||
<div class="col-md-4">
|
||||
<div class="form-group {{ $errors->has('status') ? 'has-error' : '' }}">
|
||||
{!! Form::label('status',Lang::get('lang.default_status')) !!}
|
||||
<select class="form-control" id="status" name="status">
|
||||
<option value="1" >Open</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<!-- Human Verification: checkbox Enable CAPTCHA on new web tickets. -->
|
||||
|
||||
{{-- <div class="col-md-6"> --}}
|
||||
{{-- <div class="form-group"> --}}
|
||||
{{-- {!! Form::checkbox('captcha',1,true) !!} --}}
|
||||
{{-- {!! Form::label('captcha',Lang::get('lang.human_verification')) !!} --}}
|
||||
{{-- </div> --}}
|
||||
|
||||
<!-- Claim on Response: checkbox -->
|
||||
|
||||
{{-- <div class="form-group"> --}}
|
||||
{{-- {!! Form::checkbox('claim_response',1,true) !!} --}}
|
||||
{{-- {!! Form::label('claim_response',Lang::get('lang.claim_on_response')) !!} --}}
|
||||
{{-- </div> --}}
|
||||
|
||||
<!-- Assigned Tickets: checkbox- Exclude assigned tickets from open queue. -->
|
||||
|
||||
{{-- <div class="form-group"> --}}
|
||||
{{-- {!! Form::checkbox('assigned_ticket',1,true) !!} --}}
|
||||
{{-- {!! Form::label('assigned_ticket',Lang::get('lang.assigned_tickets')) !!} --}}
|
||||
{{-- </div> --}}
|
||||
|
||||
<!-- Answered Tickets: checkbox- Exclude answered tickets from open queue. -->
|
||||
|
||||
{{-- <div class="form-group"> --}}
|
||||
{{-- {!! Form::checkbox('answered_ticket',1,true) !!} --}}
|
||||
{{-- {!! Form::label('answered_ticket',Lang::get('lang.answered_tickets')) !!} --}}
|
||||
{{-- </div> --}}
|
||||
|
||||
<!-- Agent Identity Masking: checkbox- Hide agent's name on responses. -->
|
||||
|
||||
{{-- <div class="form-group"> --}}
|
||||
{{-- {!! Form::checkbox('agent_mask',1,true) !!} --}}
|
||||
{{-- {!! Form::label('agent_mask',Lang::get('lang.agent_identity_masking')) !!} --}}
|
||||
{{-- </div> --}}
|
||||
|
||||
<!-- Enable HTML Ticket Thread: checkbox- Enable rich text in ticket thread and autoresponse emails. -->
|
||||
|
||||
{{-- <div class="form-group"> --}}
|
||||
{{-- {!! Form::checkbox('html',1,true) !!} --}}
|
||||
{{-- {!! Form::label('html',Lang::get('lang.enable_HTML_ticket_thread')) !!} --}}
|
||||
{{-- </div> --}}
|
||||
|
||||
<!-- Allow Client Updates: checkbox -->
|
||||
|
||||
{{-- <div class="form-group"> --}}
|
||||
{{-- {!! Form::checkbox('client_update',1,true) !!} --}}
|
||||
{{-- {!! Form::label('client_update',Lang::get('lang.allow_client_updates')) !!} --}}
|
||||
{{-- </div> --}}
|
||||
|
||||
<!-- EndUser Attachment Settings: Config -->
|
||||
|
||||
<!-- **** TODO ***** -->
|
||||
|
||||
<!-- Agent Maximum File Size: -->
|
||||
|
||||
<!-- **** TODO ***** -->
|
||||
|
||||
<!-- Submit button -->
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- Default Priority: Required : manual : Dropdowm -->
|
||||
<div class="col-md-4">
|
||||
<div class="form-group {{ $errors->has('priority') ? 'has-error' : '' }}">
|
||||
{!! Form::label('priority',Lang::get('lang.default_priority')) !!}
|
||||
{!!Form::select('priority', [''=>'select a priority','Priorities'=>$priority->lists('priority_desc','priority_id')->toArray()],null,['class' => 'form-control']) !!}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<!-- Default SLA: Required : manual : Dropdowm -->
|
||||
<!-- <div class="col-md-4">
|
||||
<div class="form-group {{ $errors->has('sla') ? 'has-error' : '' }}">
|
||||
{!! Form::label('sla',Lang::get('lang.default_sla')) !!}
|
||||
{!!Form::select('sla', $slas->lists('grace_period','id'),null,['class' => 'form-control']) !!}
|
||||
</div>
|
||||
</div> -->
|
||||
<!-- Default Help Topic: Dropdowm from Help topic table -->
|
||||
<!-- <div class="col-md-4">
|
||||
<div class="form-group {{ $errors->has('help_topic') ? 'has-error' : '' }}">
|
||||
{!! Form::label('help_topic',Lang::get('lang.default_help_topic')) !!}
|
||||
{!!Form::select('help_topic', $topics->lists('topic','id'),null,['class' => 'form-control']) !!}
|
||||
</div>
|
||||
</div>
|
||||
--><!-- Agent Collision Avoidance Duration: text-number -minutes -->
|
||||
<div class="col-md-4">
|
||||
<div class="form-group {{ $errors->has('collision_avoid') ? 'has-error' : '' }}">
|
||||
{!! Form::label('collision_avoid',Lang::get('lang.agent_collision_avoidance_duration')) !!}
|
||||
<div class="input-group">
|
||||
<input type="number" class="form-control" name="collision_avoid" min="0" step="1" value="{{$tickets->collision_avoid}}" placeholder="in minutes">
|
||||
<div class="input-group-addon">
|
||||
<span><i class="fa fa-clock-o"></i> {!!Lang::get('lang.in_minutes')!!}</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<div class="form-group {{ $errors->has('help_topic') ? 'has-error' : '' }}">
|
||||
{!! Form::label('help_topic',Lang::get('lang.lock_ticket_frequency')) !!}
|
||||
|
||||
<select name='lock_ticket_frequency' class="form-control">
|
||||
<option @if($tickets->lock_ticket_frequency == null) selected="true" @endif value="0">{!! Lang::get('lang.no')!!}</option>
|
||||
<option @if($tickets->lock_ticket_frequency == 1) selected="true" @endif value="1">{!! Lang::get('lang.only-once')!!}</option>
|
||||
<option @if($tickets->lock_ticket_frequency == 2) selected="true" @endif value="2">{!! Lang::get('lang.frequently')!!}</option>
|
||||
</select>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="box-footer">
|
||||
{!! Form::submit(Lang::get('lang.submit'),['class'=>'btn btn-primary'])!!}
|
||||
</div>
|
||||
</div>
|
||||
{!! Form::close() !!}
|
||||
@stop
|
||||
@@ -13,37 +13,34 @@ class="active"
|
||||
@stop
|
||||
|
||||
@section('content')
|
||||
|
||||
<div class="box box-primary">
|
||||
<div class="box-header">
|
||||
<h4 class="box-title">{!! Lang::get('lang.widgets') !!} </h4>
|
||||
<div class="box-header with-border">
|
||||
<h4 class="box-title">{!! Lang::get('lang.social') !!} </h4>
|
||||
</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-footer">
|
||||
<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>
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
{{Session::get('success')}}
|
||||
</div>
|
||||
@endif
|
||||
<!-- failure message -->
|
||||
@if(Session::has('fails'))
|
||||
<div class="alert alert-danger alert-dismissable">
|
||||
<i class="fa fa-ban"></i>
|
||||
<b>{!! Lang::get('lang.alert') !!} !</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.link'),
|
||||
Lang::get('lang.action')) // these are the column headings to be shown
|
||||
->setUrl('list-social-buttons') // this is the route where data will be retrieved
|
||||
->render() !!}
|
||||
->addColumn(Lang::get('lang.name'),
|
||||
Lang::get('lang.link'),
|
||||
Lang::get('lang.action')) // these are the column headings to be shown
|
||||
->setUrl('list-social-buttons') // this is the route where data will be retrieved
|
||||
->render() !!}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@stop
|
||||
|
||||
@@ -13,37 +13,35 @@ class="active"
|
||||
@stop
|
||||
|
||||
@section('content')
|
||||
|
||||
<div class="box box-primary">
|
||||
<div class="box-header">
|
||||
<div class="box-header with-border">
|
||||
<h4 class="box-title">{!! Lang::get('lang.widgets') !!} </h4>
|
||||
</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-footer">
|
||||
<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>
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
{{Session::get('success')}}
|
||||
</div>
|
||||
@endif
|
||||
<!-- failure message -->
|
||||
@if(Session::has('fails'))
|
||||
<div class="alert alert-danger alert-dismissable">
|
||||
<i class="fa fa-ban"></i>
|
||||
<b>{!! Lang::get('lang.alert') !!} !</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.title'),
|
||||
Lang::get('lang.content'),
|
||||
Lang::get('lang.action')) // these are the column headings to be shown
|
||||
->setUrl('list-widget') // this is the route where data will be retrieved
|
||||
->render() !!}
|
||||
->addColumn(Lang::get('lang.name'),
|
||||
Lang::get('lang.title'),
|
||||
Lang::get('lang.content'),
|
||||
Lang::get('lang.action')) // these are the column headings to be shown
|
||||
->setUrl('list-widget') // this is the route where data will be retrieved
|
||||
->render() !!}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user