@@ -98,23 +113,26 @@ function deletePopUp($id, $url, $title = "Delete", $class = "btn btn-sm btn-dang
';
}
-function isInstall() {
+function isInstall()
+{
$check = false;
$env = base_path('.env');
if (\File::exists($env) && env('DB_INSTALL') == 1) {
$check = true;
}
+
return $check;
}
-function faveotime($date, $hour = 0, $min = 0, $sec = 0) {
+function faveotime($date, $hour = 0, $min = 0, $sec = 0)
+{
if (is_bool($hour) && $hour == true) {
$hour = $date->hour;
}
@@ -125,5 +143,6 @@ function faveotime($date, $hour = 0, $min = 0, $sec = 0) {
$sec = $date->second;
}
$date1 = \Carbon\Carbon::create($date->year, $date->month, $date->day, $hour, $min, $sec);
+
return $date1->hour($hour)->minute($min)->second($sec);
}
diff --git a/app/Http/routes.php b/app/Http/routes.php
index d36a3ed36..131494175 100644
--- a/app/Http/routes.php
+++ b/app/Http/routes.php
@@ -11,15 +11,14 @@
|
*/
Route::group(['middleware' => ['web']], function () {
-
Route::group(['middleware' => 'update', 'middleware' => 'install'], function () {
Route::controllers([
- 'auth' => 'Auth\AuthController',
+ 'auth' => 'Auth\AuthController',
'password' => 'Auth\PasswordController',
]);
Route::get('social/login/redirect/{provider}/{redirect?}', ['uses' => 'Auth\AuthController@redirectToProvider', 'as' => 'social.login']);
- Route::get('social/login/{provider}', ['as'=>'social.login.callback','uses'=>'Auth\AuthController@handleProviderCallback']);
- Route::get('social-sync', ['as'=>'social.sync','uses'=>'Client\helpdesk\GuestController@sync']);
+ Route::get('social/login/{provider}', ['as'=>'social.login.callback', 'uses'=>'Auth\AuthController@handleProviderCallback']);
+ Route::get('social-sync', ['as'=>'social.sync', 'uses'=>'Client\helpdesk\GuestController@sync']);
});
/*
@@ -29,44 +28,29 @@ Route::group(['middleware' => ['web']], function () {
| Here is defining entire routes for the Admin Panel
|
*/
- Route::get('password/email/{one?}/{two?}/{three?}/{four?}/{five?}',['as' => 'password.email', 'uses' => 'Auth\PasswordController@getEmail']);
- Breadcrumbs::register('password.email', function ($breadcrumbs) {
- $breadcrumbs->parent('/');
- $breadcrumbs->push('Login', url('auth/login'));
- $breadcrumbs->push('Forgot Password', url('password/email'));
- });
+ Route::get('password/email/{one?}/{two?}/{three?}/{four?}/{five?}', ['as' => 'password.email', 'uses' => 'Auth\PasswordController@getEmail']);
+ Breadcrumbs::register('password.email', function ($breadcrumbs) {
+ $breadcrumbs->parent('/');
+ $breadcrumbs->push('Login', url('auth/login'));
+ $breadcrumbs->push('Forgot Password', url('password/email'));
+ });
-
// register page
- Route::get('auth/register/{one?}/{two?}/{three?}/{four?}/{five?}',['as' => 'auth.register', 'uses' => 'Auth\AuthController@getRegister']);
- Breadcrumbs::register('auth.register', function ($breadcrumbs) {
- $breadcrumbs->parent('/');
- $breadcrumbs->push('Login', url('auth/login'));
- $breadcrumbs->push('Create Account', url('auth/register'));
- });
-
+ Route::get('auth/register/{one?}/{two?}/{three?}/{four?}/{five?}', ['as' => 'auth.register', 'uses' => 'Auth\AuthController@getRegister']);
+ Breadcrumbs::register('auth.register', function ($breadcrumbs) {
+ $breadcrumbs->parent('/');
+ $breadcrumbs->push('Login', url('auth/login'));
+ $breadcrumbs->push('Create Account', url('auth/register'));
+ });
// Auth login
- Route::get('auth/login/{one?}/{two?}/{three?}/{four?}/{five?}',['as' => 'auth.login', 'uses' => 'Auth\AuthController@getLogin']);
- Breadcrumbs::register('auth.login', function ($breadcrumbs) {
- $breadcrumbs->parent('/');
- $breadcrumbs->push('Create Account', url('auth/register'));
- $breadcrumbs->push('Login', url('auth/login'));
-
- });
+ Route::get('auth/login/{one?}/{two?}/{three?}/{four?}/{five?}', ['as' => 'auth.login', 'uses' => 'Auth\AuthController@getLogin']);
+ Breadcrumbs::register('auth.login', function ($breadcrumbs) {
+ $breadcrumbs->parent('/');
+ $breadcrumbs->push('Create Account', url('auth/register'));
+ $breadcrumbs->push('Login', url('auth/login'));
+ });
-
-
-
-
-
-
-
-
-
-
-
-
Route::get('account/activate/{token}', ['as' => 'account.activate', 'uses' => 'Auth\AuthController@accountActivate']);
Route::get('getmail/{token}', 'Auth\AuthController@getMail');
Route::get('verify-otp', ['as' => 'otp-verification', 'uses' => 'Auth\AuthController@getVerifyOTP']);
@@ -84,7 +68,7 @@ Route::group(['middleware' => ['web']], function () {
//Notification marking
Route::post('mark-read/{id}', 'Common\NotificationController@markRead');
Route::post('mark-all-read/{id}', 'Common\NotificationController@markAllRead');
-
+
Route::get('notifications-list', ['as' => 'notification.list', 'uses' => 'Common\NotificationController@show']);
Route::post('notification-delete/{id}', ['as' => 'notification.delete', 'uses' => 'Common\NotificationController@delete']);
Route::get('notifications-list/delete', ['as' => 'notification.delete.all', 'uses' => 'Common\NotificationController@deleteAll']);
@@ -94,27 +78,27 @@ Route::group(['middleware' => ['web']], function () {
Route::post('delete-notification-log', 'Admin\helpdesk\SettingsController@deleteNotificationLog');
// resource is a function to process create,edit,read and delete
Route::resource('groups', 'Admin\helpdesk\GroupController'); // for group module, for CRUD
-
+
Route::resource('departments', 'Admin\helpdesk\DepartmentController'); // for departments module, for CRUD
-
+
Route::resource('teams', 'Admin\helpdesk\TeamController'); // in teams module, for CRUD
Route::get('/teams/show/{id}', ['as' => 'teams.show', 'uses' => 'Admin\helpdesk\TeamController@show']); /* Get Team View */
Breadcrumbs::register('teams.show', function ($breadcrumbs) {
- $breadcrumbs->parent('teams.index');
- $breadcrumbs->push(Lang::get('lang.show'), url('teams/{teams}/show'));
- });
-Route::get('getshow/{id}', ['as' => 'teams.getshow.list', 'uses' => 'Admin\helpdesk\TeamController@getshow']);
+ $breadcrumbs->parent('teams.index');
+ $breadcrumbs->push(Lang::get('lang.show'), url('teams/{teams}/show'));
+ });
+ Route::get('getshow/{id}', ['as' => 'teams.getshow.list', 'uses' => 'Admin\helpdesk\TeamController@getshow']);
Route::resource('agents', 'Admin\helpdesk\AgentController'); // in agents module, for CRUD
-
+
Route::resource('emails', 'Admin\helpdesk\EmailsController'); // in emails module, for CRUD
-
+
Route::resource('banlist', 'Admin\helpdesk\BanlistController'); // in banlist module, for CRUD
-
+
Route::get('banlist/delete/{id}', ['as' => 'banlist.delete', 'uses' => 'Admin\helpdesk\BanlistController@delete']); // in banlist module, for CRUD
/*
* Templates
*/
-
+
Route::resource('templates', 'Common\TemplateController');
Route::get('get-templates', 'Common\TemplateController@GetTemplates');
Route::get('templates-delete', 'Common\TemplateController@destroy');
@@ -132,96 +116,96 @@ Route::get('getshow/{id}', ['as' => 'teams.getshow.list', 'uses' => 'Admin\helpd
Route::post('create-templates', ['as' => 'template.createnew', 'uses' => 'Admin\helpdesk\TemplateController@createtemplate']);
Route::get('delete-template/{template}/{path}', ['as' => 'templates.delete', 'uses' => 'Admin\helpdesk\TemplateController@deletetemplate']);
Route::get('getdiagno', ['as' => 'getdiagno', 'uses' => 'Admin\helpdesk\TemplateController@formDiagno']); // for getting form for diagnostic
-
+
Route::post('postdiagno', ['as' => 'postdiagno', 'uses' => 'Admin\helpdesk\TemplateController@postDiagno']); // for getting form for diagnostic
Route::resource('helptopic', 'Admin\helpdesk\HelptopicController'); // in helptopics module, for CRUD
-
+
Route::resource('sla', 'Admin\helpdesk\SlaController'); // in SLA Plan module, for CRUD
-
+
Route::resource('forms', 'Admin\helpdesk\FormController');
Route::get('forms/add-child/{formid}', ['as' => 'forms.add.child', 'uses' => 'Admin\helpdesk\FormController@addChildForm']);
Route::post('forms/field/{fieldid}/child', [
- 'as' => 'forms.field.child',
+ 'as' => 'forms.field.child',
'uses' => 'Admin\helpdesk\FormController@addChild',
]);
Route::get('forms/render/child', [
- 'as' => 'forms.field.child',
+ 'as' => 'forms.field.child',
'uses' => 'Admin\helpdesk\FormController@renderChild',
]);
-
+
Route::get('delete-forms/{id}', ['as' => 'forms.delete', 'uses' => 'Admin\helpdesk\FormController@delete']);
//$router->model('id','getcompany');
Route::get('job-scheduler', ['as' => 'get.job.scheder', 'uses' => 'Admin\helpdesk\SettingsController@getSchedular']); //to get ob scheduler form page
-
+
Route::patch('post-scheduler', ['as' => 'post.job.scheduler', 'uses' => 'Admin\helpdesk\SettingsController@postSchedular']); //to update job scheduler
Route::get('agent-profile-page/{id}', ['as' => 'agent.profile.page', 'uses' => 'Admin\helpdesk\AgentController@agent_profile']);
Route::get('getcompany', ['as' => 'getcompany', 'uses' => 'Admin\helpdesk\SettingsController@getcompany']); // direct to company setting page
-
+
Route::patch('postcompany/{id}', 'Admin\helpdesk\SettingsController@postcompany'); // Updating the Company table with requests
Route::get('delete-logo', ['as' => 'delete.logo', 'uses' => 'Admin\helpdesk\SettingsController@deleteLogo']); // deleting a logo
Route::get('getsystem', ['as' => 'getsystem', 'uses' => 'Admin\helpdesk\SettingsController@getsystem']); // direct to system setting page
-
+
Route::patch('postsystem/{id}', 'Admin\helpdesk\SettingsController@postsystem'); // Updating the System table with requests
Route::get('getticket', ['as' => 'getticket', 'uses' => 'Admin\helpdesk\SettingsController@getticket']); // direct to ticket setting page
-
+
Route::patch('postticket/{id}', 'Admin\helpdesk\SettingsController@postticket'); // Updating the Ticket table with requests
Route::get('getemail', ['as' => 'getemail', 'uses' => 'Admin\helpdesk\SettingsController@getemail']); // direct to email setting page
-
- Route::get('ticket/tooltip',['as'=>'ticket.tooltip','uses'=>'Agent\helpdesk\TicketController@getTooltip']);
-
+
+ Route::get('ticket/tooltip', ['as'=>'ticket.tooltip', 'uses'=>'Agent\helpdesk\TicketController@getTooltip']);
+
Route::patch('postemail/{id}', 'Admin\helpdesk\SettingsController@postemail'); // Updating the Email table with requests
// Route::get('getaccess', 'Admin\helpdesk\SettingsController@getaccess'); // direct to access setting page
// Route::patch('postaccess/{id}', 'Admin\helpdesk\SettingsController@postaccess'); // Updating the Access table with requests
Route::get('getresponder', ['as' => 'getresponder', 'uses' => 'Admin\helpdesk\SettingsController@getresponder']); // direct to responder setting page
-
+
Route::patch('postresponder/{id}', 'Admin\helpdesk\SettingsController@postresponder'); // Updating the Responder table with requests
Route::get('getalert', ['as' => 'getalert', 'uses' => 'Admin\helpdesk\SettingsController@getalert']); // direct to alert setting page
-
+
Route::patch('postalert/{id}', 'Admin\helpdesk\SettingsController@postalert'); // Updating the Alert table with requests
// Templates
-
+
Route::get('security', ['as' => 'security.index', 'uses' => 'Admin\helpdesk\SecurityController@index']); // direct to security setting page
Route::resource('close-workflow', 'Admin\helpdesk\CloseWrokflowController'); // direct to security setting page
-
+
Route::resource('close-workflow', 'Admin\helpdesk\CloseWrokflowController'); // direct to security setting page
Route::patch('security/{id}', ['as' => 'securitys.update', 'uses' => 'Admin\helpdesk\SecurityController@update']); // direct to security setting page
Route::get('setting-status', ['as' => 'statuss.index', 'uses' => 'Admin\helpdesk\SettingsController@getStatuses']); // direct to status setting page
-
+
Route::patch('status-update/{id}', ['as' => 'statuss.update', 'uses' => 'Admin\helpdesk\SettingsController@editStatuses']);
-
+
Route::get('status/edit/{id}', ['as' => 'status.edit', 'uses' => 'Admin\helpdesk\SettingsController@getEditStatuses']);
Route::post('status-create', ['as' => 'statuss.create', 'uses' => 'Admin\helpdesk\SettingsController@createStatuses']);
Route::get('status-delete/{id}', ['as' => 'statuss.delete', 'uses' => 'Admin\helpdesk\SettingsController@deleteStatuses']);
Route::get('ticket/status/{id}/{state}', ['as' => 'statuss.state', 'uses' => 'Agent\helpdesk\TicketController@updateStatuses']);
Route::get('getratings', ['as' => 'ratings.index', 'uses' => 'Admin\helpdesk\SettingsController@RatingSettings']);
-
+
Route::get('deleter/{rating}', ['as' => 'ratings.delete', 'uses' => 'Admin\helpdesk\SettingsController@RatingDelete']);
-
+
Route::get('create-ratings', ['as' => 'rating.create', 'uses' => 'Admin\helpdesk\SettingsController@createRating']);
Route::post('store-ratings', ['as' => 'rating.store', 'uses' => 'Admin\helpdesk\SettingsController@storeRating']);
-
+
Route::get('editratings/{slug}', ['as' => 'rating.edit', 'uses' => 'Admin\helpdesk\SettingsController@editRatingSettings']);
Route::patch('postratings/{slug}', ['as' => 'settings.rating', 'uses' => 'Admin\helpdesk\SettingsController@PostRatingSettings']);
Route::get('remove-user-org/{id}', ['as' => 'removeuser.org', 'uses' => 'Agent\helpdesk\UserController@removeUserOrg']);
Route::get('admin-profile', ['as' => 'admin-profile', 'uses' => 'Admin\helpdesk\ProfileController@getProfile']); /* User profile edit get */
-
+
Route::get('admin-profile-edit', 'Admin\helpdesk\ProfileController@getProfileedit'); /* Admin profile get */
Route::patch('admin-profile', 'Admin\helpdesk\ProfileController@postProfileedit'); /* Admin Profile Post */
Route::patch('admin-profile-password', 'Admin\helpdesk\ProfileController@postProfilePassword'); /* Admin Profile Password Post */
Route::get('widgets', ['as' => 'widgets', 'uses' => 'Common\SettingsController@widgets']); /* get the create footer page for admin */
-
+
Route::get('list-widget', 'Common\SettingsController@list_widget'); /* get the list widget page for admin */
Route::post('edit-widget/{id}', 'Common\SettingsController@edit_widget'); /* get the create footer page for admin */
Route::get('social-buttons', ['as' => 'social.buttons', 'uses' => 'Common\SettingsController@social_buttons']); /* get the create footer page for admin */
-
+
Route::get('list-social-buttons', ['as' => 'list.social.buttons', 'uses' => 'Common\SettingsController@list_social_buttons']); /* get the list widget page for admin */
Route::post('edit-widget/{id}', 'Common\SettingsController@edit_social_buttons'); /* get the create footer page for admin */
Route::get('version-check', ['as' => 'version-check', 'uses' => 'Common\SettingsController@version_check']); /* Check version */
Route::post('post-version-check', ['as' => 'post-version-check', 'uses' => 'Common\SettingsController@post_version_check']); /* post Check version */
Route::get('admin', ['as' => 'setting', 'uses' => 'Admin\helpdesk\SettingsController@settings']);
-
+
Route::get('plugins', ['as' => 'plugins', 'uses' => 'Common\SettingsController@Plugins']);
-
+
Route::get('getplugin', ['as' => 'get.plugin', 'uses' => 'Common\SettingsController@GetPlugin']);
Route::post('post-plugin', ['as' => 'post.plugin', 'uses' => 'Common\SettingsController@PostPlugins']);
Route::get('getconfig', ['as' => 'get.config', 'uses' => 'Common\SettingsController@fetchConfig']);
@@ -229,7 +213,7 @@ Route::get('getshow/{id}', ['as' => 'teams.getshow.list', 'uses' => 'Admin\helpd
Route::get('plugin/status/{slug}', ['as' => 'status.plugin', 'uses' => 'Common\SettingsController@StatusPlugin']);
//Routes for showing language table and switching language
Route::get('languages', ['as' => 'LanguageController', 'uses' => 'Admin\helpdesk\LanguageController@index']);
-
+
Route::get('get-languages', ['as' => 'getAllLanguages', 'uses' => 'Admin\helpdesk\LanguageController@getLanguages']);
Route::get('change-language/{lang}', ['as' => 'lang.switch', 'uses' => 'Admin\helpdesk\LanguageController@switchLanguage']);
//Route for download language template package
@@ -237,20 +221,20 @@ Route::get('getshow/{id}', ['as' => 'teams.getshow.list', 'uses' => 'Admin\helpd
//Routes for language file upload form-----------You may want to use csrf protection for these route--------------
Route::post('language/add', 'Admin\helpdesk\LanguageController@postForm');
Route::get('language/add', ['as' => 'add-language', 'uses' => 'Admin\helpdesk\LanguageController@getForm']);
-
+
//Routes for delete language package
Route::get('delete-language/{lang}', ['as' => 'lang.delete', 'uses' => 'Admin\helpdesk\LanguageController@deleteLanguage']);
Route::get('generate-api-key', 'Admin\helpdesk\SettingsController@GenerateApiKey'); // route to generate api key
Route::post('validating-email-settings', ['as' => 'validating.email.settings', 'uses' => 'Admin\helpdesk\EmailsController@validatingEmailSettings']); // route to check email input validation
Route::post('validating-email-settings-on-update/{id}', ['as' => 'validating.email.settings.update', 'uses' => 'Admin\helpdesk\EmailsController@validatingEmailSettingsUpdate']); // route to check email input validation
Route::get('workflow', ['as' => 'workflow', 'uses' => 'Admin\helpdesk\WorkflowController@index']);
-
+
Route::get('workflow-list', ['as' => 'workflow.list', 'uses' => 'Admin\helpdesk\WorkflowController@workFlowList']);
Route::get('workflow/create', ['as' => 'workflow.create', 'uses' => 'Admin\helpdesk\WorkflowController@create']);
-
+
Route::post('workflow/store', ['as' => 'workflow.store', 'uses' => 'Admin\helpdesk\WorkflowController@store']);
Route::get('workflow/edit/{id}', ['as' => 'workflow.edit', 'uses' => 'Admin\helpdesk\WorkflowController@edit']);
-
+
Route::post('workflow/update/{id}', ['as' => 'workflow.update', 'uses' => 'Admin\helpdesk\WorkflowController@update']);
Route::get('workflow/action-rule/{id}', ['as' => 'workflow.dept', 'uses' => 'Admin\helpdesk\WorkflowController@selectAction']);
Route::get('workflow/delete/{id}', ['as' => 'workflow.delete', 'uses' => 'Admin\helpdesk\WorkflowController@destroy']);
@@ -258,23 +242,23 @@ Route::get('getshow/{id}', ['as' => 'teams.getshow.list', 'uses' => 'Admin\helpd
* Api Settings
*/
Route::get('api', ['as' => 'api.settings.get', 'uses' => 'Common\ApiSettings@show']);
-
+
Route::post('api', ['as' => 'api.settings.post', 'uses' => 'Common\ApiSettings@postSettings']);
/*
* Error and debugging
*/
//route for showing error and debugging setting form page
Route::get('error-and-debugging-options', ['as' => 'err.debug.settings', 'uses' => 'Admin\helpdesk\ErrorAndDebuggingController@showSettings']);
-
+
//route for submit error and debugging setting form page
Route::post('post-settings', ['as' => 'post.error.debug.settings',
- 'uses' => 'Admin\helpdesk\ErrorAndDebuggingController@postSettings',]);
+ 'uses' => 'Admin\helpdesk\ErrorAndDebuggingController@postSettings', ]);
//route to error logs table page
Route::get('show-error-logs', [
- 'as' => 'error.logs',
+ 'as' => 'error.logs',
'uses' => 'Admin\helpdesk\ErrorAndDebuggingController@showErrorLogs',
]);
-
+
/*
* Approval
*/
@@ -282,18 +266,17 @@ Route::get('getshow/{id}', ['as' => 'teams.getshow.list', 'uses' => 'Admin\helpd
Route::post('settingsUpdateApproval/settings', ['as' => 'settingsUpdateApproval.settings', 'uses' => 'Agent\helpdesk\TicketController@settingsUpdateApproval']);
Route::get('/ticket/approval/closed', ['as' => 'closed.approvel.ticket', 'uses' => 'Agent\helpdesk\TicketController@approverClosedTicketList']); /* Get Closed Ticket */
-
+
Route::get('/ticket/get-approval', ['as' => 'get.approval.ticket', 'uses' => 'Agent\helpdesk\TicketController@getApproval']); /* Get tickets in datatable */
Route::get('/ticket/close/get-approval/{id}', ['as' => 'get.close.approval.ticket', 'uses' => 'Agent\helpdesk\TicketController@getCloseapproval']); /* Get tickets in datatable */
-
- /**
+
+ /*
* Labels
*/
-
- Route::resource('labels','Admin\helpdesk\Label\LabelController');
- Route::get('labels-ajax',['as'=>'labels.ajax','uses'=>'Admin\helpdesk\Label\LabelController@ajaxTable']);
+
+ Route::resource('labels', 'Admin\helpdesk\Label\LabelController');
+ Route::get('labels-ajax', ['as'=>'labels.ajax', 'uses'=>'Admin\helpdesk\Label\LabelController@ajaxTable']);
Route::get('labels/delete/{id}', ['as' => 'labels.destroy', 'uses' => 'Admin\helpdesk\Label\LabelController@destroy']);
-
});
/*
|------------------------------------------------------------------
@@ -315,15 +298,12 @@ Route::get('getshow/{id}', ['as' => 'teams.getshow.list', 'uses' => 'Admin\helpd
Route::get('user-export', ['as' => 'user.export', 'uses' => 'Agent\helpdesk\UserController@getExportUser']); /* User router is used to control the CRUD of user */
Route::post('user-export', ['as' => 'user.export.post', 'uses' => 'Agent\helpdesk\UserController@exportUser']); /* User router is used to control the CRUD of user */
-
-
-
Route::get('user-list', ['as' => 'user.list', 'uses' => 'Agent\helpdesk\UserController@user_list']);
-
+
// Route::get('user/delete/{id}', ['as' => 'user.delete' , 'uses' => 'Agent\helpdesk\UserController@destroy']);
Route::resource('organizations', 'Agent\helpdesk\OrganizationController'); /* organization router used to deal CRUD function of organization */
Route::get('get-organization', ['as' => 'org.get.ajax', 'uses' => 'Agent\helpdesk\OrganizationController@getOrgAjax']);
-
+
Route::get('org-list', ['as' => 'org.list', 'uses' => 'Agent\helpdesk\OrganizationController@org_list']);
Route::get('organization-autofill', ['as' => 'post.organization.autofill', 'uses' => 'Agent\helpdesk\OrganizationController@organizationAutofill']); //auto fill organization name
Route::get('org/delete/{id}', ['as' => 'org.delete', 'uses' => 'Agent\helpdesk\OrganizationController@destroy']);
@@ -331,9 +311,8 @@ Route::get('getshow/{id}', ['as' => 'teams.getshow.list', 'uses' => 'Admin\helpd
// Route::post('org-chart-range', ['as' => 'post.org.chart', 'uses' => 'Agent\helpdesk\OrganizationController@orgChartData']);
Route::post('org-chart-range/{id}/{date1}/{date2}', ['as' => 'post.org.chart', 'uses' => 'Agent\helpdesk\OrganizationController@orgChartData']);
Route::get('profile', ['as' => 'profile', 'uses' => 'Agent\helpdesk\UserController@getProfile']); /* User profile get */
-
+
Route::get('profile-edit', ['as' => 'agent-profile-edit', 'uses' => 'Agent\helpdesk\UserController@getProfileedit']); /* User profile edit get */
-
Route::post('verify-number', ['as' => 'agent-verify-number', 'uses' => 'Agent\helpdesk\UserController@resendOTP']);
Route::post('verify-number2', ['as' => 'post-agent-verify-number', 'uses' => 'Agent\helpdesk\UserController@verifyOTP']);
@@ -341,45 +320,45 @@ Route::get('getshow/{id}', ['as' => 'teams.getshow.list', 'uses' => 'Admin\helpd
Route::patch('agent-profile', ['as' => 'agent-profile', 'uses' => 'Agent\helpdesk\UserController@postProfileedit']); /* User Profile Post */
Route::patch('agent-profile-password/{id}', 'Agent\helpdesk\UserController@postProfilePassword'); /* Profile Password Post */
Route::get('canned/list', ['as' => 'canned.list', 'uses' => 'Agent\helpdesk\CannedController@index']); /* Canned list */
-
+
Route::get('canned/create', ['as' => 'canned.create', 'uses' => 'Agent\helpdesk\CannedController@create']); /* Canned create */
-
+
Route::patch('canned/store', ['as' => 'canned.store', 'uses' => 'Agent\helpdesk\CannedController@store']); /* Canned store */
Route::get('canned/edit/{id}', ['as' => 'canned.edit', 'uses' => 'Agent\helpdesk\CannedController@edit']); /* Canned edit */
-
+
Route::patch('canned/update/{id}', ['as' => 'canned.update', 'uses' => 'Agent\helpdesk\CannedController@update']); /* Canned update */
Route::get('canned/show/{id}', ['as' => 'canned.show', 'uses' => 'Agent\helpdesk\CannedController@show']); /* Canned show */
Route::delete('canned/destroy/{id}', ['as' => 'canned.destroy', 'uses' => 'Agent\helpdesk\CannedController@destroy']); /* Canned delete */
Route::get('/test', ['as' => 'thr', 'uses' => 'Agent\helpdesk\MailController@fetchdata']); /* Fetch Emails */
Route::get('/ticket', ['as' => 'ticket', 'uses' => 'Agent\helpdesk\TicketController@ticket_list']); /* Get Ticket */
Route::get('/ticket/inbox', ['as' => 'inbox.ticket', 'uses' => 'Agent\helpdesk\TicketController@inbox_ticket_list']); /* Get Inbox Ticket */
-
+
Route::get('/ticket/get-inbox', ['as' => 'get.inbox.ticket', 'uses' => 'Agent\helpdesk\TicketController@get_inbox']); /* Get tickets in datatable */
Route::get('/ticket/open', ['as' => 'open.ticket', 'uses' => 'Agent\helpdesk\TicketController@open_ticket_list']); /* Get Open Ticket */
-
+
Route::get('/ticket/get-open', ['as' => 'get.open.ticket', 'uses' => 'Agent\helpdesk\TicketController@get_open']); /* Get tickets in datatable */
Route::get('/ticket/answered', ['as' => 'answered.ticket', 'uses' => 'Agent\helpdesk\TicketController@answered_ticket_list']); /* Get Answered Ticket */
-
+
Route::get('/ticket/get-answered', ['as' => 'get.answered.ticket', 'uses' => 'Agent\helpdesk\TicketController@get_answered']); /* Get tickets in datatable */
Route::get('/ticket/myticket', ['as' => 'myticket.ticket', 'uses' => 'Agent\helpdesk\TicketController@myticket_ticket_list']); /* Get Tickets Assigned to logged user */
-
+
Route::get('/ticket/get-myticket', ['as' => 'get.myticket.ticket', 'uses' => 'Agent\helpdesk\TicketController@get_myticket']); /* Get tickets in datatable */
Route::get('/ticket/overdue', ['as' => 'overdue.ticket', 'uses' => 'Agent\helpdesk\TicketController@overdue_ticket_list']); /* Get Overdue Ticket */
-
+
Route::get('/ticket/get-overdue', ['as' => 'get.overdue.ticket', 'uses' => 'Agent\helpdesk\TicketController@getOverdueTickets']); /* Get Overdue Ticket */
Route::get('/ticket/closed', ['as' => 'closed.ticket', 'uses' => 'Agent\helpdesk\TicketController@closed_ticket_list']); /* Get Closed Ticket */
-
+
Route::get('/ticket/get-closed', ['as' => 'get.closed.ticket', 'uses' => 'Agent\helpdesk\TicketController@get_closed']); /* Get tickets in datatable */
Route::get('/ticket/assigned', ['as' => 'assigned.ticket', 'uses' => 'Agent\helpdesk\TicketController@assigned_ticket_list']); /* Get Assigned Ticket */
-
+
Route::get('/ticket/get-assigned', ['as' => 'get.assigned.ticket', 'uses' => 'Agent\helpdesk\TicketController@get_assigned']); /* Get tickets in datatable */
Route::get('/newticket', ['as' => 'newticket', 'uses' => 'Agent\helpdesk\TicketController@newticket']); /* Get Create New Ticket */
-
+
Route::get('/newticket/autofill', ['as' => 'post.newticket.autofill', 'uses' => 'Agent\helpdesk\TicketController@autofill']);
Route::post('/newticket/post', ['as' => 'post.newticket', 'uses' => 'Agent\helpdesk\TicketController@post_newticket']); /* Post Create New Ticket */
Route::get('/thread/{id}', ['as' => 'ticket.thread', 'uses' => 'Agent\helpdesk\TicketController@thread']); /* Get Thread by ID */
-
+
Route::post('/thread/reply/{id}', ['as' => 'ticket.reply', 'uses' => 'Agent\helpdesk\TicketController@reply']); /* Patch Thread Reply */
Route::patch('/internal/note/{id}', ['as' => 'Internal.note', 'uses' => 'Agent\helpdesk\TicketController@InternalNote']); /* Patch Internal Note */
Route::patch('/ticket/assign/{id}', ['as' => 'assign.ticket', 'uses' => 'Agent\helpdesk\TicketController@assign']); /* Patch Ticket assigned to whom */
@@ -393,13 +372,13 @@ Route::get('getshow/{id}', ['as' => 'teams.getshow.list', 'uses' => 'Admin\helpd
Route::get('/ticket/surrender/{id}', ['as' => 'ticket.surrender', 'uses' => 'Agent\helpdesk\TicketController@surrender']); /* Get Ticket Surrender */
Route::get('/aaaa', 'Client\helpdesk\GuestController@ticket_number');
Route::get('trash', ['as' => 'get-trash', 'uses' => 'Agent\helpdesk\TicketController@trash']); /* To show Deleted Tickets */
-
+
Route::get('/ticket/trash', ['as' => 'get.trash.ticket', 'uses' => 'Agent\helpdesk\TicketController@get_trash']); /* Get tickets in datatable */
Route::get('unassigned', ['as' => 'unassigned', 'uses' => 'Agent\helpdesk\TicketController@unassigned']); /* To show Unassigned Tickets */
-
+
Route::get('/ticket/unassigned', ['as' => 'get.unassigned.ticket', 'uses' => 'Agent\helpdesk\TicketController@get_unassigned']); /* Get tickets in datatable */
Route::get('dashboard', ['as' => 'dashboard', 'uses' => 'Agent\helpdesk\DashboardController@index']); /* To show dashboard pages */
-
+
Route::get('agen', 'Agent\helpdesk\DashboardController@ChartData');
Route::get('image/{id}', ['as' => 'image', 'uses' => 'Agent\helpdesk\MailController@get_data']); /* get image */
Route::get('thread/auto/{id}', 'Agent\helpdesk\TicketController@autosearch');
@@ -412,17 +391,17 @@ Route::get('getshow/{id}', ['as' => 'teams.getshow.list', 'uses' => 'Admin\helpd
// Route::get('message' , 'MessageController@show');
Route::post('lock', ['as' => 'lock', 'uses' => 'Agent\helpdesk\TicketController@lock']);
Route::patch('user-org-assign/{id}', ['as' => 'user.assign.org', 'uses' => 'Agent\helpdesk\UserController@UserAssignOrg']);
- Route::patch('user-org-edit-assign/{id}', ['as' => 'user.editassign.org', 'uses' => 'Agent\helpdesk\UserController@UsereditAssignOrg']);
+ Route::patch('user-org-edit-assign/{id}', ['as' => 'user.editassign.org', 'uses' => 'Agent\helpdesk\UserController@UsereditAssignOrg']);
Route::patch('/user-org/{id}', 'Agent\helpdesk\UserController@User_Create_Org');
Route::patch('/head-org/{id}', 'Agent\helpdesk\OrganizationController@Head_Org');
// Department ticket
Route::get('/{dept}/open', ['as' => 'dept.open.ticket', 'uses' => 'Agent\helpdesk\TicketController@deptopen']); // Open
Route::get('tickets/{dept}/{status}', ['as' => 'dept.ticket', 'uses' => 'Agent\helpdesk\TicketController@deptTicket']); // Open
-
+
Route::get('/{dept}/assigned', ['as' => 'dept.inprogress.ticket', 'uses' => 'Agent\helpdesk\TicketController@deptinprogress']); // Inprogress
-
+
Route::get('/{dept}/closed', ['as' => 'dept.closed.ticket', 'uses' => 'Agent\helpdesk\TicketController@deptclose']); // Closed
-
+
Route::post('rating/{id}', ['as' => 'ticket.rating', 'uses' => 'Agent\helpdesk\TicketController@rating']); /* Get overall Ratings */
Route::post('rating2/{id}', ['as' => 'ticket.rating2', 'uses' => 'Agent\helpdesk\TicketController@ratingReply']); /* Get reply Ratings */
// To check and lock tickets
@@ -443,29 +422,28 @@ Route::get('getshow/{id}', ['as' => 'teams.getshow.list', 'uses' => 'Admin\helpd
// route for graphical reporting
Route::get('report', ['as' => 'report.index', 'uses' => 'Agent\helpdesk\ReportController@index']); /* To show dashboard pages */
-
+
// default route to get the data for the first time
Route::get('help-topic-report', 'Agent\helpdesk\ReportController@chartdataHelptopic');
// 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-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']);
-
- /**
+
+ /*
* Label
*/
- Route::get('labels-ticket',['as'=>'labels.ticket','uses'=>'Admin\helpdesk\Label\LabelController@attachTicket']);
- Route::get('json-labels',['as'=>'labels.json','uses'=>'Admin\helpdesk\Label\LabelController@getLabel']);
- Route::get('filter',['as'=>'filter','uses'=>'Agent\helpdesk\Filter\FilterController@getFilter']);
-
- /**
+ Route::get('labels-ticket', ['as'=>'labels.ticket', 'uses'=>'Admin\helpdesk\Label\LabelController@attachTicket']);
+ Route::get('json-labels', ['as'=>'labels.json', 'uses'=>'Admin\helpdesk\Label\LabelController@getLabel']);
+ Route::get('filter', ['as'=>'filter', 'uses'=>'Agent\helpdesk\Filter\FilterController@getFilter']);
+
+ /*
* Tags
*/
-
- Route::get('add-tag',['as'=>'tag.add','uses'=>'Agent\helpdesk\Filter\TagController@addToFilter']);
- Route::get('get-tag',['as'=>'tag.get','uses'=>'Agent\helpdesk\Filter\TagController@getTag']);
-
+
+ Route::get('add-tag', ['as'=>'tag.add', 'uses'=>'Agent\helpdesk\Filter\TagController@addToFilter']);
+ Route::get('get-tag', ['as'=>'tag.get', 'uses'=>'Agent\helpdesk\Filter\TagController@getTag']);
});
/*
@@ -492,7 +470,7 @@ Route::get('getshow/{id}', ['as' => 'teams.getshow.list', 'uses' => 'Admin\helpd
// });
Route::any('getdata', function () {
$term = Illuminate\Support\Str::lower(Input::get('term'));
- $data = Illuminate\Support\Facades\DB::table('tickets')->distinct()->select('ticket_number')->where('ticket_number', 'LIKE', $term . '%')->groupBy('ticket_number')->take(10)->get();
+ $data = Illuminate\Support\Facades\DB::table('tickets')->distinct()->select('ticket_number')->where('ticket_number', 'LIKE', $term.'%')->groupBy('ticket_number')->take(10)->get();
foreach ($data as $v) {
return [
'value' => $v->ticket_number,
@@ -501,38 +479,37 @@ Route::get('getshow/{id}', ['as' => 'teams.getshow.list', 'uses' => 'Admin\helpd
});
Route::post('postform/{id}', 'Client\helpdesk\FormController@postForm'); /* post the AJAX form for create a ticket by guest user */
- Route::post('postedform', ['as'=>'client.form.post','uses'=>'Client\helpdesk\FormController@postedForm']); /* post the form to store the value */
+ Route::post('postedform', ['as'=>'client.form.post', 'uses'=>'Client\helpdesk\FormController@postedForm']); /* post the form to store the value */
//Route::get('check', 'CheckController@getcheck'); //testing checkbox auto-populate
//Route::post('postcheck/{id}', 'CheckController@postcheck');
Route::get('get-helptopic-form', 'Client\helpdesk\FormController@getCustomForm');
-
+
Route::get('home', ['as' => 'home', 'uses' => 'Client\helpdesk\WelcomepageController@index']); //guest layout
-
+
Route::get('/', ['as' => '/', 'uses' => 'Client\helpdesk\WelcomepageController@index']);
-
+
Route::get('create-ticket', ['as' => 'form', 'uses' => 'Client\helpdesk\FormController@getForm']); //getform
Route::get('mytickets/{id}', ['as' => 'ticketinfo', 'uses' => 'Client\helpdesk\GuestController@singleThread']); //detail ticket information
Route::post('checkmyticket', 'Client\helpdesk\UnAuthController@PostCheckTicket'); //ticket ckeck
Route::get('check_ticket/{id}', ['as' => 'check_ticket', 'uses' => 'Client\helpdesk\GuestController@get_ticket_email']); //detail ticket information
-
+
// show ticket via have a ticket
Route::get('show-ticket/{id}/{code}', ['as' => 'show.ticket', 'uses' => 'Client\helpdesk\UnAuthController@showTicketCode']); //detail ticket information
-
+
//testing ckeditor
//===================================================================================
Route::group(['middleware' => 'role.user', 'middleware' => 'auth'], function () {
Route::get('client-profile', ['as' => 'client.profile', 'uses' => 'Client\helpdesk\GuestController@getProfile']); /* User profile get */
-
+
Route::get('mytickets', ['as' => 'ticket2', 'uses' => 'Client\helpdesk\GuestController@getMyticket']);
Route::get('myticket/{id}', ['as' => 'ticket', 'uses' => 'Client\helpdesk\GuestController@thread']); /* Get my tickets */
Route::patch('client-profile-edit', 'Client\helpdesk\GuestController@postProfile'); /* User Profile Post */
Route::patch('client-profile-password', 'Client\helpdesk\GuestController@postProfilePassword'); /* Profile Password Post */
Route::post('post/reply/{id}', ['as' => 'client.reply', 'uses' => 'Client\helpdesk\ClientTicketController@reply']);
Route::post('verify-client-number', ['as' => 'client-verify-number', 'uses' => 'Client\helpdesk\GuestController@resendOTP']);
-
+
Route::post('verify-client-number2', ['as' => 'post-client-verify-number', 'uses' => 'Client\helpdesk\GuestController@verifyOTP']);
-
});
//====================================================================================
Route::get('checkticket', 'Client\helpdesk\ClientTicketController@getCheckTicket'); /* Check your Ticket */
@@ -593,10 +570,10 @@ Route::get('getshow/{id}', ['as' => 'teams.getshow.list', 'uses' => 'Admin\helpd
echo '';
foreach ($routeCollection as $value) {
echo '
';
- echo '' . $value->getMethods()[0] . ' | ';
- echo '' . $value->getName() . ' | ';
- echo '' . $value->getPath() . ' | ';
- echo '' . $value->getActionName() . ' | ';
+ echo ''.$value->getMethods()[0].' | ';
+ echo ''.$value->getName().' | ';
+ echo ''.$value->getPath().' | ';
+ echo ''.$value->getActionName().' | ';
echo '
';
}
echo '';
@@ -607,29 +584,25 @@ Route::get('getshow/{id}', ['as' => 'teams.getshow.list', 'uses' => 'Admin\helpd
|=============================================================
*/
Route::get('500', ['as' => 'error500', function () {
- return view('errors.500');
- }]);
-
+ return view('errors.500');
+ }]);
+
Route::get('404', ['as' => 'error404', function () {
- return view('errors.404');
- }]);
-
+ return view('errors.404');
+ }]);
- Route::get('error-in-database-connection', ['as' => 'errordb', function() {
- return view('errors.db');
- }]);
+ Route::get('error-in-database-connection', ['as' => 'errordb', function () {
+ return view('errors.db');
+ }]);
-
+ Route::get('unauthorized', ['as' => 'unauth', function () {
+ return view('errors.unauth');
+ }]);
- Route::get('unauthorized', ['as' => 'unauth', function() {
- return view('errors.unauth');
- }]);
-
-
Route::get('board-offline', ['as' => 'board.offline', function () {
- return view('errors.offline');
- }]);
-
+ return view('errors.offline');
+ }]);
+
/*
|=============================================================
| Test mail Routes
@@ -644,20 +617,20 @@ Route::get('getshow/{id}', ['as' => 'teams.getshow.list', 'uses' => 'Admin\helpd
// });
/* For the crud of catogory */
Route::resource('category', 'Agent\kb\CategoryController');
-
+
Route::get('category/delete/{id}', 'Agent\kb\CategoryController@destroy');
/* For the crud of article */
Route::resource('article', 'Agent\kb\ArticleController');
-
+
Route::get('article/delete/{id}', 'Agent\kb\ArticleController@destroy');
/* get settings */
Route::get('kb/settings', ['as' => 'settings', 'uses' => 'Agent\kb\SettingsController@settings']);
-
+
/* post settings */
Route::patch('postsettings/{id}', 'Agent\kb\SettingsController@postSettings');
//Route for administrater to access the comment
Route::get('comment', ['as' => 'comment', 'uses' => 'Agent\kb\SettingsController@comment']);
-
+
/* Route to define the comment should Published */
Route::get('published/{id}', ['as' => 'published', 'uses' => 'Agent\kb\SettingsController@publish']);
/* Route for deleting comments */
@@ -673,8 +646,7 @@ Route::get('getshow/{id}', ['as' => 'teams.getshow.list', 'uses' => 'Admin\helpd
/* delete Background */
Route::get('delete-background/{id}', ['as' => 'delete-background', 'uses' => 'Agent\kb\SettingsController@deleteBackground']);
Route::resource('page', 'Agent\kb\PageController');
-
-
+
Route::get('get-pages', ['as' => 'api.page', 'uses' => 'Agent\kb\PageController@getData']);
Route::get('page/delete/{id}', ['as' => 'pagedelete', 'uses' => 'Agent\kb\PageController@destroy']);
Route::get('comment/delete/{id}', ['as' => 'commentdelete', 'uses' => 'Agent\kb\SettingsController@delete']);
@@ -690,19 +662,19 @@ Route::get('getshow/{id}', ['as' => 'teams.getshow.list', 'uses' => 'Admin\helpd
/* post the comment from show page */
Route::post('postcomment/{slug}', ['as' => 'postcomment', 'uses' => 'Client\kb\UserController@postComment']);
/* get the article list */
-
+
Route::get('article-list', ['as' => 'article-list', 'uses' => 'Client\kb\UserController@getArticle']);
// /* get search values */
Route::get('search', ['as' => 'search', 'uses' => 'Client\kb\UserController@search']);
-
+
/* get the selected article */
Route::get('show/{slug}', ['as' => 'show', 'uses' => 'Client\kb\UserController@show']);
-
+
Route::get('category-list', ['as' => 'category-list', 'uses' => 'Client\kb\UserController@getCategoryList']);
-
+
/* get the categories with article */
Route::get('category-list/{id}', ['as' => 'categorylist', 'uses' => 'Client\kb\UserController@getCategory']);
-
+
Route::post('show/rating/{id}', ['as' => 'show.rating', 'uses' => 'Client\helpdesk\UnAuthController@rating']); /* Get overall Ratings */
Route::post('show/rating2/{id}', ['as' => 'show.rating2', 'uses' => 'Client\helpdesk\UnAuthController@ratingReply']); /* Get reply Ratings */
Route::get('show/change-status/{status}/{id}', ['as' => 'show.change.status', 'uses' => 'Client\helpdesk\UnAuthController@changeStatus']); /* Get reply Ratings */
@@ -712,12 +684,12 @@ Route::get('getshow/{id}', ['as' => 'teams.getshow.list', 'uses' => 'Admin\helpd
// $router->get('faq',['as'=>'faq' , 'uses'=>'Client\kb\UserController@Faq'] );
/* get the cantact page to user */
Route::get('contact', ['as' => 'contact', 'uses' => 'Client\kb\UserController@contact']);
-
+
/* post the cantact page to controller */
Route::post('post-contact', ['as' => 'post-contact', 'uses' => 'Client\kb\UserController@postContact']);
//to get the value for page content
Route::get('pages/{name}', ['as' => 'pages', 'uses' => 'Client\kb\UserController@getPage']);
-
+
//profile
// $router->get('client-profile',['as' => 'client-profile', 'uses' => 'Client\kb\UserController@clientProfile']);
// Route::patch('client-profile-edit',['as' => 'client-profile-edit', 'uses' => 'Client\kb\UserController@postClientProfile']);
@@ -802,44 +774,42 @@ Route::get('getshow/{id}', ['as' => 'teams.getshow.list', 'uses' => 'Admin\helpd
$api_control->ticketDetailEvent($details);
});
-
-
Route::get('test', ['as' => 'test', 'uses' => 'Common\PushNotificationController@response']);
Route::get('mail/config/service', ['as' => 'mail.config.service', 'uses' => 'Job\MailController@serviceForm']);
- /**
+ /*
* Queue
*/
-
+
Route::get('queue', ['as' => 'queue', 'uses' => 'Job\QueueController@index']);
Route::get('form/queue', ['as' => 'queue.form', 'uses' => 'Job\QueueController@getForm']);
-
+
Route::get('queue/{id}', ['as' => 'queue.edit', 'uses' => 'Job\QueueController@edit']);
Route::post('queue/{id}', ['as' => 'queue.update', 'uses' => 'Job\QueueController@update']);
Route::get('queue/{id}/activate', ['as' => 'queue.activate', 'uses' => 'Job\QueueController@activate']);
Route::get('get-ticket-number', ['as' => 'get.ticket.number', 'uses' => 'Admin\helpdesk\SettingsController@getTicketNumber']);
Route::get('genereate-pdf/{threadid}', ['as' => 'thread.pdf', 'uses' => 'Agent\helpdesk\TicketController@pdfThread']);
- /**
+ /*
* Url Settings
*/
-
+
Route::get('url/settings', ['as' => 'url.settings', 'uses' => 'Admin\helpdesk\UrlSettingController@settings']);
Route::patch('url/settings', ['as' => 'url.settings.post', 'uses' => 'Admin\helpdesk\UrlSettingController@postSettings']);
-
- /**
+
+ /*
* Social media settings
*/
-
- Route::get('social/media',['as'=>'social','uses'=>'Admin\helpdesk\SocialMedia\SocialMediaController@index']);
- Route::get('social/media/{provider}',['as'=>'social.media','uses'=>'Admin\helpdesk\SocialMedia\SocialMediaController@settings']);
- Route::post('social/media/{provider}',['as'=>'social.media.post','uses'=>'Admin\helpdesk\SocialMedia\SocialMediaController@postSettings']);
+
+ Route::get('social/media', ['as'=>'social', 'uses'=>'Admin\helpdesk\SocialMedia\SocialMediaController@index']);
+ Route::get('social/media/{provider}', ['as'=>'social.media', 'uses'=>'Admin\helpdesk\SocialMedia\SocialMediaController@settings']);
+ Route::post('social/media/{provider}', ['as'=>'social.media.post', 'uses'=>'Admin\helpdesk\SocialMedia\SocialMediaController@postSettings']);
/*
* Ticket_Priority Settings
*/
Route::get('ticket/priority', ['as' => 'priority.index', 'uses' => 'Admin\helpdesk\PriorityController@priorityIndex']);
Route::post('user/ticket/priority', ['as' => 'user.priority.index', 'uses' => 'Admin\helpdesk\PriorityController@userPriorityIndex']);
-
+
Route::get('get_index', ['as' => 'priority.index1', 'uses' => 'Admin\helpdesk\PriorityController@priorityIndex1']);
Route::get('ticket/priority/create', ['as' => 'priority.create', 'uses' => 'Admin\helpdesk\PriorityController@priorityCreate']);
Route::post('ticket/priority/create1', ['as' => 'priority.create1', 'uses' => 'Admin\helpdesk\PriorityController@priorityCreate1']);
@@ -848,20 +818,20 @@ Route::get('getshow/{id}', ['as' => 'teams.getshow.list', 'uses' => 'Admin\helpd
Route::get('ticket/priority/{ticket_priority}/destroy', ['as' => 'priority.destroy', 'uses' => 'Admin\helpdesk\PriorityController@destroy']);
// user---arindam
Route::post('rolechangeadmin/{id}', ['as' => 'user.post.rolechangeadmin', 'uses' =>'Agent\helpdesk\UserController@changeRoleAdmin']);
- Route::post('rolechangeagent/{id}', ['as' => 'user.post.rolechangeagent', 'uses' =>'Agent\helpdesk\UserController@changeRoleAgent']);
- Route::post('rolechangeuser/{id}', ['as' => 'user.post.rolechangeuser', 'uses' =>'Agent\helpdesk\UserController@changeRoleUser']);
- Route::get('password', ['as' => 'user.changepassword', 'uses' =>'Agent\helpdesk\UserController@randomPassword']);
- Route::post('changepassword/{id}', ['as' => 'user.post.changepassword', 'uses' =>'Agent\helpdesk\UserController@randomPostPassword']);
- Route::post('delete/{id}', ['as' => 'user.post.delete', 'uses' =>'Agent\helpdesk\UserController@deleteAgent']);
+ Route::post('rolechangeagent/{id}', ['as' => 'user.post.rolechangeagent', 'uses' =>'Agent\helpdesk\UserController@changeRoleAgent']);
+ Route::post('rolechangeuser/{id}', ['as' => 'user.post.rolechangeuser', 'uses' =>'Agent\helpdesk\UserController@changeRoleUser']);
+ Route::get('password', ['as' => 'user.changepassword', 'uses' =>'Agent\helpdesk\UserController@randomPassword']);
+ Route::post('changepassword/{id}', ['as' => 'user.post.changepassword', 'uses' =>'Agent\helpdesk\UserController@randomPostPassword']);
+ Route::post('delete/{id}', ['as' => 'user.post.delete', 'uses' =>'Agent\helpdesk\UserController@deleteAgent']);
// deleted user list
- Route::get('deleted/user', ['as' => 'user.deleted', 'uses' => 'Agent\helpdesk\UserController@deletedUser']);
+ Route::get('deleted/user', ['as' => 'user.deleted', 'uses' => 'Agent\helpdesk\UserController@deletedUser']);
- Route::post('restore/{id}', ['as' => 'user.restore', 'uses' => 'Agent\helpdesk\UserController@restoreUser']);
+ Route::post('restore/{id}', ['as' => 'user.restore', 'uses' => 'Agent\helpdesk\UserController@restoreUser']);
//due today ticket
Route::get('duetoday', ['as' => 'ticket.duetoday', 'uses' =>'Agent\helpdesk\TicketController@dueTodayTicketlist']);
-
+
// Route::post('duetoday/list/ticket', ['as' => 'ticket.post.duetoday', 'uses' =>'Agent\helpdesk\TicketController@getDueToday']);
Route::get('duetoday/list/ticket', ['as' => 'ticket.post.duetoday', 'uses' =>'Agent\helpdesk\TicketController@getDueToday']); /* Get Open Ticket */
// Breadcrumbs::register('open.ticket', function ($breadcrumbs) {
@@ -869,4 +839,3 @@ Route::get('getshow/{id}', ['as' => 'teams.getshow.list', 'uses' => 'Admin\helpd
// $breadcrumbs->push(Lang::get('lang.tickets') . ' > ' . Lang::get('lang.open'), route('open.ticket'));
// });
});
-
diff --git a/app/Jobs/SendEmail.php b/app/Jobs/SendEmail.php
index 8e6a1d4ca..9187e3d50 100644
--- a/app/Jobs/SendEmail.php
+++ b/app/Jobs/SendEmail.php
@@ -2,28 +2,27 @@
namespace App\Jobs;
-use App\Jobs\Job;
-use Illuminate\Queue\SerializesModels;
-use Illuminate\Queue\InteractsWithQueue;
-use Illuminate\Contracts\Queue\ShouldQueue;
-use Illuminate\Contracts\Bus\SelfHandling;
use App\Http\Controllers\Common\PhpMailController;
+use Illuminate\Contracts\Bus\SelfHandling;
+use Illuminate\Contracts\Queue\ShouldQueue;
+use Illuminate\Queue\InteractsWithQueue;
+use Illuminate\Queue\SerializesModels;
-class SendEmail extends Job implements SelfHandling,ShouldQueue
+class SendEmail extends Job implements SelfHandling, ShouldQueue
{
use InteractsWithQueue,SerializesModels;
-
-
+
protected $from;
protected $to;
protected $message;
protected $template;
+
/**
* Create a new job instance.
*
* @return void
*/
- public function __construct($from, $to, $message,$template_variables='')
+ public function __construct($from, $to, $message, $template_variables = '')
{
$this->from = $from;
$this->to = $to;
@@ -38,10 +37,8 @@ class SendEmail extends Job implements SelfHandling,ShouldQueue
*/
public function handle(PhpMailController $PhpMailController)
{
- $p = $PhpMailController->sendEmail($this->from, $this->to, $this->message,$this->template);
+ $p = $PhpMailController->sendEmail($this->from, $this->to, $this->message, $this->template);
+
return $p;
-
}
-
-
}
diff --git a/app/Model/MailJob/Condition.php b/app/Model/MailJob/Condition.php
index 3086e46e7..80cc34d8b 100644
--- a/app/Model/MailJob/Condition.php
+++ b/app/Model/MailJob/Condition.php
@@ -4,12 +4,13 @@ namespace App\Model\MailJob;
use Illuminate\Database\Eloquent\Model;
-class Condition extends Model {
-
- protected $table = "conditions";
+class Condition extends Model
+{
+ protected $table = 'conditions';
protected $fillable = ['job', 'value'];
- public function getConditionValue($job) {
+ public function getConditionValue($job)
+ {
$value = ['condition' => '', 'at' => ''];
$condition = $this->where('job', $job)->first();
if ($condition) {
@@ -19,21 +20,24 @@ class Condition extends Model {
$value = ['condition' => $this->checkArray(0, $condition_value), 'at' => $this->checkArray(1, $condition_value)];
}
}
+
return $value;
}
-
- public function checkArray($key,$array){
- $value = "";
- if(is_array($array)){
- if(array_key_exists($key, $array)){
+
+ public function checkArray($key, $array)
+ {
+ $value = '';
+ if (is_array($array)) {
+ if (array_key_exists($key, $array)) {
$value = $array[$key];
}
}
+
return $value;
-
}
- public function checkActiveJob() {
+ public function checkActiveJob()
+ {
$result = ['fetching' => '', 'notification' => '', 'work' => '', 'message' => '', 'remind' => ''];
$emails = new \App\Model\helpdesk\Settings\Email();
$email = $emails->find(1);
@@ -41,19 +45,19 @@ class Condition extends Model {
if ($email->email_fetching == 1) {
$result['fetching'] = true;
}
- if($email->notification_cron==1){
+ if ($email->notification_cron == 1) {
$result['notification'] = true;
}
}
$works = new \App\Model\helpdesk\Workflow\WorkflowClose();
$work = $works->find(1);
//dd($work);
- if($work){
- if($work->condition==1){
+ if ($work) {
+ if ($work->condition == 1) {
$result['work'] = true;
}
}
+
return $result;
}
-
}
diff --git a/app/Model/MailJob/FaveoMail.php b/app/Model/MailJob/FaveoMail.php
index 4741a8f4c..0570c9531 100644
--- a/app/Model/MailJob/FaveoMail.php
+++ b/app/Model/MailJob/FaveoMail.php
@@ -4,9 +4,8 @@ namespace App\Model\MailJob;
use Illuminate\Database\Eloquent\Model;
-class FaveoMail extends Model {
-
- protected $table = "faveo_mails";
- protected $fillable = ["drive", "key", "value","email_id"];
-
+class FaveoMail extends Model
+{
+ protected $table = 'faveo_mails';
+ protected $fillable = ['drive', 'key', 'value', 'email_id'];
}
diff --git a/app/Model/MailJob/FaveoQueue.php b/app/Model/MailJob/FaveoQueue.php
index a4bf88926..e804e608c 100644
--- a/app/Model/MailJob/FaveoQueue.php
+++ b/app/Model/MailJob/FaveoQueue.php
@@ -4,9 +4,8 @@ namespace App\Model\MailJob;
use Illuminate\Database\Eloquent\Model;
-class FaveoQueue extends Model {
-
- protected $table = "faveo_queues";
- protected $fillable = ["key", "value","service_id"];
-
+class FaveoQueue extends Model
+{
+ protected $table = 'faveo_queues';
+ protected $fillable = ['key', 'value', 'service_id'];
}
diff --git a/app/Model/MailJob/MailService.php b/app/Model/MailJob/MailService.php
index 784cb7317..4f75b8a77 100644
--- a/app/Model/MailJob/MailService.php
+++ b/app/Model/MailJob/MailService.php
@@ -6,6 +6,6 @@ use Illuminate\Database\Eloquent\Model;
class MailService extends Model
{
- protected $table = "mail_services";
- protected $fillable = ["name","short_name"];
+ protected $table = 'mail_services';
+ protected $fillable = ['name', 'short_name'];
}
diff --git a/app/Model/MailJob/QueueService.php b/app/Model/MailJob/QueueService.php
index e9877e15f..0c97fc51d 100644
--- a/app/Model/MailJob/QueueService.php
+++ b/app/Model/MailJob/QueueService.php
@@ -7,55 +7,67 @@ use Lang;
class QueueService extends Model
{
- protected $table = "queue_services";
- protected $fillable = ["name","short_name","status"];
-
- public function extraFieldRelation(){
+ protected $table = 'queue_services';
+ protected $fillable = ['name', 'short_name', 'status'];
+
+ public function extraFieldRelation()
+ {
$related = "App\Model\MailJob\FaveoQueue";
- return $this->hasMany($related,'service_id');
+
+ return $this->hasMany($related, 'service_id');
}
-
- public function getExtraField($key){
- $value = "";
- $setting = $this->extraFieldRelation()->where('key',$key)->first();
- if($setting){
+
+ public function getExtraField($key)
+ {
+ $value = '';
+ $setting = $this->extraFieldRelation()->where('key', $key)->first();
+ if ($setting) {
$value = $setting->value;
}
+
return $value;
}
-
- public function getName(){
- $name = $this->attributes['name'];
+
+ public function getName()
+ {
+ $name = $this->attributes['name'];
$id = $this->attributes['id'];
- $html = "
".$name."";
+ $html = '
'.$name.'';
+
return $html;
}
-
- public function getStatus(){
+
+ public function getStatus()
+ {
$status = $this->attributes['status'];
- $html = "
".Lang::get('lang.inactive')."";
- if($status==1){
- $html = "
".Lang::get('lang.active')."";
+ $html = "
".Lang::get('lang.inactive').'';
+ if ($status == 1) {
+ $html = "
".Lang::get('lang.active').'';
}
+
return $html;
}
-
- public function getAction(){
+
+ public function getAction()
+ {
$id = $this->attributes['id'];
$status = $this->attributes['status'];
- $html = "
".Lang::get('lang.activate')."";
- if($status==1){
- $html = "
".Lang::get('lang.activate')."";
+ $html = '
".Lang::get('lang.activate').'';
+ if ($status == 1) {
+ $html = "
".Lang::get('lang.activate').'';
}
+
return $html;
}
-
- public function isActivate(){
+
+ public function isActivate()
+ {
$check = true;
$settings = $this->extraFieldRelation()->get();
- if($settings->count()==0){
+ if ($settings->count() == 0) {
$check = false;
}
+
return $check;
}
}
diff --git a/app/Model/helpdesk/Agent/Assign_team_agent.php b/app/Model/helpdesk/Agent/Assign_team_agent.php
index f98cf4d88..d88ba7f52 100644
--- a/app/Model/helpdesk/Agent/Assign_team_agent.php
+++ b/app/Model/helpdesk/Agent/Assign_team_agent.php
@@ -7,5 +7,5 @@ use App\BaseModel;
class Assign_team_agent extends BaseModel
{
protected $table = 'team_assign_agent';
- protected $fillable = ['id', 'team_id', 'agent_id','updated_at', 'created_at'];
+ protected $fillable = ['id', 'team_id', 'agent_id', 'updated_at', 'created_at'];
}
diff --git a/app/Model/helpdesk/Agent_panel/Organization.php b/app/Model/helpdesk/Agent_panel/Organization.php
index 607d5a17b..40a9dce55 100644
--- a/app/Model/helpdesk/Agent_panel/Organization.php
+++ b/app/Model/helpdesk/Agent_panel/Organization.php
@@ -12,22 +12,27 @@ class Organization extends BaseModel
/* Define the fillable fields */
protected $fillable = ['id', 'name', 'phone', 'website', 'address', 'head', 'internal_notes'];
-
-
- public function userRelation(){
+
+ public function userRelation()
+ {
$related = "App\Model\helpdesk\Agent_panel\User_org";
- return $this->hasMany($related,'org_id');
+
+ return $this->hasMany($related, 'org_id');
}
-
- public function getUserIds(){
+
+ public function getUserIds()
+ {
$user_relations = $this->userRelation()->lists('user_id')->toArray();
+
return $user_relations;
}
-
- public function users(){
+
+ public function users()
+ {
$user = new \App\User();
$user_ids = $this->getUserIds();
- $users = $user->whereIn('id',$user_ids);
+ $users = $user->whereIn('id', $user_ids);
+
return $users;
}
}
diff --git a/app/Model/helpdesk/Agent_panel/User_org.php b/app/Model/helpdesk/Agent_panel/User_org.php
index 32ea15fb9..dfb3703d7 100644
--- a/app/Model/helpdesk/Agent_panel/User_org.php
+++ b/app/Model/helpdesk/Agent_panel/User_org.php
@@ -13,10 +13,11 @@ class User_org extends BaseModel
/* define fillable fields */
protected $fillable = ['id', 'org_id', 'user_id'];
- public function setOrgIdAttribute($value){
- if($value==""){
+ public function setOrgIdAttribute($value)
+ {
+ if ($value == '') {
$this->attributes['org_id'] = null;
- }else{
+ } else {
$this->attributes['org_id'] = $value;
}
}
diff --git a/app/Model/helpdesk/Email/Emails.php b/app/Model/helpdesk/Email/Emails.php
index 782c1747c..0468b64db 100644
--- a/app/Model/helpdesk/Email/Emails.php
+++ b/app/Model/helpdesk/Email/Emails.php
@@ -14,53 +14,61 @@ class Emails extends BaseModel
'fetching_status', 'move_to_folder', 'delete_email', 'do_nothing',
'sending_status', 'authentication', 'header_spoofing', 'imap_config',
];
-
- public function getCurrentDrive(){
- $drive = $this->attributes['sending_protocol'];
+
+ public function getCurrentDrive()
+ {
+ $drive = $this->attributes['sending_protocol'];
$mailServices = new \App\Model\MailJob\MailService();
- $id = "";
- $mailService = $mailServices->where('short_name',$drive)->first();
- if($mailService){
+ $id = '';
+ $mailService = $mailServices->where('short_name', $drive)->first();
+ if ($mailService) {
$id = $mailService->id;
}
+
return $id;
-
}
-
- public function getExtraField($key){
- $value = "";
+
+ public function getExtraField($key)
+ {
+ $value = '';
$id = $this->attributes['id'];
$services = new \App\Model\MailJob\FaveoMail();
- $service = $services->where('email_id',$id)->where('key',$key)->first();
- if($service){
+ $service = $services->where('email_id', $id)->where('key', $key)->first();
+ if ($service) {
$value = $service->value;
}
+
return $value;
-
}
-
- public function extraFieldRelation(){
+
+ public function extraFieldRelation()
+ {
$related = "App\Model\MailJob\FaveoMail";
- return $this->hasMany($related,'email_id');
+
+ return $this->hasMany($related, 'email_id');
}
-
- public function deleteExtraFields(){
+
+ public function deleteExtraFields()
+ {
$fields = $this->extraFieldRelation()->get();
- if($fields->count()>0){
- foreach ($fields as $field){
+ if ($fields->count() > 0) {
+ foreach ($fields as $field) {
$field->delete();
}
}
}
-
- public function getPasswordAttribute($value){
- if($value){
+
+ public function getPasswordAttribute($value)
+ {
+ if ($value) {
return \Crypt::decrypt($value);
}
+
return $value;
}
-
- public function delete() {
+
+ public function delete()
+ {
$this->deleteExtraFields();
parent::delete();
}
diff --git a/app/Model/helpdesk/Filters/Filter.php b/app/Model/helpdesk/Filters/Filter.php
index ac12fca2a..ec0bb34d6 100644
--- a/app/Model/helpdesk/Filters/Filter.php
+++ b/app/Model/helpdesk/Filters/Filter.php
@@ -7,28 +7,30 @@ use Illuminate\Database\Eloquent\Model;
class Filter extends Model
{
protected $table = 'filters';
- protected $fillable = ['ticket_id','key','value'];
-
- public function getLabelTitle($ticketid){
- $filter = $this->where('ticket_id',$ticketid)->where('key','label')->first();
- $output = [];
- if($filter && $filter->value){
- $labelids = explode(',', $filter->value);
- $labels = new Label();
- $label = $labels->whereIn('title',$labelids)->get();
- if($label->count()>0){
- foreach($label as $key=>$l){
- $output[$key] = $l->titleWithColor();
- }
- }
- }
- return $output;
+ protected $fillable = ['ticket_id', 'key', 'value'];
+
+ public function getLabelTitle($ticketid)
+ {
+ $filter = $this->where('ticket_id', $ticketid)->where('key', 'label')->first();
+ $output = [];
+ if ($filter && $filter->value) {
+ $labelids = explode(',', $filter->value);
+ $labels = new Label();
+ $label = $labels->whereIn('title', $labelids)->get();
+ if ($label->count() > 0) {
+ foreach ($label as $key=>$l) {
+ $output[$key] = $l->titleWithColor();
+ }
+ }
+ }
+
+ return $output;
+ }
+
+ public function getTagsByTicketId($ticketid)
+ {
+ $filter = $this->where('key', 'tag')->where('ticket_id', $ticketid)->lists('value')->toArray();
+
+ return $filter;
}
-
- public function getTagsByTicketId($ticketid){
- $filter = $this->where('key','tag')->where('ticket_id',$ticketid)->lists('value')->toArray();
- return $filter;
-
- }
-
}
diff --git a/app/Model/helpdesk/Filters/Label.php b/app/Model/helpdesk/Filters/Label.php
index 0ce9c7250..d817bd430 100644
--- a/app/Model/helpdesk/Filters/Label.php
+++ b/app/Model/helpdesk/Filters/Label.php
@@ -5,33 +5,37 @@ namespace App\Model\helpdesk\Filters;
use Illuminate\Database\Eloquent\Model;
use Lang;
-class Label extends Model {
-
+class Label extends Model
+{
protected $table = 'labels';
protected $fillable = ['title', 'color', 'order', 'status'];
- public function titleWithColor() {
+ public function titleWithColor()
+ {
$title = $this->title;
$color = $this->color;
if ($title && $color) {
- return "
" . $title . "";
+ return "
".$title.'';
} else {
- return "--";
+ return '--';
}
}
- public function status() {
+ public function status()
+ {
$status = $this->status;
$output = Lang::get('lang.disabled');
if ($status == 1) {
$output = Lang::get('lang.enabled');
}
+
return $output;
}
- public function isChecked($ticketid) {
+ public function isChecked($ticketid)
+ {
$title = $this->attributes['title'];
- $output = "";
+ $output = '';
$filters = new Filter();
$filter = $filters
->where('ticket_id', $ticketid)
@@ -39,24 +43,26 @@ class Label extends Model {
->where('value', $title)
->first();
if ($filter && $filter->value) {
- $output = "checked";
+ $output = 'checked';
}
+
return $output;
}
- public function assignedLabels($ticketid) {
- $output = "";
+ public function assignedLabels($ticketid)
+ {
+ $output = '';
$filters = new Filter();
$filter = $filters->where('ticket_id', $ticketid)->where('key', 'label')->select('value')->get();
if (count($filter) > 0) {
foreach ($filter as $fil) {
- $label = $this->where('title',$fil->value)->select('title','color')->first();
- if($label){
- $output .=" ".$label->titleWithColor()." ";
+ $label = $this->where('title', $fil->value)->select('title', 'color')->first();
+ if ($label) {
+ $output .= ' '.$label->titleWithColor().' ';
}
}
}
+
return $output;
}
-
}
diff --git a/app/Model/helpdesk/Filters/Tag.php b/app/Model/helpdesk/Filters/Tag.php
index 01f98942f..7a390f9e4 100644
--- a/app/Model/helpdesk/Filters/Tag.php
+++ b/app/Model/helpdesk/Filters/Tag.php
@@ -7,7 +7,5 @@ use Illuminate\Database\Eloquent\Model;
class Tag extends Model
{
protected $table = 'tags';
- protected $fillable = ['name','description'];
-
-
+ protected $fillable = ['name', 'description'];
}
diff --git a/app/Model/helpdesk/Form/FieldValue.php b/app/Model/helpdesk/Form/FieldValue.php
index 4d20a7a6a..c3e13a6c8 100644
--- a/app/Model/helpdesk/Form/FieldValue.php
+++ b/app/Model/helpdesk/Form/FieldValue.php
@@ -6,22 +6,17 @@ use Illuminate\Database\Eloquent\Model;
class FieldValue extends Model
{
- protected $table = "field_values";
- protected $fillable = ['field_id','child_id','field_key','field_value'];
-
-
- public function childId(){
- $childid = "";
+ protected $table = 'field_values';
+ protected $fillable = ['field_id', 'child_id', 'field_key', 'field_value'];
+
+ public function childId()
+ {
+ $childid = '';
$child = $this->attributes['child_id'];
- if($child){
+ if ($child) {
$childid = $this->attributes['child_id'];
}
+
return $childid;
}
-
-
-
-
-
-
-}
\ No newline at end of file
+}
diff --git a/app/Model/helpdesk/Form/Fields.php b/app/Model/helpdesk/Form/Fields.php
index 24a15ac94..4b53b3b2f 100644
--- a/app/Model/helpdesk/Form/Fields.php
+++ b/app/Model/helpdesk/Form/Fields.php
@@ -4,8 +4,8 @@ namespace App\Model\helpdesk\Form;
use App\BaseModel;
-class Fields extends BaseModel {
-
+class Fields extends BaseModel
+{
protected $table = 'custom_form_fields';
/**
@@ -15,44 +15,55 @@ class Fields extends BaseModel {
*/
protected $fillable = ['forms_id', 'label', 'name', 'type', 'value', 'required'];
- public function valueRelation() {
+ public function valueRelation()
+ {
$related = "App\Model\helpdesk\Form\FieldValue";
+
return $this->hasMany($related, 'field_id');
}
- public function values() {
+ public function values()
+ {
$value = $this->valueRelation();
+
return $value;
}
-
- public function valuesAsString(){
- $string = "";
+
+ public function valuesAsString()
+ {
+ $string = '';
$values = $this->values()->lists('field_value')->toArray();
- if(count($values)>0){
+ if (count($values) > 0) {
$string = implode(',', $values);
}
+
return $string;
-
}
-
- public function requiredFieldForCheck(){
+
+ public function requiredFieldForCheck()
+ {
$check = false;
$required = $this->attributes['required'];
- if($required==='1'){
- $check = true;
- }
- return $check;
- }
- public function nonRequiredFieldForCheck(){
- $check = false;
- $required = $this->attributes['required'];
- if($required!=='1'){
+ if ($required === '1') {
$check = true;
}
+
return $check;
}
- public function deleteValues() {
+ public function nonRequiredFieldForCheck()
+ {
+ $check = false;
+ $required = $this->attributes['required'];
+ if ($required !== '1') {
+ $check = true;
+ }
+
+ return $check;
+ }
+
+ public function deleteValues()
+ {
$values = $this->values()->get();
if ($values->count() > 0) {
foreach ($values as $value) {
@@ -61,9 +72,9 @@ class Fields extends BaseModel {
}
}
- public function delete() {
+ public function delete()
+ {
$this->deleteValues();
parent::delete();
}
-
}
diff --git a/app/Model/helpdesk/Form/Forms.php b/app/Model/helpdesk/Form/Forms.php
index 3b6db99cd..e8d1cdb86 100644
--- a/app/Model/helpdesk/Form/Forms.php
+++ b/app/Model/helpdesk/Form/Forms.php
@@ -14,50 +14,59 @@ class Forms extends BaseModel
* @var array
*/
protected $fillable = ['formname'];
-
-
- public function fieldRelation(){
+
+ public function fieldRelation()
+ {
$related = "App\Model\helpdesk\Form\Fields";
+
return $this->hasMany($related);
}
-
- public function fields(){
+
+ public function fields()
+ {
$relation = $this->fieldRelation()->get();
- return $relation;
+
+ return $relation;
}
-
- public function fieldsDelete(){
+
+ public function fieldsDelete()
+ {
$fields = $this->fields();
- if($fields->count()>0){
- foreach($fields as $field){
+ if ($fields->count() > 0) {
+ foreach ($fields as $field) {
$field->delete();
}
}
}
-
- public function formValueRelation(){
+
+ public function formValueRelation()
+ {
$related = "App\Model\helpdesk\Form\FieldValue";
- return $this->hasMany($related,'child_id');
+
+ return $this->hasMany($related, 'child_id');
}
-
- public function formValueChild(){
+
+ public function formValueChild()
+ {
$childs = $this->formValueRelation()->get();
+
return $childs;
}
-
- public function deleteFormChild(){
+
+ public function deleteFormChild()
+ {
$childs = $this->formValueChild();
- if($childs->count()>0){
- foreach ($childs as $child){
- $child->child_id = NULL;
+ if ($childs->count() > 0) {
+ foreach ($childs as $child) {
+ $child->child_id = null;
$child->save();
}
}
}
-
- public function delete() {
+
+ public function delete()
+ {
$this->fieldsDelete();
parent::delete();
}
-
}
diff --git a/app/Model/helpdesk/Manage/Help_topic.php b/app/Model/helpdesk/Manage/Help_topic.php
index 423bca150..4ccafd9ce 100644
--- a/app/Model/helpdesk/Manage/Help_topic.php
+++ b/app/Model/helpdesk/Manage/Help_topic.php
@@ -12,10 +12,12 @@ class Help_topic extends BaseModel
'sla_plan', 'thank_page', 'ticket_num_format', 'internal_notes', 'status', 'type', 'auto_assign',
'auto_response',
];
-
- public function department(){
+
+ public function department()
+ {
$related = 'App\Model\helpdesk\Agent\Department';
$foreignKey = 'department';
+
return $this->belongsTo($related, $foreignKey);
}
}
diff --git a/app/Model/helpdesk/Notification/Notification.php b/app/Model/helpdesk/Notification/Notification.php
index fa69b1564..0dd581268 100644
--- a/app/Model/helpdesk/Notification/Notification.php
+++ b/app/Model/helpdesk/Notification/Notification.php
@@ -11,44 +11,53 @@ class Notification extends BaseModel
'model_id', 'userid_created', 'type_id',
];
-
- public function type(){
+
+ public function type()
+ {
$related = 'App\Model\helpdesk\Notification\NotificationType';
$id = 'type_id';
- return $this->belongsTo($related,$id);
+
+ return $this->belongsTo($related, $id);
}
-
- public function model(){
+
+ public function model()
+ {
$related = 'App\Model\helpdesk\Ticket\Tickets';
$id = 'model_id';
- return $this->belongsTo($related,$id);
+
+ return $this->belongsTo($related, $id);
}
-
- public function userNotification(){
+
+ public function userNotification()
+ {
$related = 'App\Model\helpdesk\Notification\UserNotification';
$foreignKey = 'notification_id';
+
return $this->hasMany($related, $foreignKey);
}
-
- public function deleteUserNotification(){
+
+ public function deleteUserNotification()
+ {
$user_notifications = $this->userNotification;
- if(count($user_notifications)>0){
- foreach($user_notifications as $noti){
+ if (count($user_notifications) > 0) {
+ foreach ($user_notifications as $noti) {
$noti->delete();
}
}
}
-
- public function dummyDelete(){
- $user_notifications = UserNotification::get();
- if(count($user_notifications)>0){
- foreach($user_notifications as $noti){
+
+ public function dummyDelete()
+ {
+ $user_notifications = UserNotification::get();
+ if (count($user_notifications) > 0) {
+ foreach ($user_notifications as $noti) {
$noti->delete();
}
}
}
-
- public function delete() {
+
+ public function delete()
+ {
$this->deleteUserNotification();
// $this->dummyDelete();
parent::delete();
diff --git a/app/Model/helpdesk/Notification/UserNotification.php b/app/Model/helpdesk/Notification/UserNotification.php
index 5d0f03658..b6243588b 100644
--- a/app/Model/helpdesk/Notification/UserNotification.php
+++ b/app/Model/helpdesk/Notification/UserNotification.php
@@ -11,19 +11,23 @@ class UserNotification extends BaseModel
'notification_id', 'user_id', 'is_read',
];
-
- public function notification(){
+
+ public function notification()
+ {
$related = 'App\Model\helpdesk\Notification\Notification';
$id = 'notification_id';
- return $this->belongsTo($related,$id);
+
+ return $this->belongsTo($related, $id);
}
-
- public function users(){
+
+ public function users()
+ {
$related = 'App\User';
$id = 'user_id';
- return $this->belongsTo($related,$id);
+
+ return $this->belongsTo($related, $id);
}
-
+
// public function delete() {
// //$this->notification()->delete();
// parent::delete();
diff --git a/app/Model/helpdesk/Settings/CommonSettings.php b/app/Model/helpdesk/Settings/CommonSettings.php
index 8f84ed17b..eb3d6dd8a 100644
--- a/app/Model/helpdesk/Settings/CommonSettings.php
+++ b/app/Model/helpdesk/Settings/CommonSettings.php
@@ -10,23 +10,28 @@ class CommonSettings extends BaseModel
protected $fillable = [
'status', 'option_name', 'option_value', 'optional_field', 'created_at', 'updated_at',
];
-
- public function getStatus($option_name){
- $status ="";
- $schema = $this->where('option_name',$option_name)->first();
- if($schema){
+
+ public function getStatus($option_name)
+ {
+ $status = '';
+ $schema = $this->where('option_name', $option_name)->first();
+ if ($schema) {
$status = $schema->status;
}
- return $status;
+
+ return $status;
}
-
- public function getOptionValue($option,$field=''){
- $schema = $this->where('option_name',$option);
- if($field!=""){
- $schema = $schema->where('optional_field',$field);
- return $schema->first();
- }
- $value = $schema->get();
- return $value;
+
+ public function getOptionValue($option, $field = '')
+ {
+ $schema = $this->where('option_name', $option);
+ if ($field != '') {
+ $schema = $schema->where('optional_field', $field);
+
+ return $schema->first();
+ }
+ $value = $schema->get();
+
+ return $value;
}
}
diff --git a/app/Model/helpdesk/Settings/Followup.php b/app/Model/helpdesk/Settings/Followup.php
index a0b625476..ecb7fdcc1 100644
--- a/app/Model/helpdesk/Settings/Followup.php
+++ b/app/Model/helpdesk/Settings/Followup.php
@@ -14,4 +14,4 @@ class Followup extends BaseModel
'id', 'name', 'status', 'condition', 'created_at', 'updated_at',
];
-}
\ No newline at end of file
+}
diff --git a/app/Model/helpdesk/Settings/SocialMedia.php b/app/Model/helpdesk/Settings/SocialMedia.php
index 329f9c429..e33e7fc37 100644
--- a/app/Model/helpdesk/Settings/SocialMedia.php
+++ b/app/Model/helpdesk/Settings/SocialMedia.php
@@ -4,54 +4,58 @@ namespace App\Model\helpdesk\Settings;
use Illuminate\Database\Eloquent\Model;
-class SocialMedia extends Model {
-
- protected $table = "social_media";
+class SocialMedia extends Model
+{
+ protected $table = 'social_media';
protected $fillable = [
'provider',
'key',
'value',
];
- public function getvalueByKey($provider, $key="",$login=true) {
-
- $social = "";
- if ($key == 'redirect'&& $login==true) {
- $social = url('social/login/' . $provider);
+ public function getvalueByKey($provider, $key = '', $login = true)
+ {
+ $social = '';
+ if ($key == 'redirect' && $login == true) {
+ $social = url('social/login/'.$provider);
}
- if($key!=="" && $key !== 'redirect'){
+ if ($key !== '' && $key !== 'redirect') {
$social = $this->where('provider', $provider)->where('key', $key)->first();
- }elseif($key !== 'redirect'){
- $social = $this->where('provider', $provider)->lists('value','key')->toArray();
+ } elseif ($key !== 'redirect') {
+ $social = $this->where('provider', $provider)->lists('value', 'key')->toArray();
}
if (is_object($social)) {
$social = $social->value;
}
-
+
return $social;
}
- public function checkActive($provider) {
- $check = "";
+ public function checkActive($provider)
+ {
+ $check = '';
$social = $this->where('provider', $provider)->where('key', 'status')->first();
if ($social) {
$value = $social->value;
if ($value === '1') {
$check = true;
- }
+ }
}
+
return $check;
}
- public function checkInactive($provider) {
- $check = "";
+
+ public function checkInactive($provider)
+ {
+ $check = '';
$social = $this->where('provider', $provider)->where('key', 'status')->first();
if ($social) {
$value = $social->value;
if ($value === '0') {
$check = true;
- }
+ }
}
+
return $check;
}
-
}
diff --git a/app/Model/helpdesk/Ticket/Ticket_Form_Data.php b/app/Model/helpdesk/Ticket/Ticket_Form_Data.php
index 5726c21f8..148bf5849 100644
--- a/app/Model/helpdesk/Ticket/Ticket_Form_Data.php
+++ b/app/Model/helpdesk/Ticket/Ticket_Form_Data.php
@@ -4,39 +4,43 @@ namespace App\Model\helpdesk\Ticket;
use App\BaseModel;
-class Ticket_Form_Data extends BaseModel {
-
+class Ticket_Form_Data extends BaseModel
+{
protected $table = 'ticket_form_data';
protected $fillable = ['id', 'ticket_id', 'title', 'content', 'created_at', 'updated_at'];
- public function getFieldKeyLabel() {
+ public function getFieldKeyLabel()
+ {
$value = $this->attributes['title'];
$fields = new \App\Model\helpdesk\Form\Fields();
$field = $fields->where('name', $value)->first();
if ($field) {
$value = $field->label;
}
+
return $value;
}
-
- public function isHidden(){
+
+ public function isHidden()
+ {
$check = false;
$value = $this->attributes['title'];
$fields = new \App\Model\helpdesk\Form\Fields();
$field = $fields->where('name', $value)->first();
- if ($field && $field->type=='hidden') {
+ if ($field && $field->type == 'hidden') {
$check = true;
}
+
return $check;
}
-
- public function getHidden(){
+
+ public function getHidden()
+ {
$value = $this->attributes['title'];
$fields = new \App\Model\helpdesk\Form\Fields();
$field = $fields->where('name', $value)->first();
- if ($field && $field->type=='hidden') {
+ if ($field && $field->type == 'hidden') {
return $field->label;
}
}
-
}
diff --git a/app/Model/helpdesk/Ticket/Ticket_Priority.php b/app/Model/helpdesk/Ticket/Ticket_Priority.php
index aed4eb795..f671a55ba 100644
--- a/app/Model/helpdesk/Ticket/Ticket_Priority.php
+++ b/app/Model/helpdesk/Ticket/Ticket_Priority.php
@@ -6,10 +6,10 @@ use App\BaseModel;
class Ticket_Priority extends BaseModel
{
- protected $primaryKey = 'priority_id';
+ protected $primaryKey = 'priority_id';
public $timestamps = false;
protected $table = 'ticket_priority';
protected $fillable = [
- 'priority_id', 'priority', 'status','user_priority_status','priority_desc', 'priority_color', 'priority_urgency', 'ispublic','created_at', 'updated_at',
+ 'priority_id', 'priority', 'status', 'user_priority_status', 'priority_desc', 'priority_color', 'priority_urgency', 'ispublic', 'created_at', 'updated_at',
];
}
diff --git a/app/Model/helpdesk/Ticket/Ticket_Thread.php b/app/Model/helpdesk/Ticket/Ticket_Thread.php
index 184016e7b..54f06828c 100644
--- a/app/Model/helpdesk/Ticket/Ticket_Thread.php
+++ b/app/Model/helpdesk/Ticket/Ticket_Thread.php
@@ -3,21 +3,23 @@
namespace App\Model\helpdesk\Ticket;
//use App\BaseModel;
-use Illuminate\Database\Eloquent\Model;
use File;
+use Illuminate\Database\Eloquent\Model;
-class Ticket_Thread extends Model {
-
+class Ticket_Thread extends Model
+{
protected $table = 'ticket_thread';
protected $fillable = [
'id', 'ticket_id', 'staff_id', 'user_id', 'thread_type', 'poster', 'source', 'is_internal', 'title', 'body', 'format', 'ip_address', 'created_at', 'updated_at',
];
- public function attach() {
+ public function attach()
+ {
return $this->hasMany('App\Model\helpdesk\Ticket\Ticket_attachments', 'thread_id');
}
- public function delete() {
+ public function delete()
+ {
$this->attach()->delete();
parent::delete();
}
@@ -26,20 +28,23 @@ class Ticket_Thread extends Model {
// $this->attributes['title'] = str_replace('"', "'", $value);
// }
- public function getTitleAttribute($value) {
+ public function getTitleAttribute($value)
+ {
return str_replace('"', "'", $value);
}
- public function thread($content) {
-// $porufi = $this->purify($content);
+ public function thread($content)
+ {
+ // $porufi = $this->purify($content);
// dd($content,$porufi);
//return $content;
return $this->purify($content);
}
- public function purifyOld($value) {
- require_once base_path('vendor' . DIRECTORY_SEPARATOR . 'htmlpurifier' . DIRECTORY_SEPARATOR . 'library' . DIRECTORY_SEPARATOR . 'HTMLPurifier.auto.php');
- $path = base_path('vendor' . DIRECTORY_SEPARATOR . 'htmlpurifier' . DIRECTORY_SEPARATOR . 'library' . DIRECTORY_SEPARATOR . 'HTMLPurifier' . DIRECTORY_SEPARATOR . 'DefinitionCache' . DIRECTORY_SEPARATOR . 'Serializer');
+ public function purifyOld($value)
+ {
+ require_once base_path('vendor'.DIRECTORY_SEPARATOR.'htmlpurifier'.DIRECTORY_SEPARATOR.'library'.DIRECTORY_SEPARATOR.'HTMLPurifier.auto.php');
+ $path = base_path('vendor'.DIRECTORY_SEPARATOR.'htmlpurifier'.DIRECTORY_SEPARATOR.'library'.DIRECTORY_SEPARATOR.'HTMLPurifier'.DIRECTORY_SEPARATOR.'DefinitionCache'.DIRECTORY_SEPARATOR.'Serializer');
if (!File::exists($path)) {
File::makeDirectory($path, $mode = 0777, true, true);
}
@@ -51,27 +56,32 @@ class Ticket_Thread extends Model {
if ($value != strip_tags($value)) {
$value = $purifier->purify($value);
}
+
return $value;
}
- public function purify() {
+ public function purify()
+ {
$value = $this->attributes['body'];
$str = str_replace("'", '"', $value);
$html = preg_replace('##is', '', $str);
$string = trim(preg_replace('/\s+/', ' ', $html));
$content = $this->inlineAttachment($string);
+
return $content;
}
- public function setTitleAttribute($value) {
- if ($value == "") {
+ public function setTitleAttribute($value)
+ {
+ if ($value == '') {
$this->attributes['title'] = 'No available';
} else {
$this->attributes['title'] = $value;
}
}
- public function removeScript($html) {
+ public function removeScript($html)
+ {
$doc = new \DOMDocument();
// load the HTML string we want to strip
@@ -89,50 +99,58 @@ class Ticket_Thread extends Model {
// get the HTML string back
$no_script_html_string = $doc->saveHTML();
+
return $no_script_html_string;
}
- public function firstContent() {
+ public function firstContent()
+ {
$poster = $this->attributes['poster'];
if ($poster == 'client') {
return 'yes';
}
+
return 'no';
}
- public function inlineAttachment($body) {
+ public function inlineAttachment($body)
+ {
$attachments = $this->attach;
- if ($attachments->count() > 0) {
+ if ($attachments->count() > 0) {
foreach ($attachments as $key => $attach) {
- if($attach->poster=="INLINE" || $attach->poster=="inline"){
+ if ($attach->poster == 'INLINE' || $attach->poster == 'inline') {
$search = $attach->name;
- $replace = "data:$attach->type;base64," . $attach->file;
+ $replace = "data:$attach->type;base64,".$attach->file;
$b = str_replace($search, $replace, $body);
$body = $b;
}
}
-
}
+
return $body;
}
- public function getSubject(){
+
+ public function getSubject()
+ {
$subject = $this->attributes['title'];
$array = imap_mime_header_decode($subject);
- $title = "";
- if(is_array($array) && count($array)>0){
- foreach($array as $text){
+ $title = '';
+ if (is_array($array) && count($array) > 0) {
+ foreach ($array as $text) {
$title .= $text->text;
}
+
return wordwrap($title, 70, "
\n");
}
+
return wordwrap($subject, 70, "
\n");
}
-
-
- public function user(){
+
+ public function user()
+ {
$related = 'App\User';
$foreignKey = 'user_id';
+
return $this->belongsTo($related, $foreignKey);
}
-
}
diff --git a/app/Model/helpdesk/Ticket/Ticket_ThreadOld.php b/app/Model/helpdesk/Ticket/Ticket_ThreadOld.php
index 54d74f2b3..34df1bd7d 100644
--- a/app/Model/helpdesk/Ticket/Ticket_ThreadOld.php
+++ b/app/Model/helpdesk/Ticket/Ticket_ThreadOld.php
@@ -3,21 +3,23 @@
namespace App\Model\helpdesk\Ticket;
//use App\BaseModel;
-use Illuminate\Database\Eloquent\Model;
use File;
+use Illuminate\Database\Eloquent\Model;
-class Ticket_Thread extends Model {
-
+class Ticket_ThreadOld extends Model
+{
protected $table = 'ticket_thread';
protected $fillable = [
'id', 'ticket_id', 'staff_id', 'user_id', 'thread_type', 'poster', 'source', 'is_internal', 'title', 'body', 'format', 'ip_address', 'created_at', 'updated_at',
];
- public function attach() {
+ public function attach()
+ {
return $this->hasMany('App\Model\helpdesk\Ticket\Ticket_attachments', 'thread_id');
}
- public function delete() {
+ public function delete()
+ {
$this->attach()->delete();
parent::delete();
}
@@ -26,20 +28,23 @@ class Ticket_Thread extends Model {
// $this->attributes['title'] = str_replace('"', "'", $value);
// }
- public function getTitleAttribute($value) {
+ public function getTitleAttribute($value)
+ {
return str_replace('"', "'", $value);
}
- public function thread($content) {
-// $porufi = $this->purify($content);
+ public function thread($content)
+ {
+ // $porufi = $this->purify($content);
// dd($content,$porufi);
//return $content;
return $this->purify($content);
}
- public function purifyOld($value) {
- require_once base_path('vendor' . DIRECTORY_SEPARATOR . 'htmlpurifier' . DIRECTORY_SEPARATOR . 'library' . DIRECTORY_SEPARATOR . 'HTMLPurifier.auto.php');
- $path = base_path('vendor' . DIRECTORY_SEPARATOR . 'htmlpurifier' . DIRECTORY_SEPARATOR . 'library' . DIRECTORY_SEPARATOR . 'HTMLPurifier' . DIRECTORY_SEPARATOR . 'DefinitionCache' . DIRECTORY_SEPARATOR . 'Serializer');
+ public function purifyOld($value)
+ {
+ require_once base_path('vendor'.DIRECTORY_SEPARATOR.'htmlpurifier'.DIRECTORY_SEPARATOR.'library'.DIRECTORY_SEPARATOR.'HTMLPurifier.auto.php');
+ $path = base_path('vendor'.DIRECTORY_SEPARATOR.'htmlpurifier'.DIRECTORY_SEPARATOR.'library'.DIRECTORY_SEPARATOR.'HTMLPurifier'.DIRECTORY_SEPARATOR.'DefinitionCache'.DIRECTORY_SEPARATOR.'Serializer');
if (!File::exists($path)) {
File::makeDirectory($path, $mode = 0777, true, true);
}
@@ -51,27 +56,32 @@ class Ticket_Thread extends Model {
if ($value != strip_tags($value)) {
$value = $purifier->purify($value);
}
+
return $value;
}
- public function purify() {
+ public function purify()
+ {
$value = $this->attributes['body'];
$str = str_replace("'", '"', $value);
$html = preg_replace('##is', '', $str);
$string = trim(preg_replace('/\s+/', ' ', $html));
$content = $this->inlineAttachment($string);
+
return $content;
}
- public function setTitleAttribute($value) {
- if ($value == "") {
+ public function setTitleAttribute($value)
+ {
+ if ($value == '') {
$this->attributes['title'] = 'No available';
} else {
$this->attributes['title'] = $value;
}
}
- public function removeScript($html) {
+ public function removeScript($html)
+ {
$doc = new \DOMDocument();
// load the HTML string we want to strip
@@ -89,43 +99,53 @@ class Ticket_Thread extends Model {
// get the HTML string back
$no_script_html_string = $doc->saveHTML();
+
return $no_script_html_string;
}
- public function firstContent() {
+ public function firstContent()
+ {
$poster = $this->attributes['poster'];
if ($poster == 'client') {
return 'yes';
}
+
return 'no';
}
- public function inlineAttachment($body) {
+ public function inlineAttachment($body)
+ {
if ($this->attach()->where('poster', 'INLINE')->get()->count() > 0) {
$search = $this->attach()->where('poster', 'INLINE')->lists('name')->toArray();
foreach ($this->attach()->where('poster', 'INLINE')->get() as $key => $attach) {
- $replace[$key] = "data:$attach->type;base64," . $attach->file;
+ $replace[$key] = "data:$attach->type;base64,".$attach->file;
}
$body = str_replace($search, $replace, $body);
}
+
return $body;
}
- public function getSubject(){
+
+ public function getSubject()
+ {
$subject = $this->attributes['title'];
$array = imap_mime_header_decode($subject);
- $title = "";
- if(is_array($array) && count($array)>0){
- foreach($array as $text){
+ $title = '';
+ if (is_array($array) && count($array) > 0) {
+ foreach ($array as $text) {
$title .= $text->text;
}
+
return wordwrap($title, 70, "
\n");
}
+
return wordwrap($subject, 70, "
\n");
}
-
- public function labels($ticketid){
- $label = new \App\Model\helpdesk\Filters\Label();
+
+ public function labels($ticketid)
+ {
+ $label = new \App\Model\helpdesk\Filters\Label();
+
return $label->assignedLabels($ticketid);
}
-
}
diff --git a/app/Model/helpdesk/Ticket/Ticket_attachments.php b/app/Model/helpdesk/Ticket/Ticket_attachments.php
index d1ccccb55..23d0c01f0 100644
--- a/app/Model/helpdesk/Ticket/Ticket_attachments.php
+++ b/app/Model/helpdesk/Ticket/Ticket_attachments.php
@@ -4,14 +4,15 @@ namespace App\Model\helpdesk\Ticket;
use Illuminate\Database\Eloquent\Model;
-class Ticket_attachments extends Model {
-
+class Ticket_attachments extends Model
+{
protected $table = 'ticket_attachment';
protected $fillable = [
'id', 'thread_id', 'name', 'size', 'type', 'file', 'data', 'poster', 'updated_at', 'created_at',
];
- public function setFileAttribute($value) {
+ public function setFileAttribute($value)
+ {
if ($value) {
$this->attributes['file'] = base64_encode($value);
} else {
@@ -19,42 +20,43 @@ class Ticket_attachments extends Model {
}
}
- public function getFileAttribute($value) {
+ public function getFileAttribute($value)
+ {
$drive = $this->driver;
$name = $this->name;
$root = $this->path;
- if (($drive=="database" || !$drive) && $value && base64_decode($value, true) === false) {
-
+ if (($drive == 'database' || !$drive) && $value && base64_decode($value, true) === false) {
$value = base64_encode($value);
}
- if($drive && $drive!=="database"){
-
+ if ($drive && $drive !== 'database') {
$storage = new \App\FaveoStorage\Controllers\StorageController();
$content = $storage->getFile($drive, $name);
$value = base64_encode($content);
}
+
return $value;
}
- public function getFile() {
+ public function getFile()
+ {
$size = $this->size;
$drive = $this->driver;
$name = $this->name;
$root = $this->path;
- $units = array('B', 'KB', 'MB', 'GB', 'TB', 'PB', 'EB', 'ZB', 'YB');
+ $units = ['B', 'KB', 'MB', 'GB', 'TB', 'PB', 'EB', 'ZB', 'YB'];
$power = $size > 0 ? floor(log($size, 1024)) : 0;
- $value = number_format($size / pow(1024, $power), 2, '.', ',') . ' ' . $units[$power];
+ $value = number_format($size / pow(1024, $power), 2, '.', ',').' '.$units[$power];
if ($this->poster == 'ATTACHMENT') {
- if (mime($this->type) == "image") {
+ if (mime($this->type) == 'image') {
+ $var = '

';
- $var = '

';
- return '
' . $var . '' . $this->name . '' . $value . '
';
+ return '
'.$var.''.$this->name.''.$value.'
';
} else {
//$var = '
 . ')
';
- $var = '
' . strtoupper(str_limit($this->type,15)) . '' . $this->name . '
' . $value . '
';
- return '
' . $var . '';
+ $var = '
'.strtoupper(str_limit($this->type, 15)).''.$this->name.'
'.$value.'
';
+
+ return '
'.$var.'';
}
}
}
-
}
diff --git a/app/Model/helpdesk/Ticket/Ticket_source.php b/app/Model/helpdesk/Ticket/Ticket_source.php
index 21d6b8828..b520359c0 100644
--- a/app/Model/helpdesk/Ticket/Ticket_source.php
+++ b/app/Model/helpdesk/Ticket/Ticket_source.php
@@ -9,6 +9,6 @@ class Ticket_source extends BaseModel
public $timestamps = false;
protected $table = 'ticket_source';
protected $fillable = [
- 'name', 'value','css_class',
+ 'name', 'value', 'css_class',
];
}
diff --git a/app/Model/helpdesk/Ticket/Tickets.php b/app/Model/helpdesk/Ticket/Tickets.php
index 3b59f9f99..84018a537 100644
--- a/app/Model/helpdesk/Ticket/Tickets.php
+++ b/app/Model/helpdesk/Ticket/Tickets.php
@@ -4,8 +4,8 @@ namespace App\Model\helpdesk\Ticket;
use App\BaseModel;
-class Tickets extends BaseModel {
-
+class Tickets extends BaseModel
+{
protected $table = 'tickets';
protected $fillable = ['id', 'ticket_number', 'num_sequence', 'user_id', 'priority_id', 'sla', 'help_topic_id', 'max_open_ticket', 'captcha', 'status', 'lock_by', 'lock_at', 'source', 'isoverdue', 'reopened', 'isanswered', 'is_deleted', 'closed', 'is_transfer', 'transfer_at', 'reopened_at', 'duedate', 'closed_at', 'last_message_at', 'last_response_at', 'created_at', 'updated_at', 'assigned_to'];
@@ -13,62 +13,76 @@ class Tickets extends BaseModel {
// return $this->hasMany('App\Model\helpdesk\Ticket\Ticket_attachments',);
//
// }
- public function thread() {
+ public function thread()
+ {
return $this->hasMany('App\Model\helpdesk\Ticket\Ticket_Thread', 'ticket_id');
}
- public function collaborator() {
+ public function collaborator()
+ {
return $this->hasMany('App\Model\helpdesk\Ticket\Ticket_Collaborator', 'ticket_id');
}
-
- public function helptopic(){
+
+ public function helptopic()
+ {
$related = 'App\Model\helpdesk\Manage\Help_topic';
$foreignKey = 'help_topic_id';
+
return $this->belongsTo($related, $foreignKey);
}
- public function formdata() {
+ public function formdata()
+ {
return $this->hasMany('App\Model\helpdesk\Ticket\Ticket_Form_Data', 'ticket_id');
}
- public function extraFields() {
+ public function extraFields()
+ {
$id = $this->attributes['id'];
$ticket_form_datas = \App\Model\helpdesk\Ticket\Ticket_Form_Data::where('ticket_id', '=', $id)->get();
+
return $ticket_form_datas;
}
- public function source() {
+ public function source()
+ {
$source_id = $this->attributes['source'];
$sources = new Ticket_source();
$source = $sources->find($source_id);
+
return $source;
}
- public function sourceCss() {
- $css = "fa fa-comment";
+ public function sourceCss()
+ {
+ $css = 'fa fa-comment';
$source = $this->source();
if ($source) {
$css = $source->css_class;
}
+
return $css;
}
- public function delete() {
+ public function delete()
+ {
$this->thread()->delete();
$this->collaborator()->delete();
$this->formdata()->delete();
parent::delete();
}
- public function setAssignedToAttribute($value) {
+ public function setAssignedToAttribute($value)
+ {
if (!$value) {
$this->attributes['assigned_to'] = null;
- }else{
- $this->attributes['assigned_to'] = $value;
+ } else {
+ $this->attributes['assigned_to'] = $value;
}
}
- public function getAssignedTo() {
+ public function getAssignedTo()
+ {
$agentid = $this->attributes['assigned_to'];
if ($agentid) {
$users = new \App\User();
@@ -78,11 +92,12 @@ class Tickets extends BaseModel {
}
}
}
-
- public function user(){
+
+ public function user()
+ {
$related = "App\User";
- $foreignKey = "user_id";
+ $foreignKey = 'user_id';
+
return $this->belongsTo($related, $foreignKey);
}
-
}
diff --git a/app/Model/helpdesk/Utility/Limit_Login.php b/app/Model/helpdesk/Utility/Limit_Login.php
index 124ee3ec7..531f6f2c3 100644
--- a/app/Model/helpdesk/Utility/Limit_Login.php
+++ b/app/Model/helpdesk/Utility/Limit_Login.php
@@ -5,7 +5,7 @@ namespace App\Model\helpdesk\Utility;
use App\BaseModel;
class Limit_Login extends BaseModel
-{
- protected $table = 'login_attempts';
+{
+ protected $table = 'login_attempts';
protected $fillable = ['User', 'IP', 'Attempts', 'LastLogin', 'created_at', 'updated_at'];
}
diff --git a/app/Providers/AppServiceProvider.php b/app/Providers/AppServiceProvider.php
index 17dff6b91..0175dfc4f 100644
--- a/app/Providers/AppServiceProvider.php
+++ b/app/Providers/AppServiceProvider.php
@@ -3,10 +3,10 @@
namespace App\Providers;
use App\Model\Update\BarNotification;
-use Illuminate\Support\ServiceProvider;
-use View;
-use Queue;
use Illuminate\Queue\Events\JobFailed;
+use Illuminate\Support\ServiceProvider;
+use Queue;
+use View;
class AppServiceProvider extends ServiceProvider
{
@@ -22,13 +22,13 @@ class AppServiceProvider extends ServiceProvider
public function register()
{
$this->app->bind('Illuminate\Contracts\Auth\Registrar');
- require_once __DIR__ . '/../Http/helpers.php';
+ require_once __DIR__.'/../Http/helpers.php';
}
public function boot()
{
Queue::failing(function (JobFailed $event) {
- loging('Failed Job - '.$event->connectionName, json_encode($event->data));
+ loging('Failed Job - '.$event->connectionName, json_encode($event->data));
$failedid = $event->failedId;
//\Artisan::call('queue:retry',['id'=>[$failedid]]);
});
@@ -58,7 +58,7 @@ class AppServiceProvider extends ServiceProvider
\View::composer('themes.default1.update.notification', function () {
$notification = new BarNotification();
$not = [
- 'notification' => $notification->where('value','!=','')->get(),
+ 'notification' => $notification->where('value', '!=', '')->get(),
];
view()->share($not);
});
diff --git a/app/Providers/ComposerServiceProvider.php b/app/Providers/ComposerServiceProvider.php
index 9954471fc..9dbcb5152 100644
--- a/app/Providers/ComposerServiceProvider.php
+++ b/app/Providers/ComposerServiceProvider.php
@@ -16,7 +16,7 @@ class ComposerServiceProvider extends ServiceProvider
view()->composer(
[
'themes.default1.agent.layout.agent',
- 'themes.default1.agent.helpdesk.dashboard.dashboard'
+ 'themes.default1.agent.helpdesk.dashboard.dashboard',
], 'App\Http\ViewComposers\AgentLayout'
);
view()->composer(
diff --git a/app/User.php b/app/User.php
index 163724c9c..a746bd1c7 100644
--- a/app/User.php
+++ b/app/User.php
@@ -8,8 +8,8 @@ use Illuminate\Contracts\Auth\Authenticatable as AuthenticatableContract;
use Illuminate\Contracts\Auth\CanResetPassword as CanResetPasswordContract;
use Illuminate\Database\Eloquent\Model;
-class User extends Model implements AuthenticatableContract, CanResetPasswordContract {
-
+class User extends Model implements AuthenticatableContract, CanResetPasswordContract
+{
use Authenticatable,
CanResetPassword;
@@ -28,7 +28,7 @@ class User extends Model implements AuthenticatableContract, CanResetPasswordCon
protected $fillable = ['user_name', 'email', 'password', 'active', 'first_name', 'last_name', 'ban', 'ext', 'mobile', 'profile_pic',
'phone_number', 'company', 'agent_sign', 'account_type', 'account_status',
'assign_group', 'primary_dpt', 'agent_tzone', 'daylight_save', 'limit_access',
- 'directory_listing', 'vacation_mode', 'role', 'internal_note', 'country_code','not_accept_ticket','is_delete'];
+ 'directory_listing', 'vacation_mode', 'role', 'internal_note', 'country_code', 'not_accept_ticket', 'is_delete', ];
/**
* The attributes excluded from the model's JSON form.
@@ -36,31 +36,34 @@ class User extends Model implements AuthenticatableContract, CanResetPasswordCon
* @var array
*/
protected $hidden = ['password', 'remember_token'];
-
- public function getProfilePicAttribute($value) {
-
+ public function getProfilePicAttribute($value)
+ {
$info = $this->avatar();
- $pic = NULL;
+ $pic = null;
if ($info) {
$pic = $this->checkArray('avatar', $info);
}
if (!$pic) {
- $pic = asset('uploads/profilepic/' . $value);
+ $pic = asset('uploads/profilepic/'.$value);
}
if (!$value) {
$pic = \Gravatar::src($this->attributes['email']);
- }
+ }
+
return $pic;
}
-
- public function avatar(){
+
+ public function avatar()
+ {
$related = 'App\UserAdditionalInfo';
$foreignKey = 'owner';
- return $this->hasMany($related, $foreignKey)->select('value')->where('key','avatar')->first();
+
+ return $this->hasMany($related, $foreignKey)->select('value')->where('key', 'avatar')->first();
}
- public function getOrganizationRelation() {
+ public function getOrganizationRelation()
+ {
$related = "App\Model\helpdesk\Agent_panel\User_org";
$user_relation = $this->hasMany($related, 'user_id');
$relation = $user_relation->first();
@@ -68,96 +71,111 @@ class User extends Model implements AuthenticatableContract, CanResetPasswordCon
$org_id = $relation->org_id;
$orgs = new \App\Model\helpdesk\Agent_panel\Organization();
$org = $orgs->where('id', $org_id);
+
return $org;
}
}
- public function getOrganization() {
- $name = "";
+ public function getOrganization()
+ {
+ $name = '';
if ($this->getOrganizationRelation()) {
$org = $this->getOrganizationRelation()->first();
if ($org) {
$name = $org->name;
}
}
+
return $name;
}
- public function getOrgWithLink() {
- $name = "";
+ public function getOrgWithLink()
+ {
+ $name = '';
$org = $this->getOrganization();
- if ($org !== "") {
+ if ($org !== '') {
$orgs = $this->getOrganizationRelation()->first();
if ($orgs) {
$id = $orgs->id;
- $name = "
" . ucfirst($org) . "";
+ $name = '
'.ucfirst($org).'';
}
}
+
return $name;
}
- public function getEmailAttribute($value) {
+ public function getEmailAttribute($value)
+ {
if (!$value) {
$value = \Lang::get('lang.not-available');
}
+
return $value;
}
- public function getExtraInfo($id = "") {
- if ($id === "") {
+ public function getExtraInfo($id = '')
+ {
+ if ($id === '') {
$id = $this->attributes['id'];
}
$info = new UserAdditionalInfo();
$infos = $info->where('owner', $id)->lists('value', 'key')->toArray();
+
return $infos;
}
- public function checkArray($key, $array) {
- $value = "";
+ public function checkArray($key, $array)
+ {
+ $value = '';
if (is_array($array)) {
if (array_key_exists($key, $array)) {
$value = $array[$key];
}
}
+
return $value;
}
- public function twitterLink() {
- $html = "";
+ public function twitterLink()
+ {
+ $html = '';
$info = $this->getExtraInfo();
$username = $this->checkArray('username', $info);
- if ($username !== "") {
- $html = "
Twitter";
+ if ($username !== '') {
+ $html = "
Twitter";
}
+
return $html;
}
-
- public function name(){
+
+ public function name()
+ {
$first_name = $this->first_name;
$last_name = $this->last_name;
$name = $this->user_name;
- if($first_name !== '' && $first_name !== null) {
+ if ($first_name !== '' && $first_name !== null) {
if ($last_name !== '' && $last_name !== null) {
$name = $first_name.' '.$last_name;
} else {
$name = $first_name;
}
}
+
return $name;
}
-
- public function getFullNameAttribute() {
+
+ public function getFullNameAttribute()
+ {
return $this->name();
}
+
// public function save() {
// dd($this->id);
// parent::save();
// }
-
+
// public function save(array $options = array()) {
// parent::save($options);
// dd($this->where('id',$this->id)->select('first_name','last_name','user_name','email')->get()->toJson());
// }
-
-
}
diff --git a/app/UserAdditionalInfo.php b/app/UserAdditionalInfo.php
index 09bb9072d..7876c5c80 100644
--- a/app/UserAdditionalInfo.php
+++ b/app/UserAdditionalInfo.php
@@ -6,7 +6,6 @@ use Illuminate\Database\Eloquent\Model;
class UserAdditionalInfo extends Model
{
- protected $table = "user_additional_infos";
- protected $fillable = ["owner","service","key","value",];
-
+ protected $table = 'user_additional_infos';
+ protected $fillable = ['owner', 'service', 'key', 'value'];
}
diff --git a/config/app.php b/config/app.php
index ae437a455..0423b5ce1 100644
--- a/config/app.php
+++ b/config/app.php
@@ -97,7 +97,7 @@ return [
| will not be safe. Please do this before deploying an application!
|
*/
- 'key' => env('APP_KEY', 'F70u5RfMoiq7ptPR'),
+ 'key' => env('APP_KEY', 'F70u5RfMoiq7ptPR'),
'cipher' => MCRYPT_RIJNDAEL_128,
/*
|--------------------------------------------------------------------------
@@ -139,7 +139,6 @@ return [
* Laravel Framework Service Providers...
*/
-
'Illuminate\Auth\AuthServiceProvider',
'Illuminate\Bus\BusServiceProvider',
'Illuminate\Cache\CacheServiceProvider',
@@ -189,8 +188,6 @@ return [
App\FaveoStorage\StorageServiceProvider::class,
Yajra\Datatables\DatatablesServiceProvider::class,
-
-
],
/*
|--------------------------------------------------------------------------
@@ -203,62 +200,62 @@ return [
|
*/
'aliases' => [
- 'App' => 'Illuminate\Support\Facades\App',
- 'Artisan' => 'Illuminate\Support\Facades\Artisan',
- 'Auth' => 'Illuminate\Support\Facades\Auth',
- 'Blade' => 'Illuminate\Support\Facades\Blade',
- 'Cache' => 'Illuminate\Support\Facades\Cache',
- 'Config' => 'Illuminate\Support\Facades\Config',
- 'Cookie' => 'Illuminate\Support\Facades\Cookie',
- 'Crypt' => 'Illuminate\Support\Facades\Crypt',
- 'DB' => 'Illuminate\Support\Facades\DB',
- 'Eloquent' => 'Illuminate\Database\Eloquent\Model',
- 'Event' => 'Illuminate\Support\Facades\Event',
- 'File' => 'Illuminate\Support\Facades\File',
- 'Hash' => 'Illuminate\Support\Facades\Hash',
- 'Input' => 'Illuminate\Support\Facades\Input',
- 'Inspiring' => 'Illuminate\Foundation\Inspiring',
- 'Lang' => 'Illuminate\Support\Facades\Lang',
- 'Log' => 'Illuminate\Support\Facades\Log',
- 'Mail' => 'Illuminate\Support\Facades\Mail',
- 'Password' => 'Illuminate\Support\Facades\Password',
- 'Queue' => 'Illuminate\Support\Facades\Queue',
- 'Redirect' => 'Illuminate\Support\Facades\Redirect',
- 'Redis' => 'Illuminate\Support\Facades\Redis',
- 'Request' => 'Illuminate\Support\Facades\Request',
- 'Response' => 'Illuminate\Support\Facades\Response',
- 'Route' => 'Illuminate\Support\Facades\Route',
- 'Schema' => 'Illuminate\Support\Facades\Schema',
- 'Session' => 'Illuminate\Support\Facades\Session',
- 'Storage' => 'Illuminate\Support\Facades\Storage',
- 'URL' => 'Illuminate\Support\Facades\URL',
- 'Validator' => 'Illuminate\Support\Facades\Validator',
- 'View' => 'Illuminate\Support\Facades\View',
- 'Form' => 'Illuminate\Html\FormFacade',
- 'HTML' => 'Illuminate\Html\HtmlFacade',
- 'phone' => 'The :attribute field contains an invalid number.',
- 'Bugsnag' => 'Bugsnag\BugsnagLaravel\BugsnagFacade',
- 'PDF' => 'Vsmoraes\Pdf\PdfFacade',
- 'Gravatar' => 'Thomaswelton\LaravelGravatar\Facades\Gravatar',
- 'UTC' => 'App\Http\Controllers\Agent\helpdesk\TicketController',
- 'Ttable' => 'App\Http\Controllers\Agent\helpdesk\TicketController', //to use getTable function.
- 'SMTPS' => 'App\Http\Controllers\HomeController',
- 'Datatable' => 'Chumper\Datatable\Facades\DatatableFacade',
- 'Zipper' => 'Chumper\Zipper\Zipper',
- 'JWTAuth' => 'Tymon\JWTAuth\Facades\JWTAuth',
- 'JWTFactory' => 'Tymon\JWTAuth\Facades\JWTFactory',
+ 'App' => 'Illuminate\Support\Facades\App',
+ 'Artisan' => 'Illuminate\Support\Facades\Artisan',
+ 'Auth' => 'Illuminate\Support\Facades\Auth',
+ 'Blade' => 'Illuminate\Support\Facades\Blade',
+ 'Cache' => 'Illuminate\Support\Facades\Cache',
+ 'Config' => 'Illuminate\Support\Facades\Config',
+ 'Cookie' => 'Illuminate\Support\Facades\Cookie',
+ 'Crypt' => 'Illuminate\Support\Facades\Crypt',
+ 'DB' => 'Illuminate\Support\Facades\DB',
+ 'Eloquent' => 'Illuminate\Database\Eloquent\Model',
+ 'Event' => 'Illuminate\Support\Facades\Event',
+ 'File' => 'Illuminate\Support\Facades\File',
+ 'Hash' => 'Illuminate\Support\Facades\Hash',
+ 'Input' => 'Illuminate\Support\Facades\Input',
+ 'Inspiring' => 'Illuminate\Foundation\Inspiring',
+ 'Lang' => 'Illuminate\Support\Facades\Lang',
+ 'Log' => 'Illuminate\Support\Facades\Log',
+ 'Mail' => 'Illuminate\Support\Facades\Mail',
+ 'Password' => 'Illuminate\Support\Facades\Password',
+ 'Queue' => 'Illuminate\Support\Facades\Queue',
+ 'Redirect' => 'Illuminate\Support\Facades\Redirect',
+ 'Redis' => 'Illuminate\Support\Facades\Redis',
+ 'Request' => 'Illuminate\Support\Facades\Request',
+ 'Response' => 'Illuminate\Support\Facades\Response',
+ 'Route' => 'Illuminate\Support\Facades\Route',
+ 'Schema' => 'Illuminate\Support\Facades\Schema',
+ 'Session' => 'Illuminate\Support\Facades\Session',
+ 'Storage' => 'Illuminate\Support\Facades\Storage',
+ 'URL' => 'Illuminate\Support\Facades\URL',
+ 'Validator' => 'Illuminate\Support\Facades\Validator',
+ 'View' => 'Illuminate\Support\Facades\View',
+ 'Form' => 'Illuminate\Html\FormFacade',
+ 'HTML' => 'Illuminate\Html\HtmlFacade',
+ 'phone' => 'The :attribute field contains an invalid number.',
+ 'Bugsnag' => 'Bugsnag\BugsnagLaravel\BugsnagFacade',
+ 'PDF' => 'Vsmoraes\Pdf\PdfFacade',
+ 'Gravatar' => 'Thomaswelton\LaravelGravatar\Facades\Gravatar',
+ 'UTC' => 'App\Http\Controllers\Agent\helpdesk\TicketController',
+ 'Ttable' => 'App\Http\Controllers\Agent\helpdesk\TicketController', //to use getTable function.
+ 'SMTPS' => 'App\Http\Controllers\HomeController',
+ 'Datatable' => 'Chumper\Datatable\Facades\DatatableFacade',
+ 'Zipper' => 'Chumper\Zipper\Zipper',
+ 'JWTAuth' => 'Tymon\JWTAuth\Facades\JWTAuth',
+ 'JWTFactory' => 'Tymon\JWTAuth\Facades\JWTFactory',
'Breadcrumbs' => 'DaveJamesMiller\Breadcrumbs\Facade',
- 'GeoIP' => \Torann\GeoIP\Facades\GeoIP::class,
- 'Image' => Intervention\Image\Facades\Image::class,
- 'FCM' => LaravelFCM\Facades\FCM::class,
- 'FCMGroup' => LaravelFCM\Facades\FCMGroup::class,
- 'Debugbar' => Barryvdh\Debugbar\Facade::class,
- 'Excel' => Maatwebsite\Excel\Facades\Excel::class,
- 'Socialite' => Laravel\Socialite\Facades\Socialite::class,
- 'UnAuth' => 'App\Http\Controllers\Client\helpdesk\UnAuthController',
- 'Finder' => App\Helper\Finder::class,
- 'Datatables' => Yajra\Datatables\Facades\Datatables::class,
+ 'GeoIP' => \Torann\GeoIP\Facades\GeoIP::class,
+ 'Image' => Intervention\Image\Facades\Image::class,
+ 'FCM' => LaravelFCM\Facades\FCM::class,
+ 'FCMGroup' => LaravelFCM\Facades\FCMGroup::class,
+ 'Debugbar' => Barryvdh\Debugbar\Facade::class,
+ 'Excel' => Maatwebsite\Excel\Facades\Excel::class,
+ 'Socialite' => Laravel\Socialite\Facades\Socialite::class,
+ 'UnAuth' => 'App\Http\Controllers\Client\helpdesk\UnAuthController',
+ 'Finder' => App\Helper\Finder::class,
+ 'Datatables' => Yajra\Datatables\Facades\Datatables::class,
],
-];
\ No newline at end of file
+];
diff --git a/config/datatables.php b/config/datatables.php
index 89000cac5..c8ac57a44 100644
--- a/config/datatables.php
+++ b/config/datatables.php
@@ -1,59 +1,59 @@
[
- /**
+ /*
* Smart search will enclose search keyword with wildcard string "%keyword%".
* SQL: column LIKE "%keyword%"
*/
'smart' => true,
- /**
+ /*
* Case insensitive will search the keyword in lower case format.
* SQL: LOWER(column) LIKE LOWER(keyword)
*/
'case_insensitive' => true,
- /**
+ /*
* Wild card will add "%" in between every characters of the keyword.
* SQL: column LIKE "%k%e%y%w%o%r%d%"
*/
'use_wildcards' => false,
],
- /**
+ /*
* DataTables fractal configurations.
*/
'fractal' => [
- /**
+ /*
* Request key name to parse includes on fractal.
*/
'includes' => 'include',
- /**
+ /*
* Default fractal serializer.
*/
'serializer' => 'League\Fractal\Serializer\DataArraySerializer',
],
- /**
+ /*
* DataTables script view template.
*/
'script_template' => 'datatables::script',
- /**
+ /*
* DataTables internal index id response column name.
*/
'index_column' => 'DT_Row_Index',
- /**
+ /*
* Namespaces used by the generator.
*/
'namespace' => [
- /**
+ /*
* Base namespace/directory to create the new file.
* This is appended on default Laravel namespace.
*
@@ -64,7 +64,7 @@ return [
*/
'base' => 'DataTables',
- /**
+ /*
* Base namespace/directory where your model's are located.
* This is appended on default Laravel namespace.
*
@@ -76,7 +76,7 @@ return [
'model' => '',
],
- /**
+ /*
* PDF generator to be used when converting the table to pdf.
* Available generators: excel, snappy
* Snappy package: barryvdh/laravel-snappy
diff --git a/config/debugbar.php b/config/debugbar.php
index 406692f79..d6d0b11e5 100644
--- a/config/debugbar.php
+++ b/config/debugbar.php
@@ -1,6 +1,6 @@
array(
+ 'storage' => [
'enabled' => true,
'driver' => 'file', // redis, file, pdo, custom
'path' => storage_path('debugbar'), // For file driver
'connection' => null, // Leave null for default connection (Redis/PDO)
- 'provider' => '' // Instance of StorageInterface for custom driver
- ),
+ 'provider' => '', // Instance of StorageInterface for custom driver
+ ],
/*
|--------------------------------------------------------------------------
@@ -82,7 +82,7 @@ return array(
|
*/
- 'collectors' => array(
+ 'collectors' => [
'phpinfo' => true, // Php version
'messages' => true, // Messages
'time' => true, // Time Datalogger
@@ -103,7 +103,7 @@ return array(
'auth' => false, // Display Laravel authentication status
'gate' => false, // Display Laravel Gate checks
'session' => true, // Display session data
- ),
+ ],
/*
|--------------------------------------------------------------------------
@@ -114,33 +114,33 @@ return array(
|
*/
- 'options' => array(
- 'auth' => array(
+ 'options' => [
+ 'auth' => [
'show_name' => false, // Also show the users name/email in the debugbar
- ),
- 'db' => array(
+ ],
+ 'db' => [
'with_params' => true, // Render SQL with the parameters substituted
'timeline' => false, // Add the queries to the timeline
'backtrace' => false, // EXPERIMENTAL: Use a backtrace to find the origin of the query in your files.
- 'explain' => array( // EXPERIMENTAL: Show EXPLAIN output on queries
+ 'explain' => [ // EXPERIMENTAL: Show EXPLAIN output on queries
'enabled' => false,
- 'types' => array('SELECT'), // array('SELECT', 'INSERT', 'UPDATE', 'DELETE'); for MySQL 5.6.3+
- ),
+ 'types' => ['SELECT'], // array('SELECT', 'INSERT', 'UPDATE', 'DELETE'); for MySQL 5.6.3+
+ ],
'hints' => true, // Show hints for common mistakes
- ),
- 'mail' => array(
- 'full_log' => false
- ),
- 'views' => array(
+ ],
+ 'mail' => [
+ 'full_log' => false,
+ ],
+ 'views' => [
'data' => false, //Note: Can slow down the application, because the data can be quite large..
- ),
- 'route' => array(
- 'label' => true // show complete route on bar
- ),
- 'logs' => array(
- 'file' => null
- ),
- ),
+ ],
+ 'route' => [
+ 'label' => true, // show complete route on bar
+ ],
+ 'logs' => [
+ 'file' => null,
+ ],
+ ],
/*
|--------------------------------------------------------------------------
@@ -167,4 +167,4 @@ return array(
*/
'route_prefix' => '_debugbar',
-);
+];
diff --git a/config/excel.php b/config/excel.php
index 2ad127703..fdbc685c4 100644
--- a/config/excel.php
+++ b/config/excel.php
@@ -1,8 +1,8 @@
array(
+ 'cache' => [
/*
|--------------------------------------------------------------------------
@@ -29,24 +29,24 @@ return array(
| Cache settings
|--------------------------------------------------------------------------
*/
- 'settings' => array(
+ 'settings' => [
'memoryCacheSize' => '32MB',
- 'cacheTime' => 600
+ 'cacheTime' => 600,
- ),
+ ],
/*
|--------------------------------------------------------------------------
| Memcache settings
|--------------------------------------------------------------------------
*/
- 'memcache' => array(
+ 'memcache' => [
'host' => 'localhost',
'port' => 11211,
- ),
+ ],
/*
|--------------------------------------------------------------------------
@@ -54,10 +54,10 @@ return array(
|--------------------------------------------------------------------------
*/
- 'dir' => storage_path('cache')
- ),
+ 'dir' => storage_path('cache'),
+ ],
- 'properties' => array(
+ 'properties' => [
'creator' => 'Maatwebsite',
'lastModifiedBy' => 'Maatwebsite',
'title' => 'Spreadsheet',
@@ -67,35 +67,35 @@ return array(
'category' => 'Excel',
'manager' => 'Maatwebsite',
'company' => 'Maatwebsite',
- ),
+ ],
/*
|--------------------------------------------------------------------------
| Sheets settings
|--------------------------------------------------------------------------
*/
- 'sheets' => array(
+ 'sheets' => [
/*
|--------------------------------------------------------------------------
| Default page setup
|--------------------------------------------------------------------------
*/
- 'pageSetup' => array(
+ 'pageSetup' => [
'orientation' => 'portrait',
'paperSize' => '9',
'scale' => '100',
'fitToPage' => false,
'fitToHeight' => true,
'fitToWidth' => true,
- 'columnsToRepeatAtLeft' => array('', ''),
- 'rowsToRepeatAtTop' => array(0, 0),
+ 'columnsToRepeatAtLeft' => ['', ''],
+ 'rowsToRepeatAtTop' => [0, 0],
'horizontalCentered' => false,
'verticalCentered' => false,
'printArea' => null,
'firstPageNumber' => null,
- ),
- ),
+ ],
+ ],
/*
|--------------------------------------------------------------------------
@@ -108,7 +108,7 @@ return array(
'creator' => 'Maatwebsite',
- 'csv' => array(
+ 'csv' => [
/*
|--------------------------------------------------------------------------
| Delimiter
@@ -142,10 +142,10 @@ return array(
|--------------------------------------------------------------------------
*/
- 'use_bom' => false
- ),
+ 'use_bom' => false,
+ ],
- 'export' => array(
+ 'export' => [
/*
|--------------------------------------------------------------------------
@@ -218,7 +218,7 @@ return array(
| Default sheet settings
|--------------------------------------------------------------------------
*/
- 'sheets' => array(
+ 'sheets' => [
/*
|--------------------------------------------------------------------------
@@ -253,8 +253,8 @@ return array(
| Apply strict comparison when testing for null values in the array
|--------------------------------------------------------------------------
*/
- 'strictNullComparison' => false
- ),
+ 'strictNullComparison' => false,
+ ],
/*
|--------------------------------------------------------------------------
@@ -262,7 +262,7 @@ return array(
|--------------------------------------------------------------------------
*/
- 'store' => array(
+ 'store' => [
/*
|--------------------------------------------------------------------------
@@ -282,16 +282,16 @@ return array(
| Whether we want to return information about the stored file or not
|
*/
- 'returnInfo' => false
+ 'returnInfo' => false,
- ),
+ ],
/*
|--------------------------------------------------------------------------
| PDF Settings
|--------------------------------------------------------------------------
*/
- 'pdf' => array(
+ 'pdf' => [
/*
|--------------------------------------------------------------------------
@@ -306,48 +306,48 @@ return array(
| PDF Driver settings
|--------------------------------------------------------------------------
*/
- 'drivers' => array(
+ 'drivers' => [
/*
|--------------------------------------------------------------------------
| DomPDF settings
|--------------------------------------------------------------------------
*/
- 'DomPDF' => array(
- 'path' => base_path('vendor/dompdf/dompdf/')
- ),
+ 'DomPDF' => [
+ 'path' => base_path('vendor/dompdf/dompdf/'),
+ ],
/*
|--------------------------------------------------------------------------
| tcPDF settings
|--------------------------------------------------------------------------
*/
- 'tcPDF' => array(
- 'path' => base_path('vendor/tecnick.com/tcpdf/')
- ),
+ 'tcPDF' => [
+ 'path' => base_path('vendor/tecnick.com/tcpdf/'),
+ ],
/*
|--------------------------------------------------------------------------
| mPDF settings
|--------------------------------------------------------------------------
*/
- 'mPDF' => array(
- 'path' => base_path('vendor/mpdf/mpdf/')
- ),
- )
- )
- ),
+ 'mPDF' => [
+ 'path' => base_path('vendor/mpdf/mpdf/'),
+ ],
+ ],
+ ],
+ ],
- 'filters' => array(
+ 'filters' => [
/*
|--------------------------------------------------------------------------
| Register read filters
|--------------------------------------------------------------------------
*/
- 'registered' => array(
- 'chunk' => 'Maatwebsite\Excel\Filters\ChunkReadFilter'
- ),
+ 'registered' => [
+ 'chunk' => 'Maatwebsite\Excel\Filters\ChunkReadFilter',
+ ],
/*
|--------------------------------------------------------------------------
@@ -355,10 +355,10 @@ return array(
|--------------------------------------------------------------------------
*/
- 'enabled' => array()
- ),
+ 'enabled' => [],
+ ],
- 'import' => array(
+ 'import' => [
/*
|--------------------------------------------------------------------------
@@ -423,12 +423,12 @@ return array(
|--------------------------------------------------------------------------
*/
- 'encoding' => array(
+ 'encoding' => [
'input' => 'UTF-8',
- 'output' => 'UTF-8'
+ 'output' => 'UTF-8',
- ),
+ ],
/*
|--------------------------------------------------------------------------
@@ -474,7 +474,7 @@ return array(
|
*/
- 'dates' => array(
+ 'dates' => [
/*
|--------------------------------------------------------------------------
@@ -498,15 +498,15 @@ return array(
| Date columns
|--------------------------------------------------------------------------
*/
- 'columns' => array()
- ),
+ 'columns' => [],
+ ],
/*
|--------------------------------------------------------------------------
| Import sheets by config
|--------------------------------------------------------------------------
*/
- 'sheets' => array(
+ 'sheets' => [
/*
|--------------------------------------------------------------------------
@@ -517,16 +517,16 @@ return array(
|
*/
- 'test' => array(
+ 'test' => [
- 'firstname' => 'A2'
+ 'firstname' => 'A2',
- )
+ ],
- )
- ),
+ ],
+ ],
- 'views' => array(
+ 'views' => [
/*
|--------------------------------------------------------------------------
@@ -537,155 +537,155 @@ return array(
|
*/
- 'styles' => array(
+ 'styles' => [
/*
|--------------------------------------------------------------------------
| Table headings
|--------------------------------------------------------------------------
*/
- 'th' => array(
- 'font' => array(
+ 'th' => [
+ 'font' => [
'bold' => true,
'size' => 12,
- )
- ),
+ ],
+ ],
/*
|--------------------------------------------------------------------------
| Strong tags
|--------------------------------------------------------------------------
*/
- 'strong' => array(
- 'font' => array(
+ 'strong' => [
+ 'font' => [
'bold' => true,
'size' => 12,
- )
- ),
+ ],
+ ],
/*
|--------------------------------------------------------------------------
| Bold tags
|--------------------------------------------------------------------------
*/
- 'b' => array(
- 'font' => array(
+ 'b' => [
+ 'font' => [
'bold' => true,
'size' => 12,
- )
- ),
+ ],
+ ],
/*
|--------------------------------------------------------------------------
| Italic tags
|--------------------------------------------------------------------------
*/
- 'i' => array(
- 'font' => array(
+ 'i' => [
+ 'font' => [
'italic' => true,
'size' => 12,
- )
- ),
+ ],
+ ],
/*
|--------------------------------------------------------------------------
| Heading 1
|--------------------------------------------------------------------------
*/
- 'h1' => array(
- 'font' => array(
+ 'h1' => [
+ 'font' => [
'bold' => true,
'size' => 24,
- )
- ),
+ ],
+ ],
/*
|--------------------------------------------------------------------------
| Heading 2
|--------------------------------------------------------------------------
*/
- 'h2' => array(
- 'font' => array(
+ 'h2' => [
+ 'font' => [
'bold' => true,
'size' => 18,
- )
- ),
+ ],
+ ],
/*
|--------------------------------------------------------------------------
| Heading 2
|--------------------------------------------------------------------------
*/
- 'h3' => array(
- 'font' => array(
+ 'h3' => [
+ 'font' => [
'bold' => true,
'size' => 13.5,
- )
- ),
+ ],
+ ],
/*
|--------------------------------------------------------------------------
| Heading 4
|--------------------------------------------------------------------------
*/
- 'h4' => array(
- 'font' => array(
+ 'h4' => [
+ 'font' => [
'bold' => true,
'size' => 12,
- )
- ),
+ ],
+ ],
/*
|--------------------------------------------------------------------------
| Heading 5
|--------------------------------------------------------------------------
*/
- 'h5' => array(
- 'font' => array(
+ 'h5' => [
+ 'font' => [
'bold' => true,
'size' => 10,
- )
- ),
+ ],
+ ],
/*
|--------------------------------------------------------------------------
| Heading 6
|--------------------------------------------------------------------------
*/
- 'h6' => array(
- 'font' => array(
+ 'h6' => [
+ 'font' => [
'bold' => true,
'size' => 7.5,
- )
- ),
+ ],
+ ],
/*
|--------------------------------------------------------------------------
| Hyperlinks
|--------------------------------------------------------------------------
*/
- 'a' => array(
- 'font' => array(
+ 'a' => [
+ 'font' => [
'underline' => true,
- 'color' => array('argb' => 'FF0000FF'),
- )
- ),
+ 'color' => ['argb' => 'FF0000FF'],
+ ],
+ ],
/*
|--------------------------------------------------------------------------
| Horizontal rules
|--------------------------------------------------------------------------
*/
- 'hr' => array(
- 'borders' => array(
- 'bottom' => array(
+ 'hr' => [
+ 'borders' => [
+ 'bottom' => [
'style' => 'thin',
- 'color' => array('FF000000')
- ),
- )
- )
- )
+ 'color' => ['FF000000'],
+ ],
+ ],
+ ],
+ ],
- )
+ ],
-);
+];
diff --git a/config/lfm.php b/config/lfm.php
index 5f817f287..409361fe0 100644
--- a/config/lfm.php
+++ b/config/lfm.php
@@ -33,10 +33,9 @@ return [
'image/jpeg',
'image/pjpeg',
'image/png',
- 'image/gif'
+ 'image/gif',
],
-
// valid file mimetypes (only when '/laravel-filemanager?type=Files')
'valid_file_mimetypes' => [
'image/jpeg',
@@ -44,6 +43,6 @@ return [
'image/png',
'image/gif',
'application/pdf',
- 'text/plain'
+ 'text/plain',
],
];
diff --git a/config/mail.php b/config/mail.php
index f6e88b3b7..8c41cf899 100644
--- a/config/mail.php
+++ b/config/mail.php
@@ -15,7 +15,7 @@ return [
|
*/
- 'driver' =>'',
+ 'driver' => '',
/*
|--------------------------------------------------------------------------
| SMTP Host Address
diff --git a/config/queue.php b/config/queue.php
index 5077fbc8e..46bf10ca0 100644
--- a/config/queue.php
+++ b/config/queue.php
@@ -34,34 +34,34 @@ return [
],
'database' => [
'driver' => 'database',
- 'table' => 'jobs',
- 'queue' => 'default',
+ 'table' => 'jobs',
+ 'queue' => 'default',
'expire' => 60,
],
'beanstalkd' => [
'driver' => 'beanstalkd',
- 'host' => 'localhost',
- 'queue' => 'default',
- 'ttr' => 60,
+ 'host' => 'localhost',
+ 'queue' => 'default',
+ 'ttr' => 60,
],
'sqs' => [
'driver' => 'sqs',
- 'key' => 'your-public-key',
+ 'key' => 'your-public-key',
'secret' => 'your-secret-key',
- 'queue' => 'your-queue-url',
+ 'queue' => 'your-queue-url',
'region' => 'us-east-1',
],
'iron' => [
- 'driver' => 'iron',
- 'host' => 'mq-aws-us-east-1.iron.io',
- 'token' => 'your-token',
+ 'driver' => 'iron',
+ 'host' => 'mq-aws-us-east-1.iron.io',
+ 'token' => 'your-token',
'project' => 'your-project-id',
- 'queue' => 'your-queue-name',
+ 'queue' => 'your-queue-name',
'encrypt' => true,
],
'redis' => [
'driver' => '',
- 'queue' => '',
+ 'queue' => '',
'expire' => 60,
],
],
diff --git a/config/services.php b/config/services.php
index 869acc439..61305a76f 100644
--- a/config/services.php
+++ b/config/services.php
@@ -22,45 +22,44 @@ return [
'secret' => '',
],
'ses' => [
- 'key' => '',
+ 'key' => '',
'secret' => '',
'region' => 'us-east-1',
],
'stripe' => [
- 'model' => 'User',
+ 'model' => 'User',
'secret' => '',
],
-
+
'facebook' => [
- 'client_id' => '',//'1549781705316089', //app id
- 'client_secret' => '',//'d87caaf1b1dd1d5620fee458a85fb04b', //app secret
- 'redirect' => '',//'http://localhost/FaveoVersions/faveo-helpdesk/public/social/login/facebook', //redirec
+ 'client_id' => '', //'1549781705316089', //app id
+ 'client_secret' => '', //'d87caaf1b1dd1d5620fee458a85fb04b', //app secret
+ 'redirect' => '', //'http://localhost/FaveoVersions/faveo-helpdesk/public/social/login/facebook', //redirec
],
'google' => [
- 'client_id' => '',//'688540182553-kp780p6fvhjqtl6c91npm6hjair96vkr.apps.googleusercontent.com', //app id
- 'client_secret' => '',//'ZZ9lXX6uqLGgP1NzbQMh8tMT', //secret
- 'redirect' => '',//'http://localhost/FaveoVersions/faveo-helpdesk/public/social/login/google', //redirect
+ 'client_id' => '', //'688540182553-kp780p6fvhjqtl6c91npm6hjair96vkr.apps.googleusercontent.com', //app id
+ 'client_secret' => '', //'ZZ9lXX6uqLGgP1NzbQMh8tMT', //secret
+ 'redirect' => '', //'http://localhost/FaveoVersions/faveo-helpdesk/public/social/login/google', //redirect
],
'github' => [
- 'client_id' => '',//'32e7f0bf89715bee29c4', //app id
- 'client_secret' => '',//'2f279448a6e22bcc3948684b9fd9ae52859aa3dc', //app secrete,
- 'redirect' => '',//'http://localhost/FaveoVersions/faveo-helpdesk/public/social/login/github', //redirect
+ 'client_id' => '', //'32e7f0bf89715bee29c4', //app id
+ 'client_secret' => '', //'2f279448a6e22bcc3948684b9fd9ae52859aa3dc', //app secrete,
+ 'redirect' => '', //'http://localhost/FaveoVersions/faveo-helpdesk/public/social/login/github', //redirect
],
'twitter' => [
- 'client_id' => '',//'zIngm3fOvZSUl2mXQVuUkeyJq', //app id
- 'client_secret' => '',//'56qAS0c0AuDQqMKu6eFaixfEuIMt8L0PrOxvXtJ4Lcq08xClT2', //app secrete,
- 'redirect' => '',//'http://twitter-auth.app/FaveoVersions/faveo-helpdesk/public/social/login/twitter', //redirect
+ 'client_id' => '', //'zIngm3fOvZSUl2mXQVuUkeyJq', //app id
+ 'client_secret' => '', //'56qAS0c0AuDQqMKu6eFaixfEuIMt8L0PrOxvXtJ4Lcq08xClT2', //app secrete,
+ 'redirect' => '', //'http://twitter-auth.app/FaveoVersions/faveo-helpdesk/public/social/login/twitter', //redirect
],
'linkedin' => [
- 'client_id' => '',//'8124vrpk0p0a4h', //client id
- 'client_secret' => '',//'hKWvjrJba80PSzET', //client secrete,
- 'redirect' => '',//'http://localhost/FaveoVersions/faveo-helpdesk/public/social/login/linkedin', //redirect
+ 'client_id' => '', //'8124vrpk0p0a4h', //client id
+ 'client_secret' => '', //'hKWvjrJba80PSzET', //client secrete,
+ 'redirect' => '', //'http://localhost/FaveoVersions/faveo-helpdesk/public/social/login/linkedin', //redirect
],
'bitbucket' => [
- 'client_id' => '',//'pLKys6C89Xg6bbuHcL', //client id
- 'client_secret' => '',//'dD7HerXuELJR3uZQv93ZYuXsg5vLSzLR', //client secrete,
- 'redirect' => '',//'http://localhost/FaveoVersions/faveo-helpdesk/public/social/login/bitbucket', //redirect
+ 'client_id' => '', //'pLKys6C89Xg6bbuHcL', //client id
+ 'client_secret' => '', //'dD7HerXuELJR3uZQv93ZYuXsg5vLSzLR', //client secrete,
+ 'redirect' => '', //'http://localhost/FaveoVersions/faveo-helpdesk/public/social/login/bitbucket', //redirect
],
-
-
+
];
diff --git a/database/migrations/2016_02_16_140450_create_users_table.php b/database/migrations/2016_02_16_140450_create_users_table.php
index b1392a743..83676a3ae 100644
--- a/database/migrations/2016_02_16_140450_create_users_table.php
+++ b/database/migrations/2016_02_16_140450_create_users_table.php
@@ -22,7 +22,7 @@ class CreateUsersTable extends Migration
$table->boolean('ban');
$table->string('password', 60);
$table->integer('active');
- $table->boolean('is_delete')->default(0);;
+ $table->boolean('is_delete')->default(0);
$table->string('ext');
$table->integer('country_code');
$table->string('phone_number');
diff --git a/database/migrations/2016_06_28_141613_version1079table.php b/database/migrations/2016_06_28_141613_version1079table.php
index e5ae54496..70d13aa36 100644
--- a/database/migrations/2016_06_28_141613_version1079table.php
+++ b/database/migrations/2016_06_28_141613_version1079table.php
@@ -1,16 +1,16 @@
where('option_name', 'itil')->first();
if (!$settings) {
- DB::table('common_settings')->insert(['option_name'=>'itil','status'=>'0']);
+ DB::table('common_settings')->insert(['option_name'=>'itil', 'status'=>'0']);
}
}
}
-
}
diff --git a/database/migrations/2016_07_02_051247_create_jobs_table.php b/database/migrations/2016_07_02_051247_create_jobs_table.php
index 81b2d29f2..1d2900ac0 100644
--- a/database/migrations/2016_07_02_051247_create_jobs_table.php
+++ b/database/migrations/2016_07_02_051247_create_jobs_table.php
@@ -1,7 +1,7 @@
string('short_name');
$table->timestamps();
});
-
+
$mail = new MailService();
- $services= ['smtp'=>'SMTP','mail'=>'Php Mail','sendmail'=>'Send Mail','mailgun'=>'Mailgun','mandrill'=>'Mandrill','log'=>'Log file'];
- foreach($services as $key=>$value){
- $mail->create([
- 'name'=>$value,
- 'short_name'=>$key,
+ $services = ['smtp'=>'SMTP', 'mail'=>'Php Mail', 'sendmail'=>'Send Mail', 'mailgun'=>'Mailgun', 'mandrill'=>'Mandrill', 'log'=>'Log file'];
+ foreach ($services as $key=>$value) {
+ $mail->create([
+ 'name' => $value,
+ 'short_name'=> $key,
]);
}
-
-
}
/**
diff --git a/database/migrations/2016_07_26_095020_create_queue_services_table.php b/database/migrations/2016_07_26_095020_create_queue_services_table.php
index 122ad622b..a975ab6be 100644
--- a/database/migrations/2016_07_26_095020_create_queue_services_table.php
+++ b/database/migrations/2016_07_26_095020_create_queue_services_table.php
@@ -1,8 +1,8 @@
integer('status');
$table->timestamps();
});
-
+
$queue = new QueueService();
- $services = ['sync'=>'Sync','database'=>'Database','beanstalkd'=>'Beanstalkd','sqs'=>'SQS','iron'=>'Iron','redis'=>'Redis'];
- foreach($services as $key=>$value){
+ $services = ['sync'=>'Sync', 'database'=>'Database', 'beanstalkd'=>'Beanstalkd', 'sqs'=>'SQS', 'iron'=>'Iron', 'redis'=>'Redis'];
+ foreach ($services as $key=>$value) {
$queue->create([
- 'name'=>$value,
- 'short_name'=>$key,
- 'status'=>0,
+ 'name' => $value,
+ 'short_name'=> $key,
+ 'status' => 0,
]);
}
- $q = $queue->where('short_name','sync')->first();
- if($q){
- $q->status = 1;
- $q->save();
+ $q = $queue->where('short_name', 'sync')->first();
+ if ($q) {
+ $q->status = 1;
+ $q->save();
}
}
diff --git a/database/migrations/2016_07_29_113012_create_conditions_table.php b/database/migrations/2016_07_29_113012_create_conditions_table.php
index 8fb8691b5..042504317 100644
--- a/database/migrations/2016_07_29_113012_create_conditions_table.php
+++ b/database/migrations/2016_07_29_113012_create_conditions_table.php
@@ -1,7 +1,7 @@
string('css_class');
@@ -23,15 +24,16 @@ class AlterTicketSourceTable extends Migration {
}
}
- public function values() {
+ public function values()
+ {
return[
- ['name' => 'web', 'value' => 'Web', 'css_class' => 'fa fa-internet-explorer',],
- ['name' => 'email', 'value' => 'E-mail', 'css_class' => 'fa fa-envelope',],
- ['name' => 'agent', 'value' => 'Agent Panel', 'css_class' => 'fa fa-envelope',],
- ['name' => 'facebook', 'value' => 'Facebook', 'css_class' => 'fa fa-facebook',],
- ['name' => 'twitter', 'value' => 'Twitter', 'css_class' => 'fa fa-twitter',],
- ['name' => 'call', 'value' => 'Call', 'css_class' => 'fa fa-phone',],
- ['name' => 'chat', 'value' => 'Chat', 'css_class' => 'fa fa-comment',],
+ ['name' => 'web', 'value' => 'Web', 'css_class' => 'fa fa-internet-explorer'],
+ ['name' => 'email', 'value' => 'E-mail', 'css_class' => 'fa fa-envelope'],
+ ['name' => 'agent', 'value' => 'Agent Panel', 'css_class' => 'fa fa-envelope'],
+ ['name' => 'facebook', 'value' => 'Facebook', 'css_class' => 'fa fa-facebook'],
+ ['name' => 'twitter', 'value' => 'Twitter', 'css_class' => 'fa fa-twitter'],
+ ['name' => 'call', 'value' => 'Call', 'css_class' => 'fa fa-phone'],
+ ['name' => 'chat', 'value' => 'Chat', 'css_class' => 'fa fa-comment'],
];
}
@@ -40,10 +42,10 @@ class AlterTicketSourceTable extends Migration {
*
* @return void
*/
- public function down() {
+ public function down()
+ {
Schema::table('ticket_source', function (Blueprint $table) {
//
});
}
-
}
diff --git a/database/migrations/test/2016_07_26_084458_create_faveo_mails_table.php b/database/migrations/test/2016_07_26_084458_create_faveo_mails_table.php
index 94a66f639..ef3c1ce93 100644
--- a/database/migrations/test/2016_07_26_084458_create_faveo_mails_table.php
+++ b/database/migrations/test/2016_07_26_084458_create_faveo_mails_table.php
@@ -1,7 +1,7 @@
string('short_name');
$table->timestamps();
});
-
+
$mail = new MailService();
- $services= ['smtp'=>'SMTP','mail'=>'Php Mail','sendmail'=>'Send Mail','mailgun'=>'Mailgun','mandrill'=>'Mandrill','log'=>'Log file'];
- foreach($services as $key=>$value){
- $mail->create([
- 'name'=>$value,
- 'short_name'=>$key,
+ $services = ['smtp'=>'SMTP', 'mail'=>'Php Mail', 'sendmail'=>'Send Mail', 'mailgun'=>'Mailgun', 'mandrill'=>'Mandrill', 'log'=>'Log file'];
+ foreach ($services as $key=>$value) {
+ $mail->create([
+ 'name' => $value,
+ 'short_name'=> $key,
]);
}
-
-
}
/**
diff --git a/database/migrations/test/2016_07_26_095020_create_queue_services_table.php b/database/migrations/test/2016_07_26_095020_create_queue_services_table.php
index fa7283707..a682c7b59 100644
--- a/database/migrations/test/2016_07_26_095020_create_queue_services_table.php
+++ b/database/migrations/test/2016_07_26_095020_create_queue_services_table.php
@@ -1,8 +1,8 @@
integer('status');
$table->timestamps();
});
-
+
$queue = new QueueService();
- $services = ['database'=>'Local Database','beanstalkd'=>'Beanstalkd','sqs'=>'SQS','iron'=>'Iron','redis'=>'Redis'];
+ $services = ['database'=>'Local Database', 'beanstalkd'=>'Beanstalkd', 'sqs'=>'SQS', 'iron'=>'Iron', 'redis'=>'Redis'];
$status = 0;
- foreach($services as $key=>$value){
- if($key==='database'){
- $status=1;
+ foreach ($services as $key=>$value) {
+ if ($key === 'database') {
+ $status = 1;
}
$queue->create([
- 'name'=>$value,
- 'short_name'=>$key,
- 'status'=>$status,
+ 'name' => $value,
+ 'short_name'=> $key,
+ 'status' => $status,
]);
}
}
diff --git a/database/migrations/test/2016_07_29_113012_create_conditions_table.php b/database/migrations/test/2016_07_29_113012_create_conditions_table.php
index 8fb8691b5..042504317 100644
--- a/database/migrations/test/2016_07_29_113012_create_conditions_table.php
+++ b/database/migrations/test/2016_07_29_113012_create_conditions_table.php
@@ -1,7 +1,7 @@
string('css_class');
@@ -23,13 +24,14 @@ class AlterTicketSourceTable extends Migration {
}
}
- public function values() {
+ public function values()
+ {
return[
- ['name' => 'web', 'value' => 'Web', 'css_class' => 'fa fa-internet-explorer',],
- ['name' => 'email', 'value' => 'E-mail', 'css_class' => 'fa fa-envelope',],
- ['name' => 'agent', 'value' => 'Agent Panel', 'css_class' => 'fa fa-envelope',],
- ['name' => 'facebook', 'value' => 'Facebook', 'css_class' => 'fa fa-facebook',],
- ['name' => 'twitter', 'value' => 'Twitter', 'css_class' => 'fa fa-twitter',],
+ ['name' => 'web', 'value' => 'Web', 'css_class' => 'fa fa-internet-explorer'],
+ ['name' => 'email', 'value' => 'E-mail', 'css_class' => 'fa fa-envelope'],
+ ['name' => 'agent', 'value' => 'Agent Panel', 'css_class' => 'fa fa-envelope'],
+ ['name' => 'facebook', 'value' => 'Facebook', 'css_class' => 'fa fa-facebook'],
+ ['name' => 'twitter', 'value' => 'Twitter', 'css_class' => 'fa fa-twitter'],
];
}
@@ -38,10 +40,10 @@ class AlterTicketSourceTable extends Migration {
*
* @return void
*/
- public function down() {
+ public function down()
+ {
Schema::table('ticket_source', function (Blueprint $table) {
//
});
}
-
}
diff --git a/database/migrations/test1/test1/2016_08_16_104539_alter_ticket_source_table.php b/database/migrations/test1/test1/2016_08_16_104539_alter_ticket_source_table.php
index aa126f8d5..a39f3e57e 100644
--- a/database/migrations/test1/test1/2016_08_16_104539_alter_ticket_source_table.php
+++ b/database/migrations/test1/test1/2016_08_16_104539_alter_ticket_source_table.php
@@ -1,16 +1,17 @@
string('css_class');
@@ -23,13 +24,14 @@ class AlterTicketSourceTable extends Migration {
}
}
- public function values() {
+ public function values()
+ {
return[
- ['name' => 'web', 'value' => 'Web', 'css_class' => 'fa fa-internet-explorer',],
- ['name' => 'email', 'value' => 'E-mail', 'css_class' => 'fa fa-envelope',],
- ['name' => 'agent', 'value' => 'Agent Panel', 'css_class' => 'fa fa-envelope',],
- ['name' => 'facebook', 'value' => 'Facebook', 'css_class' => 'fa fa-facebook',],
- ['name' => 'twitter', 'value' => 'Twitter', 'css_class' => 'fa fa-twitter',],
+ ['name' => 'web', 'value' => 'Web', 'css_class' => 'fa fa-internet-explorer'],
+ ['name' => 'email', 'value' => 'E-mail', 'css_class' => 'fa fa-envelope'],
+ ['name' => 'agent', 'value' => 'Agent Panel', 'css_class' => 'fa fa-envelope'],
+ ['name' => 'facebook', 'value' => 'Facebook', 'css_class' => 'fa fa-facebook'],
+ ['name' => 'twitter', 'value' => 'Twitter', 'css_class' => 'fa fa-twitter'],
];
}
@@ -38,10 +40,10 @@ class AlterTicketSourceTable extends Migration {
*
* @return void
*/
- public function down() {
+ public function down()
+ {
Schema::table('ticket_source', function (Blueprint $table) {
//
});
}
-
}
diff --git a/database/seeds/DatabaseSeeder.php b/database/seeds/DatabaseSeeder.php
index 45fcdf006..d64053fe8 100644
--- a/database/seeds/DatabaseSeeder.php
+++ b/database/seeds/DatabaseSeeder.php
@@ -26,6 +26,7 @@ use App\Model\helpdesk\Utility\CountryCode;
use App\Model\helpdesk\Utility\Date_format;
use App\Model\helpdesk\Utility\Date_time_format;
use App\Model\helpdesk\Utility\Languages;
+use App\Model\helpdesk\Utility\Limit_Login;
use App\Model\helpdesk\Utility\Log_notification;
use App\Model\helpdesk\Utility\MailboxProtocol;
use App\Model\helpdesk\Utility\Time_format;
@@ -33,8 +34,6 @@ use App\Model\helpdesk\Utility\Timezones;
use App\Model\helpdesk\Utility\Version_Check;
use App\Model\helpdesk\Workflow\WorkflowClose;
use App\Model\kb\Settings;
-use App\Model\helpdesk\Utility\Limit_Login;
-
// Knowledge base
use Illuminate\Database\Seeder;
@@ -218,7 +217,6 @@ class DatabaseSeeder extends Seeder
Ticket_priority::create(['priority' => 'Normal', 'status' => 1, 'priority_desc' => 'Normal', 'priority_color' => '#00bfef', 'priority_urgency' => '3', 'ispublic' => '1', 'is_default' => '1']);
Ticket_priority::create(['priority' => 'High', 'status' => 1, 'priority_desc' => 'High', 'priority_color' => '#f39c11', 'priority_urgency' => '2', 'ispublic' => '1']);
Ticket_priority::create(['priority' => 'Emergency', 'status' => 1, 'priority_desc' => 'Emergency', 'priority_color' => '#dd4b38', 'priority_urgency' => '1', 'ispublic' => '1']);
-
/* SLA Plans */
Sla_plan::create(['name' => 'Sla 1', 'grace_period' => '6 Hours', 'status' => '1']);
@@ -272,7 +270,7 @@ class DatabaseSeeder extends Seeder
Company::create(['id' => '1']);
Email::create(['id' => '1', 'template' => 'default', 'email_fetching' => '1', 'notification_cron' => '1', 'all_emails' => '1', 'email_collaborator' => '1', 'attachment' => '1']);
Responder::create(['id' => '1', 'new_ticket' => '1', 'agent_new_ticket' => '1']);
- System::create(array('id' => '1', 'status' => '1', 'department' => '1', 'date_time_format' => '1', 'time_zone' => '32'));
+ System::create(['id' => '1', 'status' => '1', 'department' => '1', 'date_time_format' => '1', 'time_zone' => '32']);
Ticket::create(['num_format' => '$$$$-####-####', 'num_sequence' => 'sequence', 'collision_avoid' => '2', 'priority' => '1', 'sla' => '2', 'help_topic' => '1', 'status' => '1']);
/* Ticket source */
Ticket_source::create(['name' => 'web', 'value' => 'Web']);
@@ -1979,11 +1977,8 @@ class DatabaseSeeder extends Seeder
'numcode' => '716',
'phonecode' => '263', ]);
-
-
Security::create(['id' => '1', 'lockout_message' => 'You have been locked out of application due to too many failed login attempts.', 'backlist_offender' => '0', 'backlist_threshold' => '15', 'lockout_period' => '15', 'days_to_keep_logs' => '0']);
-
TemplateSet::create(['id' => '1', 'name' => 'default', 'active' => '1']);
TemplateType::create(['id' => '1', 'name' => 'assign-ticket']);
@@ -2000,7 +1995,6 @@ class DatabaseSeeder extends Seeder
TemplateType::create(['id' => '12', 'name' => 'team_assign_ticket']);
TemplateType::create(['id' => '13', 'name' => 'reset_new_password']);
-
Template::create(['id' => '1', 'variable' => '0', 'name' => 'This template is for sending notice to agent when ticket is assigned to them', 'type' => '1', 'message' => '
Hello {!!$ticket_agent_name!!},
Ticket No: {!!$ticket_number!!}
Has been assigned to you by {!!$ticket_assigner!!}
Please check and resppond on the ticket.
Link: {!!$ticket_link!!}
Thank You
Kind Regards,
{!!$system_from!!}
', 'set_id' => '1']);
Template::create(['id' => '2', 'variable' => '1', 'name' => 'This template is for sending notice to client with ticket link to check ticket without logging in to system', 'type' => '2', 'subject' => 'Check your Ticket', 'message' => '
Hello {!!$user!!},
Click the link below to view your requested ticket
{!!$ticket_link_with_number!!}
Kind Regards,
{!!$system_from!!}
', 'set_id' => '1']);
Template::create(['id' => '3', 'variable' => '0', 'name' => 'This template is for sending notice to client when ticket status is changed to close', 'type' => '3', 'message' => '
Hello,
This message is regarding your ticket ID {!!$ticket_number!!}. We are changing the status of this ticket to "Closed" as the issue appears to be resolved.
Thank you
Kind regards,
{!!$system_from!!}
', 'set_id' => '1']);
@@ -2012,9 +2006,8 @@ class DatabaseSeeder extends Seeder
Template::create(['id' => '9', 'variable' => '0', 'name' => 'This template is for sending notice to client when a reply made to his/her ticket', 'type' => '9', 'message' => '
{!!$content!!}
{!!$agent_sign!!}
Ticket Details
Ticket ID: {!!$ticket_number!!}
', 'set_id' => '1']);
Template::create(['id' => '10', 'variable' => '0', 'name' => 'This template is for sending notice to agent when ticket reply is made by client on a ticket', 'type' => '10', 'message' => '
Hello {!!$ticket_agent_name!!},
A reply been made to ticket {!!$ticket_number!!}
From
Name: {!!$ticket_client_name!!}
E-mail: {!!$ticket_client_email!!}
{!!$content!!}
Kind Regards,
{!!$system_from!!}
', 'set_id' => '1']);
Template::create(['id' => '11', 'variable' => '1', 'name' => 'This template is for sending notice to client about registration confirmation link', 'type' => '11', 'subject' => 'Verify your email address', 'message' => '
Hello {!!$user!!},
This email is confirmation that you are now registered at our helpdesk.
Registered Email: {!!$email_address!!}
Please click on the below link to activate your account and Login to the system {!!$password_reset_link!!}
Thank You.
Kind Regards,
{!!$system_from!!}
', 'set_id' => '1']);
- Template::create(['id' => '12', 'variable' => '1', 'name' => 'This template is for sending notice to team when ticket is assigned to team', 'type' => '12', 'message' => '
Hello {!!$ticket_agent_name!!},
Ticket No: {!!$ticket_number!!}
Has been assigned to your team : {!!$team!!} by {!!$ticket_assigner!!}
Thank You
Kind Regards,
{!!$system_from!!}
', 'set_id' => '1']);
- Template::create(['id' => '13', 'variable' => '1', 'name' => 'This template is for sending notice to client when password is changed', 'type' => '13', 'subject' => 'Verify your email address', 'message' => 'Hello {!!$user!!},
Your password is successfully changed.Your new password is : {!!$user_password!!}
Thank You.
Kind Regards,
{!!$system_from!!}', 'set_id' => '1']);
-
+ Template::create(['id' => '12', 'variable' => '1', 'name' => 'This template is for sending notice to team when ticket is assigned to team', 'type' => '12', 'message' => '
Hello {!!$ticket_agent_name!!},
Ticket No: {!!$ticket_number!!}
Has been assigned to your team : {!!$team!!} by {!!$ticket_assigner!!}
Thank You
Kind Regards,
{!!$system_from!!}
', 'set_id' => '1']);
+ Template::create(['id' => '13', 'variable' => '1', 'name' => 'This template is for sending notice to client when password is changed', 'type' => '13', 'subject' => 'Verify your email address', 'message' => 'Hello {!!$user!!},
Your password is successfully changed.Your new password is : {!!$user_password!!}
Thank You.
Kind Regards,
{!!$system_from!!}', 'set_id' => '1']);
/*
* All the common settings will be listed here
@@ -2032,7 +2025,6 @@ class DatabaseSeeder extends Seeder
Rating::create(['id' => '1', 'name' => 'OverAll Satisfaction', 'display_order' => '1', 'allow_modification' => '1', 'rating_scale' => '5', 'rating_area' => 'Helpdesk Area']);
Rating::create(['id' => '2', 'name' => 'Reply Rating', 'display_order' => '1', 'allow_modification' => '1', 'rating_scale' => '5', 'rating_area' => 'Comment Area']);
-
Limit_Login::create(['id' => '1']);
}
}
diff --git a/public/ckeditor/samples/old/assets/posteddata.php b/public/ckeditor/samples/old/assets/posteddata.php
index 7006ce62f..2baa84ed6 100644
--- a/public/ckeditor/samples/old/assets/posteddata.php
+++ b/public/ckeditor/samples/old/assets/posteddata.php
@@ -35,13 +35,10 @@ if (!empty($_POST)) {
$value = htmlspecialchars(stripslashes((string) $value));
} else {
$value = htmlspecialchars((string) $value);
- }
- ?>
+ } ?>
- |
- |
+ |
+ |
'Plugin',
/***************************************************
- *updates
+ *updates
*translation required from here
*****************************************************/
'edit_profile' => 'Edit profile',
@@ -1063,7 +1063,7 @@ return [
'user_priority_status' => 'User priority status',
'current' => 'Current:',
'active_user_can_select_the_priority_while_creating_ticket' => 'Active user can select the priority while creating ticket',
-
+
/* --------------------------------------------------------------------------------------------
* Approval Updated
* --------------------------------------------------------------------------------------------
@@ -1126,7 +1126,7 @@ return [
/*** updates 28-11-2016***/
'apply' => 'Apply',
- /** updates 2-12-2016 **/
+ /* updates 2-12-2016 **/
'sort-by' => 'Sort by',
'created-at' => 'Created at',
'or' => 'OR',
diff --git a/resources/lang/en/lang.php b/resources/lang/en/lang.php
index 5676d8524..84cb89d7c 100644
--- a/resources/lang/en/lang.php
+++ b/resources/lang/en/lang.php
@@ -41,31 +41,31 @@ return [
| Login Page
|--------------------------------------
*/
- 'login_to_start_your_session' => 'Login to start your session',
- 'login' => 'Login',
- 'remember' => 'Remember me',
- 'signmein' => 'Sign me in',
- 'iforgot' => 'I forgot my password',
- 'email_address' => 'Email address',
- 'password' => 'Password',
+ 'login_to_start_your_session' => 'Login to start your session',
+ 'login' => 'Login',
+ 'remember' => 'Remember me',
+ 'signmein' => 'Sign me in',
+ 'iforgot' => 'I forgot my password',
+ 'email_address' => 'Email address',
+ 'password' => 'Password',
'password_confirmation' => 'Password confirmation',
- 'woops' => 'Whoops!',
- 'theirisproblem' => 'There were some problems with your input.',
- 'login' => 'Login',
- 'e-mail' => 'Email',
- 'reg_new_member' => 'Register a new membership',
- 'this_account_is_currently_inactive' => 'This account is currently inactive!',
- 'not-registered' => 'Email/username is not registered',
- 'verify' => 'Verify',
- 'enter-otp' => 'Enter OTP',
- 'did-not-recive-code' => 'Didn\'t recieve code?',
- 'resend_otp' => 'Resend OTP',
- 'verify-screen-msg' => 'Your account is currently inactive.
To activate your account, please enter the OTP we\'ve sent on',
- 'otp-sent' => 'We\'ve sent an OTP code on your number.',
- 'verify-number' => 'Verify number',
- 'get-verify-message' => 'Enter the OTP code we\'ve sent to your new number.',
- 'number-verification-sussessfull' => 'Your number has been verified successfully, please wait we are updating your profile.',
- 'enter_your_email_here' => 'Enter Your Email Here',
+ 'woops' => 'Whoops!',
+ 'theirisproblem' => 'There were some problems with your input.',
+ 'login' => 'Login',
+ 'e-mail' => 'Email',
+ 'reg_new_member' => 'Register a new membership',
+ 'this_account_is_currently_inactive' => 'This account is currently inactive!',
+ 'not-registered' => 'Email/username is not registered',
+ 'verify' => 'Verify',
+ 'enter-otp' => 'Enter OTP',
+ 'did-not-recive-code' => 'Didn\'t recieve code?',
+ 'resend_otp' => 'Resend OTP',
+ 'verify-screen-msg' => 'Your account is currently inactive.
To activate your account, please enter the OTP we\'ve sent on',
+ 'otp-sent' => 'We\'ve sent an OTP code on your number.',
+ 'verify-number' => 'Verify number',
+ 'get-verify-message' => 'Enter the OTP code we\'ve sent to your new number.',
+ 'number-verification-sussessfull' => 'Your number has been verified successfully, please wait we are updating your profile.',
+ 'enter_your_email_here' => 'Enter Your Email Here',
/*
|--------------------------------------
| Register Page
@@ -466,7 +466,6 @@ return [
*/
'social-login' => 'Social login',
-
/*
|------------------------------------------------
| Language page
@@ -961,8 +960,6 @@ return [
'reply_content_is_a_required_field' => 'Reply content is a required field',
'internal_content_is_a_required_field' => 'Internal content is a required field',
-
-
/*
|-----------------------------------------------
| Profile
@@ -1261,7 +1258,6 @@ return [
'manage_status' => 'Manage status',
'notifications' => 'Notifications',
-
'auto_close_workflow' => 'Auto-close workflow',
'close_ticket_workflow_settings' => 'Close ticket workflow settings',
'successfully_saved_your_settings' => 'Successfully saved your settings',
@@ -1504,7 +1500,7 @@ return [
'user_priority_status' => 'User priority status',
'current' => 'Current:',
'active_user_can_select_the_priority_while_creating_ticket' => 'Active user can select the priority while creating ticket',
-
+
/* --------------------------------------------------------------------------------------------
* Approval Updated
* --------------------------------------------------------------------------------------------
@@ -1567,7 +1563,7 @@ return [
/*** updates 28-11-2016***/
'apply' => 'Apply',
- /** updates 2-12-2016 **/
+ /* updates 2-12-2016 **/
'sort-by' => 'Sort by',
'created-at' => 'Created at',
'or' => 'OR',
diff --git a/resources/lang/fr/lang.php b/resources/lang/fr/lang.php
index de6da4b4e..d559da919 100644
--- a/resources/lang/fr/lang.php
+++ b/resources/lang/fr/lang.php
@@ -72,7 +72,6 @@ return [
'we_have_e-mailed_your_password_reset_link' => 'We have emailed your password reset link!',
"we_can't_find_a_user_with_that_e-mail_address" => "We can't find a user with that email address.",
-
/*
|--------------------------------------
| Reset Password Page
@@ -849,7 +848,6 @@ return [
'group_deleted_successfully' => 'Groupe supprimé avec succès',
'failed_to_load_the_page' => 'Echec du chargement de la page',
-
/*
|--------------------------------------
| SMTP Page
@@ -924,8 +922,6 @@ return [
'reply_content_is_a_required_field' => 'Le contenu de la réponse est un champ obligatoire',
'internal_content_is_a_required_field' => 'Le contenu interne est un champ obligatoire',
-
-
/*
|-----------------------------------------------
| Profile
@@ -1224,7 +1220,6 @@ return [
'manage_status' => 'Gérer statut',
'notifications' => 'Notifications',
-
'auto_close_workflow' => 'Workflow d\'auto fermeture',
'close_ticket_workflow_settings' => 'Fermer les paramètres de Workflow de ticket',
'successfully_saved_your_settings' => 'Paramètres enregistrés avec succès',
@@ -1476,7 +1471,7 @@ return [
'user_priority_status' => 'User priority status',
'current' => 'Current:',
'active_user_can_select_the_priority_while_creating_ticket' => 'Active user can select the priority while creating ticket',
-
+
/* --------------------------------------------------------------------------------------------
* Approval Updated
* --------------------------------------------------------------------------------------------
@@ -1539,7 +1534,7 @@ return [
/*** updates 28-11-2016***/
'apply' => 'Apply',
- /** updates 2-12-2016 **/
+ /* updates 2-12-2016 **/
'sort-by' => 'Sort by',
'created-at' => 'Created at',
'or' => 'OR',
@@ -1558,5 +1553,4 @@ return [
'restore-user' => 'Restore user account',
'delete-account-caution-info' => 'Please note this account may still have open tickets in the system.',
-
];
diff --git a/resources/lang/it/lang.php b/resources/lang/it/lang.php
index a955b820c..1eac60dcb 100644
--- a/resources/lang/it/lang.php
+++ b/resources/lang/it/lang.php
@@ -1023,7 +1023,7 @@ return [
'user_priority_status' => 'User priority status',
'current' => 'Current:',
'active_user_can_select_the_priority_while_creating_ticket' => 'Active user can select the priority while creating ticket',
-
+
/* --------------------------------------------------------------------------------------------
* Approval Updated
* --------------------------------------------------------------------------------------------
@@ -1086,7 +1086,7 @@ return [
/*** updates 28-11-2016***/
'apply' => 'Apply',
- /** updates 2-12-2016 **/
+ /* updates 2-12-2016 **/
'sort-by' => 'Sort by',
'created-at' => 'Created at',
'or' => 'OR',
diff --git a/resources/lang/nl/lang.php b/resources/lang/nl/lang.php
index da083a85b..852f5973e 100644
--- a/resources/lang/nl/lang.php
+++ b/resources/lang/nl/lang.php
@@ -1571,7 +1571,7 @@ return [
/************************************New updates*************************************/
/* Translation Required */
/************************************************************************************/
- 'deleted_user' => 'Deleted User',
+ 'deleted_user' => 'Deleted User',
'deleted_user_directory' => 'Deleted User Directory',
'restore' => 'Restore',
'user_restore_successfully' => 'User restore successfully',
@@ -1579,7 +1579,7 @@ return [
/*** updates 28-11-2016***/
'apply' => 'Apply',
- /** updates 2-12-2016 **/
+ /* updates 2-12-2016 **/
'sort-by' => 'Sort by',
'created-at' => 'Created at',
'or' => 'OR',
diff --git a/resources/lang/pt/lang.php b/resources/lang/pt/lang.php
index 7e7cc9427..1e32a29ac 100644
--- a/resources/lang/pt/lang.php
+++ b/resources/lang/pt/lang.php
@@ -1461,7 +1461,7 @@ return [
'user_priority_status' => 'User priority status',
'current' => 'Current:',
'active_user_can_select_the_priority_while_creating_ticket' => 'Active user can select the priority while creating ticket',
-
+
/* --------------------------------------------------------------------------------------------
* Approval Updated
* --------------------------------------------------------------------------------------------
@@ -1524,7 +1524,7 @@ return [
/*** updates 28-11-2016***/
'apply' => 'Apply',
- /** updates 2-12-2016 **/
+ /* updates 2-12-2016 **/
'sort-by' => 'Sort by',
'created-at' => 'Created at',
'or' => 'OR',
diff --git a/resources/lang/ru/lang.php b/resources/lang/ru/lang.php
index dabf389ed..8bded83eb 100644
--- a/resources/lang/ru/lang.php
+++ b/resources/lang/ru/lang.php
@@ -970,7 +970,7 @@ return [
'user_priority_status' => 'User priority status',
'current' => 'Current:',
'active_user_can_select_the_priority_while_creating_ticket' => 'Active user can select the priority while creating ticket',
-
+
/* --------------------------------------------------------------------------------------------
* Approval Updated
* --------------------------------------------------------------------------------------------
@@ -1033,7 +1033,7 @@ return [
/*** updates 28-11-2016***/
'apply' => 'Apply',
- /** updates 2-12-2016 **/
+ /* updates 2-12-2016 **/
'sort-by' => 'Sort by',
'created-at' => 'Created at',
'or' => 'OR',