update v1.0.6
This commit is contained in:
@@ -26,17 +26,74 @@ class="active"
|
||||
</div>
|
||||
</div>
|
||||
<div class="box-body">
|
||||
@if(Session::has('content'))
|
||||
<form id="foo">
|
||||
<div class="form-group">
|
||||
<div class="row">
|
||||
|
||||
<div class='col-sm-3'>
|
||||
|
||||
{!! Form::label('date', 'Date:') !!}
|
||||
|
||||
{!! Form::text('start_date',null,['class'=>'form-control','id'=>'datepicker4'])!!}
|
||||
|
||||
</div>
|
||||
<?php
|
||||
$start_date = App\Model\helpdesk\Ticket\Tickets::where('id','=','1')->first();
|
||||
if($start_date != null) {
|
||||
$created_date = $start_date->created_at;
|
||||
$created_date = explode(' ', $created_date);
|
||||
$created_date = $created_date[0];
|
||||
$start_date = date("m/d/Y",strtotime($created_date.' -1 months'));
|
||||
} else {
|
||||
$start_date = date("m/d/Y",strtotime(date("m/d/Y").' -1 months'));
|
||||
}
|
||||
|
||||
?>
|
||||
<script type="text/javascript">
|
||||
$(function () {
|
||||
var timestring1 = "{!! $start_date !!}";
|
||||
var timestring2 = "{!! date('m/d/Y') !!}";
|
||||
$('#datepicker4').datetimepicker({
|
||||
format: 'DD/MM/YYYY',
|
||||
minDate:moment(timestring1).startOf('day'),
|
||||
maxDate:moment(timestring2).startOf('day')
|
||||
});
|
||||
// $('#datepicker').datepicker()
|
||||
});
|
||||
</script>
|
||||
|
||||
<div class='col-sm-3'>
|
||||
|
||||
{!! Form::label('start_time', 'End Date:') !!}
|
||||
|
||||
{!! Form::text('end_date',null,['class'=>'form-control','id'=>'datetimepicker3'])!!}
|
||||
|
||||
</div>
|
||||
<script type="text/javascript">
|
||||
$(function () {
|
||||
var timestring1 = "{!! $start_date !!}";
|
||||
var timestring2 = "{!! date('m/d/Y') !!}";
|
||||
$('#datetimepicker3').datetimepicker({
|
||||
format: 'DD/MM/YYYY',
|
||||
minDate:moment(timestring1).startOf('day'),
|
||||
maxDate:moment(timestring2).startOf('day')
|
||||
});
|
||||
});
|
||||
</script>
|
||||
|
||||
<div class='col-sm-3'>
|
||||
{!! Form::label('filter', 'Filter:') !!}<br>
|
||||
<input type="submit" class="btn btn-primary">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
<div id="legendDiv"></div>
|
||||
<div class="chart">
|
||||
<div id="legendDiv1"></div>
|
||||
<canvas class="chart-data" id="tickets-graph1" width="1000" height="400"></canvas>
|
||||
|
||||
<canvas class="chart-data" id="tickets-graph" width="1000" height="300"></canvas>
|
||||
</div>
|
||||
@else
|
||||
<div class="chart">
|
||||
<div id="legendDiv"></div>
|
||||
<canvas class="chart-data" id="tickets-graph" width="1000" height="400"></canvas>
|
||||
</div>
|
||||
@endif
|
||||
|
||||
</div><!-- /.box-body -->
|
||||
</div><!-- /.box -->
|
||||
<hr/>
|
||||
@@ -84,8 +141,8 @@ $delete = App\Model\helpdesk\Ticket\Tickets::where('dept_id','=',$department->id
|
||||
|
||||
<script src="{{asset("lb-faveo/plugins/chartjs/Chart.min.js")}}" type="text/javascript"></script>
|
||||
<script type="text/javascript">
|
||||
$(function(){
|
||||
$.getJSON("agen", function (result) {
|
||||
$(document).ready(function() {
|
||||
$.getJSON("agen", function (result) {
|
||||
|
||||
var labels=[], open=[], closed=[], reopened=[];
|
||||
//,data2=[],data3=[],data4=[];
|
||||
@@ -178,7 +235,7 @@ $delete = App\Model\helpdesk\Ticket\Tickets::where('dept_id','=',$department->id
|
||||
//Number - Pixel width of dataset stroke
|
||||
datasetStrokeWidth: 1,
|
||||
//Boolean - Whether to fill the dataset with a color
|
||||
datasetFill: true,
|
||||
datasetFill: false,
|
||||
//String - A legend template
|
||||
//Boolean - whether to maintain the starting aspect ratio or not when responsive, if set to false, will take up entire container
|
||||
maintainAspectRatio: false,
|
||||
@@ -196,11 +253,198 @@ $delete = App\Model\helpdesk\Ticket\Tickets::where('dept_id','=',$department->id
|
||||
});
|
||||
document.getElementById("legendDiv").innerHTML = myLineChart.generateLegend();
|
||||
});
|
||||
$('#click me').click(function() {
|
||||
$('#foo').submit();
|
||||
});
|
||||
$('#foo').submit(function(event) {
|
||||
// get the form data
|
||||
// there are many ways to get this data using jQuery (you can use the class or id also)
|
||||
var date1 = $('#datepicker4').val();
|
||||
var date2 = $('#datetimepicker3').val();
|
||||
var formData = date1.split("/").join('-');
|
||||
var dateData = date2.split("/").join('-');
|
||||
//$('#foo').serialize();
|
||||
// process the form
|
||||
$.ajax({
|
||||
type : 'POST', // define the type of HTTP verb we want to use (POST for our form)
|
||||
url : 'chart-range/'+dateData+'/'+formData, // the url where we want to POST
|
||||
data : formData, // our data object
|
||||
dataType : 'json', // what type of data do we expect back from the server
|
||||
|
||||
success : function(result2) {
|
||||
|
||||
// $.getJSON("agen", function (result) {
|
||||
var labels=[], open=[], closed=[], reopened=[];
|
||||
//,data2=[],data3=[],data4=[];
|
||||
for (var i = 0; i < result2.length; i++) {
|
||||
|
||||
|
||||
// $var12 = result[i].day;
|
||||
|
||||
// labels.push($var12);
|
||||
labels.push(result2[i].date);
|
||||
open.push(result2[i].open);
|
||||
closed.push(result2[i].closed);
|
||||
reopened.push(result2[i].reopened);
|
||||
// data4.push(result[i].open);
|
||||
}
|
||||
|
||||
var buyerData = {
|
||||
labels : labels,
|
||||
datasets : [
|
||||
{
|
||||
label : "Total Tickets" ,
|
||||
fillColor : "rgba(240, 127, 110, 0.3)",
|
||||
strokeColor : "#f56954",
|
||||
pointColor : "#A62121",
|
||||
pointStrokeColor : "#E60073",
|
||||
pointHighlightFill : "#FF4DC3",
|
||||
pointHighlightStroke : "rgba(151,187,205,1)",
|
||||
data : open
|
||||
}
|
||||
,{
|
||||
label : "Open Tickets" ,
|
||||
fillColor : "rgba(255, 102, 204, 0.4)",
|
||||
strokeColor : "#f56954",
|
||||
pointColor : "#FF66CC",
|
||||
pointStrokeColor : "#fff",
|
||||
pointHighlightFill : "#FF4DC3",
|
||||
pointHighlightStroke : "rgba(151,187,205,1)",
|
||||
data : closed
|
||||
|
||||
}
|
||||
,{
|
||||
label : "Closed Tickets",
|
||||
fillColor : "rgba(151,187,205,0.2)",
|
||||
strokeColor : "rgba(151,187,205,1)",
|
||||
pointColor : "rgba(151,187,205,1)",
|
||||
pointStrokeColor : "#0000CC",
|
||||
pointHighlightFill : "#0000E6",
|
||||
pointHighlightStroke : "rgba(151,187,205,1)",
|
||||
data : reopened
|
||||
}
|
||||
// ,{
|
||||
// label : "Reopened Tickets",
|
||||
// fillColor : "rgba(102,255,51,0.2)",
|
||||
// strokeColor : "rgba(151,187,205,1)",
|
||||
// pointColor : "rgba(46,184,0,1)",
|
||||
// pointStrokeColor : "#fff",
|
||||
// pointHighlightFill : "#fff",
|
||||
// pointHighlightStroke : "rgba(151,187,205,1)",
|
||||
// data : data3
|
||||
// }
|
||||
]
|
||||
};
|
||||
|
||||
var myLineChart = new Chart(document.getElementById("tickets-graph").getContext("2d")).Line(buyerData, {
|
||||
showScale: true,
|
||||
//Boolean - Whether grid lines are shown across the chart
|
||||
scaleShowGridLines: false,
|
||||
//String - Colour of the grid lines
|
||||
scaleGridLineColor: "rgba(0,0,0,.05)",
|
||||
//Number - Width of the grid lines
|
||||
scaleGridLineWidth: 1,
|
||||
//Boolean - Whether to show horizontal lines (except X axis)
|
||||
scaleShowHorizontalLines: true,
|
||||
//Boolean - Whether to show vertical lines (except Y axis)
|
||||
scaleShowVerticalLines: true,
|
||||
//Boolean - Whether the line is curved between points
|
||||
bezierCurve: true,
|
||||
//Number - Tension of the bezier curve between points
|
||||
bezierCurveTension: 0.3,
|
||||
//Boolean - Whether to show a dot for each point
|
||||
pointDot: true,
|
||||
//Number - Radius of each point dot in pixels
|
||||
pointDotRadius: 4,
|
||||
//Number - Pixel width of point dot stroke
|
||||
pointDotStrokeWidth: 1,
|
||||
//Number - amount extra to add to the radius to cater for hit detection outside the drawn point
|
||||
pointHitDetectionRadius: 20,
|
||||
//Boolean - Whether to show a stroke for datasets
|
||||
datasetStroke: true,
|
||||
//Number - Pixel width of dataset stroke
|
||||
datasetStrokeWidth: 1,
|
||||
//Boolean - Whether to fill the dataset with a color
|
||||
datasetFill: false,
|
||||
//String - A legend template
|
||||
//Boolean - whether to maintain the starting aspect ratio or not when responsive, if set to false, will take up entire container
|
||||
maintainAspectRatio: false,
|
||||
//Boolean - whether to make the chart responsive to window resizing
|
||||
responsive: true,
|
||||
|
||||
legendTemplate : '<ul style="list-style-type: square;">'
|
||||
+'<% for (var i=0; i<datasets.length; i++) { %>'
|
||||
+'<li style="color: <%=datasets[i].pointColor%>;">'
|
||||
+'<span style=\"background-color:<%=datasets[i].pointColor%>\"></span>'
|
||||
+'<% if (datasets[i].label) { %><%= datasets[i].label %><% } %>'
|
||||
+'</li>'
|
||||
+'<% } %>'
|
||||
+'</ul>'
|
||||
});
|
||||
myLineChart.options.responsive = false;
|
||||
$("#tickets-graph").remove();
|
||||
$(".chart").html("<canvas id='tickets-graph' width='1000' height='300'></canvas>");
|
||||
var myLineChart1 = new Chart(document.getElementById("tickets-graph").getContext("2d")).Line(buyerData, {
|
||||
showScale: true,
|
||||
//Boolean - Whether grid lines are shown across the chart
|
||||
scaleShowGridLines: false,
|
||||
//String - Colour of the grid lines
|
||||
scaleGridLineColor: "rgba(0,0,0,.05)",
|
||||
//Number - Width of the grid lines
|
||||
scaleGridLineWidth: 1,
|
||||
//Boolean - Whether to show horizontal lines (except X axis)
|
||||
scaleShowHorizontalLines: true,
|
||||
//Boolean - Whether to show vertical lines (except Y axis)
|
||||
scaleShowVerticalLines: true,
|
||||
//Boolean - Whether the line is curved between points
|
||||
bezierCurve: true,
|
||||
//Number - Tension of the bezier curve between points
|
||||
bezierCurveTension: 0.3,
|
||||
//Boolean - Whether to show a dot for each point
|
||||
pointDot: true,
|
||||
//Number - Radius of each point dot in pixels
|
||||
pointDotRadius: 4,
|
||||
//Number - Pixel width of point dot stroke
|
||||
pointDotStrokeWidth: 1,
|
||||
//Number - amount extra to add to the radius to cater for hit detection outside the drawn point
|
||||
pointHitDetectionRadius: 20,
|
||||
//Boolean - Whether to show a stroke for datasets
|
||||
datasetStroke: true,
|
||||
//Number - Pixel width of dataset stroke
|
||||
datasetStrokeWidth: 1,
|
||||
//Boolean - Whether to fill the dataset with a color
|
||||
datasetFill: false,
|
||||
//String - A legend template
|
||||
//Boolean - whether to maintain the starting aspect ratio or not when responsive, if set to false, will take up entire container
|
||||
maintainAspectRatio: false,
|
||||
//Boolean - whether to make the chart responsive to window resizing
|
||||
responsive: true,
|
||||
|
||||
legendTemplate : '<ul style="list-style-type: square;">'
|
||||
+'<% for (var i=0; i<datasets.length; i++) { %>'
|
||||
+'<li style="color: <%=datasets[i].pointColor%>;">'
|
||||
+'<span style=\"background-color:<%=datasets[i].pointColor%>\"></span>'
|
||||
+'<% if (datasets[i].label) { %><%= datasets[i].label %><% } %>'
|
||||
+'</li>'
|
||||
+'<% } %>'
|
||||
+'</ul>'
|
||||
});
|
||||
|
||||
document.getElementById("legendDiv").innerHTML = myLineChart1.generateLegend();
|
||||
|
||||
// });
|
||||
}
|
||||
});
|
||||
|
||||
// using the done promise callback
|
||||
|
||||
// stop the form from submitting the normal way and refreshing the page
|
||||
event.preventDefault();
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
|
||||
|
||||
|
||||
</script>
|
||||
|
||||
<script type="text/javascript">
|
||||
@@ -223,6 +467,5 @@ $delete = App\Model\helpdesk\Ticket\Tickets::where('dept_id','=',$department->id
|
||||
</script>
|
||||
|
||||
<script src="{{asset("lb-faveo/plugins/moment-develop/moment.js")}}" type="text/javascript"></script>
|
||||
{{-- <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-datetimepicker/4.7.14/js/bootstrap-datetimepicker.min.js"></script> --}}
|
||||
<script src="{{asset("lb-faveo/js/bootstrap-datetimepicker4.7.14.min.js")}}" type="text/javascript"></script>
|
||||
@stop
|
@@ -12,7 +12,6 @@ active
|
||||
class="active"
|
||||
@stop
|
||||
|
||||
|
||||
@section('content')
|
||||
<!-- Main content -->
|
||||
{!! Form::open(['route'=>'post.newticket','method'=>'post']) !!}
|
||||
@@ -221,4 +220,8 @@ class="active"
|
||||
|
||||
</script>
|
||||
|
||||
@stop
|
||||
@stop
|
||||
|
||||
|
||||
|
||||
|
||||
|
@@ -45,16 +45,30 @@ active
|
||||
|
||||
<li class="header">
|
||||
{!! Lang::get('lang.ticket_ratings') !!}
|
||||
</li><li> <a href="#">
|
||||
<input type="hidden" name="amount" value="{!! $tickets->rating !!}" />
|
||||
<label style="color: #b8c7ce;">Overall Rating:</label>
|
||||
<h5>
|
||||
<span class="stars">{!! $tickets->rating !!}</span></h5>
|
||||
<input type="hidden" name="amt" value="{!! $tickets->ratingreply !!}" />
|
||||
<label style="color: #b8c7ce;">Reply Rating:</label>
|
||||
<h4>
|
||||
<span class="stars2">{!! $tickets->ratingreply !!}</span></h4>
|
||||
</a></li>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#">
|
||||
Overall Rating:
|
||||
<small class="pull-right">
|
||||
<input type="radio" class="star" id="star5" name="rating" value="1"<?php echo ($tickets->rating=='1')?'checked':'' ?> />
|
||||
<input type="radio" class="star" id="star4" name="rating" value="2"<?php echo ($tickets->rating=='2')?'checked':'' ?> />
|
||||
<input type="radio" class="star" id="star3" name="rating" value="3"<?php echo ($tickets->rating=='3')?'checked':'' ?>/>
|
||||
<input type="radio" class="star" id="star2" name="rating" value="4"<?php echo ($tickets->rating=='4')?'checked':'' ?>/>
|
||||
<input type="radio" class="star" id="star1" name="rating" value="5"<?php echo ($tickets->rating=='5')?'checked':'' ?> />
|
||||
</small>
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="">Reply Rating:
|
||||
<small class="pull-right">
|
||||
<input type="radio" class="star" id="star5" name="rating2" value="1"<?php echo ($tickets->ratingreply=='1')?'checked':'' ?> />
|
||||
<input type="radio" class="star" id="star4" name="rating2" value="2"<?php echo ($tickets->ratingreply=='2')?'checked':'' ?> />
|
||||
<input type="radio" class="star" id="star3" name="rating2" value="3"<?php echo ($tickets->ratingreply=='3')?'checked':'' ?> />
|
||||
<input type="radio" class="star" id="star2" name="rating2" value="4"<?php echo ($tickets->ratingreply=='4')?'checked':'' ?> />
|
||||
<input type="radio" class="star" id="star1" name="rating2" value="5"<?php echo ($tickets->ratingreply=='5')?'checked':'' ?> />
|
||||
</small>
|
||||
</a>
|
||||
</li>
|
||||
@stop
|
||||
|
||||
@section('content')
|
||||
@@ -335,7 +349,7 @@ $canneds = App\Model\helpdesk\Agent_panel\Canned::where('user_id','=',Auth::user
|
||||
<div class="form-group {{ $errors->has('title') ? 'has-error' : '' }}">
|
||||
<div class="col-md-2"></div>
|
||||
<div class="col-md-10">
|
||||
<button type="submit" class="btn btn-primary"><i class="fa fa-check-square-o" style="color:white;"> </i> {!! Lang::get('lang.update') !!}</button>
|
||||
<button id="replybtn" type="submit" class="btn btn-primary"><i class="fa fa-check-square-o" style="color:white;"> </i> {!! Lang::get('lang.update') !!}</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -1063,31 +1077,16 @@ $count_teams = count($teams);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php $var=0; ?>
|
||||
<?php $var=App\Model\helpdesk\Settings\Ticket::where('id', '=', 1)->first(); ?>
|
||||
|
||||
<!-- scripts used on page -->
|
||||
<script type="text/javascript">
|
||||
$(function() {
|
||||
|
||||
$('h5').html('<span class="stars">'+parseFloat($('input[name=amount]').val())+'</span>');
|
||||
$('span.stars').stars();
|
||||
|
||||
$('h4').html('<span class="stars2">'+parseFloat($('input[name=amt]').val())+'</span>');
|
||||
$('span.stars2').stars();
|
||||
|
||||
|
||||
});
|
||||
|
||||
$.fn.stars = function() {
|
||||
return $(this).each(function() {
|
||||
$(this).html($('<span />').width(Math.max(0, (Math.min(5, parseFloat($(this).html())))) * 16));
|
||||
});
|
||||
}
|
||||
$(function () {
|
||||
$("#InternalContent").wysihtml5();
|
||||
});
|
||||
|
||||
$(function () {
|
||||
$("#InternalContent").wysihtml5();
|
||||
});
|
||||
|
||||
jQuery('.star').attr('disabled', true);
|
||||
|
||||
$(function () {
|
||||
// $('#cand').wysihtml5();
|
||||
@@ -1552,8 +1551,8 @@ $(document).ready(function () {
|
||||
|
||||
|
||||
|
||||
function remove_collaborator(id) {
|
||||
var data = id;
|
||||
function remove_collaborator(id) {
|
||||
var data = id;
|
||||
$.ajax({
|
||||
headers: {
|
||||
'X-CSRF-Token': $('meta[name="_token"]').attr('content'),
|
||||
@@ -1572,8 +1571,68 @@ function remove_collaborator(id) {
|
||||
}
|
||||
})
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
|
||||
$(document).ready(function() {
|
||||
|
||||
var locktime = '<?php echo $var->collision_avoid;?>'*60*1000;
|
||||
lockAjaxCall(locktime);
|
||||
setInterval(function() {// to call ajax for ticket lock repeatedly after defined lock time interval
|
||||
lockAjaxCall(locktime);
|
||||
return false;
|
||||
}, locktime);
|
||||
});
|
||||
//ajax call to check ticket and lock ticket
|
||||
function lockAjaxCall(locktime){
|
||||
$.ajax({
|
||||
type: "GET",
|
||||
url: "../check/lock/{{$tickets->id}}",
|
||||
dataType: "html",
|
||||
data: $(this).serialize(),
|
||||
success: function(response) {
|
||||
if(response == 0) {
|
||||
|
||||
var message = "{{Lang::get('lang.locked-ticket')}}";
|
||||
$("#alert22").show();
|
||||
$('#message-warning2').html(message);
|
||||
$('#replybtn').attr('disabled', true);
|
||||
//setInterval(function(){$("#alert23").hide(); },10000);
|
||||
} else {
|
||||
// alert(response);
|
||||
// var message = "{{Lang::get('lang.access-ticket')}}"+locktime/(60*1000)
|
||||
// +"{{Lang::get('lang.minutes')}}";
|
||||
// $("#alert22").hide();
|
||||
// $("#alert21").show();
|
||||
// $('#message-success2').html(message);
|
||||
$('#replybtn').attr('disabled', false);
|
||||
// setInterval(function(){$("#alert21").hide(); },8000);
|
||||
}
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
$(function() {
|
||||
|
||||
$('h5').html('<span class="stars">'+parseFloat($('input[name=amount]').val())+'</span>');
|
||||
$('span.stars').stars();
|
||||
|
||||
$('h4').html('<span class="stars2">'+parseFloat($('input[name=amt]').val())+'</span>');
|
||||
$('span.stars2').stars();
|
||||
|
||||
});
|
||||
|
||||
$.fn.stars = function() {
|
||||
return $(this).each(function() {
|
||||
$(this).html($('<span />').width(Math.max(0, (Math.min(5, parseFloat($(this).html())))) * 16));
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</script>
|
||||
|
||||
|
@@ -100,10 +100,10 @@ class="active"
|
||||
{!! $errors->first('active', '<spam class="help-block">:message</spam>') !!}
|
||||
<div class="row">
|
||||
<div class="col-xs-12">
|
||||
{!! Form::radio('active','1',true) !!}{{Lang::get('lang.active')}}
|
||||
{!! Form::radio('active','1',true) !!} {{Lang::get('lang.active')}}
|
||||
</div>
|
||||
<div class="col-xs-12">
|
||||
{!! Form::radio('active','0') !!}{{Lang::get('lang.inactive')}}
|
||||
{!! Form::radio('active','0') !!} {{Lang::get('lang.inactive')}}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
@@ -87,10 +87,10 @@ class="active"
|
||||
{!! $errors->first('active', '<spam class="help-block">:message</spam>') !!}
|
||||
<div class="row">
|
||||
<div class="col-xs-12">
|
||||
{!! Form::radio('active','1',true) !!}{{Lang::get('lang.active')}}
|
||||
{!! Form::radio('active','1',true) !!} {{Lang::get('lang.active')}}
|
||||
</div>
|
||||
<div class="col-xs-12">
|
||||
{!! Form::radio('active','0') !!}{{Lang::get('lang.inactive')}}
|
||||
{!! Form::radio('active','0') !!} {{Lang::get('lang.inactive')}}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -103,10 +103,10 @@ class="active"
|
||||
|
||||
<div class="row">
|
||||
<div class="col-xs-12">
|
||||
{!! Form::radio('ban','1',true) !!}{{Lang::get('lang.enable')}}
|
||||
{!! Form::radio('ban','1',true) !!} {{Lang::get('lang.enable')}}
|
||||
</div>
|
||||
<div class="col-xs-12">
|
||||
{!! Form::radio('ban','0') !!}{{Lang::get('lang.disable')}}
|
||||
{!! Form::radio('ban','0') !!} {{Lang::get('lang.disable')}}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
@@ -68,10 +68,10 @@ class="active"
|
||||
{!! Form::label('gender',Lang::get('lang.gender')) !!}
|
||||
<div class="row">
|
||||
<div class="col-xs-3">
|
||||
{!! Form::radio('gender','1',true) !!}{{Lang::get('lang.male')}}
|
||||
{!! Form::radio('gender','1',true) !!} {{Lang::get('lang.male')}}
|
||||
</div>
|
||||
<div class="col-xs-3">
|
||||
{!! Form::radio('gender','0') !!}{{Lang::get('lang.female')}}
|
||||
{!! Form::radio('gender','0') !!} {{Lang::get('lang.female')}}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
@@ -2,16 +2,17 @@
|
||||
@extends('themes.default1.agent.layout.sidebar')
|
||||
|
||||
@section('article')
|
||||
active
|
||||
active
|
||||
@stop
|
||||
@section('add-article')
|
||||
class="active"
|
||||
class="active"
|
||||
@stop
|
||||
@section('content')
|
||||
<script src="{{asset('ckeditor/ckeditor.js')}}"></script>
|
||||
{!! Form::open(array('action' => 'Agent\kb\ArticleController@store' , 'method' => 'post') )!!}
|
||||
|
||||
<div class="row">
|
||||
@if(Session::has('success'))
|
||||
@if(Session::has('success'))
|
||||
<div class="alert alert-success alert-dismissable">
|
||||
<i class="fa fa-check-circle"></i>
|
||||
<b>Success</b>
|
||||
@@ -35,153 +36,203 @@
|
||||
{!! Lang::get('lang.create_a_category') !!}
|
||||
</div>
|
||||
@endif
|
||||
|
||||
<div class="box-body">
|
||||
<div class="col-md-9">
|
||||
<div class="box box-primary">
|
||||
<div class="box-header">
|
||||
<h4 class="box-title">{!! Lang::get('lang.addarticle') !!}</h4>
|
||||
</div>
|
||||
<div class="box-body">
|
||||
<div class="row">
|
||||
|
||||
<div class="col-md-6 form-group {{ $errors->has('name') ? 'has-error' : '' }}" >
|
||||
|
||||
{!! Form::label('name',Lang::get('lang.name')) !!}
|
||||
{!! $errors->first('name', '<spam class="help-block">:message</spam>') !!}
|
||||
{!! Form::text('name',null,['class' => 'form-control']) !!}
|
||||
</div>
|
||||
|
||||
<div class="col-md-6 form-group {{ $errors->has('slug') ? 'has-error' : '' }}" >
|
||||
|
||||
{!! Form::label('slug',Lang::get('lang.slug')) !!}
|
||||
{!! $errors->first('slug', '<spam class="help-block">:message</spam>') !!}
|
||||
{!! Form::text('slug',null,['class' => 'form-control']) !!}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group {{ $errors->has('description') ? 'has-error' : '' }}">
|
||||
{!! Form::label('description',Lang::get('lang.description')) !!}
|
||||
{!! $errors->first('description', '<spam class="help-block">:message</spam>') !!}
|
||||
<div class="form-group" style="background-color:white">
|
||||
{!! Form::textarea('description',null,['class' => 'form-control color','size' => '128x20','id'=>'myNicEditor','placeholder'=>Lang::get('lang.enter_the_description')]) !!}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<ul style="list-style-type:none;">
|
||||
<li>
|
||||
<div class="col-md-3">
|
||||
<div class="box box-default">
|
||||
<div class="box-header with-border">
|
||||
<h3 class="box-title">{{Lang::get('lang.publish')}}</h3>
|
||||
</div>
|
||||
<div class="box-body">
|
||||
<div class="form-group {{ $errors->has('type') ? 'has-error' : '' }}">
|
||||
|
||||
{!! Form::label('type',Lang::get('lang.status')) !!}
|
||||
{!! $errors->first('type', '<spam class="help-block">:message</spam>') !!}
|
||||
<div class="row">
|
||||
<div class="col-xs-4">
|
||||
{!! Form::radio('type','1',true) !!}{{Lang::get('lang.published')}}
|
||||
</div>
|
||||
<div class="col-xs-3">
|
||||
{!! Form::radio('type','0',null) !!}{{Lang::get('lang.draft')}}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="form-group {{ $errors->has('status') ? 'has-error' : '' }}">
|
||||
|
||||
{!! Form::label('status',Lang::get('lang.visibility')) !!}
|
||||
{!! $errors->first('status', '<spam class="help-block">:message</spam>') !!}
|
||||
<div class="row">
|
||||
<div class="col-xs-3">
|
||||
{!! Form::radio('status','1',true) !!}{{Lang::get('lang.public')}}
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-xs-3">
|
||||
{!! Form::radio('status','0',null) !!}{{Lang::get('lang.private')}}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="box-footer" style="background-color:#f5f5f5;">
|
||||
<div style="margin-left:140px;">
|
||||
|
||||
{!! Form::submit(Lang::get('lang.publish'),['class'=>'btn btn-primary'])!!}
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</li>
|
||||
<li>
|
||||
<div class="col-md-3">
|
||||
<div class="box box-default">
|
||||
<div class="box-header with-border">
|
||||
<h3 class="box-title">{{Lang::get('lang.category')}}</h3>
|
||||
<div class="box-body">
|
||||
<div class="col-md-8">
|
||||
<div class="box box-primary">
|
||||
<div class="box-header">
|
||||
<h4 class="box-title">{!! Lang::get('lang.addarticle') !!}</h4>
|
||||
</div>
|
||||
<div class="box-body" style="height:190px; overflow-y:auto;">
|
||||
<div class="box-body">
|
||||
<div class="row">
|
||||
|
||||
<div class="form-group {{ $errors->has('category_id') ? 'has-error' : '' }}">
|
||||
{{-- {!! Form::label('category_id','Category') !!} --}}
|
||||
{!! $errors->first('category_id', '<spam class="help-block">:message</spam>') !!}
|
||||
@while (list($key, $val) = each($category))
|
||||
<div class="row">
|
||||
<div class="form-group">
|
||||
<div class="col-md-1">
|
||||
<input type="radio" name="category_id[]" value="<?php echo $val;?>">
|
||||
</div>
|
||||
<div class="col-md-10">
|
||||
<?php echo $key;?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endwhile
|
||||
<div class="col-md-6 form-group {{ $errors->has('name') ? 'has-error' : '' }}" >
|
||||
|
||||
</div>
|
||||
</div>
|
||||
{!! Form::close() !!}
|
||||
<div class="box-footer" style="background-color:#f5f5f5;">
|
||||
{!! Form::label('name',Lang::get('lang.name')) !!}
|
||||
{!! $errors->first('name', '<spam class="help-block">:message</spam>') !!}
|
||||
{!! Form::text('name',null,['class' => 'form-control']) !!}
|
||||
</div>
|
||||
|
||||
<span class="btn btn-info btn-sm" data-toggle="modal" data-target="#j">{{Lang::get('lang.addcategory')}}</span>
|
||||
<div class="modal" id="j">
|
||||
<div class="modal-dialog">
|
||||
<div class="modal-content">
|
||||
{!! Form::open(['method'=>'post','action'=>'Agent\kb\CategoryController@store']) !!}
|
||||
<div class="modal-header">
|
||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
|
||||
<h4 class="modal-title">{{Lang::get('lang.addcategory')}}</h4>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
@include('themes.default1.agent.kb.category.form')
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<div class="form-group">
|
||||
{!! Form::submit('Add')!!}
|
||||
</div>
|
||||
<button type="button" class="btn btn-default pull-left" data-dismiss="modal">Close</button>
|
||||
</div>
|
||||
{!! Form::close() !!}
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-6 form-group {{ $errors->has('slug') ? 'has-error' : '' }}" >
|
||||
|
||||
{!! Form::label('slug',Lang::get('lang.slug')) !!}
|
||||
{!! $errors->first('slug', '<spam class="help-block">:message</spam>') !!}
|
||||
{!! Form::text('slug',null,['class' => 'form-control']) !!}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
<script type="text/javascript">
|
||||
$(function () {
|
||||
$("textarea").wysihtml5();
|
||||
});
|
||||
</script>
|
||||
{{-- {!! Form::close() !!} --}}
|
||||
@stop
|
||||
|
||||
<div class="form-group {{ $errors->has('description') ? 'has-error' : '' }}">
|
||||
{!! Form::label('description',Lang::get('lang.description')) !!}
|
||||
{!! $errors->first('description', '<spam class="help-block">:message</spam>') !!}
|
||||
<div class="form-group" style="background-color:white">
|
||||
{!! Form::textarea('description',null,['class' => 'form-control','id'=>'editor','size' => '128x20','placeholder'=>Lang::get('lang.enter_the_description')]) !!}
|
||||
</div>
|
||||
<script>
|
||||
CKEDITOR.replace('editor', {
|
||||
filebrowserImageBrowseUrl: '../laravel-filemanager?type=Images',
|
||||
filebrowserImageUploadUrl: '../laravel-filemanager/upload?type=Images&_token={{csrf_token()}}',
|
||||
});
|
||||
</script>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<ul style="list-style-type:none;">
|
||||
<li>
|
||||
<div class="col-sm-4">
|
||||
<div class="box box-default">
|
||||
<div class="box-header with-border">
|
||||
<h3 class="box-title">{{Lang::get('lang.publish')}}</h3>
|
||||
</div>
|
||||
<div class="box-body">
|
||||
<div class="form-group {{ $errors->has('type') ? 'has-error' : '' }}">
|
||||
|
||||
{!! Form::label('type',Lang::get('lang.status')) !!}
|
||||
{!! $errors->first('type', '<spam class="help-block">:message</spam>') !!}
|
||||
<div class="row">
|
||||
<div class="col-xs-1">
|
||||
{!! Form::radio('type','1',true) !!}
|
||||
</div>
|
||||
<div class="col-xs-4">
|
||||
{{Lang::get('lang.published')}}
|
||||
</div>
|
||||
<div class="col-xs-1">
|
||||
{!! Form::radio('type','0',null) !!}
|
||||
</div>
|
||||
<div class="col-xs-4">
|
||||
{{Lang::get('lang.draft')}}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="form-group {{ $errors->has('status') ? 'has-error' : '' }}">
|
||||
|
||||
{!! Form::label('status',Lang::get('lang.visibility')) !!}
|
||||
{!! $errors->first('status', '<spam class="help-block">:message</spam>') !!}
|
||||
<div class="row">
|
||||
<div class="col-xs-1">
|
||||
{!! Form::radio('status','1',true) !!}
|
||||
</div>
|
||||
<div class="col-xs-4">
|
||||
{{Lang::get('lang.public')}}
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-xs-1">
|
||||
{!! Form::radio('status','0',null) !!}
|
||||
</div>
|
||||
<div class="col-xs-4">
|
||||
{{Lang::get('lang.private')}}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<?php
|
||||
$format = App\Model\helpdesk\Settings\System::where('id', '1')->first()->date_time_format;
|
||||
$format = \App\Model\helpdesk\Utility\Time_format::where('id',$format)->first()->format;
|
||||
$tz = App\Model\helpdesk\Settings\System::where('id', '1')->first()->time_zone;
|
||||
$tz = App\Model\helpdesk\Utility\Timezones::where('id',$tz)->first()->name;
|
||||
date_default_timezone_set($tz);
|
||||
$date = date($format);
|
||||
$dateparse = date_parse_from_format($format, $date);
|
||||
//dd($dateparse);
|
||||
$month = $dateparse['month'];
|
||||
$day = $dateparse['day'];
|
||||
$year = $dateparse['year'];
|
||||
$hour = $dateparse['hour'];
|
||||
$minute = $dateparse['minute'];
|
||||
// echo $date;
|
||||
?>
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
{!! Form::label('month','Publish Immediately') !!}
|
||||
</div>
|
||||
<div class="col-md-12">
|
||||
|
||||
<span>
|
||||
{!! Form::selectMonth('month', $month) !!}
|
||||
{!! Form::selectRange('day', 1, 31, $day) !!}
|
||||
|
||||
{!! Form::selectYear('year', 2015,2035,null) !!}@
|
||||
<input type="text" name="hour" value="{{$hour}}" style="width: 30px;">:<input type="text" name="minute" value="{{$minute}}" style="width: 30px;" >
|
||||
</span>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="box-footer" style="background-color:#f5f5f5;" >
|
||||
|
||||
|
||||
{!! Form::submit(Lang::get('lang.publish'),['class'=>'btn btn-primary'])!!}
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
</li>
|
||||
<li>
|
||||
<div class="col-md-4">
|
||||
<div class="box box-default">
|
||||
<div class="box-header with-border">
|
||||
<h3 class="box-title">{{Lang::get('lang.category')}}</h3>
|
||||
</div>
|
||||
<div class="box-body" style="height:190px; overflow-y:auto;">
|
||||
|
||||
<div class="form-group {{ $errors->has('category_id') ? 'has-error' : '' }}">
|
||||
{{-- {!! Form::label('category_id','Category') !!} --}}
|
||||
{!! $errors->first('category_id', '<spam class="help-block">:message</spam>') !!}
|
||||
@while (list($key, $val) = each($category))
|
||||
<div class="row">
|
||||
<div class="form-group">
|
||||
<div class="col-md-1">
|
||||
<input type="radio" name="category_id[]" value="<?php echo $val; ?>">
|
||||
</div>
|
||||
<div class="col-md-10">
|
||||
<?php echo $key; ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endwhile
|
||||
|
||||
</div>
|
||||
</div>
|
||||
{!! Form::close() !!}
|
||||
<div class="box-footer" style="background-color:#f5f5f5;">
|
||||
|
||||
<span class="btn btn-info btn-sm" data-toggle="modal" data-target="#j">{{Lang::get('lang.addcategory')}}</span>
|
||||
<div class="modal" id="j">
|
||||
<div class="modal-dialog">
|
||||
<div class="modal-content">
|
||||
{!! Form::open(['method'=>'post','action'=>'Agent\kb\CategoryController@store']) !!}
|
||||
<div class="modal-header">
|
||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
|
||||
<h4 class="modal-title">{{Lang::get('lang.addcategory')}}</h4>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
@include('themes.default1.agent.kb.category.form')
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<div class="form-group">
|
||||
{!! Form::submit('Add')!!}
|
||||
</div>
|
||||
<button type="button" class="btn btn-default pull-left" data-dismiss="modal">Close</button>
|
||||
</div>
|
||||
{!! Form::close() !!}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
@stop
|
||||
|
@@ -1,177 +1,224 @@
|
||||
@extends('themes.default1.agent.layout.agent')
|
||||
@extends('themes.default1.agent.layout.sidebar')
|
||||
@section('article')
|
||||
active
|
||||
active
|
||||
@stop
|
||||
@section('all-article')
|
||||
class="active"
|
||||
class="active"
|
||||
@stop
|
||||
@section('content')
|
||||
<script src="{{asset('ckeditor/ckeditor.js')}}"></script>
|
||||
{!! Form::model($article,['url' => 'article/'.$article->id , 'method' => 'PATCH'] )!!}
|
||||
<div class="row">
|
||||
<div class="box-body" >
|
||||
@if(Session::has('success'))
|
||||
<div class="alert alert-success alert-dismissable">
|
||||
<i class="fa fa-check-circle"></i>
|
||||
<b>Success</b>
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
{{Session::get('success')}}
|
||||
</div>
|
||||
@endif
|
||||
<!-- failure message -->
|
||||
@if(Session::has('fails'))
|
||||
<div class="alert alert-danger alert-dismissable">
|
||||
<i class="fa fa-ban"></i>
|
||||
<b>Fail!</b>
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
{{Session::get('fails')}}
|
||||
</div>
|
||||
@endif
|
||||
<div class="col-md-9">
|
||||
<div class="box box-primary box-body">
|
||||
<div class="row">
|
||||
<div class="col-md-6 form-group {{ $errors->has('name') ? 'has-error' : '' }}" >
|
||||
{!! Form::label('name',Lang::get('lang.name')) !!}
|
||||
{!! $errors->first('name', '<spam class="help-block">:message</spam>') !!}
|
||||
{!! Form::text('name',null,['class' => 'form-control']) !!}
|
||||
</div>
|
||||
<div class="col-md-6 form-group {{ $errors->has('slug') ? 'has-error' : '' }}" >
|
||||
{!! Form::label('slug',Lang::get('lang.slug')) !!}
|
||||
{!! $errors->first('slug', '<spam class="help-block">:message</spam>') !!}
|
||||
{!! Form::text('slug',null,['class' => 'form-control']) !!}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group {{ $errors->has('description') ? 'has-error' : '' }}">
|
||||
{!! Form::label('description',Lang::get('lang.description')) !!}
|
||||
{!! $errors->first('description', '<spam class="help-block">:message</spam>') !!}
|
||||
<div class="form-group" style="background-color:white">
|
||||
{!! Form::textarea('description',null,['class' => 'form-control','size' => '128x20','id'=>'myNicEditor','placeholder'=>'Enter the description']) !!}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<ul style="list-style-type:none;">
|
||||
<li>
|
||||
<div class="col-md-3">
|
||||
<div class="box box-default">
|
||||
<div class="box-header with-border">
|
||||
<h3 class="box-title">{{Lang::get('lang.publish')}}</h3>
|
||||
</div>
|
||||
<div class="box-body">
|
||||
<div class="form-group {{ $errors->has('type') ? 'has-error' : '' }}">
|
||||
|
||||
{!! Form::label('type',Lang::get('lang.status')) !!}
|
||||
{!! $errors->first('type', '<spam class="help-block">:message</spam>') !!}
|
||||
<div class="row">
|
||||
<div class="col-xs-4">
|
||||
{!! Form::radio('type','1',true) !!}{{Lang::get('lang.published')}}
|
||||
</div>
|
||||
<div class="col-xs-3">
|
||||
{!! Form::radio('type','0',null) !!}{{Lang::get('lang.draft')}}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="form-group {{ $errors->has('status') ? 'has-error' : '' }}">
|
||||
|
||||
{!! Form::label('status',Lang::get('lang.visibility')) !!}
|
||||
{!! $errors->first('status', '<spam class="help-block">:message</spam>') !!}
|
||||
<div class="row">
|
||||
<div class="col-xs-3">
|
||||
{!! Form::radio('status','1',true) !!}{{Lang::get('lang.public')}}
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-xs-3">
|
||||
{!! Form::radio('status','0',null) !!}{{Lang::get('lang.private')}}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
{!! Form::close() !!}
|
||||
<div class="box-footer" style="background-color:#f5f5f5;">
|
||||
<div style="margin-left:140px;">
|
||||
|
||||
{!! Form::submit(Lang::get('lang.publish'),['class'=>'btn btn-block btn-primary btn-sm'])!!}
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</li>
|
||||
<li>
|
||||
<div class="col-md-3">
|
||||
<div class="box box-default">
|
||||
<div class="box-header with-border">
|
||||
<h3 class="box-title">{{Lang::get('lang.category')}}</h3>
|
||||
<div class="box-body" >
|
||||
@if(Session::has('success'))
|
||||
<div class="alert alert-success alert-dismissable">
|
||||
<i class="fa fa-check-circle"></i>
|
||||
<b>Success</b>
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
{{Session::get('success')}}
|
||||
</div>
|
||||
@endif
|
||||
<!-- failure message -->
|
||||
@if(Session::has('fails'))
|
||||
<div class="alert alert-danger alert-dismissable">
|
||||
<i class="fa fa-ban"></i>
|
||||
<b>Fail!</b>
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
{{Session::get('fails')}}
|
||||
</div>
|
||||
@endif
|
||||
<div class="col-md-8">
|
||||
<div class="box box-primary box-body">
|
||||
<div class="row">
|
||||
<div class="col-md-6 form-group {{ $errors->has('name') ? 'has-error' : '' }}" >
|
||||
{!! Form::label('name',Lang::get('lang.name')) !!}
|
||||
{!! $errors->first('name', '<spam class="help-block">:message</spam>') !!}
|
||||
{!! Form::text('name',null,['class' => 'form-control']) !!}
|
||||
</div>
|
||||
<div class="col-md-6 form-group {{ $errors->has('slug') ? 'has-error' : '' }}" >
|
||||
{!! Form::label('slug',Lang::get('lang.slug')) !!}
|
||||
{!! $errors->first('slug', '<spam class="help-block">:message</spam>') !!}
|
||||
{!! Form::text('slug',null,['class' => 'form-control']) !!}
|
||||
</div>
|
||||
</div>
|
||||
<div class="box-body" style="height:190px; overflow-y:auto;">
|
||||
|
||||
<div class="form-group {{ $errors->has('category_id') ? 'has-error' : '' }}">
|
||||
{{-- {!! Form::label('category_id','Category') !!} --}}
|
||||
{!! $errors->first('category_id', '<spam class="help-block">:message</spam>') !!}
|
||||
@while (list($key, $val) = each($category))
|
||||
<div class="row">
|
||||
<div class="form-group">
|
||||
<div class="col-md-1">
|
||||
<input type="radio" name="category_id[]" value="<?php echo $val;?>" <?php if (in_array($val, $assign)) {
|
||||
echo ('checked');
|
||||
}
|
||||
?> ></div>
|
||||
<div class="col-md-10">
|
||||
<?php echo $key;?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endwhile
|
||||
<div class="form-group {{ $errors->has('description') ? 'has-error' : '' }}">
|
||||
{!! Form::label('description',Lang::get('lang.description')) !!}
|
||||
{!! $errors->first('description', '<spam class="help-block">:message</spam>') !!}
|
||||
<div class="form-group" style="background-color:white">
|
||||
{!! Form::textarea('description',$article->description,['class' => 'form-control','id'=>'editor','size' => '128x20','placeholder'=>Lang::get('lang.enter_the_description')]) !!}
|
||||
</div>
|
||||
<script>
|
||||
CKEDITOR.replace('editor', {
|
||||
filebrowserImageBrowseUrl: '../../laravel-filemanager?type=Images',
|
||||
filebrowserImageUploadUrl: '../../laravel-filemanager/upload?type=Images&_token={{csrf_token()}}',
|
||||
});
|
||||
</script>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<ul style="list-style-type:none;">
|
||||
<li>
|
||||
<div class="col-md-4">
|
||||
<div class="box box-default">
|
||||
<div class="box-header with-border">
|
||||
<h3 class="box-title">{{Lang::get('lang.publish')}}</h3>
|
||||
</div>
|
||||
<div class="box-body">
|
||||
<div class="form-group {{ $errors->has('type') ? 'has-error' : '' }}">
|
||||
|
||||
<div class="box-footer" style="background-color:#f5f5f5;">
|
||||
|
||||
<span class="btn btn-info btn-sm" data-toggle="modal" data-target="#j">{!! Lang::get('lang.addcategory') !!}</span>
|
||||
<div class="modal" id="j">
|
||||
<div class="modal-dialog">
|
||||
<div class="modal-content">
|
||||
{!! Form::open(['method'=>'post','action'=>'Agent\kb\CategoryController@store']) !!}
|
||||
<div class="modal-header">
|
||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
|
||||
<h4 class="modal-title">{{Lang::get('lang.addcategory')}}</h4>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
@include('themes.default1.agent.kb.category.form')
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<div class="form-group">
|
||||
{!! Form::submit(Lang::get('lang.add'))!!}
|
||||
{!! Form::label('type',Lang::get('lang.status')) !!}
|
||||
{!! $errors->first('type', '<spam class="help-block">:message</spam>') !!}
|
||||
<div class="row">
|
||||
<div class="col-xs-1">
|
||||
{!! Form::radio('type','1',true) !!}
|
||||
</div>
|
||||
<div class="col-xs-4">
|
||||
{{Lang::get('lang.published')}}
|
||||
</div>
|
||||
<div class="col-xs-1">
|
||||
{!! Form::radio('type','0',null) !!}
|
||||
</div>
|
||||
<div class="col-xs-4">
|
||||
{{Lang::get('lang.draft')}}
|
||||
</div>
|
||||
<button type="button" class="btn btn-default pull-left" data-dismiss="modal">{!! Lang::get('lang.close') !!}</button>
|
||||
</div>
|
||||
{!! Form::close() !!}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="form-group {{ $errors->has('status') ? 'has-error' : '' }}">
|
||||
|
||||
{!! Form::label('status',Lang::get('lang.visibility')) !!}
|
||||
{!! $errors->first('status', '<spam class="help-block">:message</spam>') !!}
|
||||
<div class="row">
|
||||
<div class="col-xs-1">
|
||||
{!! Form::radio('status','1',true) !!}
|
||||
</div>
|
||||
<div class="col-xs-4">
|
||||
{{Lang::get('lang.public')}}
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-xs-1">
|
||||
{!! Form::radio('status','0',null) !!}
|
||||
</div>
|
||||
<div class="col-xs-4">
|
||||
{{Lang::get('lang.private')}}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<?php
|
||||
//dd($article);
|
||||
$format = App\Model\helpdesk\Settings\System::where('id', '1')->first()->date_time_format;
|
||||
$format = \App\Model\helpdesk\Utility\Time_format::where('id',$format)->first()->format;
|
||||
$tz = App\Model\helpdesk\Settings\System::where('id', '1')->first()->time_zone;
|
||||
$tz = App\Model\helpdesk\Utility\Timezones::where('id',$tz)->first()->name;
|
||||
date_default_timezone_set($tz);
|
||||
$date = date($format);
|
||||
$dateparse = date_parse_from_format('Y-m-d H:i:s', $article->publish_time);
|
||||
$month = $dateparse['month'];
|
||||
$day = $dateparse['day'];
|
||||
$year = $dateparse['year'];
|
||||
$hour = $dateparse['hour'];
|
||||
$minute = $dateparse['minute'];
|
||||
// echo $date;
|
||||
//dd($day,$month,$year);
|
||||
?>
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
{!! Form::label('month','Publish Immediately') !!}
|
||||
</div>
|
||||
<div class="col-md-12">
|
||||
|
||||
<span>
|
||||
{!! Form::selectMonth('month', $month) !!}
|
||||
{!! Form::selectRange('day', 1, 31, $day) !!}
|
||||
{!! Form::selectYear('year', $year,$year + 20,$year) !!}@
|
||||
<input type="text" name="hour" value="{{$hour}}" style="width: 30px;">:<input type="text" name="minute" value="{{$minute}}" style="width: 30px;" >
|
||||
</span>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
{!! Form::close() !!}
|
||||
<div class="box-footer" style="background-color:#f5f5f5;">
|
||||
|
||||
|
||||
{!! Form::submit(Lang::get('lang.publish'),['class'=>'btn btn-primary'])!!}
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</li>
|
||||
<li>
|
||||
<div class="col-md-4">
|
||||
<div class="box box-default">
|
||||
<div class="box-header with-border">
|
||||
<h3 class="box-title">{{Lang::get('lang.category')}}</h3>
|
||||
</div>
|
||||
<div class="box-body" style="height:190px; overflow-y:auto;">
|
||||
|
||||
</li>
|
||||
</ul>
|
||||
<div class="form-group {{ $errors->has('category_id') ? 'has-error' : '' }}">
|
||||
{{-- {!! Form::label('category_id','Category') !!} --}}
|
||||
{!! $errors->first('category_id', '<spam class="help-block">:message</spam>') !!}
|
||||
@while (list($key, $val) = each($category))
|
||||
<div class="row">
|
||||
<div class="form-group">
|
||||
<div class="col-md-1">
|
||||
<input type="radio" name="category_id[]" value="<?php echo $val; ?>" <?php
|
||||
if (in_array($val, $assign)) {
|
||||
echo ('checked');
|
||||
}
|
||||
?> ></div>
|
||||
<div class="col-md-10">
|
||||
<?php echo $key; ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endwhile
|
||||
|
||||
<script type="text/javascript">
|
||||
$(function () {
|
||||
$("textarea").wysihtml5();
|
||||
});
|
||||
</script>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="box-footer" style="background-color:#f5f5f5;">
|
||||
|
||||
{{-- {!! Form::close() !!} --}}
|
||||
@stop
|
||||
<!-- /content -->
|
||||
<span class="btn btn-info btn-sm" data-toggle="modal" data-target="#j">{!! Lang::get('lang.addcategory') !!}</span>
|
||||
<div class="modal" id="j">
|
||||
<div class="modal-dialog">
|
||||
<div class="modal-content">
|
||||
{!! Form::open(['method'=>'post','action'=>'Agent\kb\CategoryController@store']) !!}
|
||||
<div class="modal-header">
|
||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
|
||||
<h4 class="modal-title">{{Lang::get('lang.addcategory')}}</h4>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
@include('themes.default1.agent.kb.category.form')
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<div class="form-group">
|
||||
{!! Form::submit(Lang::get('lang.add'))!!}
|
||||
</div>
|
||||
<button type="button" class="btn btn-default pull-left" data-dismiss="modal">{!! Lang::get('lang.close') !!}</button>
|
||||
</div>
|
||||
{!! Form::close() !!}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
@stop
|
||||
<!-- /content -->
|
@@ -68,10 +68,10 @@
|
||||
{!! $errors->first('status', '<spam class="help-block">:message</spam>') !!}
|
||||
<div class="row">
|
||||
<div class="col-xs-3">
|
||||
{!! Form::radio('status','1',true) !!}{{Lang::get('lang.active')}}
|
||||
{!! Form::radio('status','1',true) !!} {{Lang::get('lang.active')}}
|
||||
</div>
|
||||
<div class="col-xs-3">
|
||||
{!! Form::radio('status','0',null) !!}{{Lang::get('lang.inactive')}}
|
||||
{!! Form::radio('status','0',null) !!} {{Lang::get('lang.inactive')}}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
@@ -8,30 +8,6 @@
|
||||
<!-- Bootstrap 3.3.2 -->
|
||||
<link href="{{asset("lb-faveo/css/bootstrap.min.css")}}" rel="stylesheet" type="text/css" />
|
||||
<!-- Font Awesome Icons -->
|
||||
<style>
|
||||
span.stars, span.stars span {
|
||||
display: block;
|
||||
background: url({!! URL::asset('lb-faveo/dist/images/stars.png'); !!}) 0 -16px repeat-x;
|
||||
width: 80px;
|
||||
height: 16px;
|
||||
}
|
||||
|
||||
span.stars span {
|
||||
background-position: 0 0;
|
||||
}
|
||||
</style>
|
||||
<style>
|
||||
span.stars2, span.stars2 span {
|
||||
display: block;
|
||||
background: url({!! URL::asset('lb-faveo/dist/images/stars.png'); !!}) 0 -16px repeat-x;
|
||||
width: 80px;
|
||||
height: 16px;
|
||||
}
|
||||
|
||||
span.stars2 span {
|
||||
background-position: 0 0;
|
||||
}
|
||||
</style>
|
||||
<link href="{{asset("lb-faveo/css/font-awesome.min.css")}}" rel="stylesheet" type="text/css" />
|
||||
<!-- Ionicons -->
|
||||
<link href="{{asset("lb-faveo/css/ionicons.min.css")}}" rel="stylesheet">
|
||||
@@ -52,15 +28,15 @@ span.stars2 span {
|
||||
<link type="text/css" href="{{asset("lb-faveo/css/jquery.ui.css")}}" rel="stylesheet">
|
||||
<link type="text/css" href="{{asset("lb-faveo/plugins/datatables/dataTables.bootstrap.css")}}" rel="stylesheet">
|
||||
<link href="{{asset("lb-faveo/plugins/bootstrap-wysihtml5/bootstrap3-wysihtml5.min.css")}}" rel="stylesheet" type="text/css" />
|
||||
<!-- <link type="text/css" href="http://code.jquery.com/ui/1.9.1/themes/redmond/jquery-ui.css" rel="stylesheet"> -->
|
||||
<link rel="stylesheet" type="text/css" href="{{asset("lb-faveo/css/faveo-css.css")}}">
|
||||
|
||||
<link href="{{asset("lb-faveo/css/jquery.rating.css")}}" rel="stylesheet" type="text/css" />
|
||||
<!--[if lt IE 9]>
|
||||
<script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
|
||||
<script src="https://oss.maxcdn.com/libs/respond.js/1.3.0/respond.min.js"></script>
|
||||
<![endif]-->
|
||||
<script src="https://code.jquery.com/jquery-2.1.4.js" type="text/javascript"></script>
|
||||
<script src="http://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
|
||||
<!-- <script src="{{asset("lb-faveo/js/jquery-2.1.4.js")}}" type="text/javascript"></script>
|
||||
<script src="{{asset("lb-faveo/js/jquery2.1.1.min.js")}}" type="text/javascript"></script>-->
|
||||
<script src="{{asset("lb-faveo/js/jquery-2.1.4.js")}}" type="text/javascript"></script>
|
||||
<script src="{{asset("lb-faveo/js/jquery2.1.1.min.js")}}" type="text/javascript"></script>
|
||||
|
||||
@yield('HeadInclude')
|
||||
</head>
|
||||
@@ -318,7 +294,9 @@ $group = App\Model\helpdesk\Agent\Groups::where('id', '=', $agent_group)->where(
|
||||
<strong>{!! Lang::get('lang.copyright') !!} © {!! date('Y') !!} <a href="{!! $company->website !!}">{!! $company->company_name !!}</a>.</strong> {!! Lang::get('lang.all_rights_reserved') !!}. {!! Lang::get('lang.powered_by') !!} <a href="http://www.faveohelpdesk.com/">Faveo</a>
|
||||
</footer>
|
||||
</div><!-- ./wrapper -->
|
||||
|
||||
{{-- // <script src="http://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script> --}}
|
||||
|
||||
<script src="{{asset("lb-faveo/js/ajax-jquery.min.js")}}"></script>
|
||||
|
||||
{{-- // <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-datetimepicker/4.7.14/js/bootstrap-datetimepicker.min.js"></script> --}}
|
||||
|
||||
@@ -347,6 +325,7 @@ $group = App\Model\helpdesk\Agent\Groups::where('id', '=', $agent_group)->where(
|
||||
<script type="text/javascript" src="{{asset("lb-faveo/js/jquery.dataTables1.10.10.min.js")}}"></script>
|
||||
|
||||
<script type="text/javascript" src="{{asset("lb-faveo/plugins/datatables/dataTables.bootstrap.js")}}"></script>
|
||||
<script src="{{asset("lb-faveo/js/jquery.rating.pack.js")}}" type="text/javascript"></script>
|
||||
|
||||
<script>
|
||||
$(function() {
|
||||
|
Reference in New Issue
Block a user