144 lines
6.4 KiB
PHP
144 lines
6.4 KiB
PHP
@extends('themes.default1.admin.layout.admin')
|
|
|
|
@section('Settings')
|
|
active
|
|
@stop
|
|
|
|
@section('settings-bar')
|
|
active
|
|
@stop
|
|
|
|
@section('cron')
|
|
class="active"
|
|
@stop
|
|
|
|
@section('HeadInclude')
|
|
@stop
|
|
<!-- header -->
|
|
@section('PageHeader')
|
|
<h1>{{ Lang::get('lang.settings') }}</h1>
|
|
@stop
|
|
<!-- /header -->
|
|
<!-- breadcrumbs -->
|
|
@section('breadcrumbs')
|
|
<ol class="breadcrumb">
|
|
</ol>
|
|
@stop
|
|
<!-- /breadcrumbs -->
|
|
<!-- content -->
|
|
@section('content')
|
|
<!-- open a form -->
|
|
{!! Form::model($emails,['url' => 'post-scheduler', 'method' => 'PATCH']) !!}
|
|
<div class="box box-primary">
|
|
<div class="box-header with-border">
|
|
<h3 class="box-title">{{Lang::get('lang.cron_settings')}}</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">
|
|
<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-8">
|
|
<div class="form-group">
|
|
{!! Form::label('notification_cron',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 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-check-circle"></i></span>
|
|
<div class="info-box-content">
|
|
<i class="fa fa-clipboard pull-right" title="{!!Lang::get('lang.click-url-copy')!!}" onclick="copyToClipboard('#p3')"></i>
|
|
<div class="col-md-8">
|
|
<div class="form-group">
|
|
{!! Form::label('condition',Lang::get('lang.auto_close_workflow')) !!}<br>
|
|
<input type="checkbox" name="condition" @if($workflow->condition == 1) checked @endif">
|
|
{{Lang::get('lang.enable_workflow')}}
|
|
</div>
|
|
</div>
|
|
<div class="col-md-12">
|
|
<em><span class="info-box-text" style="background: #F3F3F3" id='p3'></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");
|
|
path3 = path2.replace("notification", "auto-close-tickets")
|
|
document.getElementById("p1").innerHTML = path;
|
|
document.getElementById("p2").innerHTML = path2;
|
|
document.getElementById("p3").innerHTML = path3;
|
|
})
|
|
</script>
|
|
@stop
|