This commit is contained in:
RafficMohammed
2023-02-17 13:25:50 +05:30
parent 2381fd7cf5
commit 67950fc78f
891 changed files with 102300 additions and 138477 deletions

View File

@@ -33,7 +33,7 @@ class="nav-link active"
<!-- content -->
@section('content')
<!-- open a form -->
{!! Form::open(array('action' => 'Admin\helpdesk\GroupController@store' , 'method' => 'post') )!!}
{!! Form::open(array('route' => 'groups.store' , 'method' => 'post') )!!}
@if(Session::has('errors'))
<div class="alert alert-danger alert-dismissable">
<i class="fas fa-ban"></i>

View File

@@ -32,7 +32,7 @@ class="nav-link active"
<!-- content -->
@section('content')
<!-- open a form -->
{!! Form::open(['action' => 'Admin\helpdesk\HelptopicController@store', 'method' => 'post']) !!}
{!! Form::open(['route' => 'helptopic.store', 'method' => 'post']) !!}
@if(Session::has('errors'))
<?php //dd($errors); ?>
<div class="alert alert-danger alert-dismissable">

View File

@@ -32,7 +32,7 @@ class="nav-link active"
<!-- content -->
@section('content')
<!-- open a form -->
{!! Form::open(['action' => 'Admin\helpdesk\SlaController@store', 'method' => 'post']) !!}
{!! Form::open(['route' => 'sla.store', 'method' => 'post']) !!}
@if(Session::has('errors'))
<?php //dd($errors); ?>
<div class="alert alert-danger alert-dismissable">

View File

@@ -9,7 +9,7 @@
<script type="text/javascript" src="{{asset('lb-faveo/dist/js/nicEdit.js')}}"></script>
@section('content')
{!! Form::open(array('action' => 'Admin\kb\CategoryController@store' , 'method' => 'post') )!!}
{!! Form::open(array('route' => 'category.store' , 'method' => 'post') )!!}
<div class="box box-primary">
<div class="box-header">
<h4 class="box-title">Add Category</h4> {!! Form::submit('save',['class'=>'form-group btn btn-primary pull-right'])!!}

View File

