Apply fixes from StyleCI
This commit is contained in:

committed by
StyleCI Bot

parent
e98ee6c635
commit
01869a422a
@@ -1464,8 +1464,8 @@ class TicketController extends Controller
|
|||||||
*/
|
*/
|
||||||
public function assign($id)
|
public function assign($id)
|
||||||
{
|
{
|
||||||
$ticket_array = [];
|
$ticket_array = [];
|
||||||
if(strpos($id, ',') !== false) {
|
if (strpos($id, ',') !== false) {
|
||||||
$ticket_array = explode(',', $id);
|
$ticket_array = explode(',', $id);
|
||||||
} else {
|
} else {
|
||||||
array_push($ticket_array, $id);
|
array_push($ticket_array, $id);
|
||||||
@@ -1491,7 +1491,7 @@ class TicketController extends Controller
|
|||||||
$thread->save();
|
$thread->save();
|
||||||
} elseif ($assign_to[0] == 'user') {
|
} elseif ($assign_to[0] == 'user') {
|
||||||
$ticket->assigned_to = $assign_to[1];
|
$ticket->assigned_to = $assign_to[1];
|
||||||
if( $user_detail === null) {
|
if ($user_detail === null) {
|
||||||
$user_detail = User::where('id', '=', $assign_to[1])->first();
|
$user_detail = User::where('id', '=', $assign_to[1])->first();
|
||||||
$assignee = $user_detail->first_name.' '.$user_detail->last_name;
|
$assignee = $user_detail->first_name.' '.$user_detail->last_name;
|
||||||
}
|
}
|
||||||
@@ -1523,6 +1523,7 @@ class TicketController extends Controller
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -2556,12 +2557,13 @@ class TicketController extends Controller
|
|||||||
$name = $from->user_name;
|
$name = $from->user_name;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
$color = "";
|
$color = '';
|
||||||
if($verify->status == 1 || $verify->status == '1') {
|
if ($verify->status == 1 || $verify->status == '1') {
|
||||||
if($from->active == 0 || $from->active == '0') {
|
if ($from->active == 0 || $from->active == '0') {
|
||||||
$color = "<i class='fa fa-exclamation-triangle'></i>";
|
$color = "<i class='fa fa-exclamation-triangle'></i>";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return "<a href='".$url."' title='".Lang::get('lang.see-profile1').' '.ucfirst($from->user_name).'''.Lang::get('lang.see-profile2')."'><span style='color:#508983'>".ucfirst(str_limit($name, 30)).' <span style="color:#f75959">'.$color.'</span></span></a>';
|
return "<a href='".$url."' title='".Lang::get('lang.see-profile1').' '.ucfirst($from->user_name).'''.Lang::get('lang.see-profile2')."'><span style='color:#508983'>".ucfirst(str_limit($name, 30)).' <span style="color:#f75959">'.$color.'</span></span></a>';
|
||||||
})
|
})
|
||||||
// ->addColumn('Last Replier', function ($ticket) {
|
// ->addColumn('Last Replier', function ($ticket) {
|
||||||
|
@@ -1005,15 +1005,17 @@ class UserController extends Controller
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @category function to get user details and show in select field
|
* @category function to get user details and show in select field
|
||||||
|
*
|
||||||
* @param null
|
* @param null
|
||||||
|
*
|
||||||
* @return data
|
* @return data
|
||||||
*/
|
*/
|
||||||
public function getAgentDetails()
|
public function getAgentDetails()
|
||||||
{
|
{
|
||||||
$users = User::where('role', '<>', 'user')->where('active', '=', 1)->get();
|
$users = User::where('role', '<>', 'user')->where('active', '=', 1)->get();
|
||||||
foreach ($users as $user) {
|
foreach ($users as $user) {
|
||||||
echo "<option value='user_$user->id'>".$user->full_name.'</option>';
|
echo "<option value='user_$user->id'>".$user->full_name.'</option>';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -724,7 +724,7 @@ Route::group(['middleware' => ['web']], function () {
|
|||||||
// route to get the data on change
|
// route to get the data on change
|
||||||
Route::post('help-topic-report/{date1}/{date2}/{id}', ['as' => 'report.helptopic', 'uses' => 'Agent\helpdesk\ReportController@chartdataHelptopic']); /* To show dashboard pages */
|
Route::post('help-topic-report/{date1}/{date2}/{id}', ['as' => 'report.helptopic', 'uses' => 'Agent\helpdesk\ReportController@chartdataHelptopic']); /* To show dashboard pages */
|
||||||
Route::post('help-topic-pdf', ['as' => 'help.topic.pdf', 'uses' => 'Agent\helpdesk\ReportController@helptopicPdf']);
|
Route::post('help-topic-pdf', ['as' => 'help.topic.pdf', 'uses' => 'Agent\helpdesk\ReportController@helptopicPdf']);
|
||||||
// Route to get details of agents
|
// Route to get details of agents
|
||||||
Route::post('get-agents', ['as' => 'get-agents', 'uses' => 'Agent\helpdesk\UserController@getAgentDetails']);
|
Route::post('get-agents', ['as' => 'get-agents', 'uses' => 'Agent\helpdesk\UserController@getAgentDetails']);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@@ -1549,5 +1549,5 @@ return [
|
|||||||
/*********** Updated 3-12-2016 **********/
|
/*********** Updated 3-12-2016 **********/
|
||||||
'activate' => 'Activate',
|
'activate' => 'Activate',
|
||||||
'system-email-not-configured' => 'We are unable to process email request as the system has no configured email for sending mails. Please contact and report system admin.',
|
'system-email-not-configured' => 'We are unable to process email request as the system has no configured email for sending mails. Please contact and report system admin.',
|
||||||
'assign-ticket' => 'Assign tickets',
|
'assign-ticket' => 'Assign tickets',
|
||||||
];
|
];
|
||||||
|
Reference in New Issue
Block a user