update v1.0.7.5
This commit is contained in:
6
.env
6
.env
@@ -1,11 +1,11 @@
|
||||
APP_ENV=local
|
||||
APP_DEBUG=false
|
||||
APP_KEY=SomeRandomString
|
||||
APP_KEY=base64:FBOLR201bGN3ooTZb+2i/ljncVY9QBvF2SUsJMMRFlU=
|
||||
DB_TYPE=mysql
|
||||
DB_HOST=localhost
|
||||
DB_PORT=
|
||||
DB_DATABASE=
|
||||
DB_USERNAME=
|
||||
DB_DATABASE=v1.0.7.5
|
||||
DB_USERNAME=root
|
||||
DB_PASSWORD=
|
||||
MAIL_DRIVER=smtp
|
||||
MAIL_HOST=mailtrap.io
|
||||
|
@@ -503,17 +503,17 @@ CREATE TABLE IF NOT EXISTS `templates` (
|
||||
--
|
||||
|
||||
INSERT INTO `templates` (`id`, `name`, `variable`, `type`, `subject`, `message`, `description`, `created_at`, `updated_at`, `set_id`) VALUES
|
||||
(1, 'This template is for sending notice to agent when ticket is assigned to them', '', 1, '', '<div>Hello {!!$ticket_agent_name!!},<br><br>Ticket No: {!!$ticket_number!!}<br>Has been assigned to you by {!!$ticket_assigner!!} <br><br>Thank You<br>Kind Regards,<br>{!!$system_from!!}</div>', '', NULL, NULL, 1),
|
||||
(2, 'This template is for sending notice to client with ticket link to check ticket without logging in to system', '', 2, '', '<div>Hello {!!$user!!},<br><br>Click the link below to view your Requested ticket<br>{!!$ticket_link_with_number!!}<br><br>Kind Regards,<br>{!!$system_from!!} </div>', '', NULL, NULL, 1),
|
||||
(3, 'This template is for sending notice to client when ticket status is changed to close', '', 3, '', '<div>Hello,<br><br>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.<br><br>Thank you<br>Kind regards,<br> {!!$system_from!!} <br><br></div>', '', NULL, NULL, 1),
|
||||
(4, 'This template is for sending notice to client on successful ticket creation', '', 4, '', '<div><span>Hello {!!$user!!}<br><br></span><span>Thank you for contacting us. This is an automated response confirming the receipt of your ticket. Our team will get back to you as soon as possible. When replying, please make sure that the ticket ID is kept in the subject so that we can track your replies.<br><br></span><span>Ticket ID: {!!$ticket_number!!} <br></span><span>{!!$department_sign!!}<br></span>You can check the status of or update this ticket online at: {!!$system_link!!}</div>', '', NULL, NULL, 1),
|
||||
(5, 'This template is for sending notice to agent on new ticket creation', '', 5, '', '<div>Hello {!!$ticket_agent_name!!}, <br><br>New ticket {!!$ticket_number!!} created <br>From<br>Name :- {!!$ticket_client_name!!} <br>E-mail :- {!!$ticket_client_email!!} <br><br>{!!$content!!} <br><br>Kind Regards,<br>{!!$system_from!!}</div><br>', '', NULL, '2016-05-17 05:38:37', 1),
|
||||
(6, 'This template is for sending notice to client on new ticket created by agent in name of client', '', 6, '', '<div>{!!$content!!}<br><br>{!!$agent_sign!!}<br><br>You can check the status of or update this ticket online at: {!!$system_link!!}</div>', '', NULL, NULL, 1),
|
||||
(7, 'This template is for sending notice to client on new registration during new ticket creation for un registered clients', '', 7, '', '<span><p>Hello {!!$user!!} , </p><p>This email is confirmation that you are now registered at our helpdesk.</p><p>Registered Email: {!!$email_address!!}</p><p>Password: {!!$user_password!!}</p><p>You can visit the helpdesk to browse articles and contact us at any time: {!!$system_link!!}</p><p>Thank You.</p><p>Kind Regards,</p><p>{!!$system_from!!} </p></span>', '', NULL, NULL, 1),
|
||||
(8, 'This template is for sending notice to any user about reset password option', '', 8, '', 'Hello {!!$user!!}<br/><br/>You asked to reset your password. To do so, please click this link:<br/><br/>{!!$password_reset_link!!}</a><br/><br/><br/>This will let you change your password to something new. If you didn''t ask for this, don''t worry, we''ll keep your password safe.<br/><br/>Thank You.<br/><br/>Kind Regards,<br/><br/> {!!$system_from!!}', '', NULL, NULL, 1),
|
||||
(9, 'This template is for sending notice to client when a reply made to his/her ticket', '', 9, '', '<span><div><span><p>{!!$content!!} <br></p><p>{!!$agent_sign!!} </p><p>Ticket Details</p><p>Ticket ID: {!!$ticket_number!!} </p><div><br></div></span><br></div><div><br></div></span>', '', NULL, NULL, 1),
|
||||
(10, 'This template is for sending notice to agent when ticket reply is made by client on a ticket', '', 10, '', '<div>Hello {!!$ticket_agent_name!!},<b><br></b>A reply been made to ticket {!!$ticket_number!!}<b><br></b>From<br>Name: {!!$ticket_client_name!!}<br>E-mail: {!!$ticket_client_email!!}<b><br></b>{!!$content!!}<b><br></b>Kind Regards,<br>{!!$system_from!!}</div>', '', NULL, NULL, 1),
|
||||
(11, 'This template is for sending notice to client about registration confirmation link', '', 11, '', '<span><p>Hello {!!$user!!} , </p><p>This email is confirmation that you are now registered at our helpdesk.</p><p>Registered Email: {!!$email_address!!}</p><p>Please click on the below link to activate your account and Login to the system {!!$password_reset_link!!}</p><p>Thank You.</p><p>Kind Regards,</p><p>{!!$system_from!!} </p></span>', '', NULL, NULL, 1);
|
||||
(1, 'This template is for sending notice to agent when ticket is assigned to them', '0', 1, '', '<div>Hello {!!$ticket_agent_name!!},<br><br>Ticket No: {!!$ticket_number!!}<br>Has been assigned to you by {!!$ticket_assigner!!} <br><br>Thank You<br>Kind Regards,<br>{!!$system_from!!}</div>', '', NULL, NULL, 1),
|
||||
(2, 'This template is for sending notice to client with ticket link to check ticket without logging in to system', '1', 2, 'Check your Ticket', '<div>Hello {!!$user!!},<br><br>Click the link below to view your Requested ticket<br>{!!$ticket_link_with_number!!}<br><br>Kind Regards,<br>{!!$system_from!!} </div>', '', NULL, NULL, 1),
|
||||
(3, 'This template is for sending notice to client when ticket status is changed to close', '0', 3, '', '<div>Hello,<br><br>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.<br><br>Thank you<br>Kind regards,<br> {!!$system_from!!} <br><br></div>', '', NULL, NULL, 1),
|
||||
(4, 'This template is for sending notice to client on successful ticket creation', '0', 4, '', '<div><span>Hello {!!$user!!}<br><br></span><span>Thank you for contacting us. This is an automated response confirming the receipt of your ticket. Our team will get back to you as soon as possible. When replying, please make sure that the ticket ID is kept in the subject so that we can track your replies.<br><br></span><span>Ticket ID: {!!$ticket_number!!} <br></span><span>{!!$department_sign!!}<br></span>You can check the status of or update this ticket online at: {!!$system_link!!}</div>', '', NULL, NULL, 1),
|
||||
(5, 'This template is for sending notice to agent on new ticket creation', '0', 5, '', '<div>Hello {!!$ticket_agent_name!!}, <br><br>New ticket {!!$ticket_number!!} created <br>From<br>Name :- {!!$ticket_client_name!!} <br>E-mail :- {!!$ticket_client_email!!} <br><br>{!!$content!!} <br><br>Kind Regards,<br>{!!$system_from!!}</div><br>', '', NULL, '2016-05-17 05:38:37', 1),
|
||||
(6, 'This template is for sending notice to client on new ticket created by agent in name of client', '0', 6, '', '<div>{!!$content!!}<br><br>{!!$agent_sign!!}<br><br>You can check the status of or update this ticket online at: {!!$system_link!!}</div>', '', NULL, NULL, 1),
|
||||
(7, 'This template is for sending notice to client on new registration during new ticket creation for un registered clients', '1', 7, 'Registration Confirmation', '<span><p>Hello {!!$user!!} , </p><p>This email is confirmation that you are now registered at our helpdesk.</p><p>Registered Email: {!!$email_address!!}</p><p>Password: {!!$user_password!!}</p><p>You can visit the helpdesk to browse articles and contact us at any time: {!!$system_link!!}</p><p>Thank You.</p><p>Kind Regards,</p><p>{!!$system_from!!} </p></span>', '', NULL, NULL, 1),
|
||||
(8, 'This template is for sending notice to any user about reset password option', '1', 8, 'Reset your Password', 'Hello {!!$user!!}<br/><br/>You asked to reset your password. To do so, please click this link:<br/><br/>{!!$password_reset_link!!}</a><br/><br/><br/>This will let you change your password to something new. If you didn''t ask for this, don''t worry, we''ll keep your password safe.<br/><br/>Thank You.<br/><br/>Kind Regards,<br/><br/> {!!$system_from!!}', '', NULL, NULL, 1),
|
||||
(9, 'This template is for sending notice to client when a reply made to his/her ticket', '0', 9, '', '<span><div><span><p>{!!$content!!} <br></p><p>{!!$agent_sign!!} </p><p>Ticket Details</p><p>Ticket ID: {!!$ticket_number!!} </p><div><br></div></span><br></div><div><br></div></span>', '', NULL, NULL, 1),
|
||||
(10, 'This template is for sending notice to agent when ticket reply is made by client on a ticket', '0', 10, '', '<div>Hello {!!$ticket_agent_name!!},<b><br></b>A reply been made to ticket {!!$ticket_number!!}<b><br></b>From<br>Name: {!!$ticket_client_name!!}<br>E-mail: {!!$ticket_client_email!!}<b><br></b>{!!$content!!}<b><br></b>Kind Regards,<br>{!!$system_from!!}</div>', '', NULL, NULL, 1),
|
||||
(11, 'This template is for sending notice to client about registration confirmation link', '1', 11, 'Verify your email address', '<span><p>Hello {!!$user!!} , </p><p>This email is confirmation that you are now registered at our helpdesk.</p><p>Registered Email: {!!$email_address!!}</p><p>Please click on the below link to activate your account and Login to the system {!!$password_reset_link!!}</p><p>Thank You.</p><p>Kind Regards,</p><p>{!!$system_from!!} </p></span>', '', NULL, NULL, 1);
|
||||
|
||||
-- --------------------------------------------------------
|
||||
|
||||
|
@@ -3,19 +3,20 @@
|
||||
namespace App\Exceptions;
|
||||
|
||||
// controller
|
||||
use Bugsnag;
|
||||
//use Illuminate\Validation\ValidationException;
|
||||
use Bugsnag\BugsnagLaravel\BugsnagExceptionHandler as ExceptionHandler;
|
||||
use Exception;
|
||||
//use Illuminate\Validation\ValidationException;
|
||||
use Illuminate\Foundation\Validation\ValidationException;
|
||||
use Illuminate\Auth\Access\AuthorizationException;
|
||||
use Illuminate\Database\Eloquent\ModelNotFoundException;
|
||||
// use Symfony\Component\HttpKernel\Exception\HttpException;
|
||||
// use Illuminate\Foundation\Exceptions\Handler as ExceptionHandler;
|
||||
use Illuminate\Database\Eloquent\ModelNotFoundException;
|
||||
use Illuminate\Foundation\Validation\ValidationException;
|
||||
use Bugsnag\BugsnagLaravel\BugsnagExceptionHandler as ExceptionHandler;
|
||||
use Bugsnag;
|
||||
use Symfony\Component\HttpFoundation\RedirectResponse;
|
||||
use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
|
||||
|
||||
class Handler extends ExceptionHandler
|
||||
{
|
||||
class Handler extends ExceptionHandler {
|
||||
|
||||
/**
|
||||
* A list of the exception types that should not be reported.
|
||||
*
|
||||
@@ -52,8 +53,7 @@ class Handler extends ExceptionHandler
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function report(Exception $e)
|
||||
{
|
||||
public function report(Exception $e) {
|
||||
$debug = \Config::get('app.bugsnag_reporting');
|
||||
$debug = ($debug) ? 'true' : 'false';
|
||||
if ($debug == 'false') {
|
||||
@@ -61,7 +61,6 @@ class Handler extends ExceptionHandler
|
||||
return false;
|
||||
});
|
||||
}
|
||||
|
||||
return parent::report($e);
|
||||
}
|
||||
|
||||
@@ -129,14 +128,12 @@ class Handler extends ExceptionHandler
|
||||
|
||||
/**
|
||||
* Render an exception into an HTTP response.
|
||||
*
|
||||
* @param type $request
|
||||
* @param Exception $e
|
||||
*
|
||||
* @return type mixed
|
||||
*/
|
||||
public function render($request, Exception $e)
|
||||
{
|
||||
public function render($request, Exception $e) {
|
||||
|
||||
switch ($e) {
|
||||
case $e instanceof \Illuminate\Http\Exception\HttpResponseException :
|
||||
return parent::render($request, $e);
|
||||
@@ -150,49 +147,38 @@ class Handler extends ExceptionHandler
|
||||
}
|
||||
|
||||
/**
|
||||
* Function to render 500 error page.
|
||||
*
|
||||
* Function to render 500 error page
|
||||
* @param type $request
|
||||
* @param type $e
|
||||
*
|
||||
* @return type mixed
|
||||
*/
|
||||
public function render500($request, $e)
|
||||
{
|
||||
public function render500($request, $e) {
|
||||
if (config('app.debug') == true) {
|
||||
return parent::render($request, $e);
|
||||
}
|
||||
|
||||
return redirect()->route('error500', []);
|
||||
}
|
||||
|
||||
/**
|
||||
* Function to render 404 error page.
|
||||
*
|
||||
* Function to render 404 error page
|
||||
* @param type $request
|
||||
* @param type $e
|
||||
*
|
||||
* @return type mixed
|
||||
*/
|
||||
public function render404($request, $e)
|
||||
{
|
||||
public function render404($request, $e) {
|
||||
if (config('app.debug') == true) {
|
||||
return parent::render($request, $e);
|
||||
}
|
||||
|
||||
return redirect()->route('error404', []);
|
||||
}
|
||||
|
||||
/**
|
||||
* Common finction to render both types of codes.
|
||||
*
|
||||
* Common finction to render both types of codes
|
||||
* @param type $request
|
||||
* @param type $e
|
||||
*
|
||||
* @return type mixed
|
||||
*/
|
||||
public function common($request, $e)
|
||||
{
|
||||
public function common($request, $e) {
|
||||
switch ($e) {
|
||||
case $e instanceof HttpException :
|
||||
return $this->render404($request, $e);
|
||||
@@ -201,7 +187,7 @@ class Handler extends ExceptionHandler
|
||||
default :
|
||||
return $this->render500($request, $e);
|
||||
}
|
||||
|
||||
return parent::render($request, $e);
|
||||
}
|
||||
|
||||
}
|
||||
|
@@ -141,7 +141,7 @@ class AgentController extends Controller
|
||||
$email = $user->email;
|
||||
try {
|
||||
// send mail on registration
|
||||
$this->PhpMailController->sendmail($from = $this->PhpMailController->mailfrom('1', '0'), $to = ['name' => $name, 'email' => $email], $message = ['subject' => 'Password', 'scenario' => 'registration-notification'], $template_variables = ['user' => $name, 'email_address' => $email, 'user_password' => $password]);
|
||||
$this->PhpMailController->sendmail($from = $this->PhpMailController->mailfrom('1', '0'), $to = ['name' => $name, 'email' => $email], $message = ['subject' => null, 'scenario' => 'registration-notification'], $template_variables = ['user' => $name, 'email_address' => $email, 'user_password' => $password]);
|
||||
} catch (Exception $e) {
|
||||
// returns if try fails
|
||||
return redirect('agents')->with('warning', Lang::get('lang.agent_send_mail_error_on_agent_creation'));
|
||||
|
@@ -175,6 +175,7 @@ class DepartmentController extends Controller
|
||||
{
|
||||
// dd($id);
|
||||
try {
|
||||
|
||||
$table = $group_assign_department->where('department_id', $id);
|
||||
$table->delete();
|
||||
$requests = $request->input('group_id');
|
||||
|
@@ -28,15 +28,14 @@ use Lang;
|
||||
*
|
||||
* @author Ladybird <info@ladybirdweb.com>
|
||||
*/
|
||||
class EmailsController extends Controller
|
||||
{
|
||||
class EmailsController extends Controller {
|
||||
|
||||
/**
|
||||
* Defining constructor variables.
|
||||
*
|
||||
* @return type
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
public function __construct() {
|
||||
$this->middleware('auth');
|
||||
$this->middleware('roles');
|
||||
}
|
||||
@@ -48,8 +47,7 @@ class EmailsController extends Controller
|
||||
*
|
||||
* @return type view
|
||||
*/
|
||||
public function index(Emails $email)
|
||||
{
|
||||
public function index(Emails $email) {
|
||||
try {
|
||||
// fetch all the emails from emails table
|
||||
$emails = $email->get();
|
||||
@@ -70,8 +68,7 @@ class EmailsController extends Controller
|
||||
*
|
||||
* @return type Response
|
||||
*/
|
||||
public function create(Department $department, Help_topic $help, Ticket_Priority $ticket_priority, MailboxProtocol $mailbox_protocol)
|
||||
{
|
||||
public function create(Department $department, Help_topic $help, Ticket_Priority $ticket_priority, MailboxProtocol $mailbox_protocol) {
|
||||
try {
|
||||
// fetch all the departments from the department table
|
||||
$departments = $department->get();
|
||||
@@ -96,8 +93,7 @@ class EmailsController extends Controller
|
||||
*
|
||||
* @return int
|
||||
*/
|
||||
public function validatingEmailSettings(Request $request)
|
||||
{
|
||||
public function validatingEmailSettings(Request $request) {
|
||||
$validator = \Validator::make(
|
||||
[
|
||||
'email_address' => $request->input('email_address'),
|
||||
@@ -177,8 +173,7 @@ class EmailsController extends Controller
|
||||
*
|
||||
* @return type Redirect
|
||||
*/
|
||||
public function store($request, $imap_check)
|
||||
{
|
||||
public function store($request, $imap_check) {
|
||||
$email = new Emails();
|
||||
try {
|
||||
// saving all the fields to the database
|
||||
@@ -260,8 +255,7 @@ class EmailsController extends Controller
|
||||
*
|
||||
* @return type Response
|
||||
*/
|
||||
public function edit($id, Department $department, Help_topic $help, Emails $email, Ticket_Priority $ticket_priority, MailboxProtocol $mailbox_protocol)
|
||||
{
|
||||
public function edit($id, Department $department, Help_topic $help, Emails $email, Ticket_Priority $ticket_priority, MailboxProtocol $mailbox_protocol) {
|
||||
try {
|
||||
$sys_email = \DB::table('settings_email')->select('sys_email')->where('id', '=', 1)->first();
|
||||
// dd($sys_email);
|
||||
@@ -292,8 +286,7 @@ class EmailsController extends Controller
|
||||
*
|
||||
* @return int
|
||||
*/
|
||||
public function validatingEmailSettingsUpdate($id, Request $request)
|
||||
{
|
||||
public function validatingEmailSettingsUpdate($id, Request $request) {
|
||||
$validator = \Validator::make(
|
||||
[
|
||||
'email_address' => $request->input('email_address'),
|
||||
@@ -375,8 +368,7 @@ class EmailsController extends Controller
|
||||
*
|
||||
* @return type Response
|
||||
*/
|
||||
public function update($id, $request, $imap_check)
|
||||
{
|
||||
public function update($id, $request, $imap_check) {
|
||||
try {
|
||||
// fetch the selected emails
|
||||
$emails = Emails::whereId($id)->first();
|
||||
@@ -453,8 +445,7 @@ class EmailsController extends Controller
|
||||
*
|
||||
* @return type Redirect
|
||||
*/
|
||||
public function destroy($id, Emails $email)
|
||||
{
|
||||
public function destroy($id, Emails $email) {
|
||||
// fetching the details on the basis of the $id passed to the function
|
||||
$default_system_email = Email::where('id', '=', '1')->first();
|
||||
if ($default_system_email->sys_email) {
|
||||
@@ -485,8 +476,7 @@ class EmailsController extends Controller
|
||||
*
|
||||
* @return type int
|
||||
*/
|
||||
public function getImapStream($request, $validate)
|
||||
{
|
||||
public function getImapStream($request, $validate) {
|
||||
$fetching_status = $request->input('fetching_status');
|
||||
$username = $request->input('email_address');
|
||||
$password = $request->input('password');
|
||||
@@ -528,8 +518,7 @@ class EmailsController extends Controller
|
||||
*
|
||||
* @return type int
|
||||
*/
|
||||
public function checkImapStream($imap_stream)
|
||||
{
|
||||
public function checkImapStream($imap_stream) {
|
||||
$check_imap_stream = imap_check($imap_stream);
|
||||
if ($check_imap_stream) {
|
||||
$imap_stream = 1;
|
||||
@@ -547,8 +536,7 @@ class EmailsController extends Controller
|
||||
*
|
||||
* @return int
|
||||
*/
|
||||
public function getSmtp($request)
|
||||
{
|
||||
public function getSmtp($request) {
|
||||
$sending_status = $request->input('sending_status');
|
||||
// cheking for the sending protocol
|
||||
if ($request->input('sending_protocol') == 'smtp') {
|
||||
@@ -597,8 +585,7 @@ class EmailsController extends Controller
|
||||
*
|
||||
* @return type string or null
|
||||
*/
|
||||
public function departmentValue($dept)
|
||||
{
|
||||
public function departmentValue($dept) {
|
||||
if ($dept) {
|
||||
$email_department = $dept;
|
||||
} else {
|
||||
@@ -615,8 +602,7 @@ class EmailsController extends Controller
|
||||
*
|
||||
* @return type string or null
|
||||
*/
|
||||
public function priorityValue($priority)
|
||||
{
|
||||
public function priorityValue($priority) {
|
||||
if ($priority) {
|
||||
$email_priority = $priority;
|
||||
} else {
|
||||
@@ -633,8 +619,7 @@ class EmailsController extends Controller
|
||||
*
|
||||
* @return type string or null
|
||||
*/
|
||||
public function helpTopicValue($help_topic)
|
||||
{
|
||||
public function helpTopicValue($help_topic) {
|
||||
if ($help_topic) {
|
||||
$email_help_topic = $help_topic;
|
||||
} else {
|
||||
@@ -643,4 +628,5 @@ class EmailsController extends Controller
|
||||
|
||||
return $email_help_topic;
|
||||
}
|
||||
|
||||
}
|
||||
|
@@ -3,15 +3,16 @@
|
||||
namespace App\Http\Controllers\Admin\helpdesk;
|
||||
|
||||
// controller
|
||||
use App\Http\Controllers\Common\PhpMailController;
|
||||
use App\Http\Controllers\Controller;
|
||||
// request
|
||||
|
||||
use Exception;
|
||||
use File;
|
||||
use Lang;
|
||||
use File;
|
||||
|
||||
/**
|
||||
* ErrorAndDebuggingController.
|
||||
* ErrorAndDebuggingController
|
||||
*
|
||||
* @author Ladybird <info@ladybirdweb.com>
|
||||
*/
|
||||
@@ -30,25 +31,20 @@ class ErrorAndDebuggingController extends Controller
|
||||
}
|
||||
|
||||
/**
|
||||
* function to show error and debugging setting page.
|
||||
*
|
||||
* function to show error and debugging setting page
|
||||
* @param void
|
||||
*
|
||||
* @return response
|
||||
*/
|
||||
public function showSettings()
|
||||
{
|
||||
$debug = \Config::get('app.debug');
|
||||
$bugsnag = \Config::get('app.bugsnag_reporting');
|
||||
|
||||
return view('themes.default1.admin.helpdesk.settings.error-and-logs.error-debug')->with(['debug'=> $debug, 'bugsnag' => $bugsnag]);
|
||||
}
|
||||
|
||||
/**
|
||||
* funtion to update error and debugging settings.
|
||||
*
|
||||
* funtion to update error and debugging settings
|
||||
* @param void
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
public function postSettings()
|
||||
@@ -82,7 +78,6 @@ class ErrorAndDebuggingController extends Controller
|
||||
"'bugsnag_reporting' => ".\Input::get('bugsnag'),
|
||||
$datacontent2);
|
||||
File::put($bugsnag_debug_new, $datacontent2);
|
||||
|
||||
return redirect()->back()->with('success',
|
||||
Lang::get('lang.error-debug-settings-saved-message'));
|
||||
} else {
|
||||
@@ -96,10 +91,8 @@ class ErrorAndDebuggingController extends Controller
|
||||
}
|
||||
|
||||
/**
|
||||
* function to show error log table page.
|
||||
*
|
||||
* function to show error log table page
|
||||
* @param void
|
||||
*
|
||||
* @return response view
|
||||
*/
|
||||
public function showErrorLogs()
|
||||
|
@@ -29,6 +29,7 @@ use App\Model\helpdesk\Utility\Date_format;
|
||||
use App\Model\helpdesk\Utility\Date_time_format;
|
||||
use App\Model\helpdesk\Utility\Time_format;
|
||||
use App\Model\helpdesk\Utility\Timezones;
|
||||
use App\Model\helpdesk\Workflow\WorkflowClose;
|
||||
use DateTime;
|
||||
// classes
|
||||
use DB;
|
||||
@@ -320,7 +321,7 @@ class SettingsController extends Controller
|
||||
*
|
||||
* @return type Response
|
||||
*/
|
||||
public function getSchedular(Email $email, Template $template, Emails $email1)
|
||||
public function getSchedular(Email $email, Template $template, Emails $email1, WorkflowClose $workflow)
|
||||
{
|
||||
// try {
|
||||
/* fetch the values of email from Email table */
|
||||
@@ -330,7 +331,9 @@ class SettingsController extends Controller
|
||||
/* Fetch the values from Emails table */
|
||||
$emails1 = $email1->get();
|
||||
|
||||
return view('themes.default1.admin.helpdesk.settings.crone', compact('emails', 'templates', 'emails1'));
|
||||
$workflow = $workflow->whereId('1')->first();
|
||||
|
||||
return view('themes.default1.admin.helpdesk.settings.crone', compact('emails', 'templates', 'emails1', 'workflow'));
|
||||
// } catch {
|
||||
// }
|
||||
}
|
||||
@@ -343,7 +346,7 @@ class SettingsController extends Controller
|
||||
*
|
||||
* @return type Response
|
||||
*/
|
||||
public function postSchedular(Email $email, Template $template, Emails $email1, Request $request)
|
||||
public function postSchedular(Email $email, Template $template, Emails $email1, Request $request, WorkflowClose $workflow)
|
||||
{
|
||||
// dd($request);
|
||||
try {
|
||||
@@ -360,6 +363,14 @@ class SettingsController extends Controller
|
||||
$emails->notification_cron = 0;
|
||||
}
|
||||
$emails->save();
|
||||
//workflow
|
||||
$work = $workflow->whereId('1')->first();
|
||||
if ($request->condition == 'on') {
|
||||
$work->condition = 1;
|
||||
} else {
|
||||
$work->condition = 0;
|
||||
}
|
||||
$work->save();
|
||||
/* redirect to Index page with Success Message */
|
||||
return redirect('job-scheduler')->with('success', Lang::get('lang.job-scheduler-success'));
|
||||
} catch (Exception $e) {
|
||||
|
@@ -104,7 +104,6 @@ class SlaController extends Controller
|
||||
$slas = Sla_plan::whereId($id)->first();
|
||||
$slas->get();
|
||||
$sla = \DB::table('settings_ticket')->select('sla')->where('id', '=', 1)->first();
|
||||
|
||||
return view('themes.default1.admin.helpdesk.manage.sla.edit', compact('slas','sla'));
|
||||
} catch (Exception $e) {
|
||||
return redirect()->back()->with('fails', $e->getMessage());
|
||||
@@ -138,7 +137,6 @@ class SlaController extends Controller
|
||||
->where('id', '=', 1)
|
||||
->update(['sla' => $id]);
|
||||
}
|
||||
|
||||
return redirect('sla')->with('success', Lang::get('lang.sla_plan_updated_successfully'));
|
||||
} catch (Exception $e) {
|
||||
/* redirect to Index page with Fails Message */
|
||||
|
@@ -24,15 +24,14 @@ use Lang;
|
||||
*
|
||||
* @author Ladybird <info@ladybirdweb.com>
|
||||
*/
|
||||
class TemplateController extends Controller
|
||||
{
|
||||
class TemplateController extends Controller {
|
||||
|
||||
/**
|
||||
* Create a new controller instance.
|
||||
*
|
||||
* @return type void
|
||||
*/
|
||||
public function __construct(PhpMailController $PhpMailController)
|
||||
{
|
||||
public function __construct(PhpMailController $PhpMailController) {
|
||||
$this->PhpMailController = $PhpMailController;
|
||||
$this->middleware('auth');
|
||||
$this->middleware('roles');
|
||||
@@ -45,8 +44,7 @@ class TemplateController extends Controller
|
||||
*
|
||||
* @return type Response
|
||||
*/
|
||||
public function index(Template $template)
|
||||
{
|
||||
public function index(Template $template) {
|
||||
try {
|
||||
$templates = $template->get();
|
||||
|
||||
@@ -64,8 +62,7 @@ class TemplateController extends Controller
|
||||
*
|
||||
* @return type Response
|
||||
*/
|
||||
public function create(Languages $language, Template $template)
|
||||
{
|
||||
public function create(Languages $language, Template $template) {
|
||||
try {
|
||||
$templates = $template->get();
|
||||
$languages = $language->get();
|
||||
@@ -84,8 +81,7 @@ class TemplateController extends Controller
|
||||
*
|
||||
* @return type Response
|
||||
*/
|
||||
public function store(Template $template, TemplateRequest $request)
|
||||
{
|
||||
public function store(Template $template, TemplateRequest $request) {
|
||||
try {
|
||||
/* Check whether function success or not */
|
||||
if ($template->fill($request->input())->save() == true) {
|
||||
@@ -108,8 +104,7 @@ class TemplateController extends Controller
|
||||
*
|
||||
* @return Response
|
||||
*/
|
||||
public function show($id)
|
||||
{
|
||||
public function show($id) {
|
||||
//
|
||||
}
|
||||
|
||||
@@ -122,8 +117,7 @@ class TemplateController extends Controller
|
||||
*
|
||||
* @return type Response
|
||||
*/
|
||||
public function listdirectories()
|
||||
{
|
||||
public function listdirectories() {
|
||||
$path = \Config::get('view.paths')[0] . '/emails/';
|
||||
$directories = scandir($path);
|
||||
$directory = str_replace('/', '-', $path);
|
||||
@@ -131,8 +125,7 @@ class TemplateController extends Controller
|
||||
return view('themes.default1.admin.helpdesk.emails.template.listdirectories', compact('directories', 'directory'));
|
||||
}
|
||||
|
||||
public function listtemplates($template, $path)
|
||||
{
|
||||
public function listtemplates($template, $path) {
|
||||
$paths = str_replace('-', '/', $path);
|
||||
$directory2 = $paths . $template;
|
||||
|
||||
@@ -142,8 +135,7 @@ class TemplateController extends Controller
|
||||
return view('themes.default1.admin.helpdesk.emails.template.listtemplates', compact('templates', 'directory'));
|
||||
}
|
||||
|
||||
public function readtemplate($template, $path)
|
||||
{
|
||||
public function readtemplate($template, $path) {
|
||||
$directory = str_replace('-', '/', $path);
|
||||
$handle = fopen($directory . $template, 'r');
|
||||
$contents = fread($handle, filesize($directory . $template));
|
||||
@@ -152,8 +144,7 @@ class TemplateController extends Controller
|
||||
return view('themes.default1.admin.helpdesk.emails.template.readtemplates', compact('contents', 'template', 'path'));
|
||||
}
|
||||
|
||||
public function createtemplate()
|
||||
{
|
||||
public function createtemplate() {
|
||||
$directory = '../resources/views/emails/';
|
||||
$fname = Input::get('folder_name');
|
||||
$filename = $directory . $fname;
|
||||
@@ -185,8 +176,7 @@ class TemplateController extends Controller
|
||||
return \Redirect::back()->with('success', 'Successfully copied');
|
||||
}
|
||||
|
||||
public function writetemplate($template, $path)
|
||||
{
|
||||
public function writetemplate($template, $path) {
|
||||
$directory = str_replace('-', '/', $path);
|
||||
$b = Input::get('templatedata');
|
||||
|
||||
@@ -195,8 +185,7 @@ class TemplateController extends Controller
|
||||
return \Redirect::back()->with('success', 'Successfully updated');
|
||||
}
|
||||
|
||||
public function deletetemplate($template, $path)
|
||||
{
|
||||
public function deletetemplate($template, $path) {
|
||||
$directory = str_replace('-', '/', $path);
|
||||
$dir = $directory . $template;
|
||||
$status = \DB::table('settings_email')->first();
|
||||
@@ -218,15 +207,13 @@ class TemplateController extends Controller
|
||||
return \Redirect::back()->with('success', 'Successfully Deleted');
|
||||
}
|
||||
|
||||
public function activateset($setname)
|
||||
{
|
||||
public function activateset($setname) {
|
||||
\DB::table('settings_email')->update(['template' => $setname]);
|
||||
|
||||
return \Redirect::back()->with('success', 'You have Successfully Activated this Set');
|
||||
}
|
||||
|
||||
public function edit($id, Template $template, Languages $language)
|
||||
{
|
||||
public function edit($id, Template $template, Languages $language) {
|
||||
try {
|
||||
$templates = $template->whereId($id)->first();
|
||||
$languages = $language->get();
|
||||
@@ -246,8 +233,7 @@ class TemplateController extends Controller
|
||||
*
|
||||
* @return type Response
|
||||
*/
|
||||
public function update($id, Template $template, TemplateUdate $request)
|
||||
{
|
||||
public function update($id, Template $template, TemplateUdate $request) {
|
||||
try {
|
||||
//TODO validation
|
||||
$templates = $template->whereId($id)->first();
|
||||
@@ -273,8 +259,7 @@ class TemplateController extends Controller
|
||||
*
|
||||
* @return type Response
|
||||
*/
|
||||
public function destroy($id, Template $template)
|
||||
{
|
||||
public function destroy($id, Template $template) {
|
||||
try {
|
||||
$templates = $template->whereId($id)->first();
|
||||
/* Check whether function success or not */
|
||||
@@ -298,8 +283,7 @@ class TemplateController extends Controller
|
||||
*
|
||||
* @return type Response
|
||||
*/
|
||||
public function formDiagno(Emails $email)
|
||||
{
|
||||
public function formDiagno(Emails $email) {
|
||||
try {
|
||||
$emails = $email->get();
|
||||
|
||||
@@ -316,8 +300,7 @@ class TemplateController extends Controller
|
||||
*
|
||||
* @return type
|
||||
*/
|
||||
public function postDiagno(DiagnosRequest $request)
|
||||
{
|
||||
public function postDiagno(DiagnosRequest $request) {
|
||||
try {
|
||||
$email_details = Emails::where('id', '=', $request->from)->first();
|
||||
if ($email_details->sending_protocol == 'mail') {
|
||||
@@ -363,10 +346,10 @@ class TemplateController extends Controller
|
||||
$return = Lang::get('lang.message_has_been_sent');
|
||||
}
|
||||
}
|
||||
|
||||
return redirect()->back()->with('success', $return);
|
||||
} catch (Exception $e) {
|
||||
return redirect()->back()->with('fails', $e->getMessage());
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
@@ -144,7 +144,7 @@ class WorkflowController extends Controller
|
||||
*/
|
||||
public function create(Emails $emails)
|
||||
{
|
||||
$email_data = '';
|
||||
$email_data = "";
|
||||
foreach ($emails->lists('email_address', 'id') as $key => $email) {
|
||||
$email_data["E-$key"] = $email;
|
||||
}
|
||||
@@ -167,7 +167,7 @@ class WorkflowController extends Controller
|
||||
{
|
||||
try {
|
||||
// store a new workflow credentials in to the system
|
||||
$workflow_name = new WorkflowName();
|
||||
$workflow_name = new WorkflowName;
|
||||
$workflow_name->name = $request->name;
|
||||
$workflow_name->status = $request->status;
|
||||
$workflow_name->order = $request->execution_order;
|
||||
|
@@ -27,16 +27,15 @@ use PhpImap\Mailbox as ImapMailbox;
|
||||
*
|
||||
* @author Ladybird <info@ladybirdweb.com>
|
||||
*/
|
||||
class MailController extends Controller
|
||||
{
|
||||
class MailController extends Controller {
|
||||
|
||||
/**
|
||||
* constructor
|
||||
* Create a new controller instance.
|
||||
*
|
||||
* @param type TicketController $TicketController
|
||||
*/
|
||||
public function __construct(TicketWorkflowController $TicketWorkflowController)
|
||||
{
|
||||
public function __construct(TicketWorkflowController $TicketWorkflowController) {
|
||||
$this->middleware('board');
|
||||
$this->TicketWorkflowController = $TicketWorkflowController;
|
||||
}
|
||||
@@ -46,8 +45,7 @@ class MailController extends Controller
|
||||
*
|
||||
* @return type
|
||||
*/
|
||||
public function readmails(Emails $emails, Email $settings_email, System $system, Ticket $ticket)
|
||||
{
|
||||
public function readmails(Emails $emails, Email $settings_email, System $system, Ticket $ticket) {
|
||||
// $path_url = $system->first()->url;
|
||||
if ($settings_email->first()->email_fetching == 1) {
|
||||
if ($settings_email->first()->all_emails == 1) {
|
||||
@@ -226,8 +224,7 @@ class MailController extends Controller
|
||||
*
|
||||
* @return type string
|
||||
*/
|
||||
public function separate_reply($body)
|
||||
{
|
||||
public function separate_reply($body) {
|
||||
$body2 = explode('---Reply above this line---', $body);
|
||||
$body3 = $body2[0];
|
||||
|
||||
@@ -241,8 +238,7 @@ class MailController extends Controller
|
||||
*
|
||||
* @return type string
|
||||
*/
|
||||
public function decode_imap_text($str)
|
||||
{
|
||||
public function decode_imap_text($str) {
|
||||
$result = '';
|
||||
$decode_header = imap_mime_header_decode($str);
|
||||
foreach ($decode_header as $obj) {
|
||||
@@ -257,8 +253,7 @@ class MailController extends Controller
|
||||
*
|
||||
* @return type
|
||||
*/
|
||||
public function fetch_attachments()
|
||||
{
|
||||
public function fetch_attachments() {
|
||||
$uploads = Upload::all();
|
||||
foreach ($uploads as $attachment) {
|
||||
$image = @imagecreatefromstring($attachment->file);
|
||||
@@ -278,8 +273,7 @@ class MailController extends Controller
|
||||
*
|
||||
* @return type file
|
||||
*/
|
||||
public function get_data($id)
|
||||
{
|
||||
public function get_data($id) {
|
||||
$attachments = App\Model\helpdesk\Ticket\Ticket_attachments::where('id', '=', $id)->get();
|
||||
foreach ($attachments as $attachment) {
|
||||
header('Content-type: application/' . $attachment->type . '');
|
||||
@@ -289,8 +283,7 @@ class MailController extends Controller
|
||||
}
|
||||
}
|
||||
|
||||
public static function trimTableTag($html)
|
||||
{
|
||||
public static function trimTableTag($html) {
|
||||
if (strpos('<table>', $html) != false) {
|
||||
$first_pos = strpos($html, '<table');
|
||||
$fist_string = substr_replace($html, '', 0, $first_pos);
|
||||
@@ -299,28 +292,23 @@ class MailController extends Controller
|
||||
$diff = $total - $last_pos;
|
||||
$str = substr_replace($fist_string, '', $last_pos, -1);
|
||||
$final_str = str_finish($str, '</table>');
|
||||
|
||||
return $final_str;
|
||||
}
|
||||
|
||||
return $html;
|
||||
}
|
||||
|
||||
public static function trim3D($html)
|
||||
{
|
||||
public static function trim3D($html) {
|
||||
$body = str_replace('=3D', '', $html);
|
||||
|
||||
return $body;
|
||||
}
|
||||
|
||||
public static function trimInjections($html, $tags = ['<script>', '</script>', '<style>', '</style>', '<?php', '?>'])
|
||||
{
|
||||
public static function trimInjections($html, $tags = ['<script>', '</script>', '<style>', '</style>', '<?php', '?>']) {
|
||||
$replace = [];
|
||||
foreach ($tags as $key => $tag) {
|
||||
$replace[$key] = htmlspecialchars($tag);
|
||||
}
|
||||
$body = str_replace($tags, $replace, $html);
|
||||
|
||||
return $body;
|
||||
}
|
||||
|
||||
}
|
||||
|
@@ -16,8 +16,6 @@ use App\Model\helpdesk\Email\Emails;
|
||||
use App\Model\helpdesk\Form\Fields;
|
||||
use App\Model\helpdesk\Manage\Help_topic;
|
||||
use App\Model\helpdesk\Manage\Sla_plan;
|
||||
use App\Model\helpdesk\Notification\Notification;
|
||||
use App\Model\helpdesk\Notification\UserNotification;
|
||||
use App\Model\helpdesk\Settings\Alert;
|
||||
use App\Model\helpdesk\Settings\Company;
|
||||
use App\Model\helpdesk\Settings\Email;
|
||||
@@ -33,6 +31,8 @@ use App\Model\helpdesk\Ticket\Tickets;
|
||||
use App\Model\helpdesk\Utility\CountryCode;
|
||||
use App\Model\helpdesk\Utility\Date_time_format;
|
||||
use App\Model\helpdesk\Utility\Timezones;
|
||||
use App\Model\helpdesk\Notification\Notification;
|
||||
use App\Model\helpdesk\Notification\UserNotification;
|
||||
use App\User;
|
||||
use Auth;
|
||||
use DB;
|
||||
@@ -621,7 +621,7 @@ class TicketController extends Controller
|
||||
\Event::fire(new \App\Events\ReadMailEvent($user_id, $password));
|
||||
try {
|
||||
if ($auto_response == 0) {
|
||||
$this->PhpMailController->sendmail($from = $this->PhpMailController->mailfrom('1', '0'), $to = ['name' => $username, 'email' => $emailadd], $message = ['subject' => 'Welcome to '.$company.' helpdesk', 'scenario' => 'registration-notification'], $template_variables = ['user' => $username, 'email_address' => $emailadd, 'user_password' => $password]);
|
||||
$this->PhpMailController->sendmail($from = $this->PhpMailController->mailfrom('1', '0'), $to = ['name' => $username, 'email' => $emailadd], $message = ['subject' => null, 'scenario' => 'registration-notification'], $template_variables = ['user' => $username, 'email_address' => $emailadd, 'user_password' => $password]);
|
||||
}
|
||||
} catch (\Exception $e) {
|
||||
}
|
||||
|
@@ -91,7 +91,6 @@ class UserController extends Controller
|
||||
} else {
|
||||
$stringCut = $model->user_name;
|
||||
}
|
||||
|
||||
return $stringCut;
|
||||
})
|
||||
/* column email */
|
||||
|
@@ -29,8 +29,8 @@ use Redirect;
|
||||
*
|
||||
* @author Ladybird <info@ladybirdweb.com>
|
||||
*/
|
||||
class ArticleController extends Controller
|
||||
{
|
||||
class ArticleController extends Controller {
|
||||
|
||||
/**
|
||||
* Create a new controller instance.
|
||||
* constructor to check
|
||||
@@ -40,8 +40,7 @@ class ArticleController extends Controller
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
public function __construct() {
|
||||
// checking authentication
|
||||
$this->middleware('auth');
|
||||
// checking roles
|
||||
@@ -49,8 +48,7 @@ class ArticleController extends Controller
|
||||
SettingsController::language();
|
||||
}
|
||||
|
||||
public function test()
|
||||
{
|
||||
public function test() {
|
||||
//$table = $this->setDatatable();
|
||||
return view('themes.default1.agent.kb.article.test');
|
||||
}
|
||||
@@ -60,8 +58,7 @@ class ArticleController extends Controller
|
||||
*
|
||||
* @return type void
|
||||
*/
|
||||
public function getData()
|
||||
{
|
||||
public function getData() {
|
||||
$article = new Article();
|
||||
// returns chumper datatable
|
||||
return Datatable::query($article)
|
||||
@@ -71,6 +68,7 @@ class ArticleController extends Controller
|
||||
->orderColumns('name', 'description')
|
||||
/* add column name */
|
||||
->addColumn('name', function ($model) {
|
||||
|
||||
$string = strip_tags($model->name);
|
||||
if (strlen($string) > 40) {
|
||||
// truncate string
|
||||
@@ -78,7 +76,6 @@ class ArticleController extends Controller
|
||||
} else {
|
||||
$stringCut = $model->name;
|
||||
}
|
||||
|
||||
return $stringCut . '...';
|
||||
})
|
||||
/* add column Created */
|
||||
@@ -117,8 +114,7 @@ class ArticleController extends Controller
|
||||
*
|
||||
* @return type view
|
||||
*/
|
||||
public function index()
|
||||
{
|
||||
public function index() {
|
||||
/* show article list */
|
||||
try {
|
||||
return view('themes.default1.agent.kb.article.index');
|
||||
@@ -134,8 +130,7 @@ class ArticleController extends Controller
|
||||
*
|
||||
* @return type view
|
||||
*/
|
||||
public function create(Category $category)
|
||||
{
|
||||
public function create(Category $category) {
|
||||
/* get the attributes of the category */
|
||||
$category = $category->lists('id', 'name');
|
||||
/* get the create page */
|
||||
@@ -154,8 +149,7 @@ class ArticleController extends Controller
|
||||
*
|
||||
* @return type redirect
|
||||
*/
|
||||
public function store(Article $article, ArticleRequest $request)
|
||||
{
|
||||
public function store(Article $article, ArticleRequest $request) {
|
||||
// requesting the values to store article data
|
||||
$publishTime = $request->input('year') . '-' . $request->input('month') . '-' . $request->input('day') . ' ' . $request->input('hour') . ':' . $request->input('minute') . ':00';
|
||||
|
||||
@@ -191,8 +185,7 @@ class ArticleController extends Controller
|
||||
*
|
||||
* @return view
|
||||
*/
|
||||
public function edit($slug)
|
||||
{
|
||||
public function edit($slug) {
|
||||
$article = new Article();
|
||||
$relation = new Relationship();
|
||||
$category = new Category();
|
||||
@@ -223,8 +216,7 @@ class ArticleController extends Controller
|
||||
*
|
||||
* @return Response
|
||||
*/
|
||||
public function update($slug, ArticleUpdate $request)
|
||||
{
|
||||
public function update($slug, ArticleUpdate $request) {
|
||||
$article = new Article();
|
||||
$relation = new Relationship();
|
||||
$aid = $article->where('id', $slug)->first();
|
||||
@@ -267,8 +259,7 @@ class ArticleController extends Controller
|
||||
*
|
||||
* @return Response
|
||||
*/
|
||||
public function destroy($slug, Article $article, Relationship $relation, Comment $comment)
|
||||
{
|
||||
public function destroy($slug, Article $article, Relationship $relation, Comment $comment) {
|
||||
/* delete the selected article from the table */
|
||||
$article = $article->where('slug', $slug)->first(); //get the selected article via id
|
||||
$id = $article->id;
|
||||
@@ -302,8 +293,7 @@ class ArticleController extends Controller
|
||||
*
|
||||
* @return type
|
||||
*/
|
||||
public static function usertimezone($utc)
|
||||
{
|
||||
public static function usertimezone($utc) {
|
||||
$user = Auth::user();
|
||||
$tz = $user->timezone;
|
||||
$set = Settings::whereId('1')->first();
|
||||
@@ -314,4 +304,5 @@ class ArticleController extends Controller
|
||||
$date = date($format, strtotime($utc) + $offset);
|
||||
echo $date;
|
||||
}
|
||||
|
||||
}
|
||||
|
@@ -23,8 +23,8 @@ use Redirect;
|
||||
*
|
||||
* @author Ladybird <info@ladybirdweb.com>
|
||||
*/
|
||||
class CategoryController extends Controller
|
||||
{
|
||||
class CategoryController extends Controller {
|
||||
|
||||
/**
|
||||
* Create a new controller instance.
|
||||
* constructor to check
|
||||
@@ -34,8 +34,7 @@ class CategoryController extends Controller
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
public function __construct() {
|
||||
// checking authentication
|
||||
$this->middleware('auth');
|
||||
// checking roles
|
||||
@@ -50,8 +49,7 @@ class CategoryController extends Controller
|
||||
*
|
||||
* @return Response
|
||||
*/
|
||||
public function index()
|
||||
{
|
||||
public function index() {
|
||||
/* get the view of index of the catogorys with all attributes
|
||||
of category model */
|
||||
try {
|
||||
@@ -66,8 +64,7 @@ class CategoryController extends Controller
|
||||
*
|
||||
* @return type chumper datatable
|
||||
*/
|
||||
public function getData()
|
||||
{
|
||||
public function getData() {
|
||||
/* fetching chumper datatables */
|
||||
return Datatable::collection(Category::All())
|
||||
/* search column name */
|
||||
@@ -76,6 +73,7 @@ class CategoryController extends Controller
|
||||
->orderColumns('name', 'description')
|
||||
/* add column name */
|
||||
->addColumn('name', function ($model) {
|
||||
|
||||
$string = strip_tags($model->name);
|
||||
if (strlen($string) > 40) {
|
||||
// truncate string
|
||||
@@ -83,7 +81,6 @@ class CategoryController extends Controller
|
||||
} else {
|
||||
$stringCut = $model->name;
|
||||
}
|
||||
|
||||
return $stringCut.'...';
|
||||
})
|
||||
/* add column Created */
|
||||
@@ -124,8 +121,7 @@ class CategoryController extends Controller
|
||||
*
|
||||
* @return type view
|
||||
*/
|
||||
public function create(Category $category)
|
||||
{
|
||||
public function create(Category $category) {
|
||||
/* Get the all attributes in the category model */
|
||||
$category = $category->get();
|
||||
/* get the view page to create new category with all attributes
|
||||
@@ -145,8 +141,7 @@ class CategoryController extends Controller
|
||||
*
|
||||
* @return type Redirect
|
||||
*/
|
||||
public function store(Category $category, CategoryRequest $request)
|
||||
{
|
||||
public function store(Category $category, CategoryRequest $request) {
|
||||
/* Get the whole request from the form and insert into table via model */
|
||||
$sl = $request->input('slug');
|
||||
$slug = str_slug($sl, '-');
|
||||
@@ -169,8 +164,7 @@ class CategoryController extends Controller
|
||||
*
|
||||
* @return type view
|
||||
*/
|
||||
public function edit($slug)
|
||||
{
|
||||
public function edit($slug) {
|
||||
// fetch the category
|
||||
$cid = Category::where('id', $slug)->first();
|
||||
$id = $cid->id;
|
||||
@@ -189,8 +183,7 @@ class CategoryController extends Controller
|
||||
*
|
||||
* @return type redirect
|
||||
*/
|
||||
public function update($slug, CategoryUpdate $request)
|
||||
{
|
||||
public function update($slug, CategoryUpdate $request) {
|
||||
|
||||
/* Edit the selected category via id */
|
||||
$category = Category::where('id', $slug)->first();
|
||||
@@ -204,7 +197,6 @@ class CategoryController extends Controller
|
||||
$category->fill($request->all())->save();
|
||||
$category->slug = $slug;
|
||||
$category->save();
|
||||
|
||||
return redirect('category')->with('success', Lang::get('lang.category_updated_successfully'));
|
||||
} catch (Exception $e) {
|
||||
//redirect to index with fails message
|
||||
@@ -221,8 +213,7 @@ class CategoryController extends Controller
|
||||
*
|
||||
* @return type Redirect
|
||||
*/
|
||||
public function destroy($id, Category $category, Relationship $relation)
|
||||
{
|
||||
public function destroy($id, Category $category, Relationship $relation) {
|
||||
$relation = $relation->where('category_id', $id)->first();
|
||||
if ($relation != null) {
|
||||
return Redirect::back()->with('fails', Lang::get('lang.category_not_deleted'));
|
||||
@@ -239,4 +230,5 @@ class CategoryController extends Controller
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
@@ -21,8 +21,8 @@ use Lang;
|
||||
*
|
||||
* @author Ladybird <info@ladybirdweb.com>
|
||||
*/
|
||||
class PageController extends Controller
|
||||
{
|
||||
class PageController extends Controller {
|
||||
|
||||
/**
|
||||
* Create a new controller instance.
|
||||
* constructor to check
|
||||
@@ -32,8 +32,7 @@ class PageController extends Controller
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function __construct(Page $page)
|
||||
{
|
||||
public function __construct(Page $page) {
|
||||
// checking authentication
|
||||
$this->middleware('auth');
|
||||
// checking roles
|
||||
@@ -47,8 +46,7 @@ class PageController extends Controller
|
||||
*
|
||||
* @return type
|
||||
*/
|
||||
public function index()
|
||||
{
|
||||
public function index() {
|
||||
$pages = $this->page->paginate(3);
|
||||
$pages->setPath('page');
|
||||
try {
|
||||
@@ -63,8 +61,7 @@ class PageController extends Controller
|
||||
*
|
||||
* @return type
|
||||
*/
|
||||
public function getData()
|
||||
{
|
||||
public function getData() {
|
||||
/* fetching chumper datatables */
|
||||
return Datatable::collection(Page::All())
|
||||
/* search column name */
|
||||
@@ -111,8 +108,7 @@ class PageController extends Controller
|
||||
*
|
||||
* @return type view
|
||||
*/
|
||||
public function create()
|
||||
{
|
||||
public function create() {
|
||||
return view('themes.default1.agent.kb.pages.create');
|
||||
}
|
||||
|
||||
@@ -123,8 +119,7 @@ class PageController extends Controller
|
||||
*
|
||||
* @return type
|
||||
*/
|
||||
public function store(PageRequest $request)
|
||||
{
|
||||
public function store(PageRequest $request) {
|
||||
$sl = $request->input('slug');
|
||||
$slug = str_slug($sl, '-');
|
||||
$this->page->slug = $slug;
|
||||
@@ -144,8 +139,7 @@ class PageController extends Controller
|
||||
*
|
||||
* @return type view
|
||||
*/
|
||||
public function edit($slug)
|
||||
{
|
||||
public function edit($slug) {
|
||||
try {
|
||||
$page = $this->page->where('slug', $slug)->first();
|
||||
|
||||
@@ -163,8 +157,7 @@ class PageController extends Controller
|
||||
*
|
||||
* @return type redirect
|
||||
*/
|
||||
public function update($slug, PageUpdate $request)
|
||||
{
|
||||
public function update($slug, PageUpdate $request) {
|
||||
// get pages with respect to slug
|
||||
$pages = $this->page->where('slug', $slug)->first();
|
||||
$sl = $request->input('slug');
|
||||
@@ -188,8 +181,7 @@ class PageController extends Controller
|
||||
*
|
||||
* @return type redirect
|
||||
*/
|
||||
public function destroy($id)
|
||||
{
|
||||
public function destroy($id) {
|
||||
try {
|
||||
// get the page to be deleted
|
||||
$page = $this->page->whereId($id)->first();
|
||||
@@ -200,4 +192,5 @@ class PageController extends Controller
|
||||
return redirect('page')->with('fails', $e->getMessage());
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
@@ -97,7 +97,7 @@ class AuthController extends Controller {
|
||||
$user->remember_token = $code;
|
||||
$user->save();
|
||||
$message12 = "";
|
||||
$var = $this->PhpMailController->sendmail($from = $this->PhpMailController->mailfrom('1', '0'), $to = ['name' => $name, 'email' => $request->input('email')], $message = ['subject' => 'Activate your Account', 'scenario' => 'registration'], $template_variables = ['user' => $name, 'email_address' => $request->input('email'), 'password_reset_link' => url('account/activate/' . $code)]);
|
||||
$var = $this->PhpMailController->sendmail($from = $this->PhpMailController->mailfrom('1', '0'), $to = ['name' => $name, 'email' => $request->input('email')], $message = ['subject' => null, 'scenario' => 'registration'], $template_variables = ['user' => $name, 'email_address' => $request->input('email'), 'password_reset_link' => url('account/activate/' . $code)]);
|
||||
if ($var == null) {
|
||||
$message12 = Lang::get('lang.failed_to_send_email_contact_administrator');
|
||||
return redirect('home')->with('warning', $message12);
|
||||
@@ -259,13 +259,13 @@ class AuthController extends Controller {
|
||||
if ($data) {
|
||||
$attempts = $data->Attempts + 1;
|
||||
if ($attempts == $apt) {
|
||||
$result = DB::update('UPDATE login_attempts SET Attempts=' . $attempts . ", LastLogin=NOW() WHERE IP = '$value' OR User = '$field'");
|
||||
$result = DB::select('UPDATE login_attempts SET Attempts=' . $attempts . ", LastLogin=NOW() WHERE IP = '$value' OR User = '$field'");
|
||||
} else {
|
||||
$result = DB::table('login_attempts')->where('IP', '=', $value)->orWhere('User', '=', $field)->update(['Attempts' => $attempts]);
|
||||
// $result = DB::select("UPDATE login_attempts SET Attempts=".$attempts." WHERE IP = '$value' OR User = '$field'");
|
||||
}
|
||||
} else {
|
||||
$result = DB::insert("INSERT INTO login_attempts (Attempts,User,IP,LastLogin) values (1,'$field','$value', NOW())");
|
||||
$result = DB::select("INSERT INTO login_attempts (Attempts,User,IP,LastLogin) values (1,'$field','$value', NOW())");
|
||||
}
|
||||
}
|
||||
|
||||
|
@@ -12,14 +12,15 @@ use App\User;
|
||||
// classes
|
||||
use Illuminate\Foundation\Auth\ResetsPasswords;
|
||||
use Illuminate\Http\Request;
|
||||
use Lang;
|
||||
|
||||
/**
|
||||
* PasswordController.
|
||||
*
|
||||
* @author Ladybird <info@ladybirdweb.com>
|
||||
*/
|
||||
class PasswordController extends Controller
|
||||
{
|
||||
class PasswordController extends Controller {
|
||||
|
||||
use ResetsPasswords;
|
||||
|
||||
/**
|
||||
@@ -27,8 +28,7 @@ class PasswordController extends Controller
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function __construct(PhpMailController $PhpMailController)
|
||||
{
|
||||
public function __construct(PhpMailController $PhpMailController) {
|
||||
$this->PhpMailController = $PhpMailController;
|
||||
$this->middleware('guest');
|
||||
SettingsController::smtp();
|
||||
@@ -39,8 +39,7 @@ class PasswordController extends Controller
|
||||
*
|
||||
* @return Response
|
||||
*/
|
||||
public function getEmail()
|
||||
{
|
||||
public function getEmail() {
|
||||
return view('auth.password');
|
||||
}
|
||||
|
||||
@@ -49,8 +48,7 @@ class PasswordController extends Controller
|
||||
*
|
||||
* @return Response
|
||||
*/
|
||||
public function postEmail(Request $request)
|
||||
{
|
||||
public function postEmail(Request $request) {
|
||||
$date = date('Y-m-d H:i:s');
|
||||
$this->validate($request, ['email' => 'required|email']);
|
||||
$user = User::where('email', '=', $request->only('email'))->first();
|
||||
@@ -73,4 +71,5 @@ class PasswordController extends Controller
|
||||
return redirect()->back()->with('errors', Lang::get("lang.we_can't_find_a_user_with_that_e-mail_address"));
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
@@ -33,16 +33,15 @@ use Redirect;
|
||||
*
|
||||
* @author Ladybird <info@ladybirdweb.com>
|
||||
*/
|
||||
class FormController extends Controller
|
||||
{
|
||||
class FormController extends Controller {
|
||||
|
||||
/**
|
||||
* Create a new controller instance.
|
||||
* Constructor to check.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function __construct(TicketWorkflowController $TicketWorkflowController)
|
||||
{
|
||||
public function __construct(TicketWorkflowController $TicketWorkflowController) {
|
||||
$this->middleware('board');
|
||||
// creating a TicketController instance
|
||||
$this->TicketWorkflowController = $TicketWorkflowController;
|
||||
@@ -55,8 +54,7 @@ class FormController extends Controller
|
||||
*
|
||||
* @return type
|
||||
*/
|
||||
public function getForm(Help_topic $topic, CountryCode $code)
|
||||
{
|
||||
public function getForm(Help_topic $topic, CountryCode $code) {
|
||||
if (\Config::get('database.install') == '%0%') {
|
||||
return \Redirect::route('license');
|
||||
}
|
||||
@@ -80,13 +78,13 @@ class FormController extends Controller
|
||||
*
|
||||
* @return type string
|
||||
*/
|
||||
public function postForm($id, Help_topic $topic)
|
||||
{
|
||||
public function postForm($id, Help_topic $topic) {
|
||||
if ($id != 0) {
|
||||
$helptopic = $topic->where('id', '=', $id)->first();
|
||||
$custom_form = $helptopic->custom_form;
|
||||
$values = Fields::where('forms_id', '=', $custom_form)->get();
|
||||
if (!$values) {
|
||||
|
||||
}
|
||||
if ($values) {
|
||||
foreach ($values as $value) {
|
||||
@@ -132,8 +130,8 @@ class FormController extends Controller
|
||||
* @param type Request $request
|
||||
* @param type User $user
|
||||
*/
|
||||
public function postedForm(User $user, ClientRequest $request, Ticket $ticket_settings, Ticket_source $ticket_source, Ticket_attachments $ta, CountryCode $code)
|
||||
{
|
||||
public function postedForm(User $user, ClientRequest $request, Ticket $ticket_settings, Ticket_source $ticket_source, Ticket_attachments $ta, CountryCode $code) {
|
||||
|
||||
$form_extras = $request->except('Name', 'Phone', 'Email', 'Subject', 'Details', 'helptopic', '_wysihtml5_mode', '_token');
|
||||
|
||||
$name = $request->input('Name');
|
||||
@@ -209,8 +207,7 @@ class FormController extends Controller
|
||||
*
|
||||
* @return type view
|
||||
*/
|
||||
public function post_ticket_reply($id, Request $request)
|
||||
{
|
||||
public function post_ticket_reply($id, Request $request) {
|
||||
try {
|
||||
if ($comment != null) {
|
||||
$tickets = Tickets::where('id', '=', $id)->first();
|
||||
@@ -273,4 +270,5 @@ class FormController extends Controller
|
||||
// return \Redirect::back()->with('fails1', Lang::get('lang.please_fill_some_data'));
|
||||
// }
|
||||
}
|
||||
|
||||
}
|
||||
|
@@ -65,6 +65,9 @@ class UnAuthController extends Controller
|
||||
$ticket_number = $request->input('ticket_number');
|
||||
// get user details
|
||||
$user_details = User::where('email', '=', $email)->first();
|
||||
if($user_details == null) {
|
||||
return \Redirect::route('form')->with('fails', Lang::get('lang.sorry_that_email_is not_available_in_this_system'));
|
||||
}
|
||||
// get ticket details
|
||||
$ticket = Tickets::where('ticket_number', '=', $ticket_number)->first();
|
||||
if ($ticket == null) {
|
||||
|
@@ -15,10 +15,9 @@ use Redirect;
|
||||
*
|
||||
* @author Ladybird <info@ladybirdweb.com>
|
||||
*/
|
||||
class WelcomepageController extends Controller
|
||||
{
|
||||
public function __construct()
|
||||
{
|
||||
class WelcomepageController extends Controller {
|
||||
|
||||
public function __construct() {
|
||||
// $this->middleware('board');
|
||||
}
|
||||
|
||||
@@ -27,8 +26,7 @@ class WelcomepageController extends Controller
|
||||
*
|
||||
* @return Response
|
||||
*/
|
||||
public function get(System $note)
|
||||
{
|
||||
public function get(System $note) {
|
||||
if (Config::get('database.install') == '%0%') {
|
||||
return Redirect::route('licence');
|
||||
}
|
||||
@@ -40,12 +38,12 @@ class WelcomepageController extends Controller
|
||||
return view('themes.default1.client.guest-user.guest', compact('heading', 'content'));
|
||||
}
|
||||
|
||||
public function index()
|
||||
{
|
||||
public function index() {
|
||||
if (Config::get('database.install') == '%0%') {
|
||||
return Redirect::route('licence');
|
||||
}
|
||||
|
||||
return view('themes.default1.client.helpdesk.guest-user.index');
|
||||
}
|
||||
|
||||
}
|
||||
|
@@ -146,6 +146,9 @@ class UserController extends Controller
|
||||
{
|
||||
/* get the article_id where category_id == current category */
|
||||
$catid = $category->where('slug', $slug)->first();
|
||||
if(!$catid){
|
||||
return redirect()->back()->with('fails',Lang::get('lang.we_are_sorry_but_the_page_you_are_looking_for_can_not_be_found'));
|
||||
}
|
||||
$id = $catid->id;
|
||||
$all = $relation->where('category_id', $id)->get();
|
||||
// $all->setPath('');
|
||||
|
@@ -9,6 +9,8 @@ use App\Model\helpdesk\Ticket\Tickets;
|
||||
use Exception;
|
||||
use Illuminate\Http\Request;
|
||||
use Log;
|
||||
use DB;
|
||||
use Input;
|
||||
|
||||
class ApiSettings extends Controller
|
||||
{
|
||||
@@ -26,6 +28,8 @@ class ApiSettings extends Controller
|
||||
public function show()
|
||||
{
|
||||
try {
|
||||
/* fetch the values of system from system table */
|
||||
$systems = DB::table('settings_system')->whereId('1')->first();
|
||||
$details = [];
|
||||
$ticket_detail = '';
|
||||
$settings = $this->api;
|
||||
@@ -36,7 +40,7 @@ class ApiSettings extends Controller
|
||||
$ticket_detail = $details['ticket_detail'];
|
||||
}
|
||||
|
||||
return view('themes.default1.common.api.settings', compact('ticket_detail'));
|
||||
return view('themes.default1.common.api.settings', compact('ticket_detail', 'systems'));
|
||||
} catch (Exception $ex) {
|
||||
return redirect()->back()->with('fails', $ex->getMessage());
|
||||
}
|
||||
@@ -48,6 +52,12 @@ class ApiSettings extends Controller
|
||||
'ticket_detail' => 'url',
|
||||
]);
|
||||
try {
|
||||
// dd($request->input());
|
||||
DB::table('settings_system')
|
||||
->where('id', 1)
|
||||
->update(['api_enable' => Input::get('api_enable'),
|
||||
'api_key_mandatory' =>Input::get('api_key_mandatory') ,
|
||||
'api_key' =>Input::get('api_key')]);
|
||||
$settings = $this->api;
|
||||
if ($settings->get()->count() > 0) {
|
||||
foreach ($settings->get() as $set) {
|
||||
|
@@ -7,12 +7,11 @@ use App\Model\helpdesk\Notification\Notification;
|
||||
use App\Model\helpdesk\Notification\UserNotification;
|
||||
use App\User;
|
||||
|
||||
class NotificationController extends Controller
|
||||
{
|
||||
class NotificationController extends Controller {
|
||||
|
||||
public $user;
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
public function __construct() {
|
||||
$user = new User();
|
||||
$this->user = $user;
|
||||
}
|
||||
@@ -22,8 +21,7 @@ class NotificationController extends Controller
|
||||
*
|
||||
* @return response
|
||||
*/
|
||||
public static function getNotifications()
|
||||
{
|
||||
public static function getNotifications() {
|
||||
$notifications = UserNotification::join('notifications', 'user_notification.notification_id', '=', 'notifications.id')
|
||||
->join('notification_types', 'notifications.type_id', '=', 'notification_types.id')
|
||||
->where('user_notification.user_id', '=', \Auth::user()->id)
|
||||
@@ -32,8 +30,7 @@ class NotificationController extends Controller
|
||||
return $notifications;
|
||||
}
|
||||
|
||||
public function create($model_id, $userid_created, $type_id, $forwhome = [])
|
||||
{
|
||||
public function create($model_id, $userid_created, $type_id, $forwhome = []) {
|
||||
try {
|
||||
if (empty($forwhome)) {
|
||||
$forwhome = $this->user->where('role', '!=', 'user')->get()->toArray();
|
||||
@@ -52,19 +49,16 @@ class NotificationController extends Controller
|
||||
}
|
||||
}
|
||||
|
||||
public function markAllRead($id)
|
||||
{
|
||||
public function markAllRead($id) {
|
||||
$markasread = UserNotification::where('user_id', '=', \Auth::user()->id)->where('is_read', '=', '0')->get();
|
||||
foreach ($markasread as $mark) {
|
||||
$mark->is_read = '1';
|
||||
$mark->save();
|
||||
}
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
||||
public function markRead($id)
|
||||
{
|
||||
public function markRead($id) {
|
||||
$markasread = UserNotification::where('notification_id', '=', $id)->where('user_id', '=', \Auth::user()->id)->where('is_read', '=', '0')->get();
|
||||
foreach ($markasread as $mark) {
|
||||
$mark->is_read = '1';
|
||||
@@ -74,15 +68,13 @@ class NotificationController extends Controller
|
||||
return 1;
|
||||
}
|
||||
|
||||
public function show()
|
||||
{
|
||||
public function show() {
|
||||
$notifications = $this->getNotifications();
|
||||
|
||||
return view('notifications-all', compact('notifications'));
|
||||
}
|
||||
|
||||
public function delete($id)
|
||||
{
|
||||
public function delete($id) {
|
||||
$markasread = UserNotification::where('notification_id', '=', $id)->where('user_id', '=', \Auth::user()->id)->get();
|
||||
foreach ($markasread as $mark) {
|
||||
$mark->delete();
|
||||
@@ -90,4 +82,5 @@ class NotificationController extends Controller
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
||||
}
|
||||
|
@@ -11,12 +11,10 @@ use App\Model\helpdesk\Settings\Email;
|
||||
use App\User;
|
||||
use Auth;
|
||||
|
||||
class PhpMailController extends Controller
|
||||
{
|
||||
public function fetch_smtp_details($id)
|
||||
{
|
||||
$emails = Emails::where('id', '=', $id)->first();
|
||||
class PhpMailController extends Controller {
|
||||
|
||||
public function fetch_smtp_details($id) {
|
||||
$emails = Emails::where('id', '=', $id)->first();
|
||||
return $emails;
|
||||
}
|
||||
|
||||
@@ -25,8 +23,7 @@ class PhpMailController extends Controller
|
||||
*
|
||||
* @return Mail
|
||||
*/
|
||||
public function sendmail($from, $to, $message, $template_variables)
|
||||
{
|
||||
public function sendmail($from, $to, $message, $template_variables) {
|
||||
// dd($from);
|
||||
$from_address = $this->fetch_smtp_details($from);
|
||||
if ($from_address == null) {
|
||||
@@ -192,8 +189,15 @@ class PhpMailController extends Controller
|
||||
if (isset($set['id'])) {
|
||||
$template_data = \App\Model\Common\Template::where('set_id', '=', $set->id)->where('type', '=', $template->id)->first();
|
||||
$contents = $template_data->message;
|
||||
if ($template_data->variable == 1) {
|
||||
if ($template_data->subject) {
|
||||
$subject = $template_data->subject;
|
||||
if ($ticket_number != null) {
|
||||
$subject = $subject . ' [#' . $ticket_number . ']';
|
||||
}
|
||||
} else {
|
||||
$subject = $message['subject'];
|
||||
}
|
||||
} else {
|
||||
$subject = $message['subject'];
|
||||
}
|
||||
@@ -218,7 +222,8 @@ class PhpMailController extends Controller
|
||||
|
||||
// dd($messagebody);
|
||||
//$mail->SMTPDebug = 3; // Enable verbose debug output
|
||||
if ($protocol == 'smtp') {
|
||||
if ($protocol == "smtp") {
|
||||
|
||||
$mail->isSMTP(); // Set mailer to use SMTP
|
||||
$mail->Host = $host; // Specify main and backup SMTP servers
|
||||
$mail->SMTPAuth = true; // Enable SMTP authentication
|
||||
@@ -227,7 +232,7 @@ class PhpMailController extends Controller
|
||||
$mail->SMTPSecure = $smtpsecure; // Enable TLS encryption, `ssl` also accepted
|
||||
$mail->Port = $port; // TCP port to connect to
|
||||
$mail->setFrom($username, $fromname);
|
||||
} elseif ($protocol == 'mail') {
|
||||
} elseif ($protocol == "mail") {
|
||||
$mail->IsSendmail(); // telling the class to use SendMail transport
|
||||
if ($username == $fromname) {
|
||||
$mail->setFrom($username);
|
||||
@@ -288,12 +293,10 @@ class PhpMailController extends Controller
|
||||
*
|
||||
* @return MailNotification
|
||||
*/
|
||||
public function sendEmail($from, $to, $message)
|
||||
{
|
||||
// dd($from);
|
||||
public function sendEmail($from, $to, $message) {
|
||||
|
||||
$from_address = $this->fetch_smtp_details($from);
|
||||
|
||||
// dd($from_address);
|
||||
$username = $from_address->email_address;
|
||||
$fromname = $from_address->email_name;
|
||||
$password = \Crypt::decrypt($from_address->password);
|
||||
@@ -415,8 +418,7 @@ class PhpMailController extends Controller
|
||||
*
|
||||
* @return type
|
||||
*/
|
||||
public function company()
|
||||
{
|
||||
public function company() {
|
||||
$company = Company::Where('id', '=', '1')->first();
|
||||
if ($company->company_name == null) {
|
||||
$company = 'Support Center';
|
||||
@@ -427,49 +429,6 @@ class PhpMailController extends Controller
|
||||
return $company;
|
||||
}
|
||||
|
||||
// public function testmail($host = '', $username = '', $password = '', $smtpsecure = '', $port = '', $from = '', $recipants = '', $subject = '', $scenario = '', $cc = '', $bc = '', $ishtml = '', $altbody = '', $attachment = '', $agent = '', $ticket_number = '', $content = '') {
|
||||
// $mail = new \PHPMailer;
|
||||
// $status = \DB::table('settings_email')->first();
|
||||
// $path = '../resources/views/emails/';
|
||||
// $default = $status->template . '/';
|
||||
// $directory = $path . $default;
|
||||
// $template = "Admin_mail.blade.php";
|
||||
// $handle = fopen($directory . $template, "r");
|
||||
// $contents = fread($handle, filesize($directory . $template));
|
||||
// fclose($handle);
|
||||
// if ($template == 'Admin_mail.blade.php') {
|
||||
// $variables = array('{!! $agent !!}', '{!! $ticket_number !!}', '{!! $name !!}', '{!! $email !!}', '{!! $content !!}', '{!! $from !!}');
|
||||
// $data = array('sada', '12345', 'rahul', 'rahul@test.com', 'DemoContent', 'testing');
|
||||
// $messagebody = str_replace($variables, $data, $contents);
|
||||
// }
|
||||
// //$mail->SMTPDebug = 3; // Enable verbose debug output
|
||||
// $mail->isSMTP(); // Set mailer to use SMTP
|
||||
// $mail->Host = 'smtp.gmail.com'; // Specify main and backup SMTP servers
|
||||
// $mail->SMTPAuth = true; // Enable SMTP authentication
|
||||
// $mail->Username = 'sujitprasad4567@gmail.com'; // SMTP username
|
||||
// $mail->Password = 'pankajprasad22.'; // SMTP password
|
||||
// $mail->SMTPSecure = 'tls'; // Enable TLS encryption, `ssl` also accepted
|
||||
// $mail->Port = 587; // TCP port to connect to
|
||||
// $mail->setFrom('sujitprasad4567@gmail.com', 'Mailer');
|
||||
// $mail->addAddress('sada059@gmail.com', 'Joe User'); // Add a recipient
|
||||
// // Name is optional
|
||||
// $mail->addReplyTo('sada059@gmail.com', 'Information');
|
||||
// // Optional name
|
||||
// $mail->isHTML(true); // Set email format to HTML
|
||||
// $mail->addCC('cc@example.com');
|
||||
// $mail->addBCC('bcc@example.com');
|
||||
// $mail->addAttachment($attachment);
|
||||
// $mail->Subject = 'Here is the subject';
|
||||
// $mail->Body = $messagebody;
|
||||
// $mail->AltBody = $altbody;
|
||||
// if (!$mail->send()) {
|
||||
// echo 'Message could not be sent.';
|
||||
// echo 'Mailer Error: ' . $mail->ErrorInfo;
|
||||
// } else {
|
||||
// echo 'Message has been sent';
|
||||
// }
|
||||
// }
|
||||
|
||||
/**
|
||||
* Function to choose from address.
|
||||
*
|
||||
@@ -478,8 +437,7 @@ class PhpMailController extends Controller
|
||||
*
|
||||
* @return type integer
|
||||
*/
|
||||
public function mailfrom($reg, $dept_id)
|
||||
{
|
||||
public function mailfrom($reg, $dept_id) {
|
||||
$email = Email::where('id', '=', '1')->first();
|
||||
if ($reg == 1) {
|
||||
return $email->sys_email;
|
||||
@@ -492,4 +450,5 @@ class PhpMailController extends Controller
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
@@ -27,15 +27,14 @@ use Lang;
|
||||
* ***************************
|
||||
* Controller to keep smtp details and fetch where ever needed.
|
||||
*/
|
||||
class SettingsController extends Controller
|
||||
{
|
||||
class SettingsController extends Controller {
|
||||
|
||||
/**
|
||||
* Create a new controller instance.
|
||||
*
|
||||
* @return type void
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
public function __construct() {
|
||||
// $this->smtp();
|
||||
$this->middleware('auth');
|
||||
$this->middleware('roles');
|
||||
@@ -53,8 +52,7 @@ class SettingsController extends Controller
|
||||
*
|
||||
* @return response
|
||||
*/
|
||||
public function widgets()
|
||||
{
|
||||
public function widgets() {
|
||||
return view('themes.default1.admin.helpdesk.theme.widgets');
|
||||
}
|
||||
|
||||
@@ -63,8 +61,7 @@ class SettingsController extends Controller
|
||||
*
|
||||
* @return response
|
||||
*/
|
||||
public function list_widget()
|
||||
{
|
||||
public function list_widget() {
|
||||
return \Datatable::collection(Widgets::where('id', '<', '7')->get())
|
||||
->searchColumns('name')
|
||||
->orderColumns('name', 'title', 'value')
|
||||
@@ -123,8 +120,7 @@ class SettingsController extends Controller
|
||||
*
|
||||
* @return type response
|
||||
*/
|
||||
public function edit_widget($id, Widgets $widgets, Request $request)
|
||||
{
|
||||
public function edit_widget($id, Widgets $widgets, Request $request) {
|
||||
$widget = $widgets->where('id', '=', $id)->first();
|
||||
$widget->title = $request->title;
|
||||
$widget->value = $request->content;
|
||||
@@ -142,8 +138,7 @@ class SettingsController extends Controller
|
||||
*
|
||||
* @return response
|
||||
*/
|
||||
public function social_buttons()
|
||||
{
|
||||
public function social_buttons() {
|
||||
return view('themes.default1.admin.helpdesk.theme.social');
|
||||
}
|
||||
|
||||
@@ -152,8 +147,7 @@ class SettingsController extends Controller
|
||||
*
|
||||
* @return response
|
||||
*/
|
||||
public function list_social_buttons()
|
||||
{
|
||||
public function list_social_buttons() {
|
||||
return \Datatable::collection(Widgets::where('id', '>', '6')->get())
|
||||
->searchColumns('name')
|
||||
->orderColumns('name', 'value')
|
||||
@@ -200,8 +194,7 @@ class SettingsController extends Controller
|
||||
*
|
||||
* @return type response
|
||||
*/
|
||||
public function edit_social_buttons($id, Widgets $widgets, Request $request)
|
||||
{
|
||||
public function edit_social_buttons($id, Widgets $widgets, Request $request) {
|
||||
$widget = $widgets->where('id', '=', $id)->first();
|
||||
$widget->title = $request->title;
|
||||
$widget->value = $request->content;
|
||||
@@ -219,8 +212,7 @@ class SettingsController extends Controller
|
||||
*
|
||||
* @return type void
|
||||
*/
|
||||
public static function driver()
|
||||
{
|
||||
public static function driver() {
|
||||
$set = new Smtp();
|
||||
$settings = Smtp::where('id', '=', '1')->first();
|
||||
Config::set('mail.host', $settings->driver);
|
||||
@@ -231,8 +223,7 @@ class SettingsController extends Controller
|
||||
*
|
||||
* @return type void
|
||||
*/
|
||||
public static function host()
|
||||
{
|
||||
public static function host() {
|
||||
$set = new Smtp();
|
||||
$settings = Smtp::where('id', '=', '1')->first();
|
||||
Config::set('mail.host', $settings->host);
|
||||
@@ -243,8 +234,7 @@ class SettingsController extends Controller
|
||||
*
|
||||
* @return type void
|
||||
*/
|
||||
public static function port()
|
||||
{
|
||||
public static function port() {
|
||||
$set = new Smtp();
|
||||
$settings = Smtp::where('id', '=', '1')->first();
|
||||
Config::set('mail.port', intval($settings->port));
|
||||
@@ -255,8 +245,7 @@ class SettingsController extends Controller
|
||||
*
|
||||
* @return type void
|
||||
*/
|
||||
public static function from()
|
||||
{
|
||||
public static function from() {
|
||||
$set = new Smtp();
|
||||
$settings = Smtp::where('id', '=', '1')->first();
|
||||
Config::set('mail.from', ['address' => $settings->email, 'name' => $settings->company_name]);
|
||||
@@ -267,8 +256,7 @@ class SettingsController extends Controller
|
||||
*
|
||||
* @return type void
|
||||
*/
|
||||
public static function encryption()
|
||||
{
|
||||
public static function encryption() {
|
||||
$set = new Smtp();
|
||||
$settings = Smtp::where('id', '=', '1')->first();
|
||||
Config::set('mail.encryption', $settings->encryption);
|
||||
@@ -279,8 +267,7 @@ class SettingsController extends Controller
|
||||
*
|
||||
* @return type void
|
||||
*/
|
||||
public static function username()
|
||||
{
|
||||
public static function username() {
|
||||
$set = new Smtp();
|
||||
$settings = Smtp::where('id', '=', '1')->first();
|
||||
Config::set('mail.username', $settings->email);
|
||||
@@ -291,8 +278,7 @@ class SettingsController extends Controller
|
||||
*
|
||||
* @return type void
|
||||
*/
|
||||
public static function password()
|
||||
{
|
||||
public static function password() {
|
||||
$settings = Smtp::first();
|
||||
if ($settings->password) {
|
||||
$pass = $settings->password;
|
||||
@@ -306,8 +292,7 @@ class SettingsController extends Controller
|
||||
*
|
||||
* @return type view
|
||||
*/
|
||||
public function getsmtp()
|
||||
{
|
||||
public function getsmtp() {
|
||||
$settings = Smtp::where('id', '=', '1')->first();
|
||||
|
||||
return view('themes.default1.admin.helpdesk.emails.smtp', compact('settings'));
|
||||
@@ -318,8 +303,7 @@ class SettingsController extends Controller
|
||||
*
|
||||
* @return type view
|
||||
*/
|
||||
public function postsmtp(SmtpRequest $request)
|
||||
{
|
||||
public function postsmtp(SmtpRequest $request) {
|
||||
$data = Smtp::where('id', '=', 1)->first();
|
||||
$data->driver = $request->input('driver');
|
||||
$data->host = $request->input('host');
|
||||
@@ -342,8 +326,7 @@ class SettingsController extends Controller
|
||||
*
|
||||
* @return type void
|
||||
*/
|
||||
public static function smtp()
|
||||
{
|
||||
public static function smtp() {
|
||||
$settings = Smtp::where('id', '=', '1')->first();
|
||||
if ($settings->password) {
|
||||
$password = Crypt::decrypt($settings->password);
|
||||
@@ -364,8 +347,7 @@ class SettingsController extends Controller
|
||||
*
|
||||
* @return type view\
|
||||
*/
|
||||
public function settings(Smtp $set)
|
||||
{
|
||||
public function settings(Smtp $set) {
|
||||
$settings = $set->where('id', '1')->first();
|
||||
|
||||
return view('themes.default1.admin.settings', compact('settings'));
|
||||
@@ -379,8 +361,7 @@ class SettingsController extends Controller
|
||||
*
|
||||
* @return type view
|
||||
*/
|
||||
public function PostSettings(Settings $set, Request $request)
|
||||
{
|
||||
public function PostSettings(Settings $set, Request $request) {
|
||||
$settings = $set->where('id', '1')->first();
|
||||
$pass = $request->input('password');
|
||||
$password = Crypt::encrypt($pass);
|
||||
@@ -412,8 +393,7 @@ class SettingsController extends Controller
|
||||
*
|
||||
* @return type
|
||||
*/
|
||||
public function version_check()
|
||||
{
|
||||
public function version_check() {
|
||||
$response_url = \URL::route('post-version-check');
|
||||
echo "<form action='http://www.faveohelpdesk.com/billing/public/version' method='post' name='redirect'>";
|
||||
echo "<input type='hidden' name='_token' value='csrf_token()'/>";
|
||||
@@ -428,8 +408,7 @@ class SettingsController extends Controller
|
||||
*
|
||||
* @return type
|
||||
*/
|
||||
public function post_version_check(Request $request)
|
||||
{
|
||||
public function post_version_check(Request $request) {
|
||||
// dd($request);
|
||||
$current_version = \Config::get('app.version');
|
||||
$current_version = explode(' ',$current_version);
|
||||
@@ -442,25 +421,21 @@ class SettingsController extends Controller
|
||||
$version->current_version = $current_version;
|
||||
$version->new_version = $new_version;
|
||||
$version->save();
|
||||
|
||||
return redirect()->route('checkupdate')->with('info', ' Version ' . $new_version . ' is Available');
|
||||
} else {
|
||||
return redirect()->route('checkupdate')->with('info', ' Error Checking Version');
|
||||
}
|
||||
}
|
||||
|
||||
public function getupdate()
|
||||
{
|
||||
public function getupdate() {
|
||||
return \View::make('themes.default1.admin.helpdesk.settings.checkupdate');
|
||||
}
|
||||
|
||||
public function Plugins()
|
||||
{
|
||||
public function Plugins() {
|
||||
return view('themes.default1.admin.helpdesk.settings.plugins');
|
||||
}
|
||||
|
||||
public function GetPlugin()
|
||||
{
|
||||
public function GetPlugin() {
|
||||
$plugins = $this->fetchConfig();
|
||||
|
||||
return \Datatable::collection(new Collection($plugins))
|
||||
@@ -521,8 +496,7 @@ class SettingsController extends Controller
|
||||
*
|
||||
* @return type
|
||||
*/
|
||||
public function ReadPlugins()
|
||||
{
|
||||
public function ReadPlugins() {
|
||||
$dir = app_path() . DIRECTORY_SEPARATOR . 'Plugins';
|
||||
$plugins = array_diff(scandir($dir), ['.', '..']);
|
||||
|
||||
@@ -536,8 +510,7 @@ class SettingsController extends Controller
|
||||
*
|
||||
* @return type
|
||||
*/
|
||||
public function PostPlugins(Request $request)
|
||||
{
|
||||
public function PostPlugins(Request $request) {
|
||||
$v = $this->validate($request, ['plugin' => 'required|mimes:application/zip,zip,Zip']);
|
||||
$plug = new Plugin();
|
||||
$file = $request->file('plugin');
|
||||
@@ -615,8 +588,7 @@ class SettingsController extends Controller
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
public function deleteDirectory($dir)
|
||||
{
|
||||
public function deleteDirectory($dir) {
|
||||
if (!file_exists($dir)) {
|
||||
return true;
|
||||
}
|
||||
@@ -637,8 +609,7 @@ class SettingsController extends Controller
|
||||
return rmdir($dir);
|
||||
}
|
||||
|
||||
public function ReadConfigs()
|
||||
{
|
||||
public function ReadConfigs() {
|
||||
$dir = app_path() . DIRECTORY_SEPARATOR . 'Plugins' . DIRECTORY_SEPARATOR;
|
||||
$directories = scandir($dir);
|
||||
$files = [];
|
||||
@@ -679,8 +650,7 @@ class SettingsController extends Controller
|
||||
}
|
||||
}
|
||||
|
||||
public function fetchConfig()
|
||||
{
|
||||
public function fetchConfig() {
|
||||
$configs = $this->ReadConfigs();
|
||||
//dd($configs);
|
||||
$plugs = new Plugin();
|
||||
@@ -716,8 +686,7 @@ class SettingsController extends Controller
|
||||
return $attributes;
|
||||
}
|
||||
|
||||
public function DeletePlugin($slug)
|
||||
{
|
||||
public function DeletePlugin($slug) {
|
||||
$dir = app_path() . DIRECTORY_SEPARATOR . 'Plugins' . DIRECTORY_SEPARATOR . $slug;
|
||||
$this->deleteDirectory($dir);
|
||||
/*
|
||||
@@ -737,8 +706,7 @@ class SettingsController extends Controller
|
||||
return redirect()->back()->with('success', 'Deleted Successfully');
|
||||
}
|
||||
|
||||
public function StatusPlugin($slug)
|
||||
{
|
||||
public function StatusPlugin($slug) {
|
||||
$plugs = new Plugin();
|
||||
$plug = $plugs->where('name', $slug)->first();
|
||||
if (!$plug) {
|
||||
|
@@ -16,13 +16,12 @@ use Lang;
|
||||
* |======================================================
|
||||
* This controller is for CRUD email templates.
|
||||
*/
|
||||
class TemplateController extends Controller
|
||||
{
|
||||
class TemplateController extends Controller {
|
||||
|
||||
public $template;
|
||||
public $type;
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
public function __construct() {
|
||||
$this->middleware('auth');
|
||||
$this->middleware('roles');
|
||||
|
||||
@@ -38,8 +37,7 @@ class TemplateController extends Controller
|
||||
*
|
||||
* @return type view
|
||||
*/
|
||||
public function index()
|
||||
{
|
||||
public function index() {
|
||||
try {
|
||||
return view('themes.default1.common.template.inbox');
|
||||
} catch (\Exception $ex) {
|
||||
@@ -55,8 +53,7 @@ class TemplateController extends Controller
|
||||
*
|
||||
* @return type view
|
||||
*/
|
||||
public function showTemplate($id)
|
||||
{
|
||||
public function showTemplate($id) {
|
||||
try {
|
||||
$templates = Template::where('set_id', '=', $id)->get();
|
||||
|
||||
@@ -73,8 +70,7 @@ class TemplateController extends Controller
|
||||
*
|
||||
* @return type datatable
|
||||
*/
|
||||
public function GetTemplates(Request $request)
|
||||
{
|
||||
public function GetTemplates(Request $request) {
|
||||
$id = $request->input('id');
|
||||
|
||||
return \Datatable::collection($this->template->where('set_id', '=', $id)->select('id', 'name', 'type')->get())
|
||||
@@ -93,12 +89,10 @@ class TemplateController extends Controller
|
||||
/**
|
||||
* @return type view
|
||||
*/
|
||||
public function create()
|
||||
{
|
||||
public function create() {
|
||||
try {
|
||||
$i = $this->template->orderBy('created_at', 'desc')->first()->id + 1;
|
||||
$type = $this->type->lists('name', 'id')->toArray();
|
||||
|
||||
return view('themes.default1.common.template.create', compact('type'));
|
||||
} catch (\Exception $ex) {
|
||||
return redirect()->back()->with('fails', $ex->getMessage());
|
||||
@@ -112,20 +106,21 @@ class TemplateController extends Controller
|
||||
*
|
||||
* @return type redirect
|
||||
*/
|
||||
public function store(TemplateRequest $request)
|
||||
{
|
||||
public function store(TemplateRequest $request) {
|
||||
try {
|
||||
//dd($request);
|
||||
$this->template->fill($request->input())->save();
|
||||
|
||||
return redirect('templates')->with('success', Lang::get('lang.template_saved_successfully'));
|
||||
} catch (\Exception $ex) {
|
||||
return redirect()->back()->with('fails', $ex->getMessage());
|
||||
}
|
||||
}
|
||||
|
||||
public function edit($id)
|
||||
{
|
||||
/**
|
||||
* function to get the edit page of template
|
||||
* @param type $id
|
||||
* @return type
|
||||
*/
|
||||
public function edit($id) {
|
||||
try {
|
||||
$i = $this->template->orderBy('created_at', 'desc')->first()->id + 1;
|
||||
$template = $this->template->where('id', $id)->first();
|
||||
@@ -137,8 +132,13 @@ class TemplateController extends Controller
|
||||
}
|
||||
}
|
||||
|
||||
public function update($id, TemplateUdate $request)
|
||||
{
|
||||
/**
|
||||
* function to update a template
|
||||
* @param type $id
|
||||
* @param \App\Http\Requests\helpdesk\TemplateUdate $request
|
||||
* @return type
|
||||
*/
|
||||
public function update($id, TemplateUdate $request) {
|
||||
try {
|
||||
//dd($request);
|
||||
$template = $this->template->where('id', $id)->first();
|
||||
@@ -151,14 +151,13 @@ class TemplateController extends Controller
|
||||
}
|
||||
|
||||
/**
|
||||
* Remove the specified resource from storage.
|
||||
* function to delete a template
|
||||
*
|
||||
* @param int $id
|
||||
*
|
||||
* @return Response
|
||||
*/
|
||||
public function destroy(Request $request)
|
||||
{
|
||||
public function destroy(Request $request) {
|
||||
try {
|
||||
$ids = $request->input('select');
|
||||
if (!empty($ids)) {
|
||||
@@ -199,8 +198,12 @@ class TemplateController extends Controller
|
||||
}
|
||||
}
|
||||
|
||||
public function show($id)
|
||||
{
|
||||
/**
|
||||
* function to show the templates
|
||||
* @param type $id
|
||||
* @return type Mixed
|
||||
*/
|
||||
public function show($id) {
|
||||
//dd($currency);
|
||||
try {
|
||||
if ($this->template->where('type', 3)->where('id', $id)->first()) {
|
||||
@@ -255,4 +258,5 @@ class TemplateController extends Controller
|
||||
return redirect('/')->with('fails', $e->getMessage());
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
@@ -34,15 +34,20 @@ use View;
|
||||
*
|
||||
* @author Ladybird <info@ladybirdweb.com>
|
||||
*/
|
||||
class InstallController extends Controller
|
||||
{
|
||||
class InstallController extends Controller {
|
||||
|
||||
/**
|
||||
* Get Licence (step 1).
|
||||
*
|
||||
* @return type view
|
||||
*/
|
||||
public function licence()
|
||||
{
|
||||
public function licence() {
|
||||
Session::forget('step1');
|
||||
Session::forget('step2');
|
||||
Session::forget('step3');
|
||||
Session::forget('step4');
|
||||
Session::forget('step5');
|
||||
Session::forget('step6');
|
||||
// checking if the installation is running for the first time or not
|
||||
if (Config::get('database.install') == '%0%') {
|
||||
return view('themes/default1/installer/helpdesk/view1');
|
||||
@@ -57,8 +62,7 @@ class InstallController extends Controller
|
||||
*
|
||||
* @return type view
|
||||
*/
|
||||
public function licencecheck()
|
||||
{
|
||||
public function licencecheck() {
|
||||
// checking if the user have accepted the licence agreement
|
||||
$accept = (Input::has('accept1')) ? true : false;
|
||||
if ($accept == 'accept') {
|
||||
@@ -79,8 +83,7 @@ class InstallController extends Controller
|
||||
*
|
||||
* @return type view
|
||||
*/
|
||||
public function prerequisites()
|
||||
{
|
||||
public function prerequisites() {
|
||||
// checking if the installation is running for the first time or not
|
||||
if (Config::get('database.install') == '%0%') {
|
||||
if (Session::get('step1') == 'step1') {
|
||||
@@ -99,8 +102,7 @@ class InstallController extends Controller
|
||||
*
|
||||
* @return type view
|
||||
*/
|
||||
public function prerequisitescheck()
|
||||
{
|
||||
public function prerequisitescheck() {
|
||||
Session::put('step2', 'step2');
|
||||
|
||||
return Redirect::route('configuration');
|
||||
@@ -112,8 +114,7 @@ class InstallController extends Controller
|
||||
*
|
||||
* @return type view
|
||||
*/
|
||||
public function localization()
|
||||
{
|
||||
public function localization() {
|
||||
// checking if the installation is running for the first time or not
|
||||
if (Config::get('database.install') == '%0%') {
|
||||
if (Session::get('step2') == 'step2') {
|
||||
@@ -132,8 +133,7 @@ class InstallController extends Controller
|
||||
*
|
||||
* @return type view
|
||||
*/
|
||||
public function localizationcheck()
|
||||
{
|
||||
public function localizationcheck() {
|
||||
Session::put('step3', 'step3');
|
||||
Session::put('language', Input::get('language'));
|
||||
Session::put('timezone', Input::get('timezone'));
|
||||
@@ -149,8 +149,7 @@ class InstallController extends Controller
|
||||
*
|
||||
* @return type view
|
||||
*/
|
||||
public function configuration()
|
||||
{
|
||||
public function configuration() {
|
||||
// checking if the installation is running for the first time or not
|
||||
if (Config::get('database.install') == '%0%') {
|
||||
if (Session::get('step2') == 'step2') {
|
||||
@@ -169,8 +168,7 @@ class InstallController extends Controller
|
||||
*
|
||||
* @return type view
|
||||
*/
|
||||
public function configurationcheck(DatabaseRequest $request)
|
||||
{
|
||||
public function configurationcheck(DatabaseRequest $request) {
|
||||
Session::put('step4', 'step4');
|
||||
// dd($request->input('default'));
|
||||
// dd($request->input('host'));
|
||||
@@ -193,8 +191,7 @@ class InstallController extends Controller
|
||||
*
|
||||
* @return type view
|
||||
*/
|
||||
public function postconnection()
|
||||
{
|
||||
public function postconnection() {
|
||||
error_reporting(E_ALL & ~E_NOTICE);
|
||||
$default = Input::get('default');
|
||||
$host = Input::get('host');
|
||||
@@ -247,8 +244,7 @@ class InstallController extends Controller
|
||||
*
|
||||
* @return type view
|
||||
*/
|
||||
public function database()
|
||||
{
|
||||
public function database() {
|
||||
// checking if the installation is running for the first time or not
|
||||
if (Config::get('database.install') == '%0%') {
|
||||
if (Session::get('step4') == 'step4') {
|
||||
@@ -267,8 +263,7 @@ class InstallController extends Controller
|
||||
*
|
||||
* @return type view
|
||||
*/
|
||||
public function account()
|
||||
{
|
||||
public function account() {
|
||||
// checking if the installation is running for the first time or not
|
||||
if (Config::get('database.install') == '%0%') {
|
||||
if (Session::get('step4') == 'step4') {
|
||||
@@ -294,8 +289,7 @@ class InstallController extends Controller
|
||||
*
|
||||
* @return type view
|
||||
*/
|
||||
public function accountcheck(InstallerRequest $request)
|
||||
{
|
||||
public function accountcheck(InstallerRequest $request) {
|
||||
// checking is the installation was done previously
|
||||
try {
|
||||
$check_for_pre_installation = System::all();
|
||||
@@ -303,6 +297,7 @@ class InstallController extends Controller
|
||||
return redirect()->back()->with('fails', 'The data in database already exist. Please provide fresh database');
|
||||
}
|
||||
} catch (Exception $e) {
|
||||
|
||||
}
|
||||
if ($request->input('dummy-data') == 'on') {
|
||||
$path = base_path() . '/DB/dummy-data.sql';
|
||||
@@ -327,7 +322,6 @@ class InstallController extends Controller
|
||||
$datetime = $request->input('datetime');
|
||||
|
||||
//\Cache::forever('language', $language);
|
||||
|
||||
//\App::setLocale($language);
|
||||
// $system = System::where('id','=','1')->first();
|
||||
// $system->time_zone = $timezone;
|
||||
@@ -380,8 +374,7 @@ class InstallController extends Controller
|
||||
*
|
||||
* @return type view
|
||||
*/
|
||||
public function finalize()
|
||||
{
|
||||
public function finalize() {
|
||||
// checking if the installation have been completed or not
|
||||
if (Session::get('step6') == 'step6') {
|
||||
$value = '1';
|
||||
@@ -431,8 +424,7 @@ class InstallController extends Controller
|
||||
*
|
||||
* @return type view
|
||||
*/
|
||||
public function finalcheck()
|
||||
{
|
||||
public function finalcheck() {
|
||||
try {
|
||||
return redirect('/auth/login');
|
||||
} catch (Exception $e) {
|
||||
@@ -440,8 +432,7 @@ class InstallController extends Controller
|
||||
}
|
||||
}
|
||||
|
||||
public function changeFilePermission()
|
||||
{
|
||||
public function changeFilePermission() {
|
||||
$path1 = base_path() . DIRECTORY_SEPARATOR . '.env';
|
||||
$path2 = base_path() . DIRECTORY_SEPARATOR . 'config' . DIRECTORY_SEPARATOR . 'database.php';
|
||||
$path3 = base_path() . DIRECTORY_SEPARATOR . 'app' . DIRECTORY_SEPARATOR . 'Http' . DIRECTORY_SEPARATOR . 'routes.php';
|
||||
@@ -461,8 +452,8 @@ class InstallController extends Controller
|
||||
}
|
||||
}
|
||||
|
||||
public function jsDisabled()
|
||||
{
|
||||
public function jsDisabled() {
|
||||
return view('themes/default1/installer/helpdesk/check-js')->with('url', $_SERVER['HTTP_REFERER']);
|
||||
}
|
||||
|
||||
}
|
||||
|
@@ -181,7 +181,7 @@ class UpgradeController extends Controller
|
||||
$notify->delete();
|
||||
}
|
||||
} catch (Exception $ex) {
|
||||
dd($ex);
|
||||
throw new Exception($ex->getMessage());
|
||||
}
|
||||
}
|
||||
|
||||
@@ -196,7 +196,7 @@ class UpgradeController extends Controller
|
||||
return redirect()->back();
|
||||
}
|
||||
} catch (Exception $ex) {
|
||||
dd($ex);
|
||||
return redirect()->back()->with('fails',$ex->getMessage());
|
||||
}
|
||||
}
|
||||
|
||||
@@ -218,8 +218,6 @@ class UpgradeController extends Controller
|
||||
return redirect()->back();
|
||||
}
|
||||
} catch (Exception $ex) {
|
||||
dd($ex);
|
||||
|
||||
return redirect()->back()->with('fails',$ex->getMessage());
|
||||
}
|
||||
}
|
||||
@@ -328,7 +326,7 @@ class UpgradeController extends Controller
|
||||
return redirect()->back();
|
||||
}
|
||||
} catch (Exception $ex) {
|
||||
dd($ex);
|
||||
return redirect()->back()->with('fails',$ex->getMessage());
|
||||
}
|
||||
}
|
||||
|
||||
@@ -343,7 +341,7 @@ class UpgradeController extends Controller
|
||||
return redirect()->back();
|
||||
}
|
||||
} catch (Exception $ex) {
|
||||
dd($ex);
|
||||
return redirect()->back()->with('fails',$ex->getMessage());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -7,22 +7,19 @@ use Closure;
|
||||
|
||||
/**
|
||||
* CheckBoard.
|
||||
* Checking if the system board is online or offline.
|
||||
* Checking if the system board is online or offline
|
||||
*
|
||||
* @author Ladybird <info@ladybirdweb.com>
|
||||
*/
|
||||
class CheckBoard
|
||||
{
|
||||
class CheckBoard {
|
||||
|
||||
/**
|
||||
* Handle an incoming request.
|
||||
*
|
||||
* @param \Illuminate\Http\Request $request
|
||||
* @param \Closure $next
|
||||
*
|
||||
* @return type Mixed
|
||||
*/
|
||||
public function handle($request, Closure $next)
|
||||
{
|
||||
public function handle($request, Closure $next) {
|
||||
if ($this->checkBoard() == '1') {
|
||||
return $next($request);
|
||||
} else {
|
||||
@@ -31,18 +28,16 @@ class CheckBoard
|
||||
}
|
||||
|
||||
/**
|
||||
* Function to get the system offline details.
|
||||
*
|
||||
* Function to get the system offline details
|
||||
* @return type Mixed
|
||||
*/
|
||||
public function checkBoard()
|
||||
{
|
||||
public function checkBoard() {
|
||||
$res = 0;
|
||||
$system = new System();
|
||||
$system = new System;
|
||||
if ($system->first()) {
|
||||
$res = $system->first()->status;
|
||||
}
|
||||
|
||||
return $res;
|
||||
}
|
||||
|
||||
}
|
||||
|
@@ -31,7 +31,6 @@ class CheckUpdate
|
||||
return redirect('file-update');
|
||||
}
|
||||
}
|
||||
|
||||
return $next($request);
|
||||
}
|
||||
|
||||
|
@@ -29,7 +29,7 @@ class TemplateRequest extends Request
|
||||
public function rules()
|
||||
{
|
||||
return [
|
||||
'name' => 'required|unique:template',
|
||||
// 'name' => 'required|unique:template',
|
||||
// 'subject' => 'required',
|
||||
'type' => 'required',
|
||||
'message' => 'required',
|
||||
|
@@ -29,7 +29,7 @@ class TemplateUdate extends Request
|
||||
public function rules()
|
||||
{
|
||||
return [
|
||||
'name' => 'required|max:60',
|
||||
// 'name' => 'required|max:60',
|
||||
// 'subject' => 'required',
|
||||
'type' => 'required',
|
||||
'message' => 'required',
|
||||
|
@@ -25,7 +25,7 @@ class WorkflowCloseRequest extends Request
|
||||
{
|
||||
return [
|
||||
'days' => 'required|integer|min:1',
|
||||
'condition' => 'required|integer',
|
||||
// 'condition' => 'required|integer',
|
||||
'send_email' => 'required|integer',
|
||||
'status' => 'required|integer',
|
||||
];
|
||||
|
@@ -48,19 +48,102 @@ Route::group(['middleware' => 'roles', 'middleware' => 'auth', 'middleware' => '
|
||||
Route::get('settings-notification', ['as' => 'notification.settings', 'uses' => 'Admin\helpdesk\SettingsController@notificationSettings']);
|
||||
Route::get('delete-read-notification', 'Admin\helpdesk\SettingsController@deleteReadNoti');
|
||||
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
|
||||
Breadcrumbs::register('groups.index', function($breadcrumbs) {
|
||||
$breadcrumbs->parent('setting');
|
||||
$breadcrumbs->push(Lang::get('lang.groups'), route('groups.index'));
|
||||
});
|
||||
Breadcrumbs::register('groups.create', function($breadcrumbs) {
|
||||
$breadcrumbs->parent('groups.index');
|
||||
$breadcrumbs->push(Lang::get('lang.create'), route('groups.create'));
|
||||
});
|
||||
Breadcrumbs::register('groups.edit', function($breadcrumbs) {
|
||||
$breadcrumbs->parent('groups.index');
|
||||
$breadcrumbs->push(Lang::get('lang.edit'), url('groups/{groups}/edit'));
|
||||
});
|
||||
|
||||
|
||||
Route::resource('departments', 'Admin\helpdesk\DepartmentController'); // for departments module, for CRUD
|
||||
Breadcrumbs::register('departments.index', function($breadcrumbs) {
|
||||
$breadcrumbs->parent('setting');
|
||||
$breadcrumbs->push(Lang::get('lang.departments'), route('departments.index'));
|
||||
});
|
||||
Breadcrumbs::register('departments.create', function($breadcrumbs) {
|
||||
$breadcrumbs->parent('departments.index');
|
||||
$breadcrumbs->push(Lang::get('lang.create'), route('departments.create'));
|
||||
});
|
||||
Breadcrumbs::register('departments.edit', function($breadcrumbs) {
|
||||
$breadcrumbs->parent('departments.index');
|
||||
$breadcrumbs->push(Lang::get('lang.edit'), url('departments/{departments}/edit'));
|
||||
});
|
||||
|
||||
|
||||
Route::resource('teams', 'Admin\helpdesk\TeamController'); // in teams module, for CRUD
|
||||
Breadcrumbs::register('teams.index', function($breadcrumbs) {
|
||||
$breadcrumbs->parent('setting');
|
||||
$breadcrumbs->push(Lang::get('lang.teams'), route('teams.index'));
|
||||
});
|
||||
Breadcrumbs::register('teams.create', function($breadcrumbs) {
|
||||
$breadcrumbs->parent('teams.index');
|
||||
$breadcrumbs->push(Lang::get('lang.create'), route('teams.create'));
|
||||
});
|
||||
Breadcrumbs::register('teams.edit', function($breadcrumbs) {
|
||||
$breadcrumbs->parent('teams.index');
|
||||
$breadcrumbs->push(Lang::get('lang.edit'), url('teams/{teams}/edit'));
|
||||
});
|
||||
|
||||
|
||||
|
||||
Route::resource('agents', 'Admin\helpdesk\AgentController'); // in agents module, for CRUD
|
||||
Breadcrumbs::register('agents.index', function($breadcrumbs) {
|
||||
$breadcrumbs->parent('setting');
|
||||
$breadcrumbs->push(Lang::get('lang.agents'), route('agents.index'));
|
||||
});
|
||||
Breadcrumbs::register('agents.create', function($breadcrumbs) {
|
||||
$breadcrumbs->parent('agents.index');
|
||||
$breadcrumbs->push(Lang::get('lang.create'), route('agents.create'));
|
||||
});
|
||||
Breadcrumbs::register('agents.edit', function($breadcrumbs) {
|
||||
$breadcrumbs->parent('agents.index');
|
||||
$breadcrumbs->push(Lang::get('lang.edit'), url('agents/{agents}/edit'));
|
||||
});
|
||||
|
||||
|
||||
Route::resource('emails', 'Admin\helpdesk\EmailsController'); // in emails module, for CRUD
|
||||
Breadcrumbs::register('emails.index', function($breadcrumbs) {
|
||||
$breadcrumbs->parent('setting');
|
||||
$breadcrumbs->push(Lang::get('lang.emails'), route('emails.index'));
|
||||
});
|
||||
Breadcrumbs::register('emails.create', function($breadcrumbs) {
|
||||
$breadcrumbs->parent('emails.index');
|
||||
$breadcrumbs->push(Lang::get('lang.create'), route('emails.create'));
|
||||
});
|
||||
Breadcrumbs::register('emails.edit', function($breadcrumbs) {
|
||||
$breadcrumbs->parent('emails.index');
|
||||
$breadcrumbs->push(Lang::get('lang.edit'), url('emails/{emails}/edit'));
|
||||
});
|
||||
|
||||
|
||||
|
||||
Route::resource('banlist', 'Admin\helpdesk\BanlistController'); // in banlist module, for CRUD
|
||||
Breadcrumbs::register('banlist.index', function($breadcrumbs) {
|
||||
$breadcrumbs->parent('setting');
|
||||
$breadcrumbs->push(Lang::get('lang.banlists'), route('banlist.index'));
|
||||
});
|
||||
Breadcrumbs::register('banlist.create', function($breadcrumbs) {
|
||||
$breadcrumbs->parent('banlist.index');
|
||||
$breadcrumbs->push(Lang::get('lang.add'), route('banlist.create'));
|
||||
});
|
||||
Breadcrumbs::register('banlist.edit', function($breadcrumbs) {
|
||||
$breadcrumbs->parent('banlist.index');
|
||||
$breadcrumbs->push(Lang::get('lang.edit'), url('agents/{agents}/edit'));
|
||||
});
|
||||
Route::get('banlist/delete/{id}', ['as' => 'banlist.delete', 'uses' => 'Admin\helpdesk\BanlistController@delete']); // in banlist module, for CRUD
|
||||
|
||||
|
||||
/*
|
||||
* Templates
|
||||
*/
|
||||
@@ -108,56 +191,132 @@ Route::group(['middleware' => 'roles', 'middleware' => 'auth', 'middleware' => '
|
||||
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
|
||||
Breadcrumbs::register('getdiagno', function($breadcrumbs) {
|
||||
$breadcrumbs->parent('setting');
|
||||
$breadcrumbs->push(Lang::get('lang.email_diagnostic'), route('getdiagno'));
|
||||
});
|
||||
|
||||
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
|
||||
Breadcrumbs::register('helptopic.index', function($breadcrumbs) {
|
||||
$breadcrumbs->parent('setting');
|
||||
$breadcrumbs->push(Lang::get('lang.help_topics'), route('helptopic.index'));
|
||||
});
|
||||
Breadcrumbs::register('helptopic.create', function($breadcrumbs) {
|
||||
$breadcrumbs->parent('helptopic.index');
|
||||
$breadcrumbs->push(Lang::get('lang.create'), route('helptopic.create'));
|
||||
});
|
||||
Breadcrumbs::register('helptopic.edit', function($breadcrumbs) {
|
||||
$breadcrumbs->parent('helptopic.index');
|
||||
$breadcrumbs->push(Lang::get('lang.edit'), url('helptopic/{helptopic}/edit'));
|
||||
});
|
||||
|
||||
|
||||
|
||||
Route::resource('sla', 'Admin\helpdesk\SlaController'); // in SLA Plan module, for CRUD
|
||||
Breadcrumbs::register('sla.index', function($breadcrumbs) {
|
||||
$breadcrumbs->parent('setting');
|
||||
$breadcrumbs->push(Lang::get('lang.sla-plans'), route('sla.index'));
|
||||
});
|
||||
Breadcrumbs::register('sla.create', function($breadcrumbs) {
|
||||
$breadcrumbs->parent('sla.index');
|
||||
$breadcrumbs->push(Lang::get('lang.create'), route('sla.create'));
|
||||
});
|
||||
Breadcrumbs::register('sla.edit', function($breadcrumbs) {
|
||||
$breadcrumbs->parent('sla.index');
|
||||
$breadcrumbs->push(Lang::get('lang.edit'), url('sla/{sla}/edit'));
|
||||
});
|
||||
|
||||
|
||||
|
||||
Route::resource('forms', 'Admin\helpdesk\FormController');
|
||||
|
||||
Breadcrumbs::register('forms.index', function($breadcrumbs) {
|
||||
$breadcrumbs->parent('setting');
|
||||
$breadcrumbs->push(Lang::get('lang.forms'), route('forms.index'));
|
||||
});
|
||||
Breadcrumbs::register('forms.create', function($breadcrumbs) {
|
||||
$breadcrumbs->parent('forms.index');
|
||||
$breadcrumbs->push(Lang::get('lang.create'), route('forms.create'));
|
||||
});
|
||||
Breadcrumbs::register('forms.edit', function($breadcrumbs) {
|
||||
$breadcrumbs->parent('forms.index');
|
||||
$breadcrumbs->push(Lang::get('lang.edit'), url('forms/{forms}/edit'));
|
||||
});
|
||||
Breadcrumbs::register('forms.show', function($breadcrumbs) {
|
||||
$breadcrumbs->parent('forms.index');
|
||||
$breadcrumbs->push(Lang::get('lang.view'), url('forms/{forms}'));
|
||||
});
|
||||
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
|
||||
Breadcrumbs::register('get.job.scheder', function($breadcrumbs) {
|
||||
$breadcrumbs->parent('setting');
|
||||
$breadcrumbs->push(Lang::get('lang.cron-jobs'), route('get.job.scheder'));
|
||||
});
|
||||
|
||||
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
|
||||
Breadcrumbs::register('getcompany', function($breadcrumbs) {
|
||||
$breadcrumbs->parent('setting');
|
||||
$breadcrumbs->push(Lang::get('lang.company_settings'), route('getcompany'));
|
||||
});
|
||||
|
||||
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
|
||||
Breadcrumbs::register('getsystem', function($breadcrumbs) {
|
||||
$breadcrumbs->parent('setting');
|
||||
$breadcrumbs->push(Lang::get('lang.system-settings'), route('getsystem'));
|
||||
});
|
||||
|
||||
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
|
||||
Breadcrumbs::register('getticket', function($breadcrumbs) {
|
||||
$breadcrumbs->parent('setting');
|
||||
$breadcrumbs->push(Lang::get('lang.ticket-setting'), route('getticket'));
|
||||
});
|
||||
|
||||
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
|
||||
Breadcrumbs::register('getemail', function($breadcrumbs) {
|
||||
$breadcrumbs->parent('setting');
|
||||
$breadcrumbs->push(Lang::get('lang.email-settings'), route('getemail'));
|
||||
});
|
||||
|
||||
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
|
||||
Breadcrumbs::register('getresponder', function($breadcrumbs) {
|
||||
$breadcrumbs->parent('setting');
|
||||
$breadcrumbs->push(Lang::get('lang.auto_responce'), route('getresponder'));
|
||||
});
|
||||
|
||||
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
|
||||
Breadcrumbs::register('getalert', function($breadcrumbs) {
|
||||
$breadcrumbs->parent('setting');
|
||||
$breadcrumbs->push(Lang::get('lang.alert_notices_setitngs'), route('getalert'));
|
||||
});
|
||||
|
||||
Route::patch('postalert/{id}', 'Admin\helpdesk\SettingsController@postalert'); // Updating the Alert table with requests
|
||||
// Templates
|
||||
Breadcrumbs::register('security.index', function ($breadcrumbs) {
|
||||
$breadcrumbs->parent('setting');
|
||||
$breadcrumbs->push('Security', route('security.index'));
|
||||
$breadcrumbs->push(Lang::get('lang.security_settings'), route('security.index'));
|
||||
});
|
||||
|
||||
// Templates > Upload Templates
|
||||
@@ -187,17 +346,18 @@ Route::group(['middleware' => 'roles', 'middleware' => 'auth', 'middleware' => '
|
||||
|
||||
Breadcrumbs::register('close-workflow.index', function ($breadcrumbs) {
|
||||
$breadcrumbs->parent('setting');
|
||||
$breadcrumbs->push('Close Ticket Workflow', route('close-workflow.index'));
|
||||
$breadcrumbs->push(Lang::get('lang.close_ticket_workflow_settings'), route('close-workflow.index'));
|
||||
});
|
||||
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
|
||||
Breadcrumbs::register('statuss.index', function ($breadcrumbs) {
|
||||
$breadcrumbs->parent('setting');
|
||||
$breadcrumbs->push('All Status', route('statuss.index'));
|
||||
$breadcrumbs->push(Lang::get('lang.status_settings'), route('statuss.index'));
|
||||
});
|
||||
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']);
|
||||
Breadcrumbs::register('statuss.create', function ($breadcrumbs) {
|
||||
@@ -212,11 +372,12 @@ Route::group(['middleware' => 'roles', 'middleware' => 'auth', 'middleware' => '
|
||||
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']);
|
||||
Breadcrumbs::register('ratings.index', function ($breadcrumbs) {
|
||||
$breadcrumbs->parent('setting');
|
||||
$breadcrumbs->push('All Ratings', route('ratings.index'));
|
||||
$breadcrumbs->push(Lang::get('lang.ratings_settings'), route('ratings.index'));
|
||||
});
|
||||
Route::get('getratings', ['as' => 'ratings.index', 'uses' => 'Admin\helpdesk\SettingsController@RatingSettings']);
|
||||
|
||||
Route::get('deleter/{rating}', ['as' => 'ratings.delete', 'uses' => 'Admin\helpdesk\SettingsController@RatingDelete']);
|
||||
|
||||
@@ -241,7 +402,11 @@ Route::group(['middleware' => 'roles', 'middleware' => 'auth', 'middleware' => '
|
||||
|
||||
Route::get('remove-user-org/{id}', ['as' => 'removeuser.org', 'uses' => 'Agent\helpdesk\UserController@removeUserOrg']);
|
||||
|
||||
Route::get('admin-profile', 'Admin\helpdesk\ProfileController@getProfile'); /* User profile edit get */
|
||||
Route::get('admin-profile', ['as' => 'admin-profile', 'uses' => 'Admin\helpdesk\ProfileController@getProfile']); /* User profile edit get */
|
||||
Breadcrumbs::register('admin-profile', function($breadcrumbs) {
|
||||
$breadcrumbs->parent('dashboard');
|
||||
$breadcrumbs->push(Lang::get('lang.profile'), route('admin-profile'));
|
||||
});
|
||||
|
||||
Route::get('admin-profile-edit', 'Admin\helpdesk\ProfileController@getProfileedit'); /* Admin profile get */
|
||||
|
||||
@@ -250,34 +415,47 @@ Route::group(['middleware' => 'roles', 'middleware' => 'auth', 'middleware' => '
|
||||
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 */
|
||||
Breadcrumbs::register('widgets', function($breadcrumbs) {
|
||||
$breadcrumbs->parent('setting');
|
||||
$breadcrumbs->push(Lang::get('lang.widget-settings'), route('widgets'));
|
||||
});
|
||||
|
||||
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 */
|
||||
Breadcrumbs::register('social.buttons', function($breadcrumbs) {
|
||||
$breadcrumbs->parent('setting');
|
||||
$breadcrumbs->push(Lang::get('lang.social-widget-settings'), route('social.buttons'));
|
||||
});
|
||||
|
||||
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('getsmtp', ['as' => 'getsmtp', 'uses' => 'Common\SettingsController@getsmtp']); /* get the create footer page for admin */
|
||||
|
||||
Route::patch('post-smtp', ['as' => 'post_smtp', 'uses' => 'Common\SettingsController@postsmtp']); /* post footer to insert to database */
|
||||
|
||||
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('checkUpdate', ['as' => 'checkupdate', 'uses' => 'Common\SettingsController@getupdate']); /* get Check update */
|
||||
|
||||
Breadcrumbs::register('setting', function ($breadcrumbs) {
|
||||
$breadcrumbs->push('Admin Panel', route('setting'));
|
||||
Breadcrumbs::register('checkupdate', function($breadcrumbs) {
|
||||
$breadcrumbs->parent('setting');
|
||||
$breadcrumbs->push(Lang::get('lang.update-version'), route('checkupdate'));
|
||||
});
|
||||
|
||||
|
||||
Route::get('admin', ['as' => 'setting', 'uses' => 'Admin\helpdesk\SettingsController@settings']);
|
||||
Breadcrumbs::register('setting', function ($breadcrumbs) {
|
||||
$breadcrumbs->push(Lang::get('lang.admin_panel'), route('setting'));
|
||||
});
|
||||
|
||||
Route::get('plugins', ['as' => 'plugins', 'uses' => 'Common\SettingsController@Plugins']);
|
||||
Breadcrumbs::register('plugins', function($breadcrumbs) {
|
||||
$breadcrumbs->parent('setting');
|
||||
$breadcrumbs->push(Lang::get('lang.plugins'), route('plugins'));
|
||||
});
|
||||
|
||||
Route::get('getplugin', ['as' => 'get.plugin', 'uses' => 'Common\SettingsController@GetPlugin']);
|
||||
|
||||
@@ -291,6 +469,10 @@ Route::group(['middleware' => 'roles', 'middleware' => 'auth', 'middleware' => '
|
||||
|
||||
//Routes for showing language table and switching language
|
||||
Route::get('languages', ['as' => 'LanguageController', 'uses' => 'Admin\helpdesk\LanguageController@index']);
|
||||
Breadcrumbs::register('LanguageController', function($breadcrumbs) {
|
||||
$breadcrumbs->parent('setting');
|
||||
$breadcrumbs->push(Lang::get('lang.language-settings'), route('LanguageController'));
|
||||
});
|
||||
|
||||
Route::get('get-languages', ['as' => 'getAllLanguages', 'uses' => 'Admin\helpdesk\LanguageController@getLanguages']);
|
||||
|
||||
@@ -303,6 +485,10 @@ Route::group(['middleware' => 'roles', 'middleware' => 'auth', 'middleware' => '
|
||||
Route::post('language/add', 'Admin\helpdesk\LanguageController@postForm');
|
||||
|
||||
Route::get('language/add', ['as' => 'add-language', 'uses' => 'Admin\helpdesk\LanguageController@getForm']);
|
||||
Breadcrumbs::register('add-language', function($breadcrumbs) {
|
||||
$breadcrumbs->parent('LanguageController');
|
||||
$breadcrumbs->push(Lang::get('lang.add'), route('add-language'));
|
||||
});
|
||||
|
||||
//Routes for delete language package
|
||||
Route::get('delete-language/{lang}', ['as' => 'lang.delete', 'uses' => 'Admin\helpdesk\LanguageController@deleteLanguage']);
|
||||
@@ -314,11 +500,27 @@ Route::group(['middleware' => 'roles', 'middleware' => 'auth', 'middleware' => '
|
||||
|
||||
|
||||
Route::get('workflow', ['as' => 'workflow', 'uses' => 'Admin\helpdesk\WorkflowController@index']);
|
||||
Breadcrumbs::register('workflow', function($breadcrumbs) {
|
||||
$breadcrumbs->parent('setting');
|
||||
$breadcrumbs->push(Lang::get('lang.ticket_workflow'), route('workflow'));
|
||||
});
|
||||
|
||||
Route::get('workflow-list', ['as' => 'workflow.list', 'uses' => 'Admin\helpdesk\WorkflowController@workFlowList']);
|
||||
|
||||
Route::get('workflow/create', ['as' => 'workflow.create', 'uses' => 'Admin\helpdesk\WorkflowController@create']);
|
||||
Breadcrumbs::register('workflow.create', function($breadcrumbs) {
|
||||
$breadcrumbs->parent('workflow');
|
||||
$breadcrumbs->push(Lang::get('lang.create'), route('workflow.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']);
|
||||
Breadcrumbs::register('workflow.edit', function($breadcrumbs) {
|
||||
$breadcrumbs->parent('workflow');
|
||||
$breadcrumbs->push(Lang::get('lang.edit'), url('workflow/edit/{id}'));
|
||||
});
|
||||
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']);
|
||||
|
||||
@@ -326,6 +528,10 @@ Route::group(['middleware' => 'roles', 'middleware' => 'auth', 'middleware' => '
|
||||
* Api Settings
|
||||
*/
|
||||
Route::get('api', ['as' => 'api.settings.get', 'uses' => 'Common\ApiSettings@show']);
|
||||
Breadcrumbs::register('api.settings.get', function($breadcrumbs) {
|
||||
$breadcrumbs->parent('setting');
|
||||
$breadcrumbs->push(Lang::get('lang.api_settings'), route('api.settings.get'));
|
||||
});
|
||||
Route::post('api', ['as' => 'api.settings.post', 'uses' => 'Common\ApiSettings@postSettings']);
|
||||
|
||||
/*
|
||||
@@ -333,15 +539,18 @@ Route::group(['middleware' => 'roles', 'middleware' => 'auth', 'middleware' => '
|
||||
*/
|
||||
//route for showing error and debugging setting form page
|
||||
Route::get('error-and-debugging-options', ['as' => 'err.debug.settings', 'uses' => 'Admin\helpdesk\ErrorAndDebuggingController@showSettings']);
|
||||
|
||||
Breadcrumbs::register('err.debug.settings', function ($breadcrumbs) {
|
||||
$breadcrumbs->parent('setting');
|
||||
$breadcrumbs->push(Lang::get('lang.error-debug-settings'), route('err.debug.settings'));
|
||||
});
|
||||
//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',
|
||||
'uses' => 'Admin\helpdesk\ErrorAndDebuggingController@showErrorLogs',
|
||||
'uses' => 'Admin\helpdesk\ErrorAndDebuggingController@showErrorLogs'
|
||||
]);
|
||||
});
|
||||
|
||||
@@ -370,12 +579,45 @@ Route::group(['middleware' => 'role.agent', 'middleware' => 'auth', 'middleware'
|
||||
|
||||
|
||||
Route::resource('user', 'Agent\helpdesk\UserController'); /* User router is used to control the CRUD of user */
|
||||
Breadcrumbs::register('user.index', function($breadcrumbs) {
|
||||
$breadcrumbs->parent('dashboard');
|
||||
$breadcrumbs->push(Lang::get('lang.user_directory'), route('user.index'));
|
||||
});
|
||||
Breadcrumbs::register('user.create', function($breadcrumbs) {
|
||||
$breadcrumbs->parent('user.index');
|
||||
$breadcrumbs->push(Lang::get('lang.create'), route('user.create'));
|
||||
});
|
||||
Breadcrumbs::register('user.edit', function($breadcrumbs) {
|
||||
$breadcrumbs->parent('user.index');
|
||||
$breadcrumbs->push(Lang::get('lang.edit'), url('user/{user}/edit'));
|
||||
});
|
||||
Breadcrumbs::register('user.show', function($breadcrumbs) {
|
||||
$breadcrumbs->parent('user.index');
|
||||
$breadcrumbs->push(Lang::get('lang.view-profile'), url('user/{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 */
|
||||
Breadcrumbs::register('organizations.index', function($breadcrumbs) {
|
||||
$breadcrumbs->parent('dashboard');
|
||||
$breadcrumbs->push(Lang::get('lang.organizations'), route('organizations.index'));
|
||||
});
|
||||
Breadcrumbs::register('organizations.create', function($breadcrumbs) {
|
||||
$breadcrumbs->parent('organizations.index');
|
||||
$breadcrumbs->push(Lang::get('lang.create'), route('organizations.create'));
|
||||
});
|
||||
Breadcrumbs::register('organizations.edit', function($breadcrumbs) {
|
||||
$breadcrumbs->parent('organizations.index');
|
||||
$breadcrumbs->push(Lang::get('lang.edit'), url('organizations/{organizations}/edit'));
|
||||
});
|
||||
Breadcrumbs::register('organizations.show', function($breadcrumbs) {
|
||||
$breadcrumbs->parent('organizations.index');
|
||||
$breadcrumbs->push(Lang::get('lang.view_organization_profile'), url('organizations/{organizations}'));
|
||||
});
|
||||
|
||||
|
||||
Route::get('org-list', ['as' => 'org.list', 'uses' => 'Agent\helpdesk\OrganizationController@org_list']);
|
||||
|
||||
@@ -387,20 +629,40 @@ Route::group(['middleware' => 'role.agent', 'middleware' => 'auth', 'middleware'
|
||||
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 */
|
||||
Breadcrumbs::register('profile', function($breadcrumbs) {
|
||||
$breadcrumbs->parent('dashboard');
|
||||
$breadcrumbs->push(Lang::get('lang.my_profile'), route('profile'));
|
||||
});
|
||||
|
||||
Route::get('profile-edit', ['as' => 'agent-profile-edit', 'uses' => 'Agent\helpdesk\UserController@getProfileedit']); /* User profile edit get */
|
||||
Breadcrumbs::register('agent-profile-edit', function($breadcrumbs) {
|
||||
$breadcrumbs->parent('profile');
|
||||
$breadcrumbs->push(Lang::get('lang.edit'), url('profile-edit'));
|
||||
});
|
||||
|
||||
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 */
|
||||
Breadcrumbs::register('canned.list', function($breadcrumbs) {
|
||||
$breadcrumbs->parent('dashboard');
|
||||
$breadcrumbs->push(Lang::get('lang.canned_response'), route('canned.list'));
|
||||
});
|
||||
|
||||
Route::get('canned/create', ['as' => 'canned.create', 'uses' => 'Agent\helpdesk\CannedController@create']); /* Canned create */
|
||||
Breadcrumbs::register('canned.create', function($breadcrumbs) {
|
||||
$breadcrumbs->parent('canned.list');
|
||||
$breadcrumbs->push(Lang::get('lang.create'), route('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 */
|
||||
Breadcrumbs::register('canned.edit', function($breadcrumbs) {
|
||||
$breadcrumbs->parent('canned.list');
|
||||
$breadcrumbs->push(Lang::get('lang.edit'), url('canned/edit/{id}'));
|
||||
});
|
||||
|
||||
Route::patch('canned/update/{id}', ['as' => 'canned.update', 'uses' => 'Agent\helpdesk\CannedController@update']); /* Canned update */
|
||||
|
||||
@@ -413,38 +675,78 @@ Route::group(['middleware' => 'role.agent', 'middleware' => 'auth', 'middleware'
|
||||
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 */
|
||||
Breadcrumbs::register('inbox.ticket', function($breadcrumbs) {
|
||||
$breadcrumbs->parent('dashboard');
|
||||
$breadcrumbs->push(Lang::get('lang.inbox'), route('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 */
|
||||
Breadcrumbs::register('open.ticket', function($breadcrumbs) {
|
||||
$breadcrumbs->parent('dashboard');
|
||||
$breadcrumbs->push(Lang::get('lang.open-tickets'), route('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 */
|
||||
Breadcrumbs::register('answered.ticket', function($breadcrumbs) {
|
||||
$breadcrumbs->parent('dashboard');
|
||||
$breadcrumbs->push(Lang::get('lang.answered_tickets'), route('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 */
|
||||
Breadcrumbs::register('myticket.ticket', function($breadcrumbs) {
|
||||
$breadcrumbs->parent('dashboard');
|
||||
$breadcrumbs->push(Lang::get('lang.my_tickets'), route('myticket.ticket'));
|
||||
});
|
||||
|
||||
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 */
|
||||
Breadcrumbs::register('overdue.ticket', function($breadcrumbs) {
|
||||
$breadcrumbs->parent('dashboard');
|
||||
$breadcrumbs->push(Lang::get('lang.overdue-tickets'), route('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 */
|
||||
Breadcrumbs::register('closed.ticket', function($breadcrumbs) {
|
||||
$breadcrumbs->parent('dashboard');
|
||||
$breadcrumbs->push(Lang::get('lang.closed_tickets'), route('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 */
|
||||
Breadcrumbs::register('assigned.ticket', function($breadcrumbs) {
|
||||
$breadcrumbs->parent('dashboard');
|
||||
$breadcrumbs->push(Lang::get('lang.assigned_tickets'), route('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 */
|
||||
Breadcrumbs::register('newticket', function($breadcrumbs) {
|
||||
$breadcrumbs->parent('dashboard');
|
||||
$breadcrumbs->push(Lang::get('lang.create_ticket'), route('newticket'));
|
||||
});
|
||||
|
||||
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 */
|
||||
Breadcrumbs::register('ticket.thread', function($breadcrumbs, $id) {
|
||||
$breadcrumbs->parent('dashboard');
|
||||
$ticket_number = App\Model\helpdesk\Ticket\Tickets::where('id', '=', $id)->first();
|
||||
$breadcrumbs->push($ticket_number->ticket_number, url('/thread/{id}'));
|
||||
});
|
||||
|
||||
|
||||
Route::patch('/thread/reply/{id}', ['as' => 'ticket.reply', 'uses' => 'Agent\helpdesk\TicketController@reply']); /* Patch Thread Reply */
|
||||
|
||||
@@ -471,17 +773,26 @@ Route::group(['middleware' => 'role.agent', 'middleware' => 'auth', 'middleware'
|
||||
Route::get('/aaaa', 'Client\helpdesk\GuestController@ticket_number');
|
||||
|
||||
Route::get('trash', ['as' => 'get-trash', 'uses' => 'Agent\helpdesk\TicketController@trash']); /* To show Deleted Tickets */
|
||||
Breadcrumbs::register('get-trash', function($breadcrumbs) {
|
||||
$breadcrumbs->parent('dashboard');
|
||||
$breadcrumbs->push(Lang::get('lang.trash'), route('get-trash'));
|
||||
});
|
||||
|
||||
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 */
|
||||
Breadcrumbs::register('unassigned', function($breadcrumbs) {
|
||||
$breadcrumbs->parent('dashboard');
|
||||
$breadcrumbs->push(Lang::get('lang.unassigned-tickets'), route('unassigned'));
|
||||
});
|
||||
|
||||
Route::get('/ticket/unassigned', ['as' => 'get.unassigned.ticket', 'uses' => 'Agent\helpdesk\TicketController@get_unassigned']); /* Get tickets in datatable */
|
||||
Breadcrumbs::register('dashboard', function ($breadcrumbs) {
|
||||
$breadcrumbs->parent('/');
|
||||
$breadcrumbs->push('Dashboard', route('dashboard'));
|
||||
});
|
||||
|
||||
Route::get('dashboard', ['as' => 'dashboard', 'uses' => 'Agent\helpdesk\DashboardController@index']); /* To show dashboard pages */
|
||||
Breadcrumbs::register('dashboard', function ($breadcrumbs) {
|
||||
//$breadcrumbs->parent('/');
|
||||
$breadcrumbs->push(Lang::get('lang.dashboard'), route('dashboard'));
|
||||
});
|
||||
|
||||
Route::get('agen', 'Agent\helpdesk\DashboardController@ChartData');
|
||||
|
||||
@@ -514,10 +825,22 @@ Route::group(['middleware' => 'role.agent', 'middleware' => 'auth', 'middleware'
|
||||
// Department ticket
|
||||
|
||||
Route::get('/{dept}/open', ['as' => 'dept.open.ticket', 'uses' => 'Agent\helpdesk\TicketController@deptopen']); // Open
|
||||
Breadcrumbs::register('dept.open.ticket', function($breadcrumbs) {
|
||||
$breadcrumbs->parent('dashboard');
|
||||
$breadcrumbs->push(Lang::get('lang.open_tickets'), url('/{dept}/open'));
|
||||
});
|
||||
|
||||
Route::get('/{dept}/inprogress', ['as' => 'dept.inprogress.ticket', 'uses' => 'Agent\helpdesk\TicketController@deptinprogress']); // Inprogress
|
||||
Breadcrumbs::register('dept.inprogress.ticket', function($breadcrumbs) {
|
||||
$breadcrumbs->parent('dashboard');
|
||||
$breadcrumbs->push(Lang::get('lang.inprogress_tickets'), url('/{dept}/inprogress'));
|
||||
});
|
||||
|
||||
Route::get('/{dept}/closed', ['as' => 'dept.closed.ticket', 'uses' => 'Agent\helpdesk\TicketController@deptclose']); // Closed
|
||||
Breadcrumbs::register('dept.closed.ticket', function($breadcrumbs) {
|
||||
$breadcrumbs->parent('dashboard');
|
||||
$breadcrumbs->push(Lang::get('lang.closed_tickets'), url('/{dept}/closed'));
|
||||
});
|
||||
|
||||
Route::post('rating/{id}', ['as' => 'ticket.rating', 'uses' => 'Agent\helpdesk\TicketController@rating']); /* Get overall Ratings */
|
||||
|
||||
@@ -601,8 +924,8 @@ Route::get('mytickets/{id}', ['as' => 'ticketinfo', 'uses' => 'Client\helpdesk\G
|
||||
Route::post('checkmyticket', 'Client\helpdesk\UnAuthController@PostCheckTicket'); //ticket ckeck
|
||||
Breadcrumbs::register('check_ticket', function ($breadcrumbs, $id) {
|
||||
$page = \App\Model\helpdesk\Ticket\Tickets::whereId(1)->first();
|
||||
$breadcrumbs->parent('/');
|
||||
$breadcrumbs->push('Check Ticket', route('check_ticket', $page->id));
|
||||
$breadcrumbs->parent('dashboard');
|
||||
$breadcrumbs->push('Check Ticket');
|
||||
});
|
||||
Route::get('check_ticket/{id}', ['as' => 'check_ticket', 'uses' => 'Client\helpdesk\GuestController@get_ticket_email']); //detail ticket information
|
||||
// show ticket via have a ticket
|
||||
@@ -752,16 +1075,61 @@ Route::get('testmail', function () {
|
||||
|
||||
/* For the crud of catogory */
|
||||
$router->resource('category', 'Agent\kb\CategoryController');
|
||||
Breadcrumbs::register('category.index', function($breadcrumbs) {
|
||||
$breadcrumbs->parent('dashboard');
|
||||
$breadcrumbs->push(Lang::get('lang.category'), route('category.index'));
|
||||
});
|
||||
Breadcrumbs::register('category.create', function($breadcrumbs) {
|
||||
$breadcrumbs->parent('category.index');
|
||||
$breadcrumbs->push(Lang::get('lang.add'), route('category.create'));
|
||||
});
|
||||
Breadcrumbs::register('category.edit', function($breadcrumbs) {
|
||||
$breadcrumbs->parent('category.index');
|
||||
$breadcrumbs->push(Lang::get('lang.edit'), url('category/{category}/edit'));
|
||||
});
|
||||
Breadcrumbs::register('category.show', function($breadcrumbs) {
|
||||
$breadcrumbs->parent('category.index');
|
||||
$breadcrumbs->push(Lang::get('lang.view'), url('category/{category}'));
|
||||
});
|
||||
$router->get('category/delete/{id}', 'Agent\kb\CategoryController@destroy');
|
||||
/* For the crud of article */
|
||||
|
||||
|
||||
$router->resource('article', 'Agent\kb\ArticleController');
|
||||
Breadcrumbs::register('article.index', function($breadcrumbs) {
|
||||
$breadcrumbs->parent('dashboard');
|
||||
$breadcrumbs->push(Lang::get('lang.article'), route('article.index'));
|
||||
});
|
||||
Breadcrumbs::register('article.create', function($breadcrumbs) {
|
||||
$breadcrumbs->parent('article.index');
|
||||
$breadcrumbs->push(Lang::get('lang.add'), route('article.create'));
|
||||
});
|
||||
Breadcrumbs::register('article.edit', function($breadcrumbs) {
|
||||
$breadcrumbs->parent('article.index');
|
||||
$breadcrumbs->push(Lang::get('lang.edit'), url('article/{article}/edit'));
|
||||
});
|
||||
Breadcrumbs::register('article.show', function($breadcrumbs) {
|
||||
$breadcrumbs->parent('article.index');
|
||||
$breadcrumbs->push(Lang::get('lang.view'), url('article/{article}'));
|
||||
});
|
||||
$router->get('article/delete/{id}', 'Agent\kb\ArticleController@destroy');
|
||||
|
||||
/* get settings */
|
||||
$router->get('kb/settings', ['as' => 'settings', 'uses' => 'Agent\kb\SettingsController@settings']);
|
||||
Breadcrumbs::register('settings', function($breadcrumbs) {
|
||||
$breadcrumbs->parent('dashboard');
|
||||
$breadcrumbs->push(Lang::get('lang.settings'), route('settings'));
|
||||
});
|
||||
/* post settings */
|
||||
$router->patch('postsettings/{id}', 'Agent\kb\SettingsController@postSettings');
|
||||
//Route for administrater to access the comment
|
||||
|
||||
$router->get('comment', ['as' => 'comment', 'uses' => 'Agent\kb\SettingsController@comment']);
|
||||
Breadcrumbs::register('comment', function($breadcrumbs) {
|
||||
$breadcrumbs->parent('dashboard');
|
||||
$breadcrumbs->push(Lang::get('lang.comments'), route('comment'));
|
||||
});
|
||||
|
||||
/* Route to define the comment should Published */
|
||||
$router->get('published/{id}', ['as' => 'published', 'uses' => 'Agent\kb\SettingsController@publish']);
|
||||
/* Route for deleting comments */
|
||||
@@ -776,7 +1144,27 @@ $router->delete('deleted/{id}', ['as' => 'deleted', 'uses' => 'Agent\kb\Settings
|
||||
$router->get('delete-logo/{id}', ['as' => 'delete-logo', 'uses' => 'Agent\kb\SettingsController@deleteLogo']);
|
||||
/* delete Background */
|
||||
$router->get('delete-background/{id}', ['as' => 'delete-background', 'uses' => 'Agent\kb\SettingsController@deleteBackground']);
|
||||
|
||||
$router->resource('page', 'Agent\kb\PageController');
|
||||
Breadcrumbs::register('page.index', function($breadcrumbs) {
|
||||
$breadcrumbs->parent('dashboard');
|
||||
$breadcrumbs->push(Lang::get('lang.pages'), route('page.index'));
|
||||
});
|
||||
Breadcrumbs::register('page.create', function($breadcrumbs) {
|
||||
$breadcrumbs->parent('page.index');
|
||||
$breadcrumbs->push(Lang::get('lang.add'), route('page.create'));
|
||||
});
|
||||
Breadcrumbs::register('page.edit', function($breadcrumbs) {
|
||||
$breadcrumbs->parent('page.index');
|
||||
$breadcrumbs->push(Lang::get('lang.edit'), url('page/{page}/edit'));
|
||||
});
|
||||
Breadcrumbs::register('page.show', function($breadcrumbs) {
|
||||
$breadcrumbs->parent('page.index');
|
||||
$breadcrumbs->push(Lang::get('lang.view'), url('page/{page}'));
|
||||
});
|
||||
|
||||
|
||||
|
||||
$router->get('get-pages', ['as' => 'api.page', 'uses' => 'Agent\kb\PageController@getData']);
|
||||
$router->get('page/delete/{id}', ['as' => 'pagedelete', 'uses' => 'Agent\kb\PageController@destroy']);
|
||||
$router->get('comment/delete/{id}', ['as' => 'commentdelete', 'uses' => 'Agent\kb\SettingsController@delete']);
|
||||
|
@@ -7,5 +7,5 @@ use App\BaseModel;
|
||||
class Template extends BaseModel
|
||||
{
|
||||
protected $table = 'templates';
|
||||
protected $fillable = ['name', 'message', 'type', 'subject'];
|
||||
protected $fillable = ['name', 'message', 'type', 'variable', 'subject'];
|
||||
}
|
||||
|
@@ -26,8 +26,7 @@ class Ticket_Thread extends BaseModel
|
||||
// $this->attributes['title'] = str_replace('"', "'", $value);
|
||||
// }
|
||||
|
||||
public function getTitleAttribute($value)
|
||||
{
|
||||
public function getTitleAttribute($value) {
|
||||
return str_replace('"', "'", $value);
|
||||
}
|
||||
}
|
||||
|
@@ -55,7 +55,7 @@ further defined and clarified by project maintainers.
|
||||
## Enforcement
|
||||
|
||||
Instances of abusive, harassing, or otherwise unacceptable behavior may be
|
||||
reported by contacting the project team at support@ladybirdweb.com. All
|
||||
reported by contacting the project team at [support@ladybirdweb.com]. All
|
||||
complaints will be reviewed and investigated and will result in a response that
|
||||
is deemed necessary and appropriate to the circumstances. The project team is
|
||||
obligated to maintain confidentiality with regard to the reporter of an incident.
|
||||
|
@@ -33,7 +33,7 @@ return [
|
||||
| This tells about aplication current version.
|
||||
|
|
||||
*/
|
||||
'version' => 'Community 1.0.7.5 R.C.',
|
||||
'version' => 'Community 1.0.7.5',
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Application URL
|
||||
@@ -44,7 +44,7 @@ return [
|
||||
| your application so that it is used when running Artisan tasks.
|
||||
|
|
||||
*/
|
||||
'url' => 'http://localhost',
|
||||
'url' => 'http://localhost/sujit/faveo-helpdesk/public//sujit/faveo-helpdesk/public//sujit/faveo-helpdesk/public/',
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Application Timezone
|
||||
|
@@ -1,6 +1,6 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
return array(
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
@@ -49,7 +49,7 @@ return [
|
||||
| contain these strings will be filtered.
|
||||
|
|
||||
*/
|
||||
'filters' => env('BUGSNAG_FILTERS', ['password']),
|
||||
'filters' => env('BUGSNAG_FILTERS', array('password')),
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
@@ -72,6 +72,6 @@ return [
|
||||
| )
|
||||
|
|
||||
*/
|
||||
'proxy' => env('BUGSNAG_PROXY', null),
|
||||
'proxy' => env('BUGSNAG_PROXY', null)
|
||||
|
||||
];
|
||||
);
|
||||
|
@@ -101,7 +101,7 @@ return [
|
||||
| installed or not.
|
||||
|
|
||||
*/
|
||||
'install' => '%0%',
|
||||
'install' => '1',
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Redis Databases
|
||||
|
@@ -1994,17 +1994,17 @@ class DatabaseSeeder extends Seeder
|
||||
TemplateType::create(['id' => '10', 'name' => 'ticket-reply-agent']);
|
||||
TemplateType::create(['id' => '11', 'name' => 'registration']);
|
||||
|
||||
Template::create(['id' => '1', 'name' => 'This template is for sending notice to agent when ticket is assigned to them', 'type' => '1', 'message' => '<div>Hello {!!$ticket_agent_name!!},<br><br>Ticket No: {!!$ticket_number!!}<br>Has been assigned to you by {!!$ticket_assigner!!} <br><br>Thank You<br>Kind Regards,<br>{!!$system_from!!}</div>', 'set_id' => '1']);
|
||||
Template::create(['id' => '2', 'name' => 'This template is for sending notice to client with ticket link to check ticket without logging in to system', 'type' => '2', 'message' => '<div>Hello {!!$user!!},<br><br>Click the link below to view your Requested ticket<br>{!!$ticket_link_with_number!!}<br><br>Kind Regards,<br>{!!$system_from!!} </div>', 'set_id' => '1']);
|
||||
Template::create(['id' => '3', 'name' => 'This template is for sending notice to client when ticket status is changed to close', 'type' => '3', 'message' => '<div>Hello,<br><br>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.<br><br>Thank you<br>Kind regards,<br> {!!$system_from!!} <br><br></div>', 'set_id' => '1']);
|
||||
Template::create(['id' => '4', 'name' => 'This template is for sending notice to client on successful ticket creation', 'type' => '4', 'message' => '<div><span>Hello {!!$user!!}<br><br></span><span>Thank you for contacting us. This is an automated response confirming the receipt of your ticket. Our team will get back to you as soon as possible. When replying, please make sure that the ticket ID is kept in the subject so that we can track your replies.<br><br></span><span>Ticket ID: {!!$ticket_number!!} <br></span><span>{!!$department_sign!!}<br></span>You can check the status of or update this ticket online at: {!!$system_link!!}</div>', 'set_id' => '1']);
|
||||
Template::create(['id' => '5', 'name' => 'This template is for sending notice to agent on new ticket creation', 'type' => '5', 'message' => '<div>Hello {!!$ticket_agent_name!!}, <br><br>New ticket {!!$ticket_number!!} created <br>From<br>Name :- {!!$ticket_client_name!!} <br>E-mail :- {!!$ticket_client_email!!} <br><br>{!!$content!!} <br><br>Kind Regards,<br>{!!$system_from!!}</div><br>', 'set_id' => '1']);
|
||||
Template::create(['id' => '6', 'name' => 'This template is for sending notice to client on new ticket created by agent in name of client', 'type' => '6', 'message' => '<div>{!!$content!!}<br><br>{!!$agent_sign!!}<br><br>You can check the status of or update this ticket online at: {!!$system_link!!}</div>', 'set_id' => '1']);
|
||||
Template::create(['id' => '7', 'name' => 'This template is for sending notice to client on new registration during new ticket creation for un registered clients', 'type' => '7', 'message' => '<span><p>Hello {!!$user!!} , </p><p>This email is confirmation that you are now registered at our helpdesk.</p><p>Registered Email: {!!$email_address!!}</p><p>Password: {!!$user_password!!}</p><p>You can visit the helpdesk to browse articles and contact us at any time: {!!$system_link!!}</p><p>Thank You.</p><p>Kind Regards,</p><p>{!!$system_from!!} </p></span>', 'set_id' => '1']);
|
||||
Template::create(['id' => '8', 'name' => 'This template is for sending notice to any user about reset password option', 'type' => '8', 'message' => 'Hello {!!$user!!}<br/><br/>You asked to reset your password. To do so, please click this link:<br/><br/>{!!$password_reset_link!!}</a><br/><br/><br/>This will let you change your password to something new. If you did not ask for this, do not worry, we will keep your password safe.<br/><br/>Thank You.<br/><br/>Kind Regards,<br/><br/> {!!$system_from!!}', 'set_id' => '1']);
|
||||
Template::create(['id' => '9', 'name' => 'This template is for sending notice to client when a reply made to his/her ticket', 'type' => '9', 'message' => '<span><div><span><p>{!!$content!!} <br></p><p>{!!$agent_sign!!} </p><p>Ticket Details</p><p>Ticket ID: {!!$ticket_number!!} </p><div><br></div></span><br></div><div><br></div></span>', 'set_id' => '1']);
|
||||
Template::create(['id' => '10', 'name' => 'This template is for sending notice to agent when ticket reply is made by client on a ticket', 'type' => '10', 'message' => '<div>Hello {!!$ticket_agent_name!!},<b><br></b>A reply been made to ticket {!!$ticket_number!!}<b><br></b>From<br>Name: {!!$ticket_client_name!!}<br>E-mail: {!!$ticket_client_email!!}<b><br></b>{!!$content!!}<b><br></b>Kind Regards,<br>{!!$system_from!!}</div>', 'set_id' => '1']);
|
||||
Template::create(['id' => '11', 'name' => 'This template is for sending notice to client about registration confirmation link', 'type' => '11', 'message' => '<span><p>Hello {!!$user!!} , </p><p>This email is confirmation that you are now registered at our helpdesk.</p><p>Registered Email: {!!$email_address!!}</p><p>Please click on the below link to activate your account and Login to the system {!!$password_reset_link!!}</p><p>Thank You.</p><p>Kind Regards,</p><p>{!!$system_from!!} </p></span>', 'set_id' => '1']);
|
||||
Template::create(['id' => '1', 'variable' => '0', 'name' => 'This template is for sending notice to agent when ticket is assigned to them', 'type' => '1', 'message' => '<div>Hello {!!$ticket_agent_name!!},<br><br>Ticket No: {!!$ticket_number!!}<br>Has been assigned to you by {!!$ticket_assigner!!} <br><br>Thank You<br>Kind Regards,<br>{!!$system_from!!}</div>', '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' => '<div>Hello {!!$user!!},<br><br>Click the link below to view your Requested ticket<br>{!!$ticket_link_with_number!!}<br><br>Kind Regards,<br>{!!$system_from!!} </div>', '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' => '<div>Hello,<br><br>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.<br><br>Thank you<br>Kind regards,<br> {!!$system_from!!} <br><br></div>', 'set_id' => '1']);
|
||||
Template::create(['id' => '4', 'variable' => '0', 'name' => 'This template is for sending notice to client on successful ticket creation', 'type' => '4', 'message' => '<div><span>Hello {!!$user!!}<br><br></span><span>Thank you for contacting us. This is an automated response confirming the receipt of your ticket. Our team will get back to you as soon as possible. When replying, please make sure that the ticket ID is kept in the subject so that we can track your replies.<br><br></span><span>Ticket ID: {!!$ticket_number!!} <br></span><span>{!!$department_sign!!}<br></span>You can check the status of or update this ticket online at: {!!$system_link!!}</div>', 'set_id' => '1']);
|
||||
Template::create(['id' => '5', 'variable' => '0', 'name' => 'This template is for sending notice to agent on new ticket creation', 'type' => '5', 'message' => '<div>Hello {!!$ticket_agent_name!!}, <br><br>New ticket {!!$ticket_number!!} created <br>From<br>Name :- {!!$ticket_client_name!!} <br>E-mail :- {!!$ticket_client_email!!} <br><br>{!!$content!!} <br><br>Kind Regards,<br>{!!$system_from!!}</div><br>', 'set_id' => '1']);
|
||||
Template::create(['id' => '6', 'variable' => '0', 'name' => 'This template is for sending notice to client on new ticket created by agent in name of client', 'type' => '6', 'message' => '<div>{!!$content!!}<br><br>{!!$agent_sign!!}<br><br>You can check the status of or update this ticket online at: {!!$system_link!!}</div>', 'set_id' => '1']);
|
||||
Template::create(['id' => '7', 'variable' => '1', 'name' => 'This template is for sending notice to client on new registration during new ticket creation for un registered clients', 'type' => '7', 'subject' => 'Registration Confirmation', 'message' => '<span><p>Hello {!!$user!!} , </p><p>This email is confirmation that you are now registered at our helpdesk.</p><p>Registered Email: {!!$email_address!!}</p><p>Password: {!!$user_password!!}</p><p>You can visit the helpdesk to browse articles and contact us at any time: {!!$system_link!!}</p><p>Thank You.</p><p>Kind Regards,</p><p>{!!$system_from!!} </p></span>', 'set_id' => '1']);
|
||||
Template::create(['id' => '8', 'variable' => '1', 'name' => 'This template is for sending notice to any user about reset password option', 'type' => '8', 'subject' => 'Reset your Password','message' => 'Hello {!!$user!!}<br/><br/>You asked to reset your password. To do so, please click this link:<br/><br/>{!!$password_reset_link!!}</a><br/><br/><br/>This will let you change your password to something new. If you did not ask for this, do not worry, we will keep your password safe.<br/><br/>Thank You.<br/><br/>Kind Regards,<br/><br/> {!!$system_from!!}', 'set_id' => '1']);
|
||||
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' => '<span><div><span><p>{!!$content!!} <br></p><p>{!!$agent_sign!!} </p><p>Ticket Details</p><p>Ticket ID: {!!$ticket_number!!} </p><div><br></div></span><br></div><div><br></div></span>', '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' => '<div>Hello {!!$ticket_agent_name!!},<b><br></b>A reply been made to ticket {!!$ticket_number!!}<b><br></b>From<br>Name: {!!$ticket_client_name!!}<br>E-mail: {!!$ticket_client_email!!}<b><br></b>{!!$content!!}<b><br></b>Kind Regards,<br>{!!$system_from!!}</div>', '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' => '<span><p>Hello {!!$user!!} , </p><p>This email is confirmation that you are now registered at our helpdesk.</p><p>Registered Email: {!!$email_address!!}</p><p>Please click on the below link to activate your account and Login to the system {!!$password_reset_link!!}</p><p>Thank You.</p><p>Kind Regards,</p><p>{!!$system_from!!} </p></span>', 'set_id' => '1']);
|
||||
|
||||
|
||||
/**
|
||||
|
Binary file not shown.
2
public/lb-faveo/js/know.js
vendored
2
public/lb-faveo/js/know.js
vendored
@@ -23,7 +23,7 @@
|
||||
/* Main Search
|
||||
/*-----------------------------------------------------------------------------------*/
|
||||
$.ajax({
|
||||
url: 'search-terms.php',
|
||||
url: '',
|
||||
dataType: 'json'
|
||||
}).done(function (data) {
|
||||
$('#header-search .search-field').autocomplete({
|
||||
|
Binary file not shown.
Binary file not shown.
@@ -1,4 +1,4 @@
|
||||
|
||||
|
||||
<?php
|
||||
|
||||
return [
|
||||
|
@@ -1,4 +1,4 @@
|
||||
<?php
|
||||
<?php
|
||||
|
||||
return [
|
||||
|
||||
|
@@ -1,4 +1,4 @@
|
||||
<?php
|
||||
<?php
|
||||
|
||||
return [
|
||||
|
||||
@@ -14,7 +14,7 @@ return [
|
||||
*/
|
||||
|
||||
'password' => 'Passwörter müssen mindestens sechs Zeichen lang sein und der Bestätigung entsprechen.',
|
||||
'user' => 'Wir können keinen Benutzer mit dieser E-Mail-Adresse finden.',
|
||||
'user' => "Wir können keinen Benutzer mit dieser E-Mail-Adresse finden.",
|
||||
'token' => 'Dieser Passwort-Reset-Token ist ungültig.',
|
||||
'sent' => 'Wir haben dir einen Passwort-Reset-Link per E-Mail zukommen lassen!',
|
||||
'reset' => 'Dein Passwort wurde zurückgesetzt!',
|
||||
|
@@ -1,4 +1,4 @@
|
||||
<?php
|
||||
<?php
|
||||
|
||||
return [
|
||||
|
||||
|
BIN
resources/lang/en/en.zip
Normal file
BIN
resources/lang/en/en.zip
Normal file
Binary file not shown.
@@ -210,6 +210,7 @@ return [
|
||||
'send' => 'Send',
|
||||
'choose_an_email' => 'Choose an email',
|
||||
'email_diagnostic' => 'Email Diagnostic',
|
||||
'send-mail-to-diagnos' => 'Send a mail to check outgoing email settings',
|
||||
'message_has_been_sent' => 'Message has been sent',
|
||||
'message_sent_from_php_mail' => 'Message sent from Php-Mail',
|
||||
'mailer_error' => 'Mailer Error',
|
||||
@@ -231,6 +232,7 @@ return [
|
||||
*/
|
||||
'country-code' => 'Code',
|
||||
'company' => 'Company',
|
||||
'company_settings' => 'Company Settings',
|
||||
'website' => 'Website',
|
||||
'phone' => 'Phone',
|
||||
'address' => 'Address',
|
||||
@@ -269,11 +271,6 @@ return [
|
||||
'date_time' => 'Date And Time Format',
|
||||
'day_date_time' => 'Day,Date And Time Format',
|
||||
'timezone' => 'Default Time Zone',
|
||||
'api' => 'Api',
|
||||
'api_key' => 'Api Key',
|
||||
'api_key_mandatory' => 'Api key mandatory',
|
||||
'api_configurations' => 'Api Configurations',
|
||||
'generate_key' => 'Generate key',
|
||||
'Ticket-created-successfully' => 'Ticket created successfully!',
|
||||
'system_updated_successfully' => 'System Updated Successfully',
|
||||
'system_can_not_updated' => 'System can not Updated',
|
||||
@@ -311,11 +308,12 @@ return [
|
||||
'email_attahment_user' => 'Email attachments to the user',
|
||||
'cron_notification' => 'Enable Notification cron',
|
||||
'cron' => 'Job Scheduler',
|
||||
'cron-jobs' => 'Cron Jobs',
|
||||
'crone-url-message' => "These are Faveo's Job Scheduler(cron job) url for your system.",
|
||||
'clipboard-copy-message' => 'Copied to clipboard.',
|
||||
'click' => 'Click here',
|
||||
'check-cron-set' => 'to check how to set cron jobs on your server.',
|
||||
'notification-email' => 'Email notifications',
|
||||
'notification-email' => 'Email Notifications',
|
||||
'click-url-copy' => 'Click here to copy URL',
|
||||
'job-scheduler-error' => 'Job scheduler can not be updated.',
|
||||
'job-scheduler-success' => 'Job scheduler updated successfully.',
|
||||
@@ -325,6 +323,7 @@ return [
|
||||
|--------------------------------------
|
||||
*/
|
||||
'ticket' => 'Ticket',
|
||||
'ticket-setting' => 'Ticket Settings',
|
||||
'default_ticket_number_format' => 'Default Ticket Number Format',
|
||||
'default_ticket_number_sequence' => 'Default Ticket Number Sequence',
|
||||
'default_status' => 'Default Status',
|
||||
@@ -346,6 +345,7 @@ return [
|
||||
'reload-now' => 'Relaod now',
|
||||
'ticket-lock-inactive' => 'You have been inactive for a while. Please reload the page.',
|
||||
'make-system-default-mail' => 'Make this email system\'s default email',
|
||||
'thread' => 'Thread',
|
||||
/*
|
||||
|--------------------------------------
|
||||
| Access Settings Page
|
||||
@@ -363,6 +363,7 @@ return [
|
||||
'user_session_timeout' => 'User Session Timeout',
|
||||
'client_quick_access' => 'Client Quick Access',
|
||||
'cron' => 'Cron',
|
||||
'cron_settings' => 'Cron Settings',
|
||||
'system-settings' => 'System Settings',
|
||||
'settings-2' => 'Settings',
|
||||
|
||||
@@ -372,6 +373,7 @@ return [
|
||||
|--------------------------------------
|
||||
*/
|
||||
'auto_responce' => 'Auto Response',
|
||||
'auto_responce-settings' => 'Auto response settings',
|
||||
'new_ticket' => 'New Ticket',
|
||||
'new_ticket_by_agent' => 'New Ticket by Agent',
|
||||
'new_message' => 'New Message',
|
||||
@@ -392,6 +394,7 @@ return [
|
||||
'disable' => 'Disable',
|
||||
'admin_email_2' => 'Admin Email',
|
||||
'alert_notices' => 'Alert & Notices',
|
||||
'alert_notices_setitngs' => 'Alert and Notice settings',
|
||||
'new_ticket_alert' => 'New Ticket Alert',
|
||||
'department_manager' => 'Department Manager',
|
||||
'department_members' => 'Department Members',
|
||||
@@ -427,6 +430,7 @@ return [
|
||||
| Language page
|
||||
|------------------------------------------------
|
||||
*/
|
||||
'language-settings' => 'Language Settings',
|
||||
'iso-code' => 'ISO-CODE',
|
||||
'download' => 'Downlaod',
|
||||
'upload_file' => 'Upload File',
|
||||
@@ -457,7 +461,7 @@ return [
|
||||
'add_plugin' => 'Add Plugin',
|
||||
'plugins' => 'Plugins',
|
||||
'upload' => 'Upload',
|
||||
|
||||
'plugins-list' => 'List of plugins',
|
||||
/*
|
||||
|----------------------------------------------------------------------------------------
|
||||
| Manage Pages [English(en)]
|
||||
@@ -493,6 +497,7 @@ return [
|
||||
'parent_topic' => 'Parent Topic',
|
||||
'Custom_form' => 'Custom Form',
|
||||
'SLA_plan' => 'SLA Plan',
|
||||
'sla-plans' => 'SLA Plans',
|
||||
'auto_assign' => 'Auto assign',
|
||||
'auto_respons' => 'Auto Respons',
|
||||
'ticket_number_format' => 'Ticket Number Format',
|
||||
@@ -857,6 +862,7 @@ return [
|
||||
'change_password' => 'Change Password',
|
||||
'sign_out' => 'Sign Out',
|
||||
'Tickets' => 'TICKETS',
|
||||
'ticket-details' => 'Ticket Details',
|
||||
'inbox' => 'Inbox',
|
||||
'my_tickets' => 'My Tickets',
|
||||
'unassigned' => 'Unassigned',
|
||||
@@ -864,13 +870,16 @@ return [
|
||||
'Updates' => 'UPDATES',
|
||||
'no_new_updates' => 'No new Updates',
|
||||
'check_for_updates' => 'Check for Updates',
|
||||
'update-version' => 'Update Version',
|
||||
'open' => 'Open',
|
||||
'inprogress' => 'Inprogress',
|
||||
'inprogress_tickets' => 'Inprogress Tickets',
|
||||
'closed' => 'Closed',
|
||||
'Departments' => 'DEPARTMENTS',
|
||||
'tools' => 'Tools',
|
||||
'canned' => 'Canned',
|
||||
'knowledge_base' => 'Knowledge Base',
|
||||
'kb-settings' => 'Knowledge Base Settings',
|
||||
'loading' => 'Loading',
|
||||
'ratings' => 'Ratings',
|
||||
'please_rate' => 'Please rate:',
|
||||
@@ -908,6 +917,8 @@ return [
|
||||
| Profile
|
||||
|-----------------------------------------------
|
||||
*/
|
||||
'view-profile' => 'View Profile',
|
||||
'edit-profile' => 'Edit Profile',
|
||||
'user_information' => 'User Information',
|
||||
'time_zone' => 'Time-zone',
|
||||
'phone_number' => 'Phone Number',
|
||||
@@ -945,6 +956,7 @@ return [
|
||||
'user' => 'User',
|
||||
'users' => 'Users',
|
||||
'create_user' => 'Create User',
|
||||
'edit_user' => 'Edit User',
|
||||
'full_name' => 'Full Name',
|
||||
'mobile' => 'Mobile',
|
||||
'last_login' => 'Last Login',
|
||||
@@ -968,6 +980,8 @@ return [
|
||||
*/
|
||||
'organizations' => 'Organizations',
|
||||
'organization' => 'Organization',
|
||||
'organization_list' => 'List of organizations',
|
||||
'view_organization_profile' => 'View Organization Profile',
|
||||
'create_organization' => 'Create Organization',
|
||||
'account_manager' => 'Account Manager',
|
||||
'update' => 'Update',
|
||||
@@ -1005,6 +1019,7 @@ return [
|
||||
'Ticket_Id' => 'TICKET ID',
|
||||
'User' => 'USER',
|
||||
'Unassigned' => 'UNASSIGNED',
|
||||
'unassigned-tickets' => 'Unassigned Tickets',
|
||||
'generate_pdf' => 'Generate PDF',
|
||||
'change_status' => 'Change Status',
|
||||
'more' => 'More',
|
||||
@@ -1075,6 +1090,7 @@ return [
|
||||
'clean-up' => 'Delete forever',
|
||||
'hard-delete-success-message' => 'Tickets have been deleted permanently.',
|
||||
'overdue' => 'Overdue',
|
||||
'overdue-tickets' => 'Overdue Tickets',
|
||||
'change_owner_for_ticket' => 'Change Owner for Ticket',
|
||||
|
||||
/*
|
||||
@@ -1206,6 +1222,7 @@ return [
|
||||
'noti_msg2' => 'You can enter the no of days of database logs to be deleted and the history of notifications will be deleted since the day specified.',
|
||||
'del_all_read' => 'Delete All Read',
|
||||
'You_have_deleted_all_the_read_notifications' => 'You have deleted all the read notifications',
|
||||
'view_all_notifications' => 'View all notifications',
|
||||
/*
|
||||
|------------------------------------------------
|
||||
| Error Pages
|
||||
@@ -1224,11 +1241,12 @@ return [
|
||||
'article' => 'Article',
|
||||
'articles' => 'Articles',
|
||||
'addarticle' => 'Add Article',
|
||||
'allarticle' => 'All Article',
|
||||
'allarticle' => 'All Articles',
|
||||
'pages' => 'Pages',
|
||||
'addpages' => 'Add Pages',
|
||||
'allpages' => 'All Pages',
|
||||
'widgets' => 'Widgets',
|
||||
'widget-settings' => 'Widget Settings',
|
||||
'footer1' => 'Footer 1',
|
||||
'footer2' => 'Footer 2',
|
||||
'footer3' => 'Footer 3',
|
||||
@@ -1236,6 +1254,7 @@ return [
|
||||
'sidewidget1' => 'Side Widget 1',
|
||||
'sidewidget2' => 'Side Widget 2',
|
||||
'comments' => 'Comments',
|
||||
'comments-list' => 'List of comments',
|
||||
'settings' => 'Settings',
|
||||
'parent' => 'Parent',
|
||||
'description' => 'Description',
|
||||
@@ -1247,6 +1266,7 @@ return [
|
||||
'create_a_category' => 'Create a Category',
|
||||
'add' => 'Add',
|
||||
'social' => 'Social',
|
||||
'social-widget-settings' => 'Social widget settings',
|
||||
'comment' => 'Comment',
|
||||
'not_published' => 'Not Published',
|
||||
'numberofelementstodisplay' => 'Number of elements to display',
|
||||
@@ -1325,7 +1345,12 @@ return [
|
||||
|
||||
'webhooks' => 'Webhooks',
|
||||
'enter_url_to_send_ticket_details' => 'Enter the url to send the ticket details',
|
||||
|
||||
'api' => 'Api',
|
||||
'api_key' => 'Api Key',
|
||||
'api_key_mandatory' => 'Api key mandatory',
|
||||
'api_configurations' => 'Api Configurations',
|
||||
'generate_key' => 'Generate key',
|
||||
'api_settings' => 'API settings',
|
||||
/*
|
||||
*-----------------------------------------------------------------------------
|
||||
* Error log and debugging settings
|
||||
@@ -1342,5 +1367,12 @@ return [
|
||||
'error-debug-settings-saved-message' => 'Your error and debugging settings have been saved successfully',
|
||||
'error-debug-settings-error-message' => 'You have not made any change in the settings.',
|
||||
'error-logs' => 'Error logs',
|
||||
/*---------------------------------------------------------------------------------------
|
||||
*Latest update 16-06-2016
|
||||
*-----------------------------------------------------------------------------------
|
||||
*/
|
||||
'that_email_is not_available_in_this_system' => 'That Email is not available in this System',
|
||||
'use_subject' => 'Use Subject',
|
||||
'reopen' => 'Reopen',
|
||||
|
||||
];
|
||||
|
@@ -1,921 +0,0 @@
|
||||
|
||||
<?php
|
||||
|
||||
return [
|
||||
/*
|
||||
|----------------------------------------------------------------------------------------
|
||||
| Authentication Pages [English(en)]
|
||||
|----------------------------------------------------------------------------------------
|
||||
|
|
||||
| The following language lines are used in all authentication related issues to translate
|
||||
| some words in view to English. You are free to change them to anything you want to
|
||||
| customize your views to better match your application.
|
||||
|
|
||||
*/
|
||||
|
||||
/*
|
||||
|--------------------------------------
|
||||
| Error
|
||||
|--------------------------------------
|
||||
*/
|
||||
'success' => 'Success',
|
||||
'fails' => 'Fails',
|
||||
'alert' => 'Alert',
|
||||
'required-error' => 'Please fill all required fields',
|
||||
'invalid' => 'Incorrect User id or password',
|
||||
/*
|
||||
|--------------------------------------
|
||||
| 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' => 'E-Mail Address',
|
||||
'password' => 'Password',
|
||||
'woops' => 'Whoops!',
|
||||
'theirisproblem' => 'There were some problems with your input.',
|
||||
'login' => 'Login',
|
||||
'e-mail' => 'E-mail',
|
||||
'reg_new_member' => 'Register a new membership',
|
||||
/*
|
||||
|--------------------------------------
|
||||
| Register Page
|
||||
|--------------------------------------
|
||||
*/
|
||||
'registration' => 'Registration',
|
||||
'full_name' => 'Full name',
|
||||
'firstname' => 'First Name',
|
||||
'lastname' => 'Last Name',
|
||||
'profilepicture' => 'Profile Picture',
|
||||
'oldpassword' => 'Old Password',
|
||||
'newpassword' => 'New Password',
|
||||
'retype_password' => 'Retype Password',
|
||||
'i_agree_to_the' => 'I agree to the',
|
||||
'terms' => 'terms',
|
||||
'register' => 'Register',
|
||||
'i_already_have_a_membership' => 'I already have a membership',
|
||||
'see-profile1' => 'Click here to see ',
|
||||
'see-profile2' => 's profile',
|
||||
/*
|
||||
|--------------------------------------
|
||||
| Reset Password Page
|
||||
|--------------------------------------
|
||||
*/
|
||||
'reset_password' => 'Reset Password',
|
||||
/*
|
||||
|--------------------------------------
|
||||
| Forgot Password Page
|
||||
|--------------------------------------
|
||||
*/
|
||||
'i_know_my_password' => 'I know my password',
|
||||
'recover_passord' => 'Recover Password',
|
||||
'send_password_reset_link' => 'Send pasword Reset Link',
|
||||
'enter_email_to_reset_password' => 'Enter E-mail to reset password',
|
||||
'link' => 'Link',
|
||||
/*
|
||||
|----------------------------------------------------------------------------------------
|
||||
| Emails Pages [English(en)]
|
||||
|----------------------------------------------------------------------------------------
|
||||
|
|
||||
| The following language lines are used in all Emails related issues to translate
|
||||
| some words in view to English. You are free to change them to anything you want to
|
||||
| customize your views to better match your application.
|
||||
|
|
||||
*/
|
||||
'admin_panel' => 'Admin Panel',
|
||||
/*
|
||||
|--------------------------------------
|
||||
| Emails Create Page
|
||||
|--------------------------------------
|
||||
*/
|
||||
'emails' => 'Emails',
|
||||
'incoming_emails' => 'Incoming Emails',
|
||||
'reuired_authentication' => 'Required Authentication',
|
||||
'fetching_email_via_imap' => 'Fetching Email via IMAP',
|
||||
'create_email' => 'Create Email',
|
||||
'email_address' => 'Email Address',
|
||||
'email_name' => 'Email Name',
|
||||
'help_topic' => 'Help Topic',
|
||||
'auto_response' => 'Auto Response',
|
||||
'host_name' => 'Host Name',
|
||||
'port_number' => 'Port Number',
|
||||
'mail_box_protocol' => 'Mail Box Protocol',
|
||||
'authentication_required' => 'Authentication Required',
|
||||
'yes' => 'Yes',
|
||||
'no' => 'No',
|
||||
'header_spoofing' => 'Header Spoofing',
|
||||
'allow_for_this_email' => 'Allow For This Email',
|
||||
'imap_config' => 'IMAP Configuration',
|
||||
'email_information_and_settings' => 'Email Information and Settings',
|
||||
'incoming_email_information' => 'Incoming Email Information',
|
||||
'outgoing_email_information' => 'Outgoing Email Information',
|
||||
'new_ticket_settings' => 'New Ticket Settings',
|
||||
'protocol' => 'Protocol',
|
||||
'fetching_protocol' => 'Fetching Protocol',
|
||||
'transfer_protocol' => 'Transfer Protocol',
|
||||
'from_name' => 'From Name',
|
||||
'add_an_email' => 'Add an Email',
|
||||
'edit_an_email' => 'Edit an Email',
|
||||
'disable_for_this_email_address' => 'Disable for this Email address',
|
||||
/*
|
||||
|--------------------------------------
|
||||
| Ban Emails Create Page
|
||||
|--------------------------------------
|
||||
*/
|
||||
'ban_lists' => 'Ban Lists',
|
||||
'ban_email' => 'Ban Email',
|
||||
'banlists' => 'Ban lists',
|
||||
'ban_status' => 'Ban Status',
|
||||
/*
|
||||
|--------------------------------------
|
||||
| Templates Index Page
|
||||
|--------------------------------------
|
||||
*/
|
||||
'templates' => 'Templates',
|
||||
'template_set' => 'Template Sets',
|
||||
'create_template' => 'Create Template',
|
||||
'edit_template' => 'Edit Template',
|
||||
'in_use' => 'In Use',
|
||||
//Template Description
|
||||
'Create ticket agent' => 'Notification email that is sent to Agent & Admin when ticket is created',
|
||||
'Assign ticket' => 'Ticket assigned to an agent',
|
||||
'Create ticket' => 'Mail sent to client for ticket creation successful message',
|
||||
'Check ticket' => 'if a client wants to check ticket via customer portal then a link will be sent to client. this link is for the client to view ticket details with ticket no, without logging in to system',
|
||||
'Ticket reply agent' => 'A notification is sent to agent email once client replies to the ticket',
|
||||
'Registration notification' => 'Password and username is sent on email on first registration',
|
||||
'Reset password' => 'Email with Password reset link',
|
||||
'Error report' => 'Error report',
|
||||
'Ticket creation' => 'First notification sent by the system about the ticket creation to the client',
|
||||
'Ticket reply' => 'A reply made by the agent on a ticket, email notification is sent to client and collaborators',
|
||||
'Close ticket' => 'Mail sent to client on closing a ticket',
|
||||
'Create ticket by agent' => 'An agent creates a ticket for the client in the name of client',
|
||||
/*
|
||||
|--------------------------------------
|
||||
| Templates Create Page
|
||||
|--------------------------------------
|
||||
*/
|
||||
'template_set_to_clone' => 'Template set to clone',
|
||||
'language' => 'Language',
|
||||
/*
|
||||
|--------------------------------------
|
||||
| Diagnostics Page
|
||||
|--------------------------------------
|
||||
*/
|
||||
'diagnostics' => 'Diagnostics',
|
||||
'from' => 'From',
|
||||
'to' => 'To',
|
||||
'subject' => 'Subject',
|
||||
'message' => 'Message',
|
||||
'send' => 'Send',
|
||||
/*
|
||||
|----------------------------------------------------------------------------------------
|
||||
| Settings Pages [English(en)]
|
||||
|----------------------------------------------------------------------------------------
|
||||
|
|
||||
| The following language lines are used in all Setting related issues to translate
|
||||
| some words in view to English. You are free to change them to anything you want to
|
||||
| customize your views to better match your application.
|
||||
|
|
||||
*/
|
||||
|
||||
/*
|
||||
|--------------------------------------
|
||||
| Company Settings Page
|
||||
|--------------------------------------
|
||||
*/
|
||||
'company' => 'Company',
|
||||
'website' => 'Website',
|
||||
'phone' => 'Phone',
|
||||
'address' => 'Address',
|
||||
'landing' => 'Landing Page',
|
||||
'offline' => 'Offline Page',
|
||||
'thank' => 'Thank Page',
|
||||
'logo' => 'Logo',
|
||||
'save' => 'Save',
|
||||
'delete-logo' => 'Delete logo',
|
||||
'click-delete' => 'Click here to delete',
|
||||
/*
|
||||
|--------------------------------------
|
||||
| System Settings Page
|
||||
|--------------------------------------
|
||||
*/
|
||||
'system' => 'System',
|
||||
'online' => 'Online',
|
||||
'offline' => 'Offline',
|
||||
'name/title' => 'Name/Title',
|
||||
'pagesize' => 'Page Size',
|
||||
'url' => 'URL',
|
||||
'default_department' => 'Default Department',
|
||||
'loglevel' => 'Log Level',
|
||||
'purglog' => 'Purge Logs',
|
||||
'nameformat' => 'Name Formatting',
|
||||
'timeformat' => 'Time Format',
|
||||
'date' => 'Date',
|
||||
'dateformat' => 'Date Format',
|
||||
'date_time' => 'Date And Time Format',
|
||||
'day_date_time' => 'Day,Date And Time Format',
|
||||
'timezone' => 'Default Time Zone',
|
||||
'api' => 'Api',
|
||||
'api_key' => 'Api Key',
|
||||
'api_key_mandatory' => 'Api key mandatory',
|
||||
'api_configurations' => 'Api Configurations',
|
||||
'generate_key' => 'Generate key',
|
||||
/*
|
||||
|--------------------------------------
|
||||
| Email Settings Page
|
||||
|--------------------------------------
|
||||
*/
|
||||
'email' => 'Email',
|
||||
'default_template' => 'Default Template Set:',
|
||||
'default_system_email' => 'Default System Email:',
|
||||
'default_alert_email' => 'Default Alert Email:',
|
||||
'admin_email' => 'Admins Email Address:',
|
||||
'email_fetch' => 'Email Fetching:',
|
||||
'enable' => 'Enable',
|
||||
'default_MTA' => 'Default MTA',
|
||||
'fetch_auto-corn' => 'Fetch on auto-cron',
|
||||
'strip_quoted_reply' => 'Strip Quoted Reply',
|
||||
'reply_separator' => 'Reply Separator Tag',
|
||||
'accept_all_email' => 'Accept All Emails',
|
||||
'accept_email_unknown' => 'Accept email from unknown Users',
|
||||
'accept_email_collab' => 'Accept Email Collaborators',
|
||||
'automatically_and_collab_from_email' => 'Automatically add collaborators from email fields',
|
||||
'default_alert_email' => 'Default Alert Email',
|
||||
'attachments' => 'Attachments',
|
||||
'email_attahment_user' => 'Email attachments to the user',
|
||||
'cron_notification' => 'Enable Notification cron',
|
||||
'cron' => 'Job Scheduler',
|
||||
'crone-url-message' => "These are Faveo's Job Scheduler(cron job) url for your system.",
|
||||
'clipboard-copy-message' => 'Copied to clipboard.',
|
||||
'click' => 'Click here',
|
||||
'check-cron-set' => 'to check how to set cron jobs on your server.',
|
||||
'notification-email' => 'Email notifications',
|
||||
'click-url-copy' => 'Click here to copy URL',
|
||||
'job-scheduler-error' => 'Job scheduler can not be updated.',
|
||||
'job-scheduler-success' => 'Job scheduler updated successfully.',
|
||||
/*
|
||||
|--------------------------------------
|
||||
| Ticket Settings Page
|
||||
|--------------------------------------
|
||||
*/
|
||||
'ticket' => 'Ticket',
|
||||
'default_ticket_number_format' => 'Default Ticket Number Format',
|
||||
'default_ticket_number_sequence' => 'Default Ticket Number Sequence',
|
||||
'default_status' => 'Default Status',
|
||||
'default_priority' => 'Default Priority',
|
||||
'default_sla' => 'Default SLA',
|
||||
'default_help_topic' => 'Default Help Topic',
|
||||
'maximum_open_tickets' => 'Maximum Open Tickets',
|
||||
'agent_collision_avoidance_duration' => 'Agent Collision Avoidance Duration',
|
||||
'human_verification' => 'Human Verification',
|
||||
'claim_on_response' => 'Claim on Response',
|
||||
'assigned_tickets' => 'Assigned Tickets',
|
||||
'answered_tickets' => 'Answered Tickets',
|
||||
'agent_identity_masking' => 'Agent Identity Masking',
|
||||
'enable_HTML_ticket_thread' => 'Enable HTML Ticket Thread',
|
||||
'allow_client_updates' => 'Allow Client Updates',
|
||||
/*
|
||||
|--------------------------------------
|
||||
| Access Settings Page
|
||||
|--------------------------------------
|
||||
*/
|
||||
'access' => 'Access',
|
||||
'expiration_policy' => 'Password Expiration Policy',
|
||||
'allow_password_resets' => 'Allow Password Resets',
|
||||
'reset_token_expiration' => 'Reset Token Expiration',
|
||||
'agent_session_timeout' => 'Agent Session Timeout',
|
||||
'bind_agent_session_IP' => 'Bind Agent Session to IP',
|
||||
'registration_required' => 'Registration Required',
|
||||
'require_registration_and_login_to_create_tickets' => 'Require registration and login to create tickets',
|
||||
'registration_method' => 'Registration Method',
|
||||
'user_session_timeout' => 'User Session Timeout',
|
||||
'client_quick_access' => 'Client Quick Access',
|
||||
'cron' => 'Cron',
|
||||
'system-settings' => 'System Settings',
|
||||
'settings-2' => 'Settings',
|
||||
|
||||
/*
|
||||
|--------------------------------------
|
||||
| Auto-Response Settings Page
|
||||
|--------------------------------------
|
||||
*/
|
||||
'auto_responce' => 'Auto Response',
|
||||
'new_ticket' => 'New Ticket',
|
||||
'new_ticket_by_agent' => 'New Ticket by Agent',
|
||||
'new_message' => 'New Message',
|
||||
'submitter' => 'Submitter : ',
|
||||
'send_receipt_confirmation' => 'Send Receipt Confirmation',
|
||||
'participants' => 'Participants : ',
|
||||
'send_new_activity_notice' => 'Send new activity notice',
|
||||
'overlimit_notice' => 'Overlimit Notice',
|
||||
'email_attachments_to_the_user' => 'Email attachments to the user',
|
||||
/*
|
||||
|--------------------------------------
|
||||
| Alert & Notice Settings Page
|
||||
|--------------------------------------
|
||||
*/
|
||||
'disable' => 'Disable',
|
||||
'admin_email_2' => 'Admin Email',
|
||||
'alert_notices' => 'Alert & Notices',
|
||||
'new_ticket_alert' => 'New Ticket Alert',
|
||||
'department_manager' => 'Department Manager',
|
||||
'department_members' => 'Department Members',
|
||||
'organization_account_manager' => 'Organization Account Manager',
|
||||
'new_message_alert' => 'New Message Alert',
|
||||
'last_respondent' => 'Last Respondent',
|
||||
'assigned_agent_team' => 'Assigned Agent / Team',
|
||||
'new_internal_note_alert' => 'New Internal Note Alert',
|
||||
'ticket_assignment_alert' => 'Ticket Assignment Alert',
|
||||
'team_lead' => 'Team Lead',
|
||||
'team_members' => 'Team Members',
|
||||
'ticket_transfer_alert' => 'Ticket Transfer Alert',
|
||||
'overdue_ticket_alert' => 'Overdue Ticket Alert ',
|
||||
'system_alerts' => 'System Alerts',
|
||||
'system_errors' => 'System Errors',
|
||||
'SQL_errors' => 'SQL errors',
|
||||
'excessive_failed_login_attempts' => 'Excessive failed login attempts',
|
||||
'system_error_reports' => 'System error Reports',
|
||||
'Send_app_crash_reports_to_help_Ladybird_improve_Faveo' => 'Send app crash reports to help Ladybird improve Faveo',
|
||||
/*
|
||||
|------------------------------------------------
|
||||
|Language page
|
||||
|------------------------------------------------
|
||||
*/
|
||||
'iso-code' => 'ISO-CODE',
|
||||
'download' => 'Download',
|
||||
'upload_file' => 'Upload File',
|
||||
'enter_iso-code' => 'Enter ISO-CODE',
|
||||
'eg.' => 'Example',
|
||||
'for' => 'for',
|
||||
'english' => 'English',
|
||||
'language-name' => 'Language name',
|
||||
'file' => 'File',
|
||||
'read-more' => 'Read more.',
|
||||
'enable_lang' => 'Enable it.',
|
||||
'add-lang-package' => 'Add new language package',
|
||||
'package_exist' => 'Package already exists.',
|
||||
'iso-code-error' => 'Error in iso-code. enter correct iso-code.',
|
||||
'zipp-error' => 'Error in zip file. Zip must contian language php files only.',
|
||||
'upload-success' => 'Uploaded successfully.',
|
||||
'file-error' => 'Error in file or invalid file.',
|
||||
'delete-success' => 'Language package deleted successfully.',
|
||||
'lang-doesnot-exist' => 'Language package does not exist.',
|
||||
'active-lang-error' => 'Language package can not be deleted when it is active.',
|
||||
'language-error' => 'Language package not found in your lang directroy.',
|
||||
/*
|
||||
|----------------------------------------------------------------------------------------
|
||||
| Manage Pages [English(en)]
|
||||
|----------------------------------------------------------------------------------------
|
||||
|
|
||||
| The following language lines are used in all Manage related issues to translate
|
||||
| some words in view to English. You are free to change them to anything you want to
|
||||
| customize your views to better match your application.
|
||||
|
|
||||
*/
|
||||
'manage' => 'Manage',
|
||||
/*
|
||||
|--------------------------------------
|
||||
| Help Topic index Page
|
||||
|--------------------------------------
|
||||
*/
|
||||
'help_topics' => 'Help Topics',
|
||||
'topic' => 'Topic',
|
||||
'type' => 'Type',
|
||||
'priority' => 'Priority',
|
||||
'last_updated' => 'Last Updated',
|
||||
'create_help_topic' => 'Create Help topic',
|
||||
'action' => 'Action',
|
||||
/*
|
||||
|--------------------------------------
|
||||
| Help Topic Create Page
|
||||
|--------------------------------------
|
||||
*/
|
||||
'active' => 'Active',
|
||||
'disabled' => 'Disabled',
|
||||
'public' => 'Public',
|
||||
'private' => 'Private',
|
||||
'parent_topic' => 'Parent Topic',
|
||||
'Custom_form' => 'Custom Form',
|
||||
'SLA_plan' => 'SLA Plan',
|
||||
'auto_assign' => 'Auto assign',
|
||||
'auto_respons' => 'Auto Response',
|
||||
'ticket_number_format' => 'Ticket Number Format',
|
||||
'system_default' => 'System Default',
|
||||
'custom' => 'Custom',
|
||||
'internal_notes' => 'Internal Notes',
|
||||
/*
|
||||
|--------------------------------------
|
||||
| SLA plan Index Page
|
||||
|--------------------------------------
|
||||
*/
|
||||
'sla_plans' => 'SLA Plans',
|
||||
'create_SLA' => 'Create a SLA',
|
||||
'grace_period' => 'Grace Period',
|
||||
'added_date' => 'Added Date',
|
||||
/*
|
||||
|--------------------------------------
|
||||
| SLA plan Create Page
|
||||
|--------------------------------------
|
||||
*/
|
||||
'transient' => 'Transient',
|
||||
'ticket_overdue_alert' => 'Ticket Overdue Alerts',
|
||||
|
||||
/*
|
||||
|--------------------------------------
|
||||
| Work Flow
|
||||
|--------------------------------------
|
||||
*/
|
||||
'workflow' => 'Workflow',
|
||||
'ticket_workflow' => 'Ticket Workflow',
|
||||
'create_workflow' => 'Create Workflow',
|
||||
'edit_workflow' => 'Edit Workflow',
|
||||
'updated' => 'Updated',
|
||||
'target' => 'Target',
|
||||
'target_channel' => 'Target Channel',
|
||||
'exceution_order' => 'Exceution Order',
|
||||
'target_channel' => 'Target Channel',
|
||||
'workflow_rules' => 'Workflow Rules',
|
||||
'workflow_action' => 'Workflow Action',
|
||||
'rules' => 'Rules',
|
||||
'order' => 'Order',
|
||||
'condition' => 'Condition',
|
||||
'statement' => 'Statement',
|
||||
|
||||
/*
|
||||
|--------------------------------------
|
||||
| Form Create Page
|
||||
|--------------------------------------
|
||||
*/
|
||||
'title' => 'Title',
|
||||
'instruction' => 'Instruction',
|
||||
'label' => 'Label',
|
||||
'visibility' => 'Visibility',
|
||||
'variable' => 'Variable',
|
||||
'create_form' => 'Create Form',
|
||||
'forms' => 'Forms',
|
||||
'form_name' => 'Form Name',
|
||||
'view_this_form' => 'View This Form',
|
||||
'delete_from' => 'Delete Form',
|
||||
'are_you_sure_you_want_to_delete' => 'Are you sure you want to Delete',
|
||||
'close' => 'Close',
|
||||
'instructions' => 'Instructions',
|
||||
'instructions_on_creating_form' => "Select field type you want to add to the form below and click on 'Type' dropdown. Don't forget to set field options if type is select,checkbox or radio..Separate each option by a coma. After you finish creating the form, you can save the form by clicking Save Form button",
|
||||
'form_properties' => 'Form Properties',
|
||||
'adding_fields' => 'Adding Fields',
|
||||
'click_add_fields_button_to_add_fields' => "Click <b>'Add Fields'</b> button to add Fields",
|
||||
'add_fields' => 'Add Fields',
|
||||
'save_form' => 'Save Form',
|
||||
'label' => 'Label',
|
||||
'name' => 'Name',
|
||||
'type' => 'Type',
|
||||
'values(selected_fields)' => 'Values(Selected Fields)',
|
||||
'required' => 'Required',
|
||||
'Action' => 'Action',
|
||||
'remove' => 'Remove',
|
||||
/*
|
||||
|----------------------------------------------------------------------------------------
|
||||
| Theme Pages [English(en)]
|
||||
|----------------------------------------------------------------------------------------
|
||||
|
|
||||
| The following language lines are used in all Theme related issues to translate
|
||||
| some words in view to English. You are free to change them to anything you want to
|
||||
| customize your views to better match your application.
|
||||
|
|
||||
*/
|
||||
'themes' => 'Themes',
|
||||
/*
|
||||
|--------------------------------------
|
||||
| Footer Pages
|
||||
|--------------------------------------
|
||||
*/
|
||||
'footer' => 'Footer',
|
||||
'footer1' => 'Footer1',
|
||||
'footer2' => 'Footer2',
|
||||
'footer3' => 'Footer3',
|
||||
'footer4' => 'Footer4',
|
||||
/*
|
||||
|--------------------------------------
|
||||
| Custom alert box
|
||||
|--------------------------------------
|
||||
*/
|
||||
'ok' => 'Ok',
|
||||
'cancel' => 'Cancel',
|
||||
'select-ticket' => 'Please select tickets.',
|
||||
'confirm' => 'Are you sure?',
|
||||
'delete-tickets' => 'Delete Tickets',
|
||||
'close-tickets' => 'Close Tickets',
|
||||
'open-tickets' => 'Open Tickets',
|
||||
|
||||
/*
|
||||
|----------------------------------------------------------------------------------------
|
||||
| Staff Pages [English(en)]
|
||||
|----------------------------------------------------------------------------------------
|
||||
|
|
||||
| The following language lines are used in all Staff related issues to translate
|
||||
| some words in view to English. You are free to change them to anything you want to
|
||||
| customize your views to better match your application.
|
||||
|
|
||||
*/
|
||||
'are_you_sure' => 'Are you sure',
|
||||
'staffs' => 'Staffs',
|
||||
'name' => 'Name',
|
||||
'user_name' => 'User Name',
|
||||
'status' => 'Status',
|
||||
'group' => 'Group',
|
||||
'department' => 'Department',
|
||||
'created' => 'Created',
|
||||
'lastlogin' => 'Last Login',
|
||||
'createagent' => 'Create An Agent',
|
||||
'delete' => 'Delete',
|
||||
'agents' => 'Agents',
|
||||
'create' => 'Create',
|
||||
'edit' => 'Edit',
|
||||
'departments' => 'Departments',
|
||||
'groups' => 'Groups',
|
||||
/*
|
||||
|--------------------------------------
|
||||
| Staff Create Page
|
||||
|--------------------------------------
|
||||
*/
|
||||
'create_agent' => 'Create Agent',
|
||||
'first_name' => 'First Name',
|
||||
'last_name' => 'Last Name',
|
||||
'mobile_number' => 'Mobile Number',
|
||||
'agent_signature' => 'Agent Signature',
|
||||
'account_status_setting' => 'Account Status & Setting',
|
||||
'account_type' => 'Account Type',
|
||||
'admin' => 'Admin',
|
||||
'agent' => 'Agent',
|
||||
'account_status' => 'Account Status',
|
||||
'locked' => 'Locked',
|
||||
'assigned_group' => 'Assigned Group',
|
||||
'primary_department' => 'Primary Department',
|
||||
'agent_time_zone' => 'Agent Time Zone',
|
||||
'day_light_saving' => 'Day Light Saving',
|
||||
'limit_access' => 'Limit Access',
|
||||
'directory_listing' => 'Directory Listing',
|
||||
'vocation_mode' => 'Vocation Mode',
|
||||
'assigned_team' => 'Assigned Team',
|
||||
/*
|
||||
|--------------------------------------
|
||||
| Department Create Page
|
||||
|--------------------------------------
|
||||
*/
|
||||
'create_department' => 'Create Department',
|
||||
'manager' => 'Manager',
|
||||
'ticket_assignment' => 'Ticket Assignment ',
|
||||
'restrict_ticket_assignment_to_department_members' => 'Restrict ticket assignment to department members',
|
||||
'outgoing_emails' => 'Outgoing Emails',
|
||||
'outgoing_email' => 'Outgoing Email',
|
||||
'template_set' => 'Template Set',
|
||||
'auto_responding_settings' => 'Auto-Responding Settings',
|
||||
'disable_for_this_department' => 'Disable for this department',
|
||||
'auto_response_email' => 'Auto-Response Email',
|
||||
'recipient' => 'Recipient',
|
||||
'group_access' => 'Group Access',
|
||||
'department_signature' => 'Department Signature',
|
||||
/*
|
||||
|--------------------------------------
|
||||
| Team Create Page
|
||||
|--------------------------------------
|
||||
*/
|
||||
'create_team' => 'Create Team',
|
||||
'team_lead' => 'Team Lead',
|
||||
'assignment_alert' => 'Assignment Alert',
|
||||
'disable_for_this_team' => 'Disable for this team',
|
||||
'teams' => 'Teams',
|
||||
/*
|
||||
|--------------------------------------
|
||||
| Group Create Page
|
||||
|--------------------------------------
|
||||
*/
|
||||
'create_group' => 'Create Group',
|
||||
'goups' => 'Goups',
|
||||
'can_create_ticket' => 'Can create ticket',
|
||||
'can_edit_ticket' => 'Can edit ticket',
|
||||
'can_post_ticket' => 'Can post Ticket',
|
||||
'can_close_ticket' => 'Can close ticket ',
|
||||
'can_assign_ticket' => 'Can assign ticket',
|
||||
'can_transfer_ticket' => 'Can transfer ticket',
|
||||
'can_delete_ticket' => 'Can delete ticket',
|
||||
'can_ban_emails' => 'Can ban emails',
|
||||
'can_manage_premade' => 'Can Manage premade',
|
||||
'can_manage_FAQ' => 'Can manage FAQ',
|
||||
'can_view_agent_stats' => 'Can view agent stats',
|
||||
'department_access' => 'Department Access ',
|
||||
'admin_notes' => 'Admin Notes',
|
||||
'group_members' => 'Group Members',
|
||||
'group_name' => 'Group Name',
|
||||
/*
|
||||
|--------------------------------------
|
||||
| SMTP Page
|
||||
|--------------------------------------
|
||||
*/
|
||||
'driver' => 'Driver',
|
||||
'smtp' => 'SMTP',
|
||||
'host' => 'Host',
|
||||
'port' => 'Port',
|
||||
'encryption' => 'Encryption',
|
||||
/*
|
||||
|----------------------------------------------------------------------------------------
|
||||
| Agent Panel [English(en)]
|
||||
|----------------------------------------------------------------------------------------
|
||||
|
|
||||
| The following language lines are used in all Agent Panel related issues to translate
|
||||
| some words in view to English. You are free to change them to anything you want to
|
||||
| customize your views to better match your application.
|
||||
|
|
||||
*/
|
||||
'agent_panel' => 'Agent Panel',
|
||||
'profile' => 'Profile',
|
||||
'change_password' => 'Change Password',
|
||||
'sign_out' => 'Sign Out',
|
||||
'Tickets' => 'TICKETS',
|
||||
'inbox' => 'Inbox',
|
||||
'my_tickets' => 'My Tickets',
|
||||
'unassigned' => 'Unassigned',
|
||||
'trash' => 'Trash',
|
||||
'Updates' => 'UPDATES',
|
||||
'no_new_updates' => 'No new Updates',
|
||||
'check_for_updates' => 'Check for Updates',
|
||||
'open' => 'Open',
|
||||
'inprogress' => 'Inprogress',
|
||||
'closed' => 'Closed',
|
||||
'Departments' => 'DEPARTMENTS',
|
||||
'tools' => 'Tools',
|
||||
'canned' => 'Canned',
|
||||
'knowledge_base' => 'Knowledge Base',
|
||||
'loading' => 'Loading',
|
||||
'ratings' => 'Ratings',
|
||||
'please_rate' => 'Please rate:',
|
||||
'ticket_ratings' => 'TICKET RATING',
|
||||
/*
|
||||
|-----------------------------------------------
|
||||
| Profile
|
||||
|-----------------------------------------------
|
||||
*/
|
||||
'user_information' => 'User Information',
|
||||
'time_zone' => 'Time-zone',
|
||||
'phone_number' => 'Phone Number',
|
||||
'contact_information' => 'Contact Information',
|
||||
/*
|
||||
|-----------------------------------------------
|
||||
| Dashboard
|
||||
|-----------------------------------------------
|
||||
*/
|
||||
'dashboard' => 'Dashboard',
|
||||
'line_chart' => 'Line Chart',
|
||||
'statistics' => 'Statistics',
|
||||
'opened' => 'Opened',
|
||||
'resolved' => 'Resolved',
|
||||
'closed' => 'Closed',
|
||||
'deleted' => 'Deleted',
|
||||
/*
|
||||
|------------------------------------------------
|
||||
|User Page
|
||||
|------------------------------------------------
|
||||
*/
|
||||
'user_directory' => 'User Directory',
|
||||
'ban' => 'Ban',
|
||||
'user' => 'User',
|
||||
'users' => 'Users',
|
||||
'create_user' => 'Create User',
|
||||
'full_name' => 'Full Name',
|
||||
'mobile' => 'Mobile',
|
||||
'last_login' => 'Last Login',
|
||||
'user_profile' => 'User Profile',
|
||||
'assign' => 'Assign',
|
||||
'open_tickets' => 'Open Tickets',
|
||||
'closed_tickets' => 'Closed Tickets',
|
||||
'deleted_tickets' => 'Deleted Tickets',
|
||||
/*
|
||||
|------------------------------------------------
|
||||
|Organization Page
|
||||
|------------------------------------------------
|
||||
*/
|
||||
'organizations' => 'Organizations',
|
||||
'organization' => 'Organization',
|
||||
'create_organization' => 'Create Organization',
|
||||
'account_manager' => 'Account Manager',
|
||||
'update' => 'Update',
|
||||
'please_select_an_organization' => 'Please select an Organization',
|
||||
'please_select_an_user' => 'Please select an user',
|
||||
'organization_profile' => 'Organization Profile',
|
||||
'organization-s_head' => "Organization's Head",
|
||||
'select_department_manager' => 'Select Department Manager',
|
||||
'users_of' => 'Users of',
|
||||
/*
|
||||
|----------------------------------------------
|
||||
| Ticket page
|
||||
|----------------------------------------------
|
||||
*/
|
||||
'subject' => 'Subject',
|
||||
'ticket_id' => 'Ticket ID',
|
||||
'priority' => 'Priority',
|
||||
'from' => 'From',
|
||||
'last_replier' => 'Last Replier',
|
||||
'assigned_to' => 'Assigned To',
|
||||
'last_activity' => 'Last Activity',
|
||||
'answered' => 'Answered',
|
||||
'assigned' => 'Assigned',
|
||||
'create_ticket' => 'Create Ticket',
|
||||
'tickets' => 'Tickets',
|
||||
'open' => 'Open',
|
||||
'Ticket_Information' => 'TICKET INFORMATION',
|
||||
'Ticket_Id' => 'TICKET ID',
|
||||
'User' => 'USER',
|
||||
'Unassigned' => 'UNASSIGNED',
|
||||
'generate_pdf' => 'Generate PDF',
|
||||
'change_status' => 'Change Status',
|
||||
'more' => 'More',
|
||||
'delete_ticket' => 'Delete Ticket',
|
||||
'emergency' => 'Emergency',
|
||||
'high' => 'High',
|
||||
'medium' => 'Medium',
|
||||
'low' => 'Low',
|
||||
'sla_plan' => 'SLA Plan',
|
||||
'created_date' => 'Created Date',
|
||||
'due_date' => 'Due Date',
|
||||
'last_response' => 'Last Response',
|
||||
'source' => 'Source',
|
||||
'last_message' => 'Last Message',
|
||||
'reply' => 'Reply',
|
||||
'response' => 'Response',
|
||||
'reply_content' => 'Reply Content',
|
||||
'attachment' => 'Attachment',
|
||||
'internal_note' => 'Internal Note',
|
||||
'this_ticket_is_under_banned_user' => 'This ticket is under banned user',
|
||||
'ticket_source' => 'Ticket Source',
|
||||
'are_you_sure_to_ban' => 'Are you sure to ban',
|
||||
'whome_do_you_want_to_assign_ticket' => 'Whome do you want to assign ticket',
|
||||
'are_you_sure_you_want_to_surrender_this_ticket' => 'Are you sure you want to surrender this Ticket',
|
||||
'add_collaborator' => 'Add Collaborator',
|
||||
'search_existing_users' => 'Search existing Users',
|
||||
'add_new_user' => 'Add new User',
|
||||
'search_existing_users_or_add_new_users' => 'Search existing users or add new users',
|
||||
'search_by_email' => 'Search by Email',
|
||||
'list_of_collaborators_of_this_ticket' => 'List of Collaborators of this Ticket',
|
||||
'submit' => 'Submit',
|
||||
'max' => 'Max',
|
||||
'add_cc' => 'Add CC',
|
||||
'recepients' => 'Recepients',
|
||||
'select_a_canned_response' => 'Select a Canned Response',
|
||||
'assign_to' => 'Assign to',
|
||||
'detail' => 'Detail',
|
||||
'user_details' => 'User Details',
|
||||
'ticket_option' => 'Ticket Option',
|
||||
'ticket_detail' => 'Ticket Detail',
|
||||
'Assigned_To' => 'ASSIGNED TO',
|
||||
'locked-ticket' => 'Alert! This ticket has been locked by another user and currently in process for response.',
|
||||
'access-ticket' => 'Alert! This ticket has been locked by you for next ',
|
||||
'minutes' => ' minutes',
|
||||
'in_minutes' => 'In minutes',
|
||||
'add_another_owner' => 'Add another owner',
|
||||
'user-not-found' => 'User not found. Try again or add a new user.',
|
||||
'change-success' => 'Success! owner has been changed for this ticket.',
|
||||
'user-exists' => 'User already exists. Try search existing user.',
|
||||
'valid-email' => 'Enter a valid email address.',
|
||||
'search_user' => 'Search user',
|
||||
'merge-ticket' => 'Merge ticket',
|
||||
'title' => 'Title',
|
||||
'merge' => 'Merge',
|
||||
'select_tickets' => 'Select tickets to merge',
|
||||
'select-pparent-ticket' => 'Select parent ticket',
|
||||
'merge-reason' => 'Reason for merging',
|
||||
'get_merge_message' => 'This ticket has been merged with ticket',
|
||||
'ticket_merged' => ' has been merged with this ticket.',
|
||||
'no-tickets-to-merge' => 'There are no more tickets by the owner of this ticket.',
|
||||
'merge-error' => 'Could not process your request try after some time.',
|
||||
'merge-success' => 'Tickets has been merged successfully.',
|
||||
'merge-error2' => 'Please select ticket to merge.',
|
||||
'select-tickets-to merge' => 'select two or more tickets to merge.',
|
||||
'different-users' => 'Ticktes from different users',
|
||||
'clean-up' => 'Clean up',
|
||||
'hard-delete-success-message' => 'Tickets have been deleted permanently.',
|
||||
'overdue' => 'Overdue',
|
||||
'change_owner_for_ticket' => 'Change Owner for Ticket',
|
||||
|
||||
/*
|
||||
|------------------------------------------------
|
||||
|Tools Page
|
||||
|------------------------------------------------
|
||||
*/
|
||||
'canned_response' => 'Canned Response',
|
||||
'create_canned_response' => 'Create Canned Response',
|
||||
'surrender' => 'Surrender',
|
||||
'view' => 'View',
|
||||
/*
|
||||
|-----------------------------------------------
|
||||
| Main text
|
||||
|-----------------------------------------------
|
||||
*/
|
||||
'copyright' => 'Copyright',
|
||||
'all_rights_reserved' => 'All rights Reserved',
|
||||
'powered_by' => 'Powered by',
|
||||
/*
|
||||
|------------------------------------------------
|
||||
|Guest-User Page
|
||||
|------------------------------------------------
|
||||
*/
|
||||
'issue_summary' => 'Issue Summary',
|
||||
'issue_details' => 'Issue Details',
|
||||
'contact_informations' => 'Contact Informations',
|
||||
'contact_details' => 'Contact Details',
|
||||
'role' => 'Role',
|
||||
'ext' => 'EXT',
|
||||
'profile_pic' => 'Profile Picture',
|
||||
'agent_sign' => 'Agent Signature',
|
||||
'inactive' => 'Inactive',
|
||||
'male' => 'Male',
|
||||
'female' => 'Female',
|
||||
'old_password' => 'Old Password',
|
||||
'new_password' => 'New Password',
|
||||
'confirm_password' => 'Confirm Password',
|
||||
'gender' => 'Gender',
|
||||
'ticket_number' => 'Ticket Number',
|
||||
'content' => 'Content',
|
||||
/*
|
||||
|------------------------------------------------
|
||||
| Error Pages
|
||||
|------------------------------------------------
|
||||
*/
|
||||
'not_found' => 'Not Found',
|
||||
'oops_page_not_found' => 'Oops! Page not found',
|
||||
'we_could_not_find_the_page_you_were_looking_for' => 'We could not find the page you were looking for',
|
||||
'internal_server_error' => 'Internal server Error',
|
||||
'be_right_back' => 'Be right back',
|
||||
'sorry' => 'Sorry',
|
||||
'we_are_working_on_it' => 'We are working on it',
|
||||
'category' => 'Category',
|
||||
'addcategory' => 'Add Category',
|
||||
'allcategory' => 'All Category',
|
||||
'article' => 'Article',
|
||||
'articles' => 'Articles',
|
||||
'addarticle' => 'Add Article',
|
||||
'allarticle' => 'All Article',
|
||||
'pages' => 'Pages',
|
||||
'addpages' => 'Add Pages',
|
||||
'allpages' => 'All Pages',
|
||||
'widgets' => 'Widgets',
|
||||
'footer1' => 'Footer 1',
|
||||
'footer2' => 'Footer 2',
|
||||
'footer3' => 'Footer 3',
|
||||
'footer4' => 'Footer 4',
|
||||
'sidewidget1' => 'Side Widget 1',
|
||||
'sidewidget2' => 'Side Widget 2',
|
||||
'comments' => 'Comments',
|
||||
'settings' => 'Settings',
|
||||
'parent' => 'Parent',
|
||||
'description' => 'Description',
|
||||
'enter_the_description' => 'Enter the Description',
|
||||
'publish' => 'Publish',
|
||||
'published' => 'Published',
|
||||
'draft' => 'Draft',
|
||||
'create_a_category' => 'Create a Category',
|
||||
'add' => 'Add',
|
||||
'social' => 'Social',
|
||||
'comment' => 'Comment',
|
||||
'not_published' => 'Not Published',
|
||||
'numberofelementstodisplay' => 'Number of elements to display',
|
||||
//======================================
|
||||
'language' => 'Language',
|
||||
'save' => 'Save',
|
||||
'create' => 'Create',
|
||||
'dateformat' => 'Date Format',
|
||||
'slug' => 'Slug',
|
||||
'read_more' => 'Read more',
|
||||
'view_all' => 'View All',
|
||||
'categories' => 'Categories',
|
||||
'need_more_support' => 'Need more support',
|
||||
'if_you_did_not_find_an_answer_please_raise_a_ticket_describing_the_issue' => 'If you did not find an answer, please raise a ticket describing the issue',
|
||||
'have_a_question?_type_your_search_term_here' => 'Have a question? Type your search term here...',
|
||||
'search' => 'Search',
|
||||
'frequently_asked_questions' => 'Frequently Asked Questions',
|
||||
'leave_a_reply' => 'Leave a Reply',
|
||||
'post_message' => 'Post Message',
|
||||
/*
|
||||
|--------------------------------------------------------------------------------------
|
||||
| Client Panel [English(en)]
|
||||
|--------------------------------------------------------------------------------------
|
||||
| The following language lines are used in all Agent Panel related issues to translate
|
||||
| some words in view to English. You are free to change them to anything you want to
|
||||
| customize your views to better match your application.
|
||||
|
|
||||
*/
|
||||
'home' => 'Home',
|
||||
'submit_a_ticket' => 'Submit A Ticket',
|
||||
'my_profile' => 'My Profile',
|
||||
'log_out' => 'Logout',
|
||||
'forgot_password' => 'Forgot Password',
|
||||
'create_account' => 'Create Account',
|
||||
'you_are_here' => 'You are here',
|
||||
'have_a_ticket' => 'Have a Ticket',
|
||||
'check_ticket_status' => 'Check Ticket status',
|
||||
'choose_a_help_topic' => 'Choose a Help Topic',
|
||||
'ticket_status' => 'Ticket Status',
|
||||
'post_comment' => 'Post Comment',
|
||||
'plugin' => 'Plugin',
|
||||
];
|
@@ -14,7 +14,7 @@ return [
|
||||
*/
|
||||
|
||||
'password' => 'Le Passwords devono essere almeno di sei caratteri e combaciare.',
|
||||
'user' => 'Non esiste un utente con questo indirizzo e-mail.',
|
||||
'user' => "Non esiste un utente con questo indirizzo e-mail.",
|
||||
'token' => 'Il token per il reset della password non è valido.',
|
||||
'sent' => 'Una email con il link al reset della passowrd ti è stato inviato!',
|
||||
'reset' => 'La tua password è stata resettata!',
|
||||
|
@@ -1,7 +1,7 @@
|
||||
|
||||
|
||||
<?php
|
||||
|
||||
return [
|
||||
return array(
|
||||
/*
|
||||
|----------------------------------------------------------------------------------------
|
||||
| Authentication Pages [English(en)]
|
||||
@@ -312,7 +312,7 @@ return [
|
||||
'iso-code' => 'ISO-CODE',
|
||||
'download' => 'Downlaod',
|
||||
'upload_file' => 'Загрузить файл',
|
||||
'enter_iso-code' => 'Enter ISO-CODE',
|
||||
'enter_iso-code' => "Enter ISO-CODE",
|
||||
'eg.' => 'Example',
|
||||
'for' => 'for',
|
||||
'english' => 'Английский',
|
||||
@@ -321,15 +321,15 @@ return [
|
||||
'read-more' => 'Подробнее.',
|
||||
'enable_lang' => 'Enable it.',
|
||||
'add-lang-package' => 'Add new language package',
|
||||
'package_exist' => 'Package already exists.',
|
||||
'iso-code-error' => 'Error in iso-code. enter correct iso-code.',
|
||||
'package_exist' => "Package already exists.",
|
||||
'iso-code-error' => "Error in iso-code. enter correct iso-code.",
|
||||
'zipp-error' => 'Error in zip file. Zip must contian language php files only.',
|
||||
'upload-success' => 'Загрузка произошла успешна.',
|
||||
'file-error' => 'Error in file or invalid file.',
|
||||
'upload-success' => "Загрузка произошла успешна.",
|
||||
"file-error" => 'Error in file or invalid file.',
|
||||
'delete-success' => 'Языковой пакет успешно удален.',
|
||||
'lang-doesnot-exist' => 'Языковой пакет не существует.',
|
||||
'active-lang-error' => 'Языковой пакет не может быть удален, когда он активен.',
|
||||
'language-error' => 'Языковой пакет не найден в указанной дериктории.',
|
||||
"language-error" => 'Языковой пакет не найден в указанной дериктории.',
|
||||
/*
|
||||
|----------------------------------------------------------------------------------------
|
||||
| Manage Pages [English(en)]
|
||||
@@ -405,10 +405,10 @@ return [
|
||||
'are_you_sure_you_want_to_delete' => 'Вы уверены, что хотите удалить',
|
||||
'close' => 'Закрыть',
|
||||
'instructions' => 'Инструкции',
|
||||
'instructions_on_creating_form' => "Select field type you want to add to the form below and click on 'Type' dropdown. Don't forget to set field options if type is select,checkbox or radio..Separate each option by a coma. After you finish creating the form, you can save the form by clicking Save Form button",
|
||||
"instructions_on_creating_form" => "Select field type you want to add to the form below and click on 'Type' dropdown. Don't forget to set field options if type is select,checkbox or radio..Separate each option by a coma. After you finish creating the form, you can save the form by clicking Save Form button",
|
||||
'form_properties' => 'Свойства Формы',
|
||||
'adding_fields' => 'Добавление полей',
|
||||
'click_add_fields_button_to_add_fields' => "Click <b>'Add Fields'</b> button to add Fields",
|
||||
"click_add_fields_button_to_add_fields" => "Click <b>'Add Fields'</b> button to add Fields",
|
||||
'add_fields' => 'Добавить поле',
|
||||
'save_form' => 'Сохранить Форму',
|
||||
'label' => 'Метки',
|
||||
@@ -634,7 +634,7 @@ return [
|
||||
'please_select_an_organization' => 'Пожалуйста, выберите организацию',
|
||||
'please_select_an_user' => 'Пожалуйста, выберите пользователя',
|
||||
'organization_profile' => 'Профиль Организации',
|
||||
'organization-s_head' => 'Страница руководителя',
|
||||
'organization-s_head' => "Страница руководителя",
|
||||
'select_department_manager' => 'Выберите Менеджера Отдела',
|
||||
'users_of' => 'Пользователи',
|
||||
/*
|
||||
@@ -824,4 +824,4 @@ return [
|
||||
'post_comment' => 'Отправить Комментарий',
|
||||
'plugin' => 'Плагин',
|
||||
'end_date' => 'Конец Даты',
|
||||
];
|
||||
);
|
||||
|
@@ -13,10 +13,10 @@ return [
|
||||
|
|
||||
*/
|
||||
|
||||
'password' => 'Пароль должен содержать не менее шести символов и соответствовать подтверждения.',
|
||||
'user' => 'Мы не можем найти пользователя с данным адресом электронной почты.',
|
||||
'token' => 'Этот пароль сбросить маркер недействителен.',
|
||||
'sent' => 'Мы по электронной почте Ваш пароль сбросить ссылку!',
|
||||
'reset' => 'Ваш пароль был сброшен!',
|
||||
"password" => "Пароль должен содержать не менее шести символов и соответствовать подтверждения.",
|
||||
"user" => "Мы не можем найти пользователя с данным адресом электронной почты.",
|
||||
"token" => "Этот пароль сбросить маркер недействителен.",
|
||||
"sent" => "Мы по электронной почте Ваш пароль сбросить ссылку!",
|
||||
"reset" => "Ваш пароль был сброшен!",
|
||||
|
||||
];
|
||||
|
@@ -13,66 +13,66 @@ return [
|
||||
|
|
||||
*/
|
||||
|
||||
'accepted' => 'The :attribute must be accepted.',
|
||||
'active_url' => 'The :attribute is not a valid URL.',
|
||||
'after' => 'The :attribute must be a date after :date.',
|
||||
'alpha' => 'The :attribute may only contain letters.',
|
||||
'alpha_dash' => 'The :attribute may only contain letters, numbers, and dashes.',
|
||||
'alpha_num' => 'The :attribute may only contain letters and numbers.',
|
||||
'array' => 'The :attribute must be an array.',
|
||||
'before' => 'The :attribute must be a date before :date.',
|
||||
'between' => [
|
||||
'numeric' => 'The :attribute must be between :min and :max.',
|
||||
'file' => 'The :attribute must be between :min and :max kilobytes.',
|
||||
'string' => 'The :attribute must be between :min and :max characters.',
|
||||
'array' => 'The :attribute must have between :min and :max items.',
|
||||
"accepted" => "The :attribute must be accepted.",
|
||||
"active_url" => "The :attribute is not a valid URL.",
|
||||
"after" => "The :attribute must be a date after :date.",
|
||||
"alpha" => "The :attribute may only contain letters.",
|
||||
"alpha_dash" => "The :attribute may only contain letters, numbers, and dashes.",
|
||||
"alpha_num" => "The :attribute may only contain letters and numbers.",
|
||||
"array" => "The :attribute must be an array.",
|
||||
"before" => "The :attribute must be a date before :date.",
|
||||
"between" => [
|
||||
"numeric" => "The :attribute must be between :min and :max.",
|
||||
"file" => "The :attribute must be between :min and :max kilobytes.",
|
||||
"string" => "The :attribute must be between :min and :max characters.",
|
||||
"array" => "The :attribute must have between :min and :max items.",
|
||||
],
|
||||
'boolean' => 'The :attribute field must be true or false.',
|
||||
'confirmed' => 'The :attribute confirmation does not match.',
|
||||
'date' => 'The :attribute is not a valid date.',
|
||||
'date_format' => 'The :attribute does not match the format :format.',
|
||||
'different' => 'The :attribute and :other must be different.',
|
||||
'digits' => 'The :attribute must be :digits digits.',
|
||||
'digits_between' => 'The :attribute must be between :min and :max digits.',
|
||||
'email' => 'The :attribute must be a valid email address.',
|
||||
'filled' => 'The :attribute field is required.',
|
||||
'exists' => 'The selected :attribute is invalid.',
|
||||
'image' => 'The :attribute must be an image.',
|
||||
'in' => 'The selected :attribute is invalid.',
|
||||
'integer' => 'The :attribute must be an integer.',
|
||||
'ip' => 'The :attribute must be a valid IP address.',
|
||||
'max' => [
|
||||
'numeric' => 'The :attribute may not be greater than :max.',
|
||||
'file' => 'The :attribute may not be greater than :max kilobytes.',
|
||||
'string' => 'The :attribute may not be greater than :max characters.',
|
||||
'array' => 'The :attribute may not have more than :max items.',
|
||||
"boolean" => "The :attribute field must be true or false.",
|
||||
"confirmed" => "The :attribute confirmation does not match.",
|
||||
"date" => "The :attribute is not a valid date.",
|
||||
"date_format" => "The :attribute does not match the format :format.",
|
||||
"different" => "The :attribute and :other must be different.",
|
||||
"digits" => "The :attribute must be :digits digits.",
|
||||
"digits_between" => "The :attribute must be between :min and :max digits.",
|
||||
"email" => "The :attribute must be a valid email address.",
|
||||
"filled" => "The :attribute field is required.",
|
||||
"exists" => "The selected :attribute is invalid.",
|
||||
"image" => "The :attribute must be an image.",
|
||||
"in" => "The selected :attribute is invalid.",
|
||||
"integer" => "The :attribute must be an integer.",
|
||||
"ip" => "The :attribute must be a valid IP address.",
|
||||
"max" => [
|
||||
"numeric" => "The :attribute may not be greater than :max.",
|
||||
"file" => "The :attribute may not be greater than :max kilobytes.",
|
||||
"string" => "The :attribute may not be greater than :max characters.",
|
||||
"array" => "The :attribute may not have more than :max items.",
|
||||
],
|
||||
'mimes' => 'The :attribute must be a file of type: :values.',
|
||||
'min' => [
|
||||
'numeric' => 'The :attribute must be at least :min.',
|
||||
'file' => 'The :attribute must be at least :min kilobytes.',
|
||||
'string' => 'The :attribute must be at least :min characters.',
|
||||
'array' => 'The :attribute must have at least :min items.',
|
||||
"mimes" => "The :attribute must be a file of type: :values.",
|
||||
"min" => [
|
||||
"numeric" => "The :attribute must be at least :min.",
|
||||
"file" => "The :attribute must be at least :min kilobytes.",
|
||||
"string" => "The :attribute must be at least :min characters.",
|
||||
"array" => "The :attribute must have at least :min items.",
|
||||
],
|
||||
'not_in' => 'The selected :attribute is invalid.',
|
||||
'numeric' => 'The :attribute must be a number.',
|
||||
'regex' => 'The :attribute format is invalid.',
|
||||
'required' => 'The :attribute field is required.',
|
||||
'required_if' => 'The :attribute field is required when :other is :value.',
|
||||
'required_with' => 'The :attribute field is required when :values is present.',
|
||||
'required_with_all' => 'The :attribute field is required when :values is present.',
|
||||
'required_without' => 'The :attribute field is required when :values is not present.',
|
||||
'required_without_all' => 'The :attribute field is required when none of :values are present.',
|
||||
'same' => 'The :attribute and :other must match.',
|
||||
'size' => [
|
||||
'numeric' => 'The :attribute must be :size.',
|
||||
'file' => 'The :attribute must be :size kilobytes.',
|
||||
'string' => 'The :attribute must be :size characters.',
|
||||
'array' => 'The :attribute must contain :size items.',
|
||||
"not_in" => "The selected :attribute is invalid.",
|
||||
"numeric" => "The :attribute must be a number.",
|
||||
"regex" => "The :attribute format is invalid.",
|
||||
"required" => "The :attribute field is required.",
|
||||
"required_if" => "The :attribute field is required when :other is :value.",
|
||||
"required_with" => "The :attribute field is required when :values is present.",
|
||||
"required_with_all" => "The :attribute field is required when :values is present.",
|
||||
"required_without" => "The :attribute field is required when :values is not present.",
|
||||
"required_without_all" => "The :attribute field is required when none of :values are present.",
|
||||
"same" => "The :attribute and :other must match.",
|
||||
"size" => [
|
||||
"numeric" => "The :attribute must be :size.",
|
||||
"file" => "The :attribute must be :size kilobytes.",
|
||||
"string" => "The :attribute must be :size characters.",
|
||||
"array" => "The :attribute must contain :size items.",
|
||||
],
|
||||
'unique' => 'The :attribute has already been taken.',
|
||||
'url' => 'The :attribute format is invalid.',
|
||||
'timezone' => 'The :attribute must be a valid zone.',
|
||||
"unique" => "The :attribute has already been taken.",
|
||||
"url" => "The :attribute format is invalid.",
|
||||
"timezone" => "The :attribute must be a valid zone.",
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
|
@@ -1,6 +1,4 @@
|
||||
@extends('themes.default1.agent.layout.agent')
|
||||
|
||||
|
||||
@section('Users')
|
||||
class="active"
|
||||
@stop
|
||||
@@ -46,6 +44,9 @@ active
|
||||
@section('user')
|
||||
class="active"
|
||||
@stop
|
||||
@section('PageHeader')
|
||||
<h3>{!! Lang::get('lang.notifications') !!}</h3>
|
||||
@stop
|
||||
|
||||
<!-- /breadcrumbs -->
|
||||
<!-- content -->
|
||||
@@ -74,7 +75,7 @@ class="active"
|
||||
</div>
|
||||
<div class="box">
|
||||
<div class="box-header">
|
||||
<h3 class="box-title">{!! Lang::get('lang.notifications') !!}</h3>
|
||||
<h3 class="box-title">{!! Lang::get('lang.view_all_notifications')!!}</h3>
|
||||
</div>
|
||||
<!-- /.box-header -->
|
||||
<div class="row">
|
||||
|
@@ -16,7 +16,7 @@ class="active"
|
||||
@stop
|
||||
<!-- header -->
|
||||
@section('PageHeader')
|
||||
|
||||
<h1>{{Lang::get('lang.agents')}}</h1>
|
||||
@stop
|
||||
<!-- /header -->
|
||||
<!-- breadcrumbs -->
|
||||
|
@@ -16,11 +16,7 @@ class="active"
|
||||
@stop
|
||||
<!-- header -->
|
||||
@section('PageHeader')
|
||||
<!-- <h3> -->
|
||||
<!-- {{Lang::get('lang.agent')}} -->
|
||||
<!-- <small>Add</small> -->
|
||||
<!-- </h3> -->
|
||||
|
||||
<h1>{{Lang::get('lang.staffs')}}</h1>
|
||||
@stop
|
||||
<!-- /header -->
|
||||
<!-- breadcrumbs -->
|
||||
|
@@ -16,7 +16,7 @@ class="active"
|
||||
@stop
|
||||
<!-- header -->
|
||||
@section('PageHeader')
|
||||
|
||||
<h1>{{ Lang::get('lang.staffs')}} </h1>
|
||||
@stop
|
||||
<!-- /header -->
|
||||
<!-- breadcrumbs -->
|
||||
|
@@ -17,8 +17,7 @@ class="active"
|
||||
@stop
|
||||
<!-- header -->
|
||||
@section('PageHeader')
|
||||
|
||||
|
||||
<h1>{{Lang::get('lang.staffs')}}</h1>
|
||||
@stop
|
||||
<!-- /header -->
|
||||
<!-- breadcrumbs -->
|
||||
|
@@ -16,6 +16,7 @@ class="active"
|
||||
@stop
|
||||
<!-- header -->
|
||||
@section('PageHeader')
|
||||
<h1>{{Lang::get('lang.staffs')}}</h1>
|
||||
@stop
|
||||
<!-- /header -->
|
||||
<!-- breadcrumbs -->
|
||||
|
@@ -16,7 +16,7 @@ class="active"
|
||||
@stop
|
||||
<!-- header -->
|
||||
@section('PageHeader')
|
||||
|
||||
<h1>{{Lang::get('lang.staffs')}}</h1>
|
||||
@stop
|
||||
<!-- /header -->
|
||||
<!-- breadcrumbs -->
|
||||
|
@@ -16,7 +16,7 @@ class="active"
|
||||
@stop
|
||||
<!-- header -->
|
||||
@section('PageHeader')
|
||||
|
||||
<h1>{{Lang::get('lang.staffs')}}</h1>
|
||||
@stop
|
||||
<!-- /header -->
|
||||
<!-- breadcrumbs -->
|
||||
|
@@ -16,6 +16,7 @@ class="active"
|
||||
@stop
|
||||
<!-- header -->
|
||||
@section('PageHeader')
|
||||
<h1>{{Lang::get('lang.staffs')}}</h1>
|
||||
@stop
|
||||
<!-- /header -->
|
||||
<!-- breadcrumbs -->
|
||||
|
@@ -16,7 +16,7 @@ class="active"
|
||||
@stop
|
||||
<!-- header -->
|
||||
@section('PageHeader')
|
||||
|
||||
<h1>{{Lang::get('lang.staffs')}}</h1>
|
||||
@stop
|
||||
<!-- /header -->
|
||||
<!-- breadcrumbs -->
|
||||
|
@@ -16,7 +16,7 @@ class="active"
|
||||
@stop
|
||||
<!-- header -->
|
||||
@section('PageHeader')
|
||||
|
||||
<h1>{{Lang::get('lang.staffs')}}</h1>
|
||||
@stop
|
||||
<!-- /header -->
|
||||
<!-- breadcrumbs -->
|
||||
|
@@ -16,8 +16,7 @@ class="active"
|
||||
@stop
|
||||
<!-- header -->
|
||||
@section('PageHeader')
|
||||
|
||||
|
||||
<h1>{{Lang::get('lang.staffs')}}</h1>
|
||||
@stop
|
||||
<!-- /header -->
|
||||
<!-- breadcrumbs -->
|
||||
|
@@ -16,7 +16,7 @@ class="active"
|
||||
@stop
|
||||
<!-- header -->
|
||||
@section('PageHeader')
|
||||
|
||||
<h1>{{Lang::get('lang.staffs')}}</h1>
|
||||
@stop
|
||||
<!-- /header -->
|
||||
<!-- breadcrumbs -->
|
||||
|
@@ -16,7 +16,7 @@ class="active"
|
||||
@stop
|
||||
<!-- header -->
|
||||
@section('PageHeader')
|
||||
|
||||
<h1>{{Lang::get('lang.emails')}}</h1>
|
||||
@stop
|
||||
<!-- /header -->
|
||||
<!-- breadcrumbs -->
|
||||
|
@@ -16,6 +16,7 @@ class="active"
|
||||
@stop
|
||||
<!-- header -->
|
||||
@section('PageHeader')
|
||||
<h1>{{Lang::get('lang.email_diagnostic')}}</h1>
|
||||
@stop
|
||||
<!-- /header -->
|
||||
<!-- content -->
|
||||
@@ -25,7 +26,7 @@ class="active"
|
||||
<input type="hidden" name="_token" value="{{ csrf_token() }}">
|
||||
<div class="box box-primary">
|
||||
<div class="box-header with-border">
|
||||
<h4 class="box-title">{{Lang::get('lang.email_diagnostic')}}</h4>
|
||||
<h4 class="box-title">{{Lang::get('lang.send-mail-to-diagnos')}}</h4>
|
||||
</div>
|
||||
<div class="box-body">
|
||||
@if(Session::has('success'))
|
||||
|
@@ -16,7 +16,7 @@ class="active"
|
||||
@stop
|
||||
<!-- header -->
|
||||
@section('PageHeader')
|
||||
|
||||
<h1>{{ Lang::get('lang.settings') }}</h1>
|
||||
@stop
|
||||
<!-- /header -->
|
||||
<!-- breadcrumbs -->
|
||||
@@ -30,7 +30,7 @@ class="active"
|
||||
@section('content')
|
||||
<div class="box box-primary">
|
||||
<div class="box-header">
|
||||
<h2 class="box-title">{{ Lang::get('lang.language') }}</h2><span class="pull-right"><a href="{{route('download')}}" title="click here to download template file" class="btn btn-primary"><i class="fa fa-download"></i> {{Lang::get('lang.download')}} </a> <a href="{{route('add-language')}}" class="btn btn-primary "><i class="fa fa-plus"></i> {{Lang::get('lang.add')}}</a></span>
|
||||
<h2 class="box-title">{{ Lang::get('lang.language-settings') }}</h2><span class="pull-right"><a href="{{route('download')}}" title="click here to download template file" class="btn btn-primary"><i class="fa fa-download"></i> {{Lang::get('lang.download')}} </a> <a href="{{route('add-language')}}" class="btn btn-primary "><i class="fa fa-plus"></i> {{Lang::get('lang.add')}}</a></span>
|
||||
</div>
|
||||
<div class="box-body">
|
||||
<!-- check whether success or not -->
|
||||
|
@@ -16,7 +16,7 @@ class="active"
|
||||
@stop
|
||||
<!-- header -->
|
||||
@section('PageHeader')
|
||||
|
||||
<h1>{{Lang::get('lang.manage')}}</h1>
|
||||
@stop
|
||||
<!-- /header -->
|
||||
<!-- breadcrumbs -->
|
||||
|
@@ -16,7 +16,7 @@ class="active"
|
||||
@stop
|
||||
<!-- header -->
|
||||
@section('PageHeader')
|
||||
|
||||
<h1>{{Lang::get('lang.manage')}}</h1>
|
||||
@stop
|
||||
<!-- /header -->
|
||||
<!-- breadcrumbs -->
|
||||
|
@@ -16,7 +16,7 @@ class="active"
|
||||
@stop
|
||||
<!-- header -->
|
||||
@section('PageHeader')
|
||||
|
||||
<h1>{{Lang::get('lang.manage')}}</h1>
|
||||
@stop
|
||||
<!-- /header -->
|
||||
<!-- breadcrumbs -->
|
||||
|
@@ -16,6 +16,7 @@ class="active"
|
||||
@stop
|
||||
<!-- header -->
|
||||
@section('PageHeader')
|
||||
<h1>{{Lang::get('lang.manage')}}</h1>
|
||||
@stop
|
||||
<!-- /header -->
|
||||
<!-- breadcrumbs -->
|
||||
|
@@ -559,7 +559,7 @@
|
||||
<div class="settingdivblue">
|
||||
<a href="{{ url('api') }}">
|
||||
<span class="fa-stack fa-2x">
|
||||
<i class="fa fa-archive"></i>
|
||||
<i class="fa fa-cogs"></i>
|
||||
</span>
|
||||
</a>
|
||||
</div>
|
||||
|
@@ -16,6 +16,7 @@ class="active"
|
||||
@stop
|
||||
<!-- header -->
|
||||
@section('PageHeader')
|
||||
<h1>{{Lang::get('lang.settings')}}</h1>
|
||||
@stop
|
||||
<!-- /header -->
|
||||
<!-- breadcrumbs -->
|
||||
@@ -31,7 +32,7 @@ class="active"
|
||||
{!! Form::model($alerts,['url' => 'postalert/'.$alerts->id, 'method' => 'PATCH']) !!}
|
||||
<div class="box box-primary">
|
||||
<div class="box-header">
|
||||
<h4 class="box-title">{{Lang::get('lang.alert_notices')}}</h4> {!! Form::submit(Lang::get('lang.submit'),['class'=>' btn btn-primary pull-right'])!!}
|
||||
<h4 class="box-title">{{Lang::get('lang.alert_notices_setitngs')}}</h4> {!! Form::submit(Lang::get('lang.submit'),['class'=>' btn btn-primary pull-right'])!!}
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
@@ -2,12 +2,17 @@
|
||||
@section('update')
|
||||
class="active"
|
||||
@stop
|
||||
@section('PageHeader')
|
||||
<h1>{{ Lang::get('lang.update-version')}}</h1>
|
||||
@stop
|
||||
@section('content')
|
||||
|
||||
<div class="box box-primary">
|
||||
<div class="box-header">
|
||||
<h3 class="box-title">Check for Update</h3>
|
||||
</div>
|
||||
|
||||
<div class="box-body">
|
||||
@if(Session::has('info'))
|
||||
<div class="alert alert-info alert-dismissable">
|
||||
<i class="fa fa-info-circle"></i>
|
||||
@@ -16,7 +21,6 @@ class="active"
|
||||
{!!Session::get('info')!!}
|
||||
</div>
|
||||
@endif
|
||||
<div class="box-body">
|
||||
Click to check Update
|
||||
<a href="{!! URL::route('version-check') !!}" class="btn btn-primary">Check</a>
|
||||
</div>
|
||||
|
@@ -9,7 +9,7 @@ class="active"
|
||||
@stop
|
||||
|
||||
@section('PageHeader')
|
||||
<h1>{!! Lang::get('lang.auto_close_workflow') !!}</h1>
|
||||
<h1>{!! Lang::get('lang.settings') !!}</h1>
|
||||
@stop
|
||||
|
||||
@section('header')
|
||||
@@ -69,7 +69,7 @@ class="active"
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group {{ $errors->has('condition') ? 'has-error' : '' }}">
|
||||
<!-- <div class="form-group {{ $errors->has('condition') ? 'has-error' : '' }}">
|
||||
<div class="row">
|
||||
<div class="col-md-3">
|
||||
<label for="title">{!! Lang::get('lang.enable_workflow') !!}:</label>
|
||||
@@ -86,7 +86,7 @@ class="active"
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div> -->
|
||||
<div class="form-group {{ $errors->has('send_email') ? 'has-error' : '' }}">
|
||||
<div class="row">
|
||||
<div class="col-md-3">
|
||||
|
@@ -16,7 +16,7 @@ class="active"
|
||||
@stop
|
||||
<!-- header -->
|
||||
@section('PageHeader')
|
||||
|
||||
<h1>{{ Lang::get('lang.settings') }}</h1>
|
||||
@stop
|
||||
<!-- /header -->
|
||||
<!-- breadcrumbs -->
|
||||
@@ -33,7 +33,7 @@ class="active"
|
||||
<!-- table -->
|
||||
<div class="box box-primary">
|
||||
<div class="box-header with-border">
|
||||
<h3 class="box-title">{{Lang::get('lang.company')}}</h3>
|
||||
<h3 class="box-title">{{Lang::get('lang.company_settings')}}</h3>
|
||||
</div>
|
||||
<!-- Name text form Required -->
|
||||
<div class="box-body">
|
||||
|
@@ -16,6 +16,7 @@ class="active"
|
||||
@stop
|
||||
<!-- header -->
|
||||
@section('PageHeader')
|
||||
<h1>{{ Lang::get('lang.settings') }}</h1>
|
||||
@stop
|
||||
<!-- /header -->
|
||||
<!-- breadcrumbs -->
|
||||
@@ -30,7 +31,7 @@ class="active"
|
||||
{!! Form::model($emails,['url' => 'post-scheduler', 'method' => 'PATCH']) !!}
|
||||
<div class="box box-primary">
|
||||
<div class="box-header with-border">
|
||||
<h3 class="box-title">{{Lang::get('lang.cron')}}</h3>
|
||||
<h3 class="box-title">{{Lang::get('lang.cron_settings')}}</h3>
|
||||
</div>
|
||||
|
||||
<div class="box-body table-responsive"style="overflow:hidden;">
|
||||
@@ -82,7 +83,7 @@ class="active"
|
||||
<i class="fa fa-clipboard pull-right" title="{!!Lang::get('lang.click-url-copy')!!}" onclick="copyToClipboard('#p2')"></i>
|
||||
<div class="col-md-8">
|
||||
<div class="form-group">
|
||||
{!! Form::label('email_fetching',Lang::get('lang.notification-email')) !!}<br>
|
||||
{!! Form::label('notification_cron',Lang::get('lang.notification-email')) !!}<br>
|
||||
{!! Form::checkbox('notification_cron',1,true) !!} {{Lang::get('lang.cron_notification')}}
|
||||
</div>
|
||||
</div>
|
||||
@@ -93,6 +94,26 @@ class="active"
|
||||
</div><!-- /.info-box-content -->
|
||||
</div><!-- /.info-box -->
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<div class="info-box">
|
||||
<!-- Apply any bg-* class to to the icon to color it -->
|
||||
<span class="info-box-icon bg-aqua"><i class="fa fa-check-circle"></i></span>
|
||||
<div class="info-box-content">
|
||||
<i class="fa fa-clipboard pull-right" title="{!!Lang::get('lang.click-url-copy')!!}" onclick="copyToClipboard('#p3')"></i>
|
||||
<div class="col-md-8">
|
||||
<div class="form-group">
|
||||
{!! Form::label('condition',Lang::get('lang.auto_close_workflow')) !!}<br>
|
||||
<input type="checkbox" name="condition" @if($workflow->condition == 1) checked @endif">
|
||||
{{Lang::get('lang.enable_workflow')}}
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-12">
|
||||
<em><span class="info-box-text" style="background: #F3F3F3" id='p3'></span></em>
|
||||
<!-- <div class="btn btn-default btn-xs pull-right" onclick="copyToClipboard('#p1')">Copy URL</div> -->
|
||||
</div>
|
||||
</div><!-- /.info-box-content -->
|
||||
</div><!-- /.info-box -->
|
||||
</div>
|
||||
</div>
|
||||
<div class="box-footer">
|
||||
{!! Form::submit(Lang::get('lang.submit'),['class'=>'btn btn-primary'])!!}
|
||||
@@ -113,8 +134,10 @@ class="active"
|
||||
// var str = path;
|
||||
path = path.replace("job-scheduler", "readmails");
|
||||
path2 = path.replace("readmails", "notification");
|
||||
path3 = path2.replace("notification", "auto-close-tickets")
|
||||
document.getElementById("p1").innerHTML = path;
|
||||
document.getElementById("p2").innerHTML = path2;
|
||||
document.getElementById("p3").innerHTML = path3;
|
||||
})
|
||||
</script>
|
||||
@stop
|
||||
|
@@ -16,6 +16,7 @@ class="active"
|
||||
@stop
|
||||
<!-- header -->
|
||||
@section('PageHeader')
|
||||
<h1>{{Lang::get('lang.emails')}}</h1>
|
||||
@stop
|
||||
<!-- /header -->
|
||||
<!-- breadcrumbs -->
|
||||
|
@@ -16,7 +16,7 @@ class="active"
|
||||
@stop
|
||||
<!-- header -->
|
||||
@section('PageHeader')
|
||||
|
||||
<h1>{{Lang::get('lang.error-debug')}}</h1>
|
||||
@stop
|
||||
<!-- /header -->
|
||||
<!-- breadcrumbs -->
|
||||
@@ -29,7 +29,7 @@ class="active"
|
||||
@section('content')
|
||||
<div class="box box-primary">
|
||||
<div class="box-header with-border">
|
||||
<h3 class="box-title">{{Lang::get('lang.error-debug-settings')}}</h3>
|
||||
<h3 class="box-title">{{Lang::get('lang.debug-options')}}</h3>
|
||||
</div>
|
||||
<!-- Helpdesk Status: radio Online Offline -->
|
||||
<div class="box-body">
|
||||
|
@@ -16,6 +16,7 @@ class="active"
|
||||
@stop
|
||||
<!-- header -->
|
||||
@section('PageHeader')
|
||||
<h1>{!! Lang::get('lang.plugins') !!}</h1>
|
||||
@stop
|
||||
<!-- /header -->
|
||||
<!-- breadcrumbs -->
|
||||
@@ -28,7 +29,7 @@ class="active"
|
||||
@section('content')
|
||||
<div class="box box-primary">
|
||||
<div class="box-header with-border">
|
||||
<h3 class="box-title">{!! Lang::get('lang.plugins') !!}</h3>
|
||||
<h3 class="box-title">{!! Lang::get('lang.plugins-list') !!}</h3>
|
||||
<button type="button" class="btn btn-primary pull-right" id="Edit_Ticket" data-toggle="modal" data-target="#Edit"><b>{!! Lang::get('lang.add_plugin') !!}</b></button>
|
||||
<div class="modal fade" id="Edit">
|
||||
<div class="modal-dialog">
|
||||
|
@@ -9,7 +9,7 @@ class="active"
|
||||
@stop
|
||||
|
||||
@section('PageHeader')
|
||||
<h1>{!! Lang::get('lang.ratings') !!}</h1>
|
||||
<h1>{!! Lang::get('lang.settings') !!}</h1>
|
||||
@stop
|
||||
|
||||
@section('header')
|
||||
|
@@ -16,7 +16,7 @@ class="active"
|
||||
@stop
|
||||
<!-- header -->
|
||||
@section('PageHeader')
|
||||
|
||||
<h1>{{ Lang::get('lang.settings') }}</h1>
|
||||
@stop
|
||||
<!-- /header -->
|
||||
<!-- breadcrumbs -->
|
||||
@@ -31,7 +31,7 @@ class="active"
|
||||
{!! Form::model($responders,['url' => 'postresponder/'.$responders->id, 'method' => 'PATCH']) !!}
|
||||
<div class="box box-primary">
|
||||
<div class="box-header with-border">
|
||||
<h3 class="box-title">{{Lang::get('lang.auto_responce')}}</h3>
|
||||
<h3 class="box-title">{{Lang::get('lang.auto_responce-settings')}}</h3>
|
||||
</div>
|
||||
<!-- New Ticket: CHECKBOX Ticket Owner -->
|
||||
<div class="box-body">
|
||||
|
@@ -9,7 +9,7 @@ class="active"
|
||||
@stop
|
||||
|
||||
@section('PageHeader')
|
||||
<h1>{!! Lang::get('lang.security') !!}</h1>
|
||||
<h1>{!! Lang::get('lang.settings') !!}</h1>
|
||||
@stop
|
||||
|
||||
@section('header')
|
||||
|
@@ -9,7 +9,7 @@ class="active"
|
||||
@stop
|
||||
|
||||
@section('PageHeader')
|
||||
<h1>{!! Lang::get('lang.status_settings') !!}</h1>
|
||||
<h1>{!! Lang::get('lang.settings') !!}</h1>
|
||||
@stop
|
||||
|
||||
@section('content')
|
||||
|
@@ -16,7 +16,7 @@ class="active"
|
||||
@stop
|
||||
<!-- header -->
|
||||
@section('PageHeader')
|
||||
|
||||
<h1>{{Lang::get('lang.settings')}}</h1>
|
||||
@stop
|
||||
<!-- /header -->
|
||||
<!-- breadcrumbs -->
|
||||
@@ -31,7 +31,7 @@ class="active"
|
||||
{!! Form::model($systems,['url' => 'postsystem/'.$systems->id, 'method' => 'PATCH' , 'id'=>'formID']) !!}
|
||||
<div class="box box-primary">
|
||||
<div class="box-header with-border">
|
||||
<h3 class="box-title">{{Lang::get('lang.system')}}</h3>
|
||||
<h3 class="box-title">{{Lang::get('lang.system-settings')}}</h3>
|
||||
</div>
|
||||
<!-- Helpdesk Status: radio Online Offline -->
|
||||
<div class="box-body">
|
||||
@@ -133,100 +133,9 @@ class="active"
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="box-footer">
|
||||
<h4>{!! Lang::get('lang.api_configurations') !!}</h4>
|
||||
<!-- Guest user page Content -->
|
||||
<div class="row">
|
||||
<div class="col-md-3">
|
||||
<div class="form-group {{ $errors->has('api_enable') ? 'has-error' : '' }}">
|
||||
{!! Form::label('api',Lang::get('lang.api')) !!}
|
||||
{!! $errors->first('api_enable', '<spam class="help-block">:message</spam>') !!}
|
||||
<div class="row">
|
||||
<div class="col-xs-5">
|
||||
{!! Form::radio('api_enable','1',true) !!} {{Lang::get('lang.enable')}}
|
||||
</div>
|
||||
<div class="col-xs-5">
|
||||
{!! Form::radio('api_enable','0') !!} {{Lang::get('lang.disable')}}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<div class="form-group {{ $errors->has('api_key_mandatory') ? 'has-error' : '' }}">
|
||||
{!! Form::label('api_key_mandatory',Lang::get('lang.api_key_mandatory')) !!}
|
||||
{!! $errors->first('api_key_mandatory', '<spam class="help-block">:message</spam>') !!}
|
||||
<div class="row">
|
||||
<div class="col-xs-5">
|
||||
{!! Form::radio('api_key_mandatory','1',true) !!} {{Lang::get('lang.enable')}}
|
||||
</div>
|
||||
<div class="col-xs-5">
|
||||
{!! Form::radio('api_key_mandatory','0') !!} {{Lang::get('lang.disable')}}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- Date and Time Format: text: required: eg - 03/25/2015 7:14 am -->
|
||||
<div class="col-md-3">
|
||||
<div class="form-group {{ $errors->has('api_key') ? 'has-error' : '' }}">
|
||||
{!! Form::label('api_key',Lang::get('lang.api_key')) !!}
|
||||
{!! $errors->first('api_key', '<spam class="help-block">:message</spam>') !!}
|
||||
{!! Form::text('api_key',$systems->api_key,['class' => 'form-control']) !!}
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<br/>
|
||||
<a class="btn btn-primary" id="generate"> <i class="fa fa-refresh"> </i> {!! Lang::get('lang.generate_key') !!}</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="box-footer">
|
||||
{!! Form::submit(Lang::get('lang.submit'),['onclick'=>'sendForm()','class'=>'btn btn-primary'])!!}
|
||||
</div>
|
||||
</div>
|
||||
<a href="#" id="clickGenerate" data-toggle="modal" data-target="#generateModal"></a>
|
||||
<div class="modal fade" id="generateModal">
|
||||
<div class="modal-dialog">
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
|
||||
<h4 class="modal-title">{!! Lang::get('lang.api_key') !!}</h4>
|
||||
</div>
|
||||
<div class="modal-body" id="messageBody">
|
||||
</div>
|
||||
<div class="modal-footer" id="messageBody">
|
||||
<button type="button" class="btn btn-default" data-dismiss="modal" aria-label="Close">{!! Lang::get('lang.close') !!}</button>
|
||||
</div>
|
||||
</div><!-- /.modal-content -->
|
||||
</div><!-- /.modal-dialog -->
|
||||
</div><!-- /.modal -->
|
||||
<script src="{{asset("lb-faveo/js/ajax-jquery.min.js")}}"></script>
|
||||
<script type="text/javascript">
|
||||
jQuery(document).ready(function() {
|
||||
// Close a ticket
|
||||
$('#generate').on('click', function(e) {
|
||||
$.ajax({
|
||||
type: "GET",
|
||||
url: "{!! url('generate-api-key') !!}",
|
||||
beforeSend: function() {
|
||||
$("#generate").empty();
|
||||
var message = "<i class='fa fa-refresh fa-spin'> </i> <?php echo Lang::get('lang.generate_key'); ?>";
|
||||
$('#generate').html(message);
|
||||
},
|
||||
success: function(response) {
|
||||
// alert(response);
|
||||
|
||||
$("#messageBody").empty();
|
||||
var message = "<div class='alert alert-default' style='margin-bottom: -5px;'>Copy and paste in the api to set a different Api key</div> <br/><b>Api key</b> : " + response;
|
||||
$('#messageBody').html(message);
|
||||
|
||||
$('#clickGenerate').trigger("click");
|
||||
$("#generate").empty();
|
||||
var message = "<i class='fa fa-refresh'> </i> <?php echo Lang::get('lang.generate_key'); ?>";
|
||||
$('#generate').html(message);
|
||||
}
|
||||
})
|
||||
return false;
|
||||
});
|
||||
});
|
||||
</script>
|
||||
@stop
|
||||
|
@@ -16,7 +16,7 @@ class="active"
|
||||
@stop
|
||||
<!-- header -->
|
||||
@section('PageHeader')
|
||||
|
||||
<h1>{{ Lang::get('lang.settings') }}</h1>
|
||||
@stop
|
||||
<!-- /header -->
|
||||
<!-- breadcrumbs -->
|
||||
@@ -31,7 +31,7 @@ class="active"
|
||||
{!! Form::model($tickets,['url' => 'postticket/'.$tickets->id, 'method' => 'PATCH']) !!}
|
||||
<div class="box box-primary">
|
||||
<div class="box-header with-border">
|
||||
<h3 class="box-title">{{Lang::get('lang.ticket')}}</h3>
|
||||
<h3 class="box-title">{{Lang::get('lang.ticket-setting')}}</h3>
|
||||
</div>
|
||||
<div class="box-body">
|
||||
<!-- check whether success or not -->
|
||||
|
@@ -11,11 +11,13 @@ active
|
||||
@section('socail')
|
||||
class="active"
|
||||
@stop
|
||||
|
||||
@section('PageHeader')
|
||||
<h1>{!! Lang::get('lang.widgets') !!}</h1>
|
||||
@stop
|
||||
@section('content')
|
||||
<div class="box box-primary">
|
||||
<div class="box-header with-border">
|
||||
<h4 class="box-title">{!! Lang::get('lang.social') !!} </h4>
|
||||
<h4 class="box-title">{!! Lang::get('lang.social-widget-settings') !!} </h4>
|
||||
</div>
|
||||
<div class="box-body">
|
||||
<!-- check whether success or not -->
|
||||
|
@@ -11,11 +11,13 @@ active
|
||||
@section('widget')
|
||||
class="active"
|
||||
@stop
|
||||
|
||||
@section('PageHeader')
|
||||
<h1>{!! Lang::get('lang.widgets') !!}</h1>
|
||||
@stop
|
||||
@section('content')
|
||||
<div class="box box-primary">
|
||||
<div class="box-header with-border">
|
||||
<h4 class="box-title">{!! Lang::get('lang.widgets') !!} </h4>
|
||||
<h4 class="box-title">{!! Lang::get('lang.widget-settings') !!} </h4>
|
||||
</div>
|
||||
<div class="box-body">
|
||||
<!-- check whether success or not -->
|
||||
|
@@ -72,7 +72,7 @@
|
||||
|
||||
<ul class="nav navbar-nav navbar-left">
|
||||
@if($replacetop==0)
|
||||
<li @yield('settings')><a href="{!! url('admin') !!}">{!! Lang::get('lang.home') !!}</a></li>
|
||||
<li @yield('settings')><a href="{!! url('dashboard') !!}">{!! Lang::get('lang.agent_panel') !!}</a></li>
|
||||
@endif
|
||||
<?php \Event::fire('service.desk.admin.topbar', array()); ?>
|
||||
</ul>
|
||||
@@ -81,7 +81,7 @@
|
||||
<?php $noti = \App\Model\helpdesk\Notification\UserNotification::where('user_id', '=', Auth::user()->id)->where('is_read', '0')->get(); ?>
|
||||
|
||||
<ul class="nav navbar-nav navbar-right">
|
||||
<li><a href="{{url('dashboard')}}">{!! Lang::get('lang.agent_panel') !!}</a></li>
|
||||
<li><a href="{{url('admin')}}">{!! Lang::get('lang.admin_panel') !!}</a></li>
|
||||
<!-- User Account: style can be found in dropdown.less -->
|
||||
<li class="dropdown notifications-menu" id="myDropdown">
|
||||
<a href="#" class="dropdown-toggle" data-toggle="dropdown" onclick="myFunction()">
|
||||
@@ -209,6 +209,7 @@
|
||||
<!-- sidebar menu: : style can be found in sidebar.less -->
|
||||
<ul class="sidebar-menu">
|
||||
@if($replaceside==0)
|
||||
<center><a href="{{url('admin')}}"><li class="header"><span style="font-size:1.5em;">{{ Lang::get('lang.admin_panel') }}</span></li></a></center>
|
||||
<li class="header">{!! Lang::get('lang.settings-2') !!}</li>
|
||||
<li class="treeview @yield('Staffs')">
|
||||
<a href="#">
|
||||
@@ -258,7 +259,7 @@
|
||||
<li class="treeview @yield('Settings')">
|
||||
<a href="#">
|
||||
<i class="fa fa-cog"></i>
|
||||
<span>{!! Lang::get('lang.system-settings') !!}</span>
|
||||
<span>{!! Lang::get('lang.settings') !!}</span>
|
||||
<i class="fa fa-angle-left pull-right"></i>
|
||||
</a>
|
||||
<ul class="treeview-menu">
|
||||
@@ -304,6 +305,12 @@
|
||||
<span>{!! Lang::get('lang.plugin') !!}</span>
|
||||
</a>
|
||||
</li>
|
||||
<li class="treeview @yield('API')">
|
||||
<a href="{{ url('api') }}">
|
||||
<i class="fa fa-cogs"></i>
|
||||
<span>{!! Lang::get('lang.api') !!}</span>
|
||||
</a>
|
||||
</li>
|
||||
<li class="header">{!! Lang::get('lang.Updates') !!}</li>
|
||||
<li @yield('update')>
|
||||
<?php
|
||||
|
@@ -12,6 +12,10 @@ active
|
||||
class="active"
|
||||
@stop
|
||||
|
||||
@section('PageHeader')
|
||||
<h1>{{Lang::get('lang.canned_response')}}</h1>
|
||||
@stop
|
||||
|
||||
<!-- content -->
|
||||
@section('content')
|
||||
<!-- open a form -->
|
||||
|
@@ -13,6 +13,9 @@ active
|
||||
class="active"
|
||||
@stop
|
||||
|
||||
@section('PageHeader')
|
||||
<h1>{{Lang::get('lang.canned_response')}}</h1>
|
||||
@stop
|
||||
<!-- content -->
|
||||
@section('content')
|
||||
<!-- open a form -->
|
||||
|
@@ -12,6 +12,10 @@ active
|
||||
class="active"
|
||||
@stop
|
||||
|
||||
@section('PageHeader')
|
||||
<h1>{{Lang::get('lang.tools')}}</h1>
|
||||
@stop
|
||||
|
||||
<!-- content -->
|
||||
@section('content')
|
||||
<div class="box box-primary">
|
||||
|
@@ -9,7 +9,7 @@ active
|
||||
@stop
|
||||
|
||||
@section('PageHeader')
|
||||
<h4>{!! Lang::get('lang.dashboard_reports') !!}</h4>
|
||||
<h1>{!! Lang::get('lang.dashboard_reports') !!}</h1>
|
||||
@stop
|
||||
|
||||
@section('dashboard')
|
||||
@@ -41,6 +41,7 @@ class="active"
|
||||
} else {
|
||||
$overdues = App\Model\helpdesk\Ticket\Tickets::where('status', '=', 1)->where('isanswered', '=', 0)->orderBy('id', 'DESC')->get();
|
||||
}
|
||||
|
||||
$i = count($overdues);
|
||||
if ($i == 0) {
|
||||
$overdue_ticket = 0;
|
||||
@@ -53,8 +54,10 @@ class="active"
|
||||
$new_date = date_add($ovadate, date_interval_create_from_date_string($sla_plan->grace_period)) . '<br/><br/>';
|
||||
if (date('Y-m-d H:i:s') > $new_date) {
|
||||
$j++;
|
||||
//$value[] = $overdue;
|
||||
}
|
||||
}
|
||||
// dd(count($value));
|
||||
if ($j > 0) {
|
||||
$overdue_ticket = $j;
|
||||
} else {
|
||||
@@ -94,7 +97,7 @@ class="active"
|
||||
<span class="info-box-icon bg-red"><i class="fa fa-calendar-times-o"></i></span>
|
||||
<div class="info-box-content">
|
||||
<span class="info-box-text">{!! Lang::get('lang.overdue') !!}</span>
|
||||
<span class="info-box-number">{{count($overdue_ticket) }} <small> Tickets</small></span>
|
||||
<span class="info-box-number">{{ $overdue_ticket }} <small> Tickets</small></span>
|
||||
</div><!-- /.info-box-content -->
|
||||
</div><!-- /.info-box -->
|
||||
</a>
|
||||
@@ -121,7 +124,7 @@ class="active"
|
||||
<div class="form-group">
|
||||
<div class="row">
|
||||
<div class='col-sm-2'>
|
||||
{!! Form::label('date', 'Date:') !!}
|
||||
{!! Form::label('date', 'Date:',['class' => 'lead']) !!}
|
||||
{!! Form::text('start_date',null,['class'=>'form-control','id'=>'datepicker4'])!!}
|
||||
</div>
|
||||
<?php
|
||||
@@ -148,7 +151,7 @@ class="active"
|
||||
});
|
||||
</script>
|
||||
<div class='col-sm-2'>
|
||||
{!! Form::label('start_time', 'End Date:') !!}
|
||||
{!! Form::label('start_time', 'End Date:' ,['class' => 'lead']) !!}
|
||||
{!! Form::text('end_date',null,['class'=>'form-control','id'=>'datetimepicker3'])!!}
|
||||
</div>
|
||||
<script type="text/javascript">
|
||||
@@ -162,19 +165,19 @@ class="active"
|
||||
});
|
||||
});
|
||||
</script>
|
||||
<div class='col-sm-2'>
|
||||
{!! Form::label('filter', 'Filter:') !!}<br>
|
||||
<div class='col-sm-1'>
|
||||
{!! Form::label('filter', 'Filter:',['class' => 'lead']) !!}<br>
|
||||
<input type="submit" class="btn btn-primary">
|
||||
</div>
|
||||
<div class="col-sm-6">
|
||||
<label>{!! Lang::get('lang.Legend') !!}:</label>
|
||||
<div class="col-sm-7">
|
||||
<label class="lead">{!! Lang::get('lang.Legend') !!}:</label>
|
||||
<div class="row">
|
||||
<style>
|
||||
#legend-holder { border: 2px solid #ccc; float: left; width: 25px; height: 15px; margin: 2px; }
|
||||
#legend-holder { border: 1px solid #ccc; float: left; width: 25px; height: 25px; margin: 1px; }
|
||||
</style>
|
||||
<div class="col-md-4"><span id="legend-holder" style="background-color: #6C96DF;"> </span> {!! Lang::get('lang.total') !!} {!! Lang::get('lang.tickets') !!}</div>
|
||||
<div class="col-md-4"><span id="legend-holder" style="background-color: #6DC5B2;"> </span> {!! Lang::get('lang.open') !!} {!! Lang::get('lang.tickets') !!}</div>
|
||||
<div class="col-md-4"><span id="legend-holder" style="background-color: #E3B870;"> </span> {!! Lang::get('lang.closed') !!} {!! Lang::get('lang.tickets') !!}</div>
|
||||
<div class="col-md-4"><span id="legend-holder" style="background-color: #6C96DF;"></span> <span class="lead"> <span id="total-created-tickets" ></span> {!! Lang::get('lang.tickets') !!} {!! Lang::get('lang.created') !!}</span></div>
|
||||
<div class="col-md-4"><span id="legend-holder" style="background-color: #6DC5B2;"></span> <span class="lead"> <span id="total-reopen-tickets" class="lead"></span> {!! Lang::get('lang.tickets') !!} {!! Lang::get('lang.reopen') !!}</span></div>
|
||||
<div class="col-md-4"><span id="legend-holder" style="background-color: #E3B870;"></span> <span class="lead"> <span id="total-closed-tickets" class="lead"></span> {!! Lang::get('lang.tickets') !!} {!! Lang::get('lang.closed') !!}</span></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -226,7 +229,7 @@ class="active"
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function() {
|
||||
$.getJSON("agen", function(result) {
|
||||
var labels = [], open = [], closed = [], reopened = [];
|
||||
var labels = [], open = [], closed = [], reopened = [], open_total = 0, closed_total = 0, reopened_total = 0;
|
||||
//,data2=[],data3=[],data4=[];
|
||||
for (var i = 0; i < result.length; i++) {
|
||||
// $var12 = result[i].day;
|
||||
@@ -236,6 +239,9 @@ class="active"
|
||||
closed.push(result[i].closed);
|
||||
reopened.push(result[i].reopened);
|
||||
// data4.push(result[i].open);
|
||||
open_total += parseInt(result[i].open);
|
||||
closed_total += parseInt(result[i].closed);
|
||||
reopened_total += parseInt(result[i].reopened);
|
||||
}
|
||||
var buyerData = {
|
||||
labels: labels,
|
||||
@@ -271,19 +277,11 @@ class="active"
|
||||
pointHighlightStroke: "rgba(60,141,188,1)",
|
||||
data: reopened
|
||||
}
|
||||
// ,{
|
||||
// label : "Reopened Tickets",
|
||||
// fillColor : "rgba(102,255,51,0.2)",
|
||||
// strokeColor : "rgba(151,187,205,1)",
|
||||
// pointColor : "rgba(46,184,0,1)",
|
||||
// pointStrokeColor : "#fff",
|
||||
// pointHighlightFill : "#fff",
|
||||
// pointHighlightStroke : "rgba(151,187,205,1)",
|
||||
// data : data3
|
||||
// }
|
||||
]
|
||||
};
|
||||
|
||||
$("#total-created-tickets").html(open_total);
|
||||
$("#total-reopen-tickets").html(reopened_total);
|
||||
$("#total-closed-tickets").html(closed_total);
|
||||
var myLineChart = new Chart(document.getElementById("tickets-graph").getContext("2d")).Line(buyerData, {
|
||||
showScale: true,
|
||||
//Boolean - Whether grid lines are shown across the chart
|
||||
@@ -343,7 +341,7 @@ class="active"
|
||||
|
||||
success: function(result2) {
|
||||
// $.getJSON("agen", function (result) {
|
||||
var labels = [], open = [], closed = [], reopened = [];
|
||||
var labels = [], open = [], closed = [], reopened = [], open_total = 0, closed_total = 0, reopened_total = 0;
|
||||
//,data2=[],data3=[],data4=[];
|
||||
for (var i = 0; i < result2.length; i++) {
|
||||
// $var12 = result[i].day;
|
||||
@@ -353,6 +351,9 @@ class="active"
|
||||
closed.push(result2[i].closed);
|
||||
reopened.push(result2[i].reopened);
|
||||
// data4.push(result[i].open);
|
||||
open_total += parseInt(result2[i].open);
|
||||
closed_total += parseInt(result2[i].closed);
|
||||
reopened_total += parseInt(result2[i].reopened);
|
||||
}
|
||||
|
||||
var buyerData = {
|
||||
@@ -401,7 +402,9 @@ class="active"
|
||||
// }
|
||||
]
|
||||
};
|
||||
|
||||
$("#total-created-tickets").html(open_total);
|
||||
$("#total-reopen-tickets").html(reopened_total);
|
||||
$("#total-closed-tickets").html(closed_total);
|
||||
var myLineChart = new Chart(document.getElementById("tickets-graph").getContext("2d")).Line(buyerData, {
|
||||
showScale: true,
|
||||
//Boolean - Whether grid lines are shown across the chart
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user