@@ -51,13 +51,13 @@
<thead>
<tr>
<td>Date</td>
@if(array_key_exists('open', $table_datas[1]))
@if($table_datas[1]->open)
<td>Created</td>
@endif
@if(array_key_exists('closed', $table_datas[1]))
@if($table_datas[1]->closed)
<td>Closed</td>
@endif
@if(array_key_exists('reopened', $table_datas[1]))
@if($table_datas[1]->reopened)
<td>Reopened</td>
@endif
</tr>
@@ -71,15 +71,15 @@
foreach ($table_datas as $table_data) {
echo '<tr>';
echo '<td>' . $table_data->date . '</td>';
if (array_key_exists('open', $table_data)) {
if ($table_data->open) {
echo '<td>' . $table_data->open . '</td>';
$table_open += $table_data->open;
}
if (array_key_exists('closed', $table_data)) {
if ($table_data->closed) {
echo '<td>' . $table_data->closed . '</td>';
$table_closed += $table_data->closed;
}
if (array_key_exists('reopened', $table_data)) {
if ($table_data->reopened) {
echo '<td>' . $table_data->reopened . '</td>';
$table_reopened += $table_data->reopened;
}
@@ -95,17 +95,17 @@
<span style="color:#F7CF07;">TOTAL IN PROGRESS</span> : {!! $table_datas[1]->inprogress !!}
</td>
<td>
@if(array_key_exists('open', $table_data))
@if($table_data->open)
<span style="color:blue;">TOTAL CREATED</span> : {!! $table_open !!}
@endif
</td>
<td>
@if(array_key_exists('reopened', $table_data))
@if($table_data->reopened)
<span style="color:orange;">TOTAL REOPENED</span> : {!! $table_reopened !!}
@endif
</td>
<td>
@if(array_key_exists('closed', $table_data))
@if($table_data->closed)
<span style="color:#00e765;">TOTAL CLOSED</span> : {!! $table_closed !!}
@endif
</td>

View File

@@ -143,7 +143,7 @@ class="nav-link active"
<i class="fa fa-user"> </i>
{!! Form::label('profile_pic',Lang::get('lang.profile_pic'),['style'=>'font-weight:400;margin-bottom:0px;']) !!}
{!! Form::file('profile_pic',['class' => 'form-file']) !!}
</div>
</div>
</div>
{!! Form::token() !!}
{!! Form::close() !!}

View File

@@ -36,7 +36,7 @@ class="nav-item menu-open"
@section('content')
{!! Form::open(array('action' => 'Agent\kb\ArticleController@store' , 'method' => 'post') )!!}
{!! Form::open(array('route' => 'article.store' , 'method' => 'post') )!!}
@if(Session::has('success'))
<div class="alert alert-success alert-dismissable">
@@ -237,7 +237,7 @@ class="nav-item menu-open"
<div class="modal-dialog">
<div class="modal-content">
{!! Form::open(['method'=>'post','action'=>'Agent\kb\CategoryController@store']) !!}
{!! Form::open(['method'=>'post','route'=>'category.store']) !!}
<div class="modal-header">
<h4 class="modal-title">{{Lang::get('lang.addcategory')}}</h4>

View File

@@ -240,7 +240,7 @@ class="nav-item menu-open"
<div class="modal-content">
{!! Form::open(['method'=>'post','action'=>'Agent\kb\CategoryController@store']) !!}
{!! Form::open(['method'=>'post','route'=>'category.store']) !!}
<div class="modal-header">
<h4 class="modal-title">{{Lang::get('lang.addcategory')}}</h4>

View File

@@ -34,7 +34,7 @@ class="nav-item menu-open"
@stop
@section('content')
{!! Form::open(array('action' => 'Agent\kb\CategoryController@store' , 'method' => 'post') )!!}
{!! Form::open(array('route' => 'category.store' , 'method' => 'post') )!!}
@if(Session::has('success'))
<div class="alert alert-success alert-dismissable">
<i class="fas fa-check-circle"></i>

View File

@@ -36,7 +36,7 @@ class="nav-item menu-open"
@section('content')
{!! Form::open(array('action' => 'Agent\kb\PageController@store' , 'method' => 'post') )!!}
{!! Form::open(array('route' => 'page.store' , 'method' => 'post') )!!}
@if(Session::has('errors'))
<?php //dd($errors); ?>

View File

@@ -62,18 +62,19 @@ if (DB_HOST && DB_USER && DB_NAME) {
$results = [];
// error_reporting(E_ERROR | E_WARNING | E_PARSE | E_NOTICE);
error_reporting(0);
try {
if ($default == 'mysql') {
if(DB_PORT != '' && is_numeric(DB_PORT)) {
$connection = mysqli_connect(DB_HOST, DB_USER, DB_PASS, DB_NAME, DB_PORT);
} else {
$connection = mysqli_connect(DB_HOST, DB_USER, DB_PASS, DB_NAME);
}
if(DB_PORT != '' && is_numeric(DB_PORT)) {
$connection = mysqli_connect(DB_HOST, DB_USER, DB_PASS, DB_NAME, DB_PORT);
} else {
$connection = mysqli_connect(DB_HOST, DB_USER, DB_PASS, DB_NAME);
}
if ($connection) {
$results[] = new TestResult('Connected to database as ' . DB_USER . '@' . DB_HOST . DB_PORT, STATUS_OK);
if (mysqli_select_db($connection, DB_NAME)) {
$results[] = new TestResult('Database "' . DB_NAME . '" selected', STATUS_OK);
$mysqli_version = mysqli_get_server_info($connection);
if (version_compare($mysqli_version, '5') >= 0) {
if (version_compare($mysqli_version, '8') >= 0) {
$results[] = new TestResult('MySQL version is ' . $mysqli_version, STATUS_OK);
// $have_inno = check_have_inno($connection);
$sql = "SHOW TABLES FROM " . DB_NAME;
@@ -86,7 +87,7 @@ if (DB_HOST && DB_USER && DB_NAME) {
$mysqli_ok = false;
}
} else {
$results[] = new TestResult('Your MySQL version is ' . $mysqli_version . '. We recommend upgrading to at least MySQL5!', STATUS_ERROR);
$results[] = new TestResult('Your MySQL version is ' . $mysqli_version . '. We recommend upgrading to at least MySQL8!', STATUS_ERROR);
$mysqli_ok = false;
} // if
} else {
@@ -98,6 +99,11 @@ if (DB_HOST && DB_USER && DB_NAME) {
$mysqli_ok = false;
} // if
}
}catch (\Exception $exception) {
$results[] = new TestResult('Failed to connect to database. ' . $exception->getMessage(), STATUS_ERROR);
$mysqli_ok = false;
}
// elseif($default == 'pgsql') {
// if ($connection2 = pg_connect("'host='.DB_HOST.' port='.DB_PORT.' dbname='.DB_NAME.' user='.DB_USER.' password='.DB_PASS.")) {
// $results[] = new TestResult('Connected to database as ' . DB_USER . '@' . DB_HOST, STATUS_OK);

View File

@@ -30,7 +30,6 @@ foreach($segments as $seg){
"<'row'<'col-sm-6'i><'col-sm-6'p>>",
"sPaginationType": "full_numbers",
"bProcessing": true,
"bServerSide": true,
"lengthMenu": [[10, 25, 50, 100, 500], [10, 25, 50, 100, 500]],
"ajax": {
url: "{{url('filter')}}",
@@ -42,12 +41,22 @@ foreach($segments as $seg){
},
"aaSorting": sort,
"columnDefs": [
{ "searchable": false, "targets": [6,7] },
{"defaultContent": "-",
"targets": "_all"},
{ "visible": last, "targets": 6 },
{"visible": create, "targets":7},
],
"columns":[
{data: "id"},
{data: "title"},
{data: "ticket_number"},
{data: "priority"},
{data: "user_name"},
{data: "assign_user_name"},
{data: "updated_at"},
],
"fnCreatedRow": function (nRow, aData, iDataIndex) {
var str = aData[3];
var str = aData['ticket_number'];
if (str.search("#000") == -1) {
$("td", nRow).css({"background-color": "#F3F3F3", "font-weight": "600", "border-bottom": "solid 0.5px #ddd", "border-right": "solid 0.5px #F3F3F3"});
$("td", nRow).mouseenter(function () {

View File

@@ -32,7 +32,16 @@ foreach($segments as $seg){
d.profiletype = show;
d.searchTerm = searchTerm;
}
}
},
"columns":[
{data: "user_name"},
{data: "email"},
{data: "mobile"},
{data: "active"},
{data: "updated_at"},
{data: "role"},
{data: "Actions"},
],
});
}