Updates
This commit is contained in:
@@ -27,7 +27,7 @@ return [
|
||||
| Login Page
|
||||
|--------------------------------------
|
||||
*/
|
||||
'login_to_start_your_session' => 'Einloggen um Ihre Sitzung zu starten',
|
||||
'Login_to_start_your_session' => 'Einloggen um Ihre Sitzung zu starten',
|
||||
'login' => 'Login',
|
||||
'remember' => 'Erinnere dich an mich',
|
||||
'signmein' => 'Melde mich an',
|
||||
@@ -917,4 +917,232 @@ return [
|
||||
'ticket_status' => 'Ticket Status',
|
||||
'post_comment' => 'Post Comment',
|
||||
'plugin' => 'Plugin',
|
||||
|
||||
/***************************************************
|
||||
*updates
|
||||
*translation required from here
|
||||
*****************************************************/
|
||||
'edit_profile' => 'Edit profile',
|
||||
'you_are_here' => 'You are here',
|
||||
'Send' => 'SEND',
|
||||
'no_article' => 'No article',
|
||||
'profile_settings' => 'Profile settings',
|
||||
'please_fill_all_required_feilds' => 'Please fill all required feilds.',
|
||||
'successfully_replied' => 'Successfully replied',
|
||||
'please_fill_some_data' => 'Please fill some data!',
|
||||
'profile_updated_sucessfully' => 'Profile updated sucessfully',
|
||||
'password_updated_sucessfully' => 'Password updated sucessfully',
|
||||
'password_was_not_updated_incorrect_old_password' => 'Password was not updated. Incorrect old password',
|
||||
'there_is_no_such_ticket_number' => 'There is no such ticket number',
|
||||
"email_didn't_match_with_ticket_number" => "Email didn't match with ticket number",
|
||||
'we_have_sent_you_a_link_by_email_please_click_on_that_link_to_view_ticket' => 'We have sent you a link by email. Please click on that link to view ticket',
|
||||
'no_records_on_publish_time' => 'No records on publish time',
|
||||
'your_details_send_to_system' => 'Your details send to the system',
|
||||
'your_details_can_not_send_to_system' => 'Your details can not be sent to the system',
|
||||
'your_comment_posted' => 'Your comment posted',
|
||||
'sorry_not_processed' => 'Sorry not processed',
|
||||
'profile_updated_sucessfully' => 'Profile updated sucessfully',
|
||||
'password_was_not_updated' => 'Password was not updated',
|
||||
'sorry_your_ticket_token_has_expired_please_try_to_resend_the_ticket_link_request' => 'Sorry your ticket token has expired! Please try to resend the ticket link request',
|
||||
'sorry_you_are_not_allowed_token_expired' => 'Sorry you are not allowed. Token has expired!',
|
||||
'thank_you_for_your_rating' => 'Thank you for your rating!',
|
||||
'your_ticket_has_been' => 'Your ticket has been',
|
||||
'failed_to_send_email_contact_administrator' => 'Email sending failed. Please contact system administrator',
|
||||
/*
|
||||
* |---------------------------------------------------------------------------------------
|
||||
* |API settings
|
||||
* |----------------------------------------------------------------------------------
|
||||
* |The following lanuage line used to get english traslation of api settings in admin panel
|
||||
* |
|
||||
* |
|
||||
*/
|
||||
'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
|
||||
* --------------------------------------------------------------------------
|
||||
*
|
||||
*/
|
||||
'error-debug' => 'Error logs and debugging',
|
||||
'debug-options' => 'Debugging options',
|
||||
'view-logs' => 'View error logs',
|
||||
'not-authorised-error-debug' => 'You are not authorised to access the URL',
|
||||
'error-debug-settings' => 'Error and debugging settings',
|
||||
'debugging' => 'Debugging mode',
|
||||
'bugsnag-debugging' => 'Send app crash reports to help Ladybird improve Faveo',
|
||||
'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',
|
||||
'invalid_attempt' => 'Invalid Attempt',
|
||||
/* ---------------------------------------------------------------------------------------
|
||||
* Latest update 27-07-2016
|
||||
* -----------------------------------------------------------------------------------
|
||||
*/
|
||||
'queue' => 'Queue',
|
||||
'queues' => 'Queues',
|
||||
/* * -------------------------------------------------------------------------------------------------
|
||||
* OTP messages body to send to user while registering, resetting passwords
|
||||
* --------------------------------------------------------------------------------------------------
|
||||
*/
|
||||
'hello' => 'Hello',
|
||||
'reset-link-msg' => ",\r\nHere is the link to reset your password.\r\n",
|
||||
'otp-for-your' => ",\r\nOTP for your",
|
||||
'account-verification-is' => 'account verification is',
|
||||
'extra-text' => ".\r\nYou can login to verify your account via OTP or just click on the link we've sent to your email address.",
|
||||
'otp-not-sent' => 'We faced some problem in sending OTP please try after some time.',
|
||||
/* * -------------------------------------------------------------------------------------------
|
||||
* Ticket number settings 03-08-2016
|
||||
* ------------------------------------------------------------------------------------------
|
||||
*/
|
||||
'format' => 'Format',
|
||||
'ticket-number-format' => 'This setting is used to generate ticket numbers. Use hash signs (`#`) where digits are to be placed & dollar sign(‘$’) where characters are to be placed . Any other text in the number format will be preserved. ',
|
||||
'ticket-number-type' => 'Choose a sequence from which to derive new ticket numbers. The system has a incrementing sequence and a random sequence by default',
|
||||
/* * ----------------------------------------------------------------------------------------------------
|
||||
* Social media integration
|
||||
* ---------------------------------------------------------------------------------------------------------
|
||||
*/
|
||||
'client_id' => 'Client id',
|
||||
'client_secret' => 'Client secret',
|
||||
'redirect' => 'Redirect URL',
|
||||
'details' => 'Details',
|
||||
'social-media' => 'Social media',
|
||||
/* * ----------------------------------------------------------------------------------------------
|
||||
* Report
|
||||
* ----------------------------------------------------------------------------------------------
|
||||
*/
|
||||
'report' => 'Report',
|
||||
'Report' => 'REPORT',
|
||||
'start_date' => 'Start date',
|
||||
'end_date' => 'End date',
|
||||
'select' => 'Select',
|
||||
'generate' => 'Generate',
|
||||
'day' => 'Day',
|
||||
'week' => 'Week',
|
||||
'month' => 'Month',
|
||||
'Currnet_In_Progress' => 'CURRENT IN PROGRESS',
|
||||
'Total_Created' => 'TOTAL CREATED',
|
||||
'Total_Reopened' => 'TOTAL REOPENED',
|
||||
'Total_Closed' => 'TOTAL CLOSED',
|
||||
'tabular' => 'Tabular',
|
||||
'reopened' => 'Reopened',
|
||||
/* ---------------------------------------------------------------------------------------
|
||||
* Ticket Priority
|
||||
* -----------------------------------------------------------------------------------
|
||||
*/
|
||||
'ticket_priority' => 'Ticket priority',
|
||||
'priority' => 'Priority',
|
||||
'priority_desc' => 'Priority description',
|
||||
'priority_urgency' => 'Priority urgency',
|
||||
'priority_id' => 'Priority Id',
|
||||
'priority_color' => 'Priority color',
|
||||
'ispublic' => 'IsPublic',
|
||||
'is_default' => 'By default',
|
||||
'create_ticket_priority' => 'Create ticket priority',
|
||||
'agent_notes' => 'Agent notes',
|
||||
'select_priority' => 'Select priority',
|
||||
'normal' => 'Normal',
|
||||
'ispublic' => 'Visibility',
|
||||
'make-default-priority' => 'Make default priority',
|
||||
'priority_successfully_created' => 'Priority successfully created',
|
||||
'priority_successfully_updated' => 'Priority successfully updated',
|
||||
'delete_successfully' => 'Delete successfully',
|
||||
'user_priority_status' => 'User priority status',
|
||||
'current' => 'Current:',
|
||||
'active_user_can_select_the_priority_while_creating_ticket' => 'Active user can select the priority while creating ticket',
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Approval Updated
|
||||
* --------------------------------------------------------------------------------------------
|
||||
*/
|
||||
'approval' => 'Approval',
|
||||
'approval_tickets' => 'Approval tickets',
|
||||
'approve' => 'Approve',
|
||||
'approval_request' => 'Approval request',
|
||||
'approvel_ticket_list' => 'Approvel ticket list',
|
||||
|
||||
'approval_settings' => 'Approval settings',
|
||||
'close_all_ticket_for_approval' => 'Close all tickets for approval',
|
||||
'approval_settings-created-successfully' => 'Approval settings created successfully',
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Followup Updated
|
||||
* --------------------------------------------------------------------------------------------
|
||||
*/
|
||||
'followup' => 'Followup',
|
||||
'followup_tickets' => 'Followup tickets',
|
||||
'followup_Notification' => 'Followup notification',
|
||||
|
||||
/*
|
||||
*--------------------------------------------------------------------------------------------
|
||||
*Updated 6-9-2016
|
||||
*---------------------------------------------------------------------------------------
|
||||
*/
|
||||
'not-available' => 'Not available',
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* User Module
|
||||
* --------------------------------------------------------------------------------------------
|
||||
*/
|
||||
'agent_report' => 'Agent report',
|
||||
'assign_tickets' => 'Assign tickets',
|
||||
'delete_agent' => 'Delete agent',
|
||||
'delete_user' => 'Delete user',
|
||||
'confirm_deletion' => 'Confirm deletion',
|
||||
'delete_all_content' => 'Delete all content',
|
||||
'agent_profile' => 'Agent profile',
|
||||
'change_role_to_admin' => 'Change role to admin',
|
||||
'change_role_to_user' => 'Change role to user',
|
||||
'change_role_to_agent' => 'Change role to agent',
|
||||
'change_password' => 'Change password',
|
||||
'role_change' => 'Role change',
|
||||
'password_generator' => 'Password generator',
|
||||
'depertment' => 'Depertment',
|
||||
'duetoday' => 'Due today',
|
||||
'today-due_tickets' => 'Today\'s due ticekts',
|
||||
'password_change_successfully' => 'Password changed successfully',
|
||||
'role_change_successfully' => 'Role changed successfully',
|
||||
'user_delete_successfully' => 'User deleted successfully',
|
||||
'agent_delete_successfully' => 'Agent deleted successfully',
|
||||
'select_another_agent' => 'Select another agent',
|
||||
'agent_delete_successfully_and_ticket_assign_to_another_agent' => 'Agent deleted successfully and ticket assigned to another agent',
|
||||
'deleted_user' => 'Deleted User',
|
||||
'deleted_user_directory' => 'Deleted User Directory',
|
||||
'restore' => 'Restore',
|
||||
'user_restore_successfully' => 'User restore successfully',
|
||||
|
||||
/*** updates 28-11-2016***/
|
||||
'apply' => 'Apply',
|
||||
|
||||
/** updates 2-12-2016 **/
|
||||
'sort-by' => 'Sort by',
|
||||
'created-at' => 'Created at',
|
||||
'or' => 'OR',
|
||||
'activate' => 'Activate',
|
||||
'system-email-not-configured' => 'We are unable to process email request as the system has no configured email for sending mails. Please contact and report system admin.',
|
||||
'assign-ticket' => 'Assign tickets',
|
||||
'can-not-inactive-group' => 'Can not make the group inactive as it has agents assigned in it. Please assign those agents to another group and try again.',
|
||||
'internal-note-has-been-added' => 'Internal note added to the ticket',
|
||||
'active-users' => 'Active users',
|
||||
'deleted-users' => 'Deleted users',
|
||||
'view-option' => 'View options',
|
||||
'accoutn-not-verified' => 'User account is not verified',
|
||||
'enabled' => 'Enabled',
|
||||
'disabled' => 'Disabled',
|
||||
'user-account-is-deleted' => 'This user account has been deleted.',
|
||||
'restore-user' => 'Restore user account',
|
||||
'delete-account-caution-info' => 'Please note this account may still have open tickets in the system.',
|
||||
|
||||
];
|
||||
|
@@ -48,6 +48,7 @@ return [
|
||||
'iforgot' => 'I forgot my password',
|
||||
'email_address' => 'Email address',
|
||||
'password' => 'Password',
|
||||
'password_confirmation' => 'Password confirmation',
|
||||
'woops' => 'Whoops!',
|
||||
'theirisproblem' => 'There were some problems with your input.',
|
||||
'login' => 'Login',
|
||||
@@ -64,6 +65,7 @@ return [
|
||||
'verify-number' => 'Verify number',
|
||||
'get-verify-message' => 'Enter the OTP code we\'ve sent to your new number.',
|
||||
'number-verification-sussessfull' => 'Your number has been verified successfully, please wait we are updating your profile.',
|
||||
'enter_your_email_here' => 'Enter Your Email Here',
|
||||
/*
|
||||
|--------------------------------------
|
||||
| Register Page
|
||||
@@ -86,7 +88,7 @@ return [
|
||||
'activate_your_account_click_on_Link_that_send_to_your_mail' => 'Activate your account! Click on the link that we\'ve sent to your mail',
|
||||
'activate_your_account_click_on_Link_that_send_to_your_mail_and_moble' => 'Activate your account! Click on the link that we\'ve sent to your mail or login to your account and enter the OTP code we\'ve sent on your mobile number',
|
||||
'activate_your_account_click_on_Link_that_send_to_your_mail_sms_plugin_inactive_or_not_setup' => 'Account created, please contact to system admin as we were unable to send OTP code to your mobile and email to your email address.',
|
||||
'this_field_do_not_match_our_records' => ' This field does not match our records.',
|
||||
'this_field_do_not_match_our_records' => 'This field does not match our records.',
|
||||
'we_have_e-mailed_your_password_reset_link' => 'We have emailed your password reset link!',
|
||||
"we_can't_find_a_user_with_that_e-mail_address" => "We can't find a user with that email address.",
|
||||
/*
|
||||
@@ -161,6 +163,7 @@ return [
|
||||
'email_deleted_sucessfully' => 'Email deleted sucessfully',
|
||||
'email_can_not_delete' => 'Email can not delete',
|
||||
'outgoing_email_failed' => 'Outgoing email failed',
|
||||
'system-email-not-configured' => 'We are unable to process email request as the system has no configured email for sending mails. Please contact and report system admin.',
|
||||
/*
|
||||
|--------------------------------------
|
||||
| Ban Emails Create Page
|
||||
@@ -377,6 +380,7 @@ return [
|
||||
'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',
|
||||
'labels' => 'Labels',
|
||||
/*
|
||||
|--------------------------------------
|
||||
| Access Settings Page
|
||||
@@ -454,6 +458,15 @@ return [
|
||||
*/
|
||||
'current_ratings' => 'Current ratings',
|
||||
'edit_ratings' => 'Edit ratings',
|
||||
|
||||
/*
|
||||
|-------------------------------------------------
|
||||
|Social login
|
||||
|--------------------------------------------------
|
||||
*/
|
||||
'social-login' => 'Social login',
|
||||
|
||||
|
||||
/*
|
||||
|------------------------------------------------
|
||||
| Language page
|
||||
@@ -948,6 +961,8 @@ return [
|
||||
'reply_content_is_a_required_field' => 'Reply content is a required field',
|
||||
'internal_content_is_a_required_field' => 'Internal content is a required field',
|
||||
|
||||
|
||||
|
||||
/*
|
||||
|-----------------------------------------------
|
||||
| Profile
|
||||
@@ -1246,6 +1261,7 @@ return [
|
||||
'manage_status' => 'Manage status',
|
||||
'notifications' => 'Notifications',
|
||||
|
||||
|
||||
'auto_close_workflow' => 'Auto-close workflow',
|
||||
'close_ticket_workflow_settings' => 'Close ticket workflow settings',
|
||||
'successfully_saved_your_settings' => 'Successfully saved your settings',
|
||||
@@ -1488,7 +1504,7 @@ return [
|
||||
'user_priority_status' => 'User priority status',
|
||||
'current' => 'Current:',
|
||||
'active_user_can_select_the_priority_while_creating_ticket' => 'Active user can select the priority while creating ticket',
|
||||
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Approval Updated
|
||||
* --------------------------------------------------------------------------------------------
|
||||
@@ -1543,12 +1559,31 @@ return [
|
||||
'agent_delete_successfully' => 'Agent deleted successfully',
|
||||
'select_another_agent' => 'Select another agent',
|
||||
'agent_delete_successfully_and_ticket_assign_to_another_agent' => 'Agent deleted successfully and ticket assigned to another agent',
|
||||
//login,registration
|
||||
'enter_your_email_here'=> 'Enter your email here',
|
||||
'deleted_user' => 'Deleted User',
|
||||
'deleted_user_directory' => 'Deleted User Directory',
|
||||
'restore' => 'Restore',
|
||||
'user_restore_successfully' => 'User restore successfully',
|
||||
|
||||
/*** updates 28-11-2016***/
|
||||
'apply' => 'Apply',
|
||||
|
||||
/** updates 2-12-2016 **/
|
||||
'sort-by' => 'Sort by',
|
||||
'created-at' => 'Created at',
|
||||
'or' => 'OR',
|
||||
'activate' => 'Activate',
|
||||
'system-email-not-configured' => 'We are unable to process email request as the system has no configured email for sending mails. Please contact and report system admin.',
|
||||
'assign-ticket' => 'Assign tickets',
|
||||
'can-not-inactive-group' => 'Can not make the group inactive as it has agents assigned in it. Please assign those agents to another group and try again.',
|
||||
'internal-note-has-been-added' => 'Internal note added to the ticket',
|
||||
'active-users' => 'Active users',
|
||||
'deleted-users' => 'Deleted users',
|
||||
'view-option' => 'View options',
|
||||
'accoutn-not-verified' => 'User account is not verified',
|
||||
'enabled' => 'Enabled',
|
||||
'disabled' => 'Disabled',
|
||||
'user-account-is-deleted' => 'This user account has been deleted.',
|
||||
'restore-user' => 'Restore user account',
|
||||
'delete-account-caution-info' => 'Please note this account may still have open tickets in the system.',
|
||||
|
||||
/*********** Updated 3-12-2016 **********/
|
||||
'activate' => 'Activate',
|
||||
'system-email-not-configured' => 'We are unable to process email request as the system has no configured email for sending mails. Please contact and report system admin.',
|
||||
'assign-ticket' => 'Assign tickets',
|
||||
'updated-internal-note' => 'Your note has been added successfully',
|
||||
];
|
||||
|
File diff suppressed because it is too large
Load Diff
@@ -28,7 +28,7 @@ return [
|
||||
| Login Page
|
||||
|--------------------------------------
|
||||
*/
|
||||
'login_to_start_your_session' => 'Login per incominciare la tua sessione',
|
||||
'Login_to_start_your_session' => 'Login per incominciare la tua sessione',
|
||||
'login' => 'Login',
|
||||
'remember' => 'Ricordami',
|
||||
'signmein' => 'Segnami',
|
||||
@@ -878,4 +878,230 @@ return [
|
||||
'ticket_status' => 'Status Ticket',
|
||||
'post_comment' => 'Posta Commento',
|
||||
'plugin' => 'Plugin',
|
||||
|
||||
/***************************New Updates****************************************/
|
||||
/* Translation Required after this line */
|
||||
/******************************************************************************/
|
||||
'edit_profile' => 'Edit profile',
|
||||
'you_are_here' => 'You are here',
|
||||
'Send' => 'SEND',
|
||||
'no_article' => 'No article',
|
||||
'profile_settings' => 'Profile settings',
|
||||
'please_fill_all_required_feilds' => 'Please fill all required feilds.',
|
||||
'successfully_replied' => 'Successfully replied',
|
||||
'please_fill_some_data' => 'Please fill some data!',
|
||||
'profile_updated_sucessfully' => 'Profile updated sucessfully',
|
||||
'password_updated_sucessfully' => 'Password updated sucessfully',
|
||||
'password_was_not_updated_incorrect_old_password' => 'Password was not updated. Incorrect old password',
|
||||
'there_is_no_such_ticket_number' => 'There is no such ticket number',
|
||||
"email_didn't_match_with_ticket_number" => "Email didn't match with ticket number",
|
||||
'we_have_sent_you_a_link_by_email_please_click_on_that_link_to_view_ticket' => 'We have sent you a link by email. Please click on that link to view ticket',
|
||||
'no_records_on_publish_time' => 'No records on publish time',
|
||||
'your_details_send_to_system' => 'Your details send to the system',
|
||||
'your_details_can_not_send_to_system' => 'Your details can not be sent to the system',
|
||||
'your_comment_posted' => 'Your comment posted',
|
||||
'sorry_not_processed' => 'Sorry not processed',
|
||||
'profile_updated_sucessfully' => 'Profile updated sucessfully',
|
||||
'password_was_not_updated' => 'Password was not updated',
|
||||
'sorry_your_ticket_token_has_expired_please_try_to_resend_the_ticket_link_request' => 'Sorry your ticket token has expired! Please try to resend the ticket link request',
|
||||
'sorry_you_are_not_allowed_token_expired' => 'Sorry you are not allowed. Token has expired!',
|
||||
'thank_you_for_your_rating' => 'Thank you for your rating!',
|
||||
'your_ticket_has_been' => 'Your ticket has been',
|
||||
'failed_to_send_email_contact_administrator' => 'Email sending failed. Please contact system administrator',
|
||||
/*
|
||||
* |---------------------------------------------------------------------------------------
|
||||
* |API settings
|
||||
* |----------------------------------------------------------------------------------
|
||||
* |The following lanuage line used to get english traslation of api settings in admin panel
|
||||
* |
|
||||
* |
|
||||
*/
|
||||
'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
|
||||
* --------------------------------------------------------------------------
|
||||
*
|
||||
*/
|
||||
'error-debug' => 'Error logs and debugging',
|
||||
'debug-options' => 'Debugging options',
|
||||
'view-logs' => 'View error logs',
|
||||
'not-authorised-error-debug' => 'You are not authorised to access the URL',
|
||||
'error-debug-settings' => 'Error and debugging settings',
|
||||
'debugging' => 'Debugging mode',
|
||||
'bugsnag-debugging' => 'Send app crash reports to help Ladybird improve Faveo',
|
||||
'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',
|
||||
'invalid_attempt' => 'Invalid Attempt',
|
||||
/* ---------------------------------------------------------------------------------------
|
||||
* Latest update 27-07-2016
|
||||
* -----------------------------------------------------------------------------------
|
||||
*/
|
||||
'queue' => 'Queue',
|
||||
'queues' => 'Queues',
|
||||
/* * -------------------------------------------------------------------------------------------------
|
||||
* OTP messages body to send to user while registering, resetting passwords
|
||||
* --------------------------------------------------------------------------------------------------
|
||||
*/
|
||||
'hello' => 'Hello',
|
||||
'reset-link-msg' => ",\r\nHere is the link to reset your password.\r\n",
|
||||
'otp-for-your' => ",\r\nOTP for your",
|
||||
'account-verification-is' => 'account verification is',
|
||||
'extra-text' => ".\r\nYou can login to verify your account via OTP or just click on the link we've sent to your email address.",
|
||||
'otp-not-sent' => 'We faced some problem in sending OTP please try after some time.',
|
||||
/* * -------------------------------------------------------------------------------------------
|
||||
* Ticket number settings 03-08-2016
|
||||
* ------------------------------------------------------------------------------------------
|
||||
*/
|
||||
'format' => 'Format',
|
||||
'ticket-number-format' => 'This setting is used to generate ticket numbers. Use hash signs (`#`) where digits are to be placed & dollar sign(‘$’) where characters are to be placed . Any other text in the number format will be preserved. ',
|
||||
'ticket-number-type' => 'Choose a sequence from which to derive new ticket numbers. The system has a incrementing sequence and a random sequence by default',
|
||||
/* * ----------------------------------------------------------------------------------------------------
|
||||
* Social media integration
|
||||
* ---------------------------------------------------------------------------------------------------------
|
||||
*/
|
||||
'client_id' => 'Client id',
|
||||
'client_secret' => 'Client secret',
|
||||
'redirect' => 'Redirect URL',
|
||||
'details' => 'Details',
|
||||
'social-media' => 'Social media',
|
||||
/* * ----------------------------------------------------------------------------------------------
|
||||
* Report
|
||||
* ----------------------------------------------------------------------------------------------
|
||||
*/
|
||||
'report' => 'Report',
|
||||
'Report' => 'REPORT',
|
||||
'start_date' => 'Start date',
|
||||
'end_date' => 'End date',
|
||||
'select' => 'Select',
|
||||
'generate' => 'Generate',
|
||||
'day' => 'Day',
|
||||
'week' => 'Week',
|
||||
'month' => 'Month',
|
||||
'Currnet_In_Progress' => 'CURRENT IN PROGRESS',
|
||||
'Total_Created' => 'TOTAL CREATED',
|
||||
'Total_Reopened' => 'TOTAL REOPENED',
|
||||
'Total_Closed' => 'TOTAL CLOSED',
|
||||
'tabular' => 'Tabular',
|
||||
'reopened' => 'Reopened',
|
||||
/* ---------------------------------------------------------------------------------------
|
||||
* Ticket Priority
|
||||
* -----------------------------------------------------------------------------------
|
||||
*/
|
||||
'ticket_priority' => 'Ticket priority',
|
||||
'priority' => 'Priority',
|
||||
'priority_desc' => 'Priority description',
|
||||
'priority_urgency' => 'Priority urgency',
|
||||
'priority_id' => 'Priority Id',
|
||||
'priority_color' => 'Priority color',
|
||||
'ispublic' => 'IsPublic',
|
||||
'is_default' => 'By default',
|
||||
'create_ticket_priority' => 'Create ticket priority',
|
||||
'agent_notes' => 'Agent notes',
|
||||
'select_priority' => 'Select priority',
|
||||
'normal' => 'Normal',
|
||||
'ispublic' => 'Visibility',
|
||||
'make-default-priority' => 'Make default priority',
|
||||
'priority_successfully_created' => 'Priority successfully created',
|
||||
'priority_successfully_updated' => 'Priority successfully updated',
|
||||
'delete_successfully' => 'Delete successfully',
|
||||
'user_priority_status' => 'User priority status',
|
||||
'current' => 'Current:',
|
||||
'active_user_can_select_the_priority_while_creating_ticket' => 'Active user can select the priority while creating ticket',
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Approval Updated
|
||||
* --------------------------------------------------------------------------------------------
|
||||
*/
|
||||
'approval' => 'Approval',
|
||||
'approval_tickets' => 'Approval tickets',
|
||||
'approve' => 'Approve',
|
||||
'approval_request' => 'Approval request',
|
||||
'approvel_ticket_list' => 'Approvel ticket list',
|
||||
|
||||
'approval_settings' => 'Approval settings',
|
||||
'close_all_ticket_for_approval' => 'Close all tickets for approval',
|
||||
'approval_settings-created-successfully' => 'Approval settings created successfully',
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Followup Updated
|
||||
* --------------------------------------------------------------------------------------------
|
||||
*/
|
||||
'followup' => 'Followup',
|
||||
'followup_tickets' => 'Followup tickets',
|
||||
'followup_Notification' => 'Followup notification',
|
||||
|
||||
/*
|
||||
*--------------------------------------------------------------------------------------------
|
||||
*Updated 6-9-2016
|
||||
*---------------------------------------------------------------------------------------
|
||||
*/
|
||||
'not-available' => 'Not available',
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* User Module
|
||||
* --------------------------------------------------------------------------------------------
|
||||
*/
|
||||
'agent_report' => 'Agent report',
|
||||
'assign_tickets' => 'Assign tickets',
|
||||
'delete_agent' => 'Delete agent',
|
||||
'delete_user' => 'Delete user',
|
||||
'confirm_deletion' => 'Confirm deletion',
|
||||
'delete_all_content' => 'Delete all content',
|
||||
'agent_profile' => 'Agent profile',
|
||||
'change_role_to_admin' => 'Change role to admin',
|
||||
'change_role_to_user' => 'Change role to user',
|
||||
'change_role_to_agent' => 'Change role to agent',
|
||||
'change_password' => 'Change password',
|
||||
'role_change' => 'Role change',
|
||||
'password_generator' => 'Password generator',
|
||||
'depertment' => 'Depertment',
|
||||
'duetoday' => 'Due today',
|
||||
'today-due_tickets' => 'Today\'s due ticekts',
|
||||
'password_change_successfully' => 'Password changed successfully',
|
||||
'role_change_successfully' => 'Role changed successfully',
|
||||
'user_delete_successfully' => 'User deleted successfully',
|
||||
'agent_delete_successfully' => 'Agent deleted successfully',
|
||||
'select_another_agent' => 'Select another agent',
|
||||
'agent_delete_successfully_and_ticket_assign_to_another_agent' => 'Agent deleted successfully and ticket assigned to another agent',
|
||||
'deleted_user' => 'Deleted User',
|
||||
'deleted_user_directory' => 'Deleted User Directory',
|
||||
'restore' => 'Restore',
|
||||
'user_restore_successfully' => 'User restore successfully',
|
||||
|
||||
/*** updates 28-11-2016***/
|
||||
'apply' => 'Apply',
|
||||
|
||||
/** updates 2-12-2016 **/
|
||||
'sort-by' => 'Sort by',
|
||||
'created-at' => 'Created at',
|
||||
'or' => 'OR',
|
||||
'activate' => 'Activate',
|
||||
'system-email-not-configured' => 'We are unable to process email request as the system has no configured email for sending mails. Please contact and report system admin.',
|
||||
'assign-ticket' => 'Assign tickets',
|
||||
'can-not-inactive-group' => 'Can not make the group inactive as it has agents assigned in it. Please assign those agents to another group and try again.',
|
||||
'internal-note-has-been-added' => 'Internal note added to the ticket',
|
||||
'active-users' => 'Active users',
|
||||
'deleted-users' => 'Deleted users',
|
||||
'view-option' => 'View options',
|
||||
'accoutn-not-verified' => 'User account is not verified',
|
||||
'enabled' => 'Enabled',
|
||||
'disabled' => 'Disabled',
|
||||
'user-account-is-deleted' => 'This user account has been deleted.',
|
||||
'restore-user' => 'Restore user account',
|
||||
'delete-account-caution-info' => 'Please note this account may still have open tickets in the system.',
|
||||
];
|
||||
|
@@ -1568,4 +1568,34 @@ return [
|
||||
'select_another_user' => 'Selecteer een andere gebruiker',
|
||||
'agent_delete_successfully_and_ticket_assign_to_another_user' => 'Medewerker succesvol verwijderd, het ticket is aan een andere gebruiker toegewezen',
|
||||
|
||||
/************************************New updates*************************************/
|
||||
/* Translation Required */
|
||||
/************************************************************************************/
|
||||
'deleted_user' => 'Deleted User',
|
||||
'deleted_user_directory' => 'Deleted User Directory',
|
||||
'restore' => 'Restore',
|
||||
'user_restore_successfully' => 'User restore successfully',
|
||||
|
||||
/*** updates 28-11-2016***/
|
||||
'apply' => 'Apply',
|
||||
|
||||
/** updates 2-12-2016 **/
|
||||
'sort-by' => 'Sort by',
|
||||
'created-at' => 'Created at',
|
||||
'or' => 'OR',
|
||||
'activate' => 'Activate',
|
||||
'system-email-not-configured' => 'We are unable to process email request as the system has no configured email for sending mails. Please contact and report system admin.',
|
||||
'assign-ticket' => 'Assign tickets',
|
||||
'can-not-inactive-group' => 'Can not make the group inactive as it has agents assigned in it. Please assign those agents to another group and try again.',
|
||||
'internal-note-has-been-added' => 'Internal note added to the ticket',
|
||||
'active-users' => 'Active users',
|
||||
'deleted-users' => 'Deleted users',
|
||||
'view-option' => 'View options',
|
||||
'accoutn-not-verified' => 'User account is not verified',
|
||||
'enabled' => 'Enabled',
|
||||
'disabled' => 'Disabled',
|
||||
'user-account-is-deleted' => 'This user account has been deleted.',
|
||||
'restore-user' => 'Restore user account',
|
||||
'delete-account-caution-info' => 'Please note this account may still have open tickets in the system.',
|
||||
|
||||
];
|
||||
|
@@ -1382,4 +1382,165 @@ return [
|
||||
'use_subject' => 'Use Assunto',
|
||||
'reopen' => 'Reabrir',
|
||||
|
||||
/*******************************New updated ********************************************/
|
||||
/* Translation Required */
|
||||
/***************************************************************************************/
|
||||
'invalid_attempt' => 'Invalid Attempt',
|
||||
/* ---------------------------------------------------------------------------------------
|
||||
* Latest update 27-07-2016
|
||||
* -----------------------------------------------------------------------------------
|
||||
*/
|
||||
'queue' => 'Queue',
|
||||
'queues' => 'Queues',
|
||||
/* * -------------------------------------------------------------------------------------------------
|
||||
* OTP messages body to send to user while registering, resetting passwords
|
||||
* --------------------------------------------------------------------------------------------------
|
||||
*/
|
||||
'hello' => 'Hello',
|
||||
'reset-link-msg' => ",\r\nHere is the link to reset your password.\r\n",
|
||||
'otp-for-your' => ",\r\nOTP for your",
|
||||
'account-verification-is' => 'account verification is',
|
||||
'extra-text' => ".\r\nYou can login to verify your account via OTP or just click on the link we've sent to your email address.",
|
||||
'otp-not-sent' => 'We faced some problem in sending OTP please try after some time.',
|
||||
/* * -------------------------------------------------------------------------------------------
|
||||
* Ticket number settings 03-08-2016
|
||||
* ------------------------------------------------------------------------------------------
|
||||
*/
|
||||
'format' => 'Format',
|
||||
'ticket-number-format' => 'This setting is used to generate ticket numbers. Use hash signs (`#`) where digits are to be placed & dollar sign(‘$’) where characters are to be placed . Any other text in the number format will be preserved. ',
|
||||
'ticket-number-type' => 'Choose a sequence from which to derive new ticket numbers. The system has a incrementing sequence and a random sequence by default',
|
||||
/* * ----------------------------------------------------------------------------------------------------
|
||||
* Social media integration
|
||||
* ---------------------------------------------------------------------------------------------------------
|
||||
*/
|
||||
'client_id' => 'Client id',
|
||||
'client_secret' => 'Client secret',
|
||||
'redirect' => 'Redirect URL',
|
||||
'details' => 'Details',
|
||||
'social-media' => 'Social media',
|
||||
/* * ----------------------------------------------------------------------------------------------
|
||||
* Report
|
||||
* ----------------------------------------------------------------------------------------------
|
||||
*/
|
||||
'report' => 'Report',
|
||||
'Report' => 'REPORT',
|
||||
'start_date' => 'Start date',
|
||||
'end_date' => 'End date',
|
||||
'select' => 'Select',
|
||||
'generate' => 'Generate',
|
||||
'day' => 'Day',
|
||||
'week' => 'Week',
|
||||
'month' => 'Month',
|
||||
'Currnet_In_Progress' => 'CURRENT IN PROGRESS',
|
||||
'Total_Created' => 'TOTAL CREATED',
|
||||
'Total_Reopened' => 'TOTAL REOPENED',
|
||||
'Total_Closed' => 'TOTAL CLOSED',
|
||||
'tabular' => 'Tabular',
|
||||
'reopened' => 'Reopened',
|
||||
/* ---------------------------------------------------------------------------------------
|
||||
* Ticket Priority
|
||||
* -----------------------------------------------------------------------------------
|
||||
*/
|
||||
'ticket_priority' => 'Ticket priority',
|
||||
'priority' => 'Priority',
|
||||
'priority_desc' => 'Priority description',
|
||||
'priority_urgency' => 'Priority urgency',
|
||||
'priority_id' => 'Priority Id',
|
||||
'priority_color' => 'Priority color',
|
||||
'ispublic' => 'IsPublic',
|
||||
'is_default' => 'By default',
|
||||
'create_ticket_priority' => 'Create ticket priority',
|
||||
'agent_notes' => 'Agent notes',
|
||||
'select_priority' => 'Select priority',
|
||||
'normal' => 'Normal',
|
||||
'ispublic' => 'Visibility',
|
||||
'make-default-priority' => 'Make default priority',
|
||||
'priority_successfully_created' => 'Priority successfully created',
|
||||
'priority_successfully_updated' => 'Priority successfully updated',
|
||||
'delete_successfully' => 'Delete successfully',
|
||||
'user_priority_status' => 'User priority status',
|
||||
'current' => 'Current:',
|
||||
'active_user_can_select_the_priority_while_creating_ticket' => 'Active user can select the priority while creating ticket',
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Approval Updated
|
||||
* --------------------------------------------------------------------------------------------
|
||||
*/
|
||||
'approval' => 'Approval',
|
||||
'approval_tickets' => 'Approval tickets',
|
||||
'approve' => 'Approve',
|
||||
'approval_request' => 'Approval request',
|
||||
'approvel_ticket_list' => 'Approvel ticket list',
|
||||
|
||||
'approval_settings' => 'Approval settings',
|
||||
'close_all_ticket_for_approval' => 'Close all tickets for approval',
|
||||
'approval_settings-created-successfully' => 'Approval settings created successfully',
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Followup Updated
|
||||
* --------------------------------------------------------------------------------------------
|
||||
*/
|
||||
'followup' => 'Followup',
|
||||
'followup_tickets' => 'Followup tickets',
|
||||
'followup_Notification' => 'Followup notification',
|
||||
|
||||
/*
|
||||
*--------------------------------------------------------------------------------------------
|
||||
*Updated 6-9-2016
|
||||
*---------------------------------------------------------------------------------------
|
||||
*/
|
||||
'not-available' => 'Not available',
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* User Module
|
||||
* --------------------------------------------------------------------------------------------
|
||||
*/
|
||||
'agent_report' => 'Agent report',
|
||||
'assign_tickets' => 'Assign tickets',
|
||||
'delete_agent' => 'Delete agent',
|
||||
'delete_user' => 'Delete user',
|
||||
'confirm_deletion' => 'Confirm deletion',
|
||||
'delete_all_content' => 'Delete all content',
|
||||
'agent_profile' => 'Agent profile',
|
||||
'change_role_to_admin' => 'Change role to admin',
|
||||
'change_role_to_user' => 'Change role to user',
|
||||
'change_role_to_agent' => 'Change role to agent',
|
||||
'change_password' => 'Change password',
|
||||
'role_change' => 'Role change',
|
||||
'password_generator' => 'Password generator',
|
||||
'depertment' => 'Depertment',
|
||||
'duetoday' => 'Due today',
|
||||
'today-due_tickets' => 'Today\'s due ticekts',
|
||||
'password_change_successfully' => 'Password changed successfully',
|
||||
'role_change_successfully' => 'Role changed successfully',
|
||||
'user_delete_successfully' => 'User deleted successfully',
|
||||
'agent_delete_successfully' => 'Agent deleted successfully',
|
||||
'select_another_agent' => 'Select another agent',
|
||||
'agent_delete_successfully_and_ticket_assign_to_another_agent' => 'Agent deleted successfully and ticket assigned to another agent',
|
||||
'deleted_user' => 'Deleted User',
|
||||
'deleted_user_directory' => 'Deleted User Directory',
|
||||
'restore' => 'Restore',
|
||||
'user_restore_successfully' => 'User restore successfully',
|
||||
|
||||
/*** updates 28-11-2016***/
|
||||
'apply' => 'Apply',
|
||||
|
||||
/** updates 2-12-2016 **/
|
||||
'sort-by' => 'Sort by',
|
||||
'created-at' => 'Created at',
|
||||
'or' => 'OR',
|
||||
'activate' => 'Activate',
|
||||
'system-email-not-configured' => 'We are unable to process email request as the system has no configured email for sending mails. Please contact and report system admin.',
|
||||
'assign-ticket' => 'Assign tickets',
|
||||
'can-not-inactive-group' => 'Can not make the group inactive as it has agents assigned in it. Please assign those agents to another group and try again.',
|
||||
'internal-note-has-been-added' => 'Internal note added to the ticket',
|
||||
'active-users' => 'Active users',
|
||||
'deleted-users' => 'Deleted users',
|
||||
'view-option' => 'View options',
|
||||
'accoutn-not-verified' => 'User account is not verified',
|
||||
'enabled' => 'Enabled',
|
||||
'disabled' => 'Disabled',
|
||||
'user-account-is-deleted' => 'This user account has been deleted.',
|
||||
'restore-user' => 'Restore user account',
|
||||
'delete-account-caution-info' => 'Please note this account may still have open tickets in the system.',
|
||||
|
||||
];
|
||||
|
@@ -25,7 +25,7 @@ return [
|
||||
| Login Page
|
||||
|--------------------------------------
|
||||
*/
|
||||
'login_to_start_your_session' => 'Авторизуйтесь, чтобы начать сеанс',
|
||||
'Login_to_start_your_session' => 'Авторизуйтесь, чтобы начать сеанс',
|
||||
'login' => 'Login',
|
||||
'remember' => 'Запомнить меня',
|
||||
'signmein' => 'Запишите меня в',
|
||||
@@ -825,4 +825,230 @@ return [
|
||||
'post_comment' => 'Отправить Комментарий',
|
||||
'plugin' => 'Плагин',
|
||||
'end_date' => 'Конец Даты',
|
||||
|
||||
/***********************************New Updates ******************************************/
|
||||
/* Translation reuired */
|
||||
/*****************************************************************************************/
|
||||
'edit_profile' => 'Edit profile',
|
||||
'you_are_here' => 'You are here',
|
||||
'Send' => 'SEND',
|
||||
'no_article' => 'No article',
|
||||
'profile_settings' => 'Profile settings',
|
||||
'please_fill_all_required_feilds' => 'Please fill all required feilds.',
|
||||
'successfully_replied' => 'Successfully replied',
|
||||
'please_fill_some_data' => 'Please fill some data!',
|
||||
'profile_updated_sucessfully' => 'Profile updated sucessfully',
|
||||
'password_updated_sucessfully' => 'Password updated sucessfully',
|
||||
'password_was_not_updated_incorrect_old_password' => 'Password was not updated. Incorrect old password',
|
||||
'there_is_no_such_ticket_number' => 'There is no such ticket number',
|
||||
"email_didn't_match_with_ticket_number" => "Email didn't match with ticket number",
|
||||
'we_have_sent_you_a_link_by_email_please_click_on_that_link_to_view_ticket' => 'We have sent you a link by email. Please click on that link to view ticket',
|
||||
'no_records_on_publish_time' => 'No records on publish time',
|
||||
'your_details_send_to_system' => 'Your details send to the system',
|
||||
'your_details_can_not_send_to_system' => 'Your details can not be sent to the system',
|
||||
'your_comment_posted' => 'Your comment posted',
|
||||
'sorry_not_processed' => 'Sorry not processed',
|
||||
'profile_updated_sucessfully' => 'Profile updated sucessfully',
|
||||
'password_was_not_updated' => 'Password was not updated',
|
||||
'sorry_your_ticket_token_has_expired_please_try_to_resend_the_ticket_link_request' => 'Sorry your ticket token has expired! Please try to resend the ticket link request',
|
||||
'sorry_you_are_not_allowed_token_expired' => 'Sorry you are not allowed. Token has expired!',
|
||||
'thank_you_for_your_rating' => 'Thank you for your rating!',
|
||||
'your_ticket_has_been' => 'Your ticket has been',
|
||||
'failed_to_send_email_contact_administrator' => 'Email sending failed. Please contact system administrator',
|
||||
/*
|
||||
* |---------------------------------------------------------------------------------------
|
||||
* |API settings
|
||||
* |----------------------------------------------------------------------------------
|
||||
* |The following lanuage line used to get english traslation of api settings in admin panel
|
||||
* |
|
||||
* |
|
||||
*/
|
||||
'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
|
||||
* --------------------------------------------------------------------------
|
||||
*
|
||||
*/
|
||||
'error-debug' => 'Error logs and debugging',
|
||||
'debug-options' => 'Debugging options',
|
||||
'view-logs' => 'View error logs',
|
||||
'not-authorised-error-debug' => 'You are not authorised to access the URL',
|
||||
'error-debug-settings' => 'Error and debugging settings',
|
||||
'debugging' => 'Debugging mode',
|
||||
'bugsnag-debugging' => 'Send app crash reports to help Ladybird improve Faveo',
|
||||
'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',
|
||||
'invalid_attempt' => 'Invalid Attempt',
|
||||
/* ---------------------------------------------------------------------------------------
|
||||
* Latest update 27-07-2016
|
||||
* -----------------------------------------------------------------------------------
|
||||
*/
|
||||
'queue' => 'Queue',
|
||||
'queues' => 'Queues',
|
||||
/* * -------------------------------------------------------------------------------------------------
|
||||
* OTP messages body to send to user while registering, resetting passwords
|
||||
* --------------------------------------------------------------------------------------------------
|
||||
*/
|
||||
'hello' => 'Hello',
|
||||
'reset-link-msg' => ",\r\nHere is the link to reset your password.\r\n",
|
||||
'otp-for-your' => ",\r\nOTP for your",
|
||||
'account-verification-is' => 'account verification is',
|
||||
'extra-text' => ".\r\nYou can login to verify your account via OTP or just click on the link we've sent to your email address.",
|
||||
'otp-not-sent' => 'We faced some problem in sending OTP please try after some time.',
|
||||
/* * -------------------------------------------------------------------------------------------
|
||||
* Ticket number settings 03-08-2016
|
||||
* ------------------------------------------------------------------------------------------
|
||||
*/
|
||||
'format' => 'Format',
|
||||
'ticket-number-format' => 'This setting is used to generate ticket numbers. Use hash signs (`#`) where digits are to be placed & dollar sign(‘$’) where characters are to be placed . Any other text in the number format will be preserved. ',
|
||||
'ticket-number-type' => 'Choose a sequence from which to derive new ticket numbers. The system has a incrementing sequence and a random sequence by default',
|
||||
/* * ----------------------------------------------------------------------------------------------------
|
||||
* Social media integration
|
||||
* ---------------------------------------------------------------------------------------------------------
|
||||
*/
|
||||
'client_id' => 'Client id',
|
||||
'client_secret' => 'Client secret',
|
||||
'redirect' => 'Redirect URL',
|
||||
'details' => 'Details',
|
||||
'social-media' => 'Social media',
|
||||
/* * ----------------------------------------------------------------------------------------------
|
||||
* Report
|
||||
* ----------------------------------------------------------------------------------------------
|
||||
*/
|
||||
'report' => 'Report',
|
||||
'Report' => 'REPORT',
|
||||
'start_date' => 'Start date',
|
||||
'end_date' => 'End date',
|
||||
'select' => 'Select',
|
||||
'generate' => 'Generate',
|
||||
'day' => 'Day',
|
||||
'week' => 'Week',
|
||||
'month' => 'Month',
|
||||
'Currnet_In_Progress' => 'CURRENT IN PROGRESS',
|
||||
'Total_Created' => 'TOTAL CREATED',
|
||||
'Total_Reopened' => 'TOTAL REOPENED',
|
||||
'Total_Closed' => 'TOTAL CLOSED',
|
||||
'tabular' => 'Tabular',
|
||||
'reopened' => 'Reopened',
|
||||
/* ---------------------------------------------------------------------------------------
|
||||
* Ticket Priority
|
||||
* -----------------------------------------------------------------------------------
|
||||
*/
|
||||
'ticket_priority' => 'Ticket priority',
|
||||
'priority' => 'Priority',
|
||||
'priority_desc' => 'Priority description',
|
||||
'priority_urgency' => 'Priority urgency',
|
||||
'priority_id' => 'Priority Id',
|
||||
'priority_color' => 'Priority color',
|
||||
'ispublic' => 'IsPublic',
|
||||
'is_default' => 'By default',
|
||||
'create_ticket_priority' => 'Create ticket priority',
|
||||
'agent_notes' => 'Agent notes',
|
||||
'select_priority' => 'Select priority',
|
||||
'normal' => 'Normal',
|
||||
'ispublic' => 'Visibility',
|
||||
'make-default-priority' => 'Make default priority',
|
||||
'priority_successfully_created' => 'Priority successfully created',
|
||||
'priority_successfully_updated' => 'Priority successfully updated',
|
||||
'delete_successfully' => 'Delete successfully',
|
||||
'user_priority_status' => 'User priority status',
|
||||
'current' => 'Current:',
|
||||
'active_user_can_select_the_priority_while_creating_ticket' => 'Active user can select the priority while creating ticket',
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Approval Updated
|
||||
* --------------------------------------------------------------------------------------------
|
||||
*/
|
||||
'approval' => 'Approval',
|
||||
'approval_tickets' => 'Approval tickets',
|
||||
'approve' => 'Approve',
|
||||
'approval_request' => 'Approval request',
|
||||
'approvel_ticket_list' => 'Approvel ticket list',
|
||||
|
||||
'approval_settings' => 'Approval settings',
|
||||
'close_all_ticket_for_approval' => 'Close all tickets for approval',
|
||||
'approval_settings-created-successfully' => 'Approval settings created successfully',
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Followup Updated
|
||||
* --------------------------------------------------------------------------------------------
|
||||
*/
|
||||
'followup' => 'Followup',
|
||||
'followup_tickets' => 'Followup tickets',
|
||||
'followup_Notification' => 'Followup notification',
|
||||
|
||||
/*
|
||||
*--------------------------------------------------------------------------------------------
|
||||
*Updated 6-9-2016
|
||||
*---------------------------------------------------------------------------------------
|
||||
*/
|
||||
'not-available' => 'Not available',
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* User Module
|
||||
* --------------------------------------------------------------------------------------------
|
||||
*/
|
||||
'agent_report' => 'Agent report',
|
||||
'assign_tickets' => 'Assign tickets',
|
||||
'delete_agent' => 'Delete agent',
|
||||
'delete_user' => 'Delete user',
|
||||
'confirm_deletion' => 'Confirm deletion',
|
||||
'delete_all_content' => 'Delete all content',
|
||||
'agent_profile' => 'Agent profile',
|
||||
'change_role_to_admin' => 'Change role to admin',
|
||||
'change_role_to_user' => 'Change role to user',
|
||||
'change_role_to_agent' => 'Change role to agent',
|
||||
'change_password' => 'Change password',
|
||||
'role_change' => 'Role change',
|
||||
'password_generator' => 'Password generator',
|
||||
'depertment' => 'Depertment',
|
||||
'duetoday' => 'Due today',
|
||||
'today-due_tickets' => 'Today\'s due ticekts',
|
||||
'password_change_successfully' => 'Password changed successfully',
|
||||
'role_change_successfully' => 'Role changed successfully',
|
||||
'user_delete_successfully' => 'User deleted successfully',
|
||||
'agent_delete_successfully' => 'Agent deleted successfully',
|
||||
'select_another_agent' => 'Select another agent',
|
||||
'agent_delete_successfully_and_ticket_assign_to_another_agent' => 'Agent deleted successfully and ticket assigned to another agent',
|
||||
'deleted_user' => 'Deleted User',
|
||||
'deleted_user_directory' => 'Deleted User Directory',
|
||||
'restore' => 'Restore',
|
||||
'user_restore_successfully' => 'User restore successfully',
|
||||
|
||||
/*** updates 28-11-2016***/
|
||||
'apply' => 'Apply',
|
||||
|
||||
/** updates 2-12-2016 **/
|
||||
'sort-by' => 'Sort by',
|
||||
'created-at' => 'Created at',
|
||||
'or' => 'OR',
|
||||
'activate' => 'Activate',
|
||||
'system-email-not-configured' => 'We are unable to process email request as the system has no configured email for sending mails. Please contact and report system admin.',
|
||||
'assign-ticket' => 'Assign tickets',
|
||||
'can-not-inactive-group' => 'Can not make the group inactive as it has agents assigned in it. Please assign those agents to another group and try again.',
|
||||
'internal-note-has-been-added' => 'Internal note added to the ticket',
|
||||
'active-users' => 'Active users',
|
||||
'deleted-users' => 'Deleted users',
|
||||
'view-option' => 'View options',
|
||||
'accoutn-not-verified' => 'User account is not verified',
|
||||
'enabled' => 'Enabled',
|
||||
'disabled' => 'Disabled',
|
||||
'user-account-is-deleted' => 'This user account has been deleted.',
|
||||
'restore-user' => 'Restore user account',
|
||||
'delete-account-caution-info' => 'Please note this account may still have open tickets in the system.',
|
||||
];
|
||||
|
@@ -176,6 +176,10 @@
|
||||
|
||||
|
||||
</div>
|
||||
<div class="col-md-12">
|
||||
@include('themes.default1.client.layout.social-login')
|
||||
</div>
|
||||
|
||||
<!-- /.login-page -->
|
||||
</div><!-- /.col -->
|
||||
</div>
|
||||
|
@@ -44,16 +44,6 @@
|
||||
{{Session::get('status')}}
|
||||
</div>
|
||||
@endif
|
||||
@if (count($errors) > 0)
|
||||
<div class="alert alert-danger alert-dismissable">
|
||||
<i class="fa fa-ban"></i>
|
||||
<b>{!! Lang::get('lang.alert') !!} !</b>
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
@foreach ($errors->all() as $error)
|
||||
<li>{{ $error }}</li>
|
||||
@endforeach
|
||||
</div>
|
||||
@endif
|
||||
<div id="content" class="site-content col-md-12">
|
||||
<div id="corewidgetbox">
|
||||
<div class="widgetrow text-center">
|
||||
|
@@ -167,6 +167,11 @@
|
||||
Already got an account? <a href="{{url('auth/login')}}" class="text-center">{!! Lang::get('lang.login') !!}</a>
|
||||
</label>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
@include('themes.default1.client.layout.social-login')
|
||||
</div>
|
||||
</div>
|
||||
</div><!-- /.col --> </div>
|
||||
</div>
|
||||
</div>
|
||||
|
@@ -76,6 +76,9 @@ class="active"
|
||||
<div class="box">
|
||||
<div class="box-header">
|
||||
<h3 class="box-title">{!! Lang::get('lang.view_all_notifications')!!}</h3>
|
||||
<div class="pull-right">
|
||||
<a href="{{url('notifications-list/delete')}}" class="btn btn-danger">Delete all</a>
|
||||
</div>
|
||||
</div>
|
||||
<!-- /.box-header -->
|
||||
<div class="row">
|
||||
@@ -112,27 +115,25 @@ class="active"
|
||||
<!-- /.box-header -->
|
||||
<div class="box-body">
|
||||
<ul class="todo-list">
|
||||
<?php $notifications123 = $notifications; ?>
|
||||
@if(count($notifications123))
|
||||
@if(count($notifications))
|
||||
|
||||
@foreach($notifications123 as $notification123)
|
||||
<?php $user = App\User::whereId($notification123->user_id)->first(); ?>
|
||||
@if($notification123->type == 'registration')
|
||||
@if($notification123->is_read == 1)
|
||||
@foreach($notifications->orderBy('created_at', 'desc')->paginate(10) as $notification)
|
||||
@if($notification->notification && $notification->notification->type && $notification->notification->type->type == 'registration')
|
||||
@if($notification->is_read == 1)
|
||||
<li class="task">
|
||||
<!-- drag handle -->
|
||||
|
||||
<!-- checkbox -->
|
||||
<input type="checkbox" value="" name="cc" class="noti_User clickfun" id="{{$notification123 -> notification_id}}">
|
||||
<label for='cl' data-toggle="tooltip" data-placement="top" title="Mark Read"><span></span> <img src="{{$user->profile_pic}}" class="img-circle" style="width:25px;height: 25px" alt="User Image" />
|
||||
<input type="checkbox" value="" name="cc" class="noti_User clickfun" id="{{$notification -> notification_id}}">
|
||||
<label for='cl' data-toggle="tooltip" data-placement="top" title="Mark Read"><span></span> <img src="{{$notification->users-> profile_pic}}" class="img-circle" style="width:25px;height: 25px" alt="User Image" />
|
||||
<!-- todo text -->
|
||||
<h6 class="textcontent marginzero"><a href="{!! route('user.show', $notification123->notification_id) !!}" id="{{$notification123 -> notification_id}}" class='noti_User'>{!! $notification123->message !!}</a></h6>
|
||||
<small class="label label-danger"><i class="fa fa-clock-o"></i> {{ $notification123 -> created_at }}</small></label> <!-- Emphasis label -->
|
||||
<h6 class="textcontent marginzero"><a href="{!! route('user.show', $notification -> notification_id) !!}" id="{{$notification -> notification_id}}" class='noti_User'>{!! $notification->notification->type->message !!}</a></h6>
|
||||
<small class="label label-danger"><i class="fa fa-clock-o"></i> {{ $notification -> created_at }}</small></label> <!-- Emphasis label -->
|
||||
|
||||
<!-- General tools such as edit or delete-->
|
||||
<div class="tools">
|
||||
<a href="{!! route('user.show', $notification123->notification_id) !!}" data-toggle="tooltip" data-placement="top" title="View" id="{{$notification123-> notification_id}}" class='noti_User'><i class="fa fa-eye"></i></a>
|
||||
<a href="#" id='{{ $notification123->notification_id }}' data-toggle="tooltip" data-placement="top" title="Delete" class='notification-delete clickfun'><i class="fa fa-trash-o"></i></a>
|
||||
<a href="{!! route('user.show', $notification -> notification_id) !!}" data-toggle="tooltip" data-placement="top" title="View" id="{{$notification -> notification_id}}" class='noti_User'><i class="fa fa-eye"></i></a>
|
||||
<a href="#" id='{{ $notification -> notification_id }}' data-toggle="tooltip" data-placement="top" title="Delete" class='notification-delete clickfun'><i class="fa fa-trash-o"></i></a>
|
||||
</div>
|
||||
</li>
|
||||
@else
|
||||
@@ -140,42 +141,40 @@ class="active"
|
||||
<!-- drag handle -->
|
||||
|
||||
<!-- checkbox -->
|
||||
<input type="checkbox" value="" name="cc" class="noti_User clickfun" id="{{$notification123-> notification_id}}">
|
||||
<label for='cl' data-toggle="tooltip" data-placement="top" title="Mark Read"><span></span> <img src="{{$user->profile_pic}}" class="img-circle" style="width:25px;height: 25px" alt="User Image" />
|
||||
<input type="checkbox" value="" name="cc" class="noti_User clickfun" id="{{$notification -> notification_id}}">
|
||||
<label for='cl' data-toggle="tooltip" data-placement="top" title="Mark Read"><span></span> <img src="{{$notification->users-> profile_pic}}" class="img-circle" style="width:25px;height: 25px" alt="User Image" />
|
||||
<!-- todo text -->
|
||||
<h6 class="textcontent marginzero"><a href="{!! route('user.show', $notification123->notification_id) !!}" id="{{$notification123-> notification_id}}" class='noti_User'>{!! $notification123->message !!}</a></h6>
|
||||
<h6 class="textcontent marginzero"><a href="{!! route('user.show', $notification -> notification_id) !!}" id="{{$notification -> notification_id}}" class='noti_User'>{!! $notification->notification->type->message !!}</a></h6>
|
||||
<small class="label label-danger"><i class="fa fa-clock-o"></i> {{ $notification123-> created_at }}</small></label> <!-- Emphasis label -->
|
||||
|
||||
<!-- General tools such as edit or delete-->
|
||||
<div class="tools">
|
||||
<a href="{!! route('user.show', $notification123->notification_id) !!}" data-toggle="tooltip" data-placement="top" title="View" id="{{$notification123-> notification_id}}" class='noti_User'><i class="fa fa-eye"></i></a>
|
||||
<a href="#" id='{{ $notification123->notification_id }}' data-toggle="tooltip" data-placement="top" title="Delete" class='notification-delete clickfun'><i class="fa fa-trash-o"></i></a>
|
||||
<a href="{!! route('user.show', $notification -> notification_id) !!}" data-toggle="tooltip" data-placement="top" title="View" id="{{$notification -> notification_id}}" class='noti_User'><i class="fa fa-eye"></i></a>
|
||||
<a href="#" id='{{ $notification -> notification_id }}' data-toggle="tooltip" data-placement="top" title="Delete" class='notification-delete clickfun'><i class="fa fa-trash-o"></i></a>
|
||||
</div>
|
||||
</li>
|
||||
@endif
|
||||
@else
|
||||
@if($notification123->is_read == 1)
|
||||
@if($notification && $notification->notification && $notification->notification->type && $notification->is_read == 1)
|
||||
<li class="task">
|
||||
<?php $ticket_number = App\Model\helpdesk\Ticket\Tickets::whereId($notification123-> model_id)->first(); ?>
|
||||
<input type="checkbox" value="" name="cc" data-toggle="tooltip" data-placement="top" title="Mark Read" class="noti_User clickfun" id="{{$notification123-> notification_id}}">
|
||||
<label for='cl'><span></span> <img src="{{$user->profile_pic}}" class="img-circle" style="width:25px;height: 25px" alt="User Image" />
|
||||
<h6 class="textcontent marginzero"><a href="{!! route('ticket.thread', $notification123->model_id) !!}" id='{{ $notification123->notification_id }}' class='noti_User'>{!! $notification123->message !!} with id "{!!$ticket_number->ticket_number!!}"</a></h6>
|
||||
<small class="label label-info"><i class="fa fa-clock-o"></i> {{ $notification123-> created_at }}</small>
|
||||
<input type="checkbox" value="" name="cc" data-toggle="tooltip" data-placement="top" title="Mark Read" class="noti_User clickfun" id="{{$notification -> notification_id}}">
|
||||
<label for='cl'><span></span> <img src="{{$notification->users-> profile_pic}}" class="img-circle" style="width:25px;height: 25px" alt="User Image" />
|
||||
<h6 class="textcontent marginzero"><a href="{!! route('ticket.thread', $notification->notification->model_id) !!}" id='{{ $notification -> notification_id }}' class='noti_User'>{!! $notification->notification->type->message !!} with id "{!!$notification->notification->model->ticket_number!!}"</a></h6>
|
||||
<small class="label label-info"><i class="fa fa-clock-o"></i> {{ $notification -> created_at }}</small>
|
||||
</label><div class="tools">
|
||||
<a href="{!! route('ticket.thread', $notification123->model_id) !!}" id='{{ $notification123->notification_id }}' data-toggle="tooltip" data-placement="top" title="View" class='noti_User'><i class="fa fa-eye"></i></a>
|
||||
<a href="#" id='{{ $notification123->notification_id }}' data-toggle="tooltip" data-placement="top" title="Delete" class='notification-delete clickfun'><i class="fa fa-trash-o"></i></a>
|
||||
<a href="{!! route('ticket.thread', $notification->notification->model_id) !!}" id='{{ $notification -> notification_id }}' data-toggle="tooltip" data-placement="top" title="View" class='noti_User'><i class="fa fa-eye"></i></a>
|
||||
<a href="#" id='{{ $notification -> notification_id }}' data-toggle="tooltip" data-placement="top" title="Delete" class='notification-delete clickfun'><i class="fa fa-trash-o"></i></a>
|
||||
</div>
|
||||
</li>
|
||||
@else
|
||||
@elseif($notification->notification && $notification->notification->model)
|
||||
<li>
|
||||
<?php $ticket_number = App\Model\helpdesk\Ticket\Tickets::whereId($notification123 -> model_id)->first(); ?>
|
||||
<input type="checkbox" value="" name="cc" data-toggle="tooltip" data-placement="top" title="Mark Read" class="noti_User clickfun" id="{{$notification123-> notification_id}}">
|
||||
<label for='cl'><span></span> <img src="{{$user->profile_pic}}" class="img-circle" style="width:25px;height: 25px" alt="User Image" />
|
||||
<h6 class="textcontent marginzero"><a href="{!! route('ticket.thread', $notification123->model_id) !!}" id='{{ $notification123->notification_id }}' class='noti_User'>{!! $notification123->message !!} with id "{!!$ticket_number->ticket_number!!}"</a></h6>
|
||||
<small class="label label-info"><i class="fa fa-clock-o"></i> {{ $notification123-> created_at }}</small>
|
||||
<input type="checkbox" value="" name="cc" data-toggle="tooltip" data-placement="top" title="Mark Read" class="noti_User clickfun" id="{{$notification -> notification_id}}">
|
||||
<label for='cl'><span></span> <img src="{{$notification->users-> profile_pic}}" class="img-circle" style="width:25px;height: 25px" alt="User Image" />
|
||||
<h6 class="textcontent marginzero"><a href="{!! route('ticket.thread', $notification->notification->model_id) !!}" id='{{ $notification -> notification_id }}' class='noti_User'>{!! $notification->notification->type->message !!} with id "{!!$notification->notification->model->ticket_number!!}"</a></h6>
|
||||
<small class="label label-info"><i class="fa fa-clock-o"></i> {{ $notification -> created_at }}</small>
|
||||
</label><div class="tools">
|
||||
<a href="{!! route('ticket.thread', $notification123->model_id) !!}" id='{{ $notification123->notification_id }}' data-toggle="tooltip" data-placement="top" title="View" class='noti_User'><i class="fa fa-eye"></i></a>
|
||||
<a href="#" id='{{ $notification123->notification_id }}' data-toggle="tooltip" data-placement="top" title="Delete" class='notification-delete clickfun'><i class="fa fa-trash-o"></i></a>
|
||||
<a href="{!! route('ticket.thread', $notification->notification->model_id) !!}" id='{{ $notification -> notification_id }}' data-toggle="tooltip" data-placement="top" title="View" class='noti_User'><i class="fa fa-eye"></i></a>
|
||||
<a href="#" id='{{ $notification -> notification_id }}' data-toggle="tooltip" data-placement="top" title="Delete" class='notification-delete clickfun'><i class="fa fa-trash-o"></i></a>
|
||||
</div>
|
||||
</li>
|
||||
@endif
|
||||
@@ -190,7 +189,7 @@ class="active"
|
||||
|
||||
</li>
|
||||
@endif
|
||||
{!!$notifications123->render()!!}
|
||||
{!!$notifications->paginate(10)->render()!!}
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
|
241
resources/views/notifications-allOld.blade.php
Normal file
241
resources/views/notifications-allOld.blade.php
Normal file
@@ -0,0 +1,241 @@
|
||||
@extends('themes.default1.agent.layout.agent')
|
||||
@section('Users')
|
||||
class="active"
|
||||
@stop
|
||||
@section('HeadInclude')
|
||||
<style>
|
||||
h1 {
|
||||
color: #f2f2f2;
|
||||
font-family: Arial;
|
||||
font-size: 14px;
|
||||
margin: 0 0 20px;
|
||||
padding: 0;
|
||||
text-align: center;
|
||||
}
|
||||
input[type="checkbox"]:not(old) {
|
||||
width : 28px;
|
||||
margin : 0;
|
||||
padding : 0;
|
||||
opacity : 0;
|
||||
}
|
||||
input[type="checkbox"]:not(old) + label {
|
||||
color: #f2f2f2;
|
||||
font-family: Arial,sans-serif;
|
||||
font-size: 14px;
|
||||
}
|
||||
input[type="checkbox"]:not(old) + label span {
|
||||
background: rgba(0, 0, 0, 0) url("lb-faveo/media/images/check_radio_sheet.png") no-repeat scroll left top;
|
||||
cursor: pointer;
|
||||
display: inline-block;
|
||||
height: 19px;
|
||||
margin-left : -28px;
|
||||
vertical-align: middle;
|
||||
width: 19px;
|
||||
}
|
||||
input[type="checkbox"]:checked + label span {
|
||||
background: rgba(0, 0, 0, 0) url("lb-faveo/media/images/check_radio_sheet.png") no-repeat scroll -19px top;
|
||||
}
|
||||
</style>
|
||||
@stop
|
||||
@section('user-bar')
|
||||
active
|
||||
@stop
|
||||
|
||||
@section('user')
|
||||
class="active"
|
||||
@stop
|
||||
@section('PageHeader')
|
||||
<h3>{!! Lang::get('lang.notifications') !!}</h3>
|
||||
@stop
|
||||
|
||||
<!-- /breadcrumbs -->
|
||||
<!-- content -->
|
||||
@section('content')
|
||||
@if(Session::has('success'))
|
||||
<div class="alert alert-success alert-dismissable">
|
||||
<i class="fa fa-ban"></i>
|
||||
<b>Alert!</b> Success.
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
{{Session::get('success')}}
|
||||
</div>
|
||||
@endif
|
||||
<!-- fail message -->
|
||||
@if(Session::has('fails'))
|
||||
<div class="alert alert-danger alert-dismissable">
|
||||
<i class="fa fa-ban"></i>
|
||||
<b>Alert!</b> Failed.
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
{{Session::get('fails')}}
|
||||
</div>
|
||||
@endif
|
||||
<div id="alert21" class="alert alert-success alert-dismissable" style="display:none;">
|
||||
<button id="dismiss11" type="button" class="close" data-dismiss="alert" aria-hidden="true"><EFBFBD></button>
|
||||
<h4><i class="icon fa fa-check"></i>Alert!</h4>
|
||||
<div id="message-success2"></div>
|
||||
</div>
|
||||
<div class="box">
|
||||
<div class="box-header">
|
||||
<h3 class="box-title">{!! Lang::get('lang.view_all_notifications')!!}</h3>
|
||||
</div>
|
||||
<!-- /.box-header -->
|
||||
<div class="row">
|
||||
<!-- Left col -->
|
||||
<section class="col-lg-12">
|
||||
<!-- Custom tabs (Charts with tabs)-->
|
||||
|
||||
|
||||
|
||||
|
||||
<!-- TO DO List -->
|
||||
<div class="box box-default">
|
||||
<!--
|
||||
<div class="box-header">
|
||||
<i class="ion ion-clipboard"></i>
|
||||
<h3 class="box-title">Task</h3>
|
||||
<div class="box-tools pull-right">
|
||||
<ul class="pagination pagination-sm inline">
|
||||
<li><a href="#">«</a>
|
||||
</li>
|
||||
<li><a href="#">1</a>
|
||||
</li>
|
||||
<li><a href="#">2</a>
|
||||
</li>
|
||||
<li><a href="#">3</a>
|
||||
</li>
|
||||
<li><a href="#">»</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
-->
|
||||
|
||||
<!-- /.box-header -->
|
||||
<div class="box-body">
|
||||
<ul class="todo-list">
|
||||
<?php $notifications123 = $notifications; ?>
|
||||
@if(count($notifications123))
|
||||
|
||||
@foreach($notifications123 as $notification123)
|
||||
<?php $user = App\User::whereId($notification123->user_id)->first(); ?>
|
||||
@if($notification123->type == 'registration')
|
||||
@if($notification123->is_read == 1)
|
||||
<li class="task">
|
||||
<!-- drag handle -->
|
||||
|
||||
<!-- checkbox -->
|
||||
<input type="checkbox" value="" name="cc" class="noti_User clickfun" id="{{$notification123 -> notification_id}}">
|
||||
<label for='cl' data-toggle="tooltip" data-placement="top" title="Mark Read"><span></span> <img src="{{$user->profile_pic}}" class="img-circle" style="width:25px;height: 25px" alt="User Image" />
|
||||
<!-- todo text -->
|
||||
<h6 class="textcontent marginzero"><a href="{!! route('user.show', $notification123->notification_id) !!}" id="{{$notification123 -> notification_id}}" class='noti_User'>{!! $notification123->message !!}</a></h6>
|
||||
<small class="label label-danger"><i class="fa fa-clock-o"></i> {{ $notification123 -> created_at }}</small></label> <!-- Emphasis label -->
|
||||
|
||||
<!-- General tools such as edit or delete-->
|
||||
<div class="tools">
|
||||
<a href="{!! route('user.show', $notification123->notification_id) !!}" data-toggle="tooltip" data-placement="top" title="View" id="{{$notification123-> notification_id}}" class='noti_User'><i class="fa fa-eye"></i></a>
|
||||
<a href="#" id='{{ $notification123->notification_id }}' data-toggle="tooltip" data-placement="top" title="Delete" class='notification-delete clickfun'><i class="fa fa-trash-o"></i></a>
|
||||
</div>
|
||||
</li>
|
||||
@else
|
||||
<li>
|
||||
<!-- drag handle -->
|
||||
|
||||
<!-- checkbox -->
|
||||
<input type="checkbox" value="" name="cc" class="noti_User clickfun" id="{{$notification123-> notification_id}}">
|
||||
<label for='cl' data-toggle="tooltip" data-placement="top" title="Mark Read"><span></span> <img src="{{$user->profile_pic}}" class="img-circle" style="width:25px;height: 25px" alt="User Image" />
|
||||
<!-- todo text -->
|
||||
<h6 class="textcontent marginzero"><a href="{!! route('user.show', $notification123->notification_id) !!}" id="{{$notification123-> notification_id}}" class='noti_User'>{!! $notification123->message !!}</a></h6>
|
||||
<small class="label label-danger"><i class="fa fa-clock-o"></i> {{ $notification123-> created_at }}</small></label> <!-- Emphasis label -->
|
||||
|
||||
<!-- General tools such as edit or delete-->
|
||||
<div class="tools">
|
||||
<a href="{!! route('user.show', $notification123->notification_id) !!}" data-toggle="tooltip" data-placement="top" title="View" id="{{$notification123-> notification_id}}" class='noti_User'><i class="fa fa-eye"></i></a>
|
||||
<a href="#" id='{{ $notification123->notification_id }}' data-toggle="tooltip" data-placement="top" title="Delete" class='notification-delete clickfun'><i class="fa fa-trash-o"></i></a>
|
||||
</div>
|
||||
</li>
|
||||
@endif
|
||||
@else
|
||||
@if($notification123->is_read == 1)
|
||||
<li class="task">
|
||||
<?php $ticket_number = App\Model\helpdesk\Ticket\Tickets::whereId($notification123-> model_id)->first(); ?>
|
||||
<input type="checkbox" value="" name="cc" data-toggle="tooltip" data-placement="top" title="Mark Read" class="noti_User clickfun" id="{{$notification123-> notification_id}}">
|
||||
<label for='cl'><span></span> <img src="{{$user->profile_pic}}" class="img-circle" style="width:25px;height: 25px" alt="User Image" />
|
||||
<h6 class="textcontent marginzero"><a href="{!! route('ticket.thread', $notification123->model_id) !!}" id='{{ $notification123->notification_id }}' class='noti_User'>{!! $notification123->message !!} with id "{!!$ticket_number->ticket_number!!}"</a></h6>
|
||||
<small class="label label-info"><i class="fa fa-clock-o"></i> {{ $notification123-> created_at }}</small>
|
||||
</label><div class="tools">
|
||||
<a href="{!! route('ticket.thread', $notification123->model_id) !!}" id='{{ $notification123->notification_id }}' data-toggle="tooltip" data-placement="top" title="View" class='noti_User'><i class="fa fa-eye"></i></a>
|
||||
<a href="#" id='{{ $notification123->notification_id }}' data-toggle="tooltip" data-placement="top" title="Delete" class='notification-delete clickfun'><i class="fa fa-trash-o"></i></a>
|
||||
</div>
|
||||
</li>
|
||||
@else
|
||||
<li>
|
||||
<?php $ticket_number = App\Model\helpdesk\Ticket\Tickets::whereId($notification123 -> model_id)->first(); ?>
|
||||
<input type="checkbox" value="" name="cc" data-toggle="tooltip" data-placement="top" title="Mark Read" class="noti_User clickfun" id="{{$notification123-> notification_id}}">
|
||||
<label for='cl'><span></span> <img src="{{$user->profile_pic}}" class="img-circle" style="width:25px;height: 25px" alt="User Image" />
|
||||
<h6 class="textcontent marginzero"><a href="{!! route('ticket.thread', $notification123->model_id) !!}" id='{{ $notification123->notification_id }}' class='noti_User'>{!! $notification123->message !!} with id "{!!$ticket_number->ticket_number!!}"</a></h6>
|
||||
<small class="label label-info"><i class="fa fa-clock-o"></i> {{ $notification123-> created_at }}</small>
|
||||
</label><div class="tools">
|
||||
<a href="{!! route('ticket.thread', $notification123->model_id) !!}" id='{{ $notification123->notification_id }}' data-toggle="tooltip" data-placement="top" title="View" class='noti_User'><i class="fa fa-eye"></i></a>
|
||||
<a href="#" id='{{ $notification123->notification_id }}' data-toggle="tooltip" data-placement="top" title="Delete" class='notification-delete clickfun'><i class="fa fa-trash-o"></i></a>
|
||||
</div>
|
||||
</li>
|
||||
@endif
|
||||
@endif
|
||||
@endforeach
|
||||
|
||||
@else
|
||||
<li>
|
||||
|
||||
<h6 class="textcontent marginzero">{!! Lang::get('lang.no_notification_available') !!}</h6>
|
||||
<small class="label label-warning" ><i class="fa fa-bell-slash-o"></i></small>
|
||||
|
||||
</li>
|
||||
@endif
|
||||
{!!$notifications123->render()!!}
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<!-- /.box -->
|
||||
|
||||
|
||||
</section>
|
||||
</div>
|
||||
|
||||
<!-- /.box-body -->
|
||||
</div>
|
||||
<!-- /.box -->
|
||||
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
$(".clickfun").click(function() {
|
||||
$(this).closest("li").toggleClass("task");
|
||||
});
|
||||
});
|
||||
</script>
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
|
||||
$('.notification-delete').click(function() {
|
||||
var id = this.id;
|
||||
var dataString = 'id=' + id;
|
||||
$.ajax
|
||||
({
|
||||
type: "POST",
|
||||
url: "{{url('notification-delete')}}" + "/" + id,
|
||||
data: dataString,
|
||||
cache: false,
|
||||
success: function(response)
|
||||
{
|
||||
if (response == 1)
|
||||
{
|
||||
|
||||
var message = "Success! You have deleted this notification successfully!";
|
||||
$("#alert21").show();
|
||||
$('#message-success2').html(message);
|
||||
}
|
||||
}
|
||||
});
|
||||
});
|
||||
});
|
||||
</script>
|
||||
@stop
|
@@ -132,14 +132,12 @@ class="active"
|
||||
<!-- phone -->
|
||||
<div class="col-xs-3 form-group {{ $errors->has('phone_number') ? 'has-error' : '' }}">
|
||||
{!! Form::label('phone_number',Lang::get('lang.phone')) !!}
|
||||
<!-- {!! Form::text('phone_number',null,['class' => 'form-control']) !!} -->
|
||||
{!! Form::input('number','phone_number',null,['class' => 'form-control', 'id' => 'phone_number']) !!}
|
||||
{!! Form::text('phone_number',null,['class' => 'form-control']) !!}
|
||||
</div>
|
||||
<!-- Mobile -->
|
||||
<div class="col-xs-3 form-group {{ $errors->has('mobile') ? 'has-error' : '' }}">
|
||||
{!! Form::label('mobile',Lang::get('lang.mobile_number')) !!}@if($send_otp->status ==1)<span class="text-red"> *</span>@endif
|
||||
<!-- {!! Form::text('mobile',null,['class' => 'form-control']) !!} -->
|
||||
{!! Form::input('number','mobile',null,['class' => 'form-control', 'id' => 'mobile']) !!}
|
||||
{!! Form::input('number', 'mobile',null,['class' => 'form-control']) !!}
|
||||
</div>
|
||||
</div>
|
||||
<div>
|
||||
@@ -187,11 +185,14 @@ class="active"
|
||||
{!! Form::label('assign_group',Lang::get('lang.assigned_group')) !!} <span class="text-red"> *</span>
|
||||
{!!Form::select('group',[''=>Lang::get('lang.select_a_group'),Lang::get('lang.groups')=>$groups->lists('name','id')->toArray()],null,['class' => 'form-control select']) !!}
|
||||
</div>
|
||||
<!-- primary dept -->
|
||||
|
||||
<!-- primary department -->
|
||||
<div class="col-xs-4 form-group {{ $errors->has('primary_department') ? 'has-error' : '' }}">
|
||||
{!! Form::label('primary_dpt',Lang::get('lang.primary_department')) !!} <span class="text-red"> *</span>
|
||||
{!! Form::select('primary_department', [''=>Lang::get('lang.select_a_department'),Lang::get('lang.departments')=>$departments->lists('name','id')->toArray()],null,['class' => 'form-control select']) !!}
|
||||
{!! Form::label('primary_dpt', Lang::get('lang.primary_department')) !!} <span class="text-red"> *</span>
|
||||
|
||||
{!!Form::select('primary_department', [''=>Lang::get('lang.select_a_department'), Lang::get('lang.departments')=>$departments->lists('name','id')->toArray()],'',['class' => 'form-control select']) !!}
|
||||
</div>
|
||||
|
||||
<!-- timezone -->
|
||||
<div class="col-xs-4 form-group {{ $errors->has('agent_time_zone') ? 'has-error' : '' }}">
|
||||
{!! Form::label('agent_tzone',Lang::get('lang.agent_time_zone')) !!} <span class="text-red"> *</span>
|
||||
@@ -218,4 +219,14 @@ class="active"
|
||||
</div>
|
||||
</div>
|
||||
{!!Form::close()!!}
|
||||
|
||||
<script type="text/javascript">
|
||||
$(function() {
|
||||
//Initialize Select2 Elements
|
||||
$(".select2").select2();
|
||||
});
|
||||
</script>
|
||||
|
||||
|
||||
|
||||
@stop
|
@@ -155,8 +155,7 @@ class="active"
|
||||
|
||||
{!! Form::label('phone_number',Lang::get('lang.phone')) !!}
|
||||
|
||||
<!-- {!! Form::text('phone_number',null,['class' => 'form-control']) !!} -->
|
||||
{!! Form::input('number','phone_number',null,['class' => 'form-control', 'id' => 'phone_number']) !!}
|
||||
{!! Form::text('phone_number',null,['class' => 'form-control']) !!}
|
||||
|
||||
</div>
|
||||
|
||||
@@ -164,9 +163,8 @@ class="active"
|
||||
<div class="col-xs-3 form-group {{ $errors->has('mobile') ? 'has-error' : '' }}">
|
||||
|
||||
{!! Form::label('mobile',Lang::get('lang.mobile_number')) !!}
|
||||
{!! Form::input('number','mobile',null,['class' => 'form-control', 'id' => 'mobile']) !!}
|
||||
|
||||
<!-- {!! Form::text('mobile',null,['class' => 'form-control']) !!} -->
|
||||
{!! Form::input('number', 'mobile',null,['class' => 'form-control']) !!}
|
||||
|
||||
</div>
|
||||
|
||||
|
@@ -29,7 +29,8 @@ class="active"
|
||||
@section('content')
|
||||
<div class="box box-primary">
|
||||
<div class="box-header">
|
||||
<h2 class="box-title">{!! Lang::get('lang.list_of_agents') !!} </h2><a href="{{route('agents.create')}}" class="btn btn-primary pull-right">{!! Lang::get('lang.create_an_agent') !!}</a></div>
|
||||
<h2 class="box-title">{!! Lang::get('lang.list_of_agents') !!} </h2><a href="{{route('agents.create')}}" class="btn btn-primary pull-right">
|
||||
<span class="glyphicon glyphicon-plus"></span> {!! Lang::get('lang.create_an_agent') !!}</a></div>
|
||||
<div class="box-body table-responsive">
|
||||
<?php
|
||||
$user = App\User::where('role', '!=', 'user')->orderBy('id', 'ASC')->paginate(10);
|
||||
|
@@ -30,7 +30,7 @@ class="active"
|
||||
@section('content')
|
||||
<div class="box box-primary">
|
||||
<div class="box-header">
|
||||
<h2 class="box-title">{!! Lang::get('lang.list_of_departments') !!}</h2><a href="{{route('departments.create')}}" class="btn btn-primary pull-right">{{Lang::get('lang.create_a_department')}}</a></div>
|
||||
<h2 class="box-title">{!! Lang::get('lang.list_of_departments') !!}</h2><a href="{{route('departments.create')}}" class="btn btn-primary pull-right"><span class="glyphicon glyphicon-plus"></span> {{Lang::get('lang.create_a_department')}}</a></div>
|
||||
<div class="box-body table-responsive ">
|
||||
<!-- check whether success or not -->
|
||||
@if(Session::has('success'))
|
||||
|
@@ -31,7 +31,7 @@ class="active"
|
||||
<div class="col-md-12">
|
||||
<div class="box box-primary">
|
||||
<div class="box-header">
|
||||
<h2 class="box-title">{!! Lang::get('lang.groups') !!}</h2><a href="{{route('groups.create')}}" class="btn btn-primary pull-right">{{Lang::get('lang.create_group')}}</a></div>
|
||||
<h2 class="box-title">{!! Lang::get('lang.groups') !!}</h2><a href="{{route('groups.create')}}" class="btn btn-primary pull-right"><span class="glyphicon glyphicon-plus"></span> {{Lang::get('lang.create_group')}}</a></div>
|
||||
<div class="box-body table-responsive">
|
||||
<!-- check whether success or not -->
|
||||
@if(Session::has('success'))
|
||||
|
@@ -61,6 +61,7 @@ class="active"
|
||||
<!-- team lead -->
|
||||
<div class="col-xs-6 form-group {{ $errors->has('team_lead') ? 'has-error' : '' }}">
|
||||
{!! Form::label('team_lead',Lang::get('lang.team_lead')) !!}
|
||||
<?php $user = App\User::where('role', 'admin')->orWhere('role', 'agent')->get(); ?>
|
||||
{!! Form::select('team_lead',[''=>Lang::get('lang.select_a_team_lead'), Lang::get('lang.members')=>$user->lists('full_name','id')->toArray()],null,['class' => 'form-control']) !!}
|
||||
</div>
|
||||
</div>
|
||||
|
@@ -60,6 +60,7 @@ class="active"
|
||||
<!-- team lead -->
|
||||
<div class="col-xs-6 form-group {{ $errors->has('team_lead') ? 'has-error' : '' }}">
|
||||
{!! Form::label('team_lead',Lang::get('lang.team_lead')) !!}
|
||||
<?php $user = App\User::where('role', 'admin')->orWhere('role', 'agent')->get(); ?>
|
||||
{!! Form::select('team_lead',[''=>Lang::get('lang.select_a_team_lead'), Lang::get('lang.members')=>$user->lists('full_name','id')->toArray()],null,['class' => 'form-control']) !!}
|
||||
</div>
|
||||
</div>
|
||||
|
@@ -31,7 +31,7 @@ class="active"
|
||||
<div class="col-md-12">
|
||||
<div class="box box-primary">
|
||||
<div class="box-header">
|
||||
<h2 class="box-title">{{Lang::get('lang.list_of_teams')}}</h2><a href="{{route('teams.create')}}" class="btn btn-primary pull-right">{{Lang::get('lang.create_team')}}</a></div>
|
||||
<h2 class="box-title">{{Lang::get('lang.list_of_teams')}}</h2><a href="{{route('teams.create')}}" class="btn btn-primary pull-right"><span class="glyphicon glyphicon-plus"></span> {{Lang::get('lang.create_team')}}</a></div>
|
||||
<div class="box-body table-responsive">
|
||||
<!-- check whether success or not -->
|
||||
@if(Session::has('success'))
|
||||
|
@@ -32,7 +32,7 @@ class="active"
|
||||
<div class="col-md-12">
|
||||
<div class="box box-primary">
|
||||
<div class="box-header">
|
||||
<h2 class="box-title">{!! Lang::get('lang.emails') !!}</h2><a href="{{route('emails.create')}}" class="btn btn-primary pull-right">{{Lang::get('lang.create_email')}}</a></div>
|
||||
<h2 class="box-title">{!! Lang::get('lang.emails') !!}</h2><a href="{{route('emails.create')}}" class="btn btn-primary pull-right"><span class="glyphicon glyphicon-plus"></span> {{Lang::get('lang.create_email')}}</a></div>
|
||||
|
||||
<div class="box-body table-responsive">
|
||||
|
||||
|
@@ -8,7 +8,7 @@ active
|
||||
active
|
||||
@stop
|
||||
|
||||
@section('template')
|
||||
@section('emails')
|
||||
class="active"
|
||||
@stop
|
||||
|
||||
|
@@ -8,7 +8,7 @@ active
|
||||
active
|
||||
@stop
|
||||
|
||||
@section('template')
|
||||
@section('emails')
|
||||
class="active"
|
||||
@stop
|
||||
|
||||
|
@@ -8,7 +8,7 @@ active
|
||||
active
|
||||
@stop
|
||||
|
||||
@section('template')
|
||||
@section('emails')
|
||||
class="active"
|
||||
@stop
|
||||
|
||||
|
@@ -8,7 +8,7 @@ active
|
||||
active
|
||||
@stop
|
||||
|
||||
@section('template')
|
||||
@section('emails')
|
||||
class="active"
|
||||
@stop
|
||||
|
||||
|
@@ -8,7 +8,7 @@ active
|
||||
active
|
||||
@stop
|
||||
|
||||
@section('template')
|
||||
@section('emails')
|
||||
class="active"
|
||||
@stop
|
||||
|
||||
|
@@ -0,0 +1,142 @@
|
||||
@extends('themes.default1.admin.layout.admin')
|
||||
|
||||
@section('Tickets')
|
||||
active
|
||||
@stop
|
||||
|
||||
@section('manage-bar')
|
||||
active
|
||||
@stop
|
||||
|
||||
@section('labels')
|
||||
class="active"
|
||||
@stop
|
||||
|
||||
@section('HeadInclude')
|
||||
@stop
|
||||
<!-- header -->
|
||||
@section('PageHeader')
|
||||
<h1>Labels</h1>
|
||||
@stop
|
||||
<!-- /header -->
|
||||
<!-- breadcrumbs -->
|
||||
@section('breadcrumbs')
|
||||
<ol class="breadcrumb">
|
||||
</ol>
|
||||
@stop
|
||||
<!-- /breadcrumbs -->
|
||||
<!-- content -->
|
||||
@section('content')
|
||||
|
||||
@if(Session::has('success'))
|
||||
<div class="alert alert-success alert-dismissable">
|
||||
<i class="fa fa-check-circle"></i>
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
{{Session::get('success')}}
|
||||
</div>
|
||||
@endif
|
||||
@if(Session::has('fails'))
|
||||
<div class="alert alert-danger alert-dismissable">
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
{{Session::get('fails')}}
|
||||
</div>
|
||||
@endif
|
||||
@if(Session::has('errors'))
|
||||
<br><br>
|
||||
<div class="alert alert-danger alert-dismissable">
|
||||
<i class="fa fa-ban"></i>
|
||||
<b>{!! Lang::get('lang.alert') !!}!</b>
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
<br/>
|
||||
@if($errors->first('title'))
|
||||
<li class="error-message-padding">{!! $errors->first('title', ':message') !!}</li>
|
||||
@endif
|
||||
@if($errors->first('color'))
|
||||
<li class="error-message-padding">{!! $errors->first('color', ':message') !!}</li>
|
||||
@endif
|
||||
@if($errors->first('order'))
|
||||
<li class="error-message-padding">{!! $errors->first('order', ':message') !!}</li>
|
||||
@endif
|
||||
</div>
|
||||
@endif
|
||||
@if(Session::has('warn'))
|
||||
<div class="alert alert-warning alert-dismissable">
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
{{Session::get('warn')}}
|
||||
</div>
|
||||
@endif
|
||||
<div class="box">
|
||||
<link rel="stylesheet" href="{{asset('lb-faveo/plugins/colorpicker/bootstrap-colorpicker.min.css')}}">
|
||||
<div class="box-header">
|
||||
<div class="box-title">
|
||||
New Label
|
||||
</div>
|
||||
{!! Form::open(['url'=>'labels','method'=>'post', 'id' => 'label-form']) !!}
|
||||
</div>
|
||||
<div class="box-body">
|
||||
<table class="table table-borderless">
|
||||
|
||||
<tr>
|
||||
<div class="form-group {{ $errors->has('title') ? 'has-error' : '' }}">
|
||||
<td>{!! Form::label('title','Title') !!}<span class="text-red"> *</span></td>
|
||||
<td>
|
||||
<div class="form-group {{ $errors->has('title') ? 'has-error' : '' }}">
|
||||
{!! Form::text('title',null,['class'=>'form-control']) !!}
|
||||
</div>
|
||||
</td>
|
||||
</div>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{!! Form::label('color','Color') !!}<span class="text-red"> *</span></td>
|
||||
<td>
|
||||
<div class="form-group {{ $errors->has('color') ? 'has-error' : '' }}">
|
||||
{!! Form::text('color', null,['class'=>'form-control my-colorpicker1 colorpicker-element']) !!}
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>{!! Form::label('order','Order') !!}<span class="text-red"> *</span></td>
|
||||
<td>
|
||||
<div class="form-group {{ $errors->has('order') ? 'has-error' : '' }}">
|
||||
{!! Form::input('number', 'order', null, array('class' => 'form-control')) !!}
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>{!! Form::label('status','Status') !!}</td>
|
||||
<td><input type="checkbox" name="status" id="status" checked="true"> {{Lang::get('lang.enable')}}</td>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
</div>
|
||||
<div class="box-footer">
|
||||
{!! Form::submit('Save',['class'=>'btn btn-success']) !!}
|
||||
{!! Form::close() !!}
|
||||
</div>
|
||||
</div>
|
||||
@stop
|
||||
@section('FooterInclude')
|
||||
<script src="{{asset('lb-faveo/plugins/colorpicker/bootstrap-colorpicker.min.js')}}"></script>
|
||||
<script>
|
||||
//Colorpicker
|
||||
$(".my-colorpicker1").colorpicker();
|
||||
//color picker with addon
|
||||
$(".my-colorpicker2").colorpicker();
|
||||
</script>
|
||||
<script type="text/javascript">
|
||||
$("#label-form").on('submit', function(e){
|
||||
if(document.getElementById('status').checked) {
|
||||
checked = 1;
|
||||
} else {
|
||||
checked = 0;
|
||||
}
|
||||
$('<input />')
|
||||
.attr('type', 'hidden')
|
||||
.attr('name', "status")
|
||||
.attr('value', checked)
|
||||
.appendTo('#label-form');
|
||||
})
|
||||
</script>
|
||||
@stop
|
@@ -0,0 +1,142 @@
|
||||
@extends('themes.default1.admin.layout.admin')
|
||||
|
||||
@section('Tickets')
|
||||
active
|
||||
@stop
|
||||
|
||||
@section('manage-bar')
|
||||
active
|
||||
@stop
|
||||
|
||||
@section('labels')
|
||||
class="active"
|
||||
@stop
|
||||
|
||||
@section('HeadInclude')
|
||||
@stop
|
||||
<!-- header -->
|
||||
@section('PageHeader')
|
||||
<h1>Labels</h1>
|
||||
@stop
|
||||
<!-- /header -->
|
||||
<!-- breadcrumbs -->
|
||||
@section('breadcrumbs')
|
||||
<ol class="breadcrumb">
|
||||
</ol>
|
||||
@stop
|
||||
<!-- /breadcrumbs -->
|
||||
<!-- content -->
|
||||
@section('content')
|
||||
|
||||
@if(Session::has('success'))
|
||||
<div class="alert alert-success alert-dismissable">
|
||||
<i class="fa fa-check-circle"></i>
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
{{Session::get('success')}}
|
||||
</div>
|
||||
@endif
|
||||
@if(Session::has('fails'))
|
||||
<div class="alert alert-danger alert-dismissable">
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
{{Session::get('fails')}}
|
||||
</div>
|
||||
@endif
|
||||
@if(Session::has('errors'))
|
||||
<br><br>
|
||||
<div class="alert alert-danger alert-dismissable">
|
||||
<i class="fa fa-ban"></i>
|
||||
<b>{!! Lang::get('lang.alert') !!}!</b>
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
<br/>
|
||||
@if($errors->first('title'))
|
||||
<li class="error-message-padding">{!! $errors->first('title', ':message') !!}</li>
|
||||
@endif
|
||||
@if($errors->first('color'))
|
||||
<li class="error-message-padding">{!! $errors->first('color', ':message') !!}</li>
|
||||
@endif
|
||||
@if($errors->first('order'))
|
||||
<li class="error-message-padding">{!! $errors->first('order', ':message') !!}</li>
|
||||
@endif
|
||||
</div>
|
||||
@endif
|
||||
@if(Session::has('warn'))
|
||||
<div class="alert alert-warning alert-dismissable">
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
{{Session::get('warn')}}
|
||||
</div>
|
||||
@endif
|
||||
<div class="box">
|
||||
<link rel="stylesheet" href="{{asset('lb-faveo/plugins/colorpicker/bootstrap-colorpicker.min.css')}}">
|
||||
<div class="box-header">
|
||||
<div class="box-title">
|
||||
{!! $label->titleWithColor() !!}
|
||||
</div>
|
||||
{!! Form::model($label,['url'=>'labels/'.$label->id,'method'=>'patch', 'id' => 'label-form']) !!}
|
||||
</div>
|
||||
<div class="box-body">
|
||||
<table class="table table-borderless">
|
||||
|
||||
<tr>
|
||||
<div class="form-group {{ $errors->has('title') ? 'has-error' : '' }}">
|
||||
<td>{!! Form::label('title','Title') !!}<span class="text-red"> *</span></td>
|
||||
<td>
|
||||
<div class="form-group {{ $errors->has('title') ? 'has-error' : '' }}">
|
||||
{!! Form::text('title',null,['class'=>'form-control']) !!}
|
||||
</div>
|
||||
</td>
|
||||
</div>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{!! Form::label('color','Color') !!}<span class="text-red"> *</span></td>
|
||||
<td>
|
||||
<div class="form-group {{ $errors->has('color') ? 'has-error' : '' }}">
|
||||
{!! Form::text('color', null,['class'=>'form-control my-colorpicker1 colorpicker-element']) !!}
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>{!! Form::label('order','Order') !!}<span class="text-red"> *</span></td>
|
||||
<td>
|
||||
<div class="form-group {{ $errors->has('order') ? 'has-error' : '' }}">
|
||||
{!! Form::input('number', 'order', null, array('class' => 'form-control')) !!}
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>{!! Form::label('status','Status') !!}</td>
|
||||
<td><p>{!! Form::checkbox('status') !!} {!!Lang::get('lang.enable')!!}</p></td>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
</div>
|
||||
<div class="box-footer">
|
||||
{!! Form::submit('Save',['class'=>'btn btn-success']) !!}
|
||||
{!! Form::close() !!}
|
||||
</div>
|
||||
</div>
|
||||
@stop
|
||||
@section('FooterInclude')
|
||||
<script src="{{asset('lb-faveo/plugins/colorpicker/bootstrap-colorpicker.min.js')}}"></script>
|
||||
<script>
|
||||
//Colorpicker
|
||||
$(".my-colorpicker1").colorpicker();
|
||||
//color picker with addon
|
||||
$(".my-colorpicker2").colorpicker();
|
||||
</script>
|
||||
<script type="text/javascript">
|
||||
$("#label-form").on('submit', function(e){
|
||||
if(document.getElementById('status').checked) {
|
||||
checked = 1;
|
||||
} else {
|
||||
checked = 0;
|
||||
}
|
||||
$('<input />')
|
||||
.attr('type', 'hidden')
|
||||
.attr('name', "status")
|
||||
.attr('value', checked)
|
||||
.appendTo('#label-form');
|
||||
})
|
||||
</script>
|
||||
@stop
|
@@ -0,0 +1,69 @@
|
||||
@extends('themes.default1.admin.layout.admin')
|
||||
|
||||
@section('Tickets')
|
||||
active
|
||||
@stop
|
||||
|
||||
@section('manage-bar')
|
||||
active
|
||||
@stop
|
||||
|
||||
@section('labels')
|
||||
class="active"
|
||||
@stop
|
||||
|
||||
@section('HeadInclude')
|
||||
@stop
|
||||
<!-- header -->
|
||||
@section('PageHeader')
|
||||
<h1>Labels</h1>
|
||||
@stop
|
||||
<!-- /header -->
|
||||
<!-- breadcrumbs -->
|
||||
@section('breadcrumbs')
|
||||
<ol class="breadcrumb">
|
||||
</ol>
|
||||
@stop
|
||||
<!-- /breadcrumbs -->
|
||||
<!-- content -->
|
||||
@section('content')
|
||||
|
||||
@if(Session::has('success'))
|
||||
<div class="alert alert-success alert-dismissable">
|
||||
<i class="fa fa-check-circle"></i>
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
{{Session::get('success')}}
|
||||
</div>
|
||||
@endif
|
||||
@if(Session::has('fails'))
|
||||
<div class="alert alert-danger alert-dismissable">
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
{{Session::get('fails')}}
|
||||
</div>
|
||||
@endif
|
||||
@if(Session::has('warn'))
|
||||
<div class="alert alert-warning alert-dismissable">
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
{{Session::get('warn')}}
|
||||
</div>
|
||||
@endif
|
||||
<div class="box">
|
||||
<div class="box-header">
|
||||
<div class="box-title">
|
||||
Labels
|
||||
|
||||
|
||||
</div>
|
||||
<a href="{{url('labels/create')}}" class="btn btn-success pull-right"><span class="glyphicon glyphicon-plus"></span> New Label</a>
|
||||
|
||||
</div>
|
||||
<div class="box-body">
|
||||
{!!
|
||||
Datatable::table()
|
||||
->addColumn('Title','Order','Status','Action')
|
||||
->setUrl(url('labels-ajax'))
|
||||
->render()
|
||||
!!}
|
||||
</div>
|
||||
</div>
|
||||
@stop
|
@@ -8,7 +8,7 @@ active
|
||||
active
|
||||
@stop
|
||||
|
||||
@section('form')
|
||||
@section('forms')
|
||||
class="active"
|
||||
@stop
|
||||
|
||||
|
@@ -40,7 +40,7 @@ class="active"
|
||||
<div class="box-title">
|
||||
{!! Lang::get('lang.forms') !!}
|
||||
</div>
|
||||
<a href="{!! url('forms/create') !!}" class="pull-right"><button class="btn btn-primary">{!! Lang::get('lang.create_form') !!}</button></a>
|
||||
<a href="{!! url('forms/create') !!}" class="pull-right"><button class="btn btn-primary"><span class="glyphicon glyphicon-plus"></span> {!! Lang::get('lang.create_form') !!}</button></a>
|
||||
</div>
|
||||
<div class="box-body">
|
||||
<table id="example2" class="table table-bordered table-striped">
|
||||
|
@@ -31,7 +31,7 @@ class="active"
|
||||
<div class="box box-primary">
|
||||
<div class="box-header with-border">
|
||||
<h3 class="box-title">{{Lang::get('lang.help_topic')}}</h3>
|
||||
<a href="{{route('helptopic.create')}}" class="btn btn-primary pull-right">{{Lang::get('lang.create_help_topic')}}</a>
|
||||
<a href="{{route('helptopic.create')}}" class="btn btn-primary pull-right"><span class="glyphicon glyphicon-plus"></span> {{Lang::get('lang.create_help_topic')}}</a>
|
||||
</div>
|
||||
<div class="box-body table-responsive">
|
||||
<!-- check whether success or not -->
|
||||
|
@@ -32,7 +32,7 @@ class="active"
|
||||
<div class="col-md-12">
|
||||
<div class="box box-primary">
|
||||
<div class="box-header">
|
||||
<h2 class="box-title">{{Lang::get('lang.SLA_plan')}}</h2><a href="{{route('sla.create')}}" class="btn btn-primary pull-right">{{Lang::get('lang.create_SLA')}}</a></div>
|
||||
<h2 class="box-title">{{Lang::get('lang.SLA_plan')}}</h2><a href="{{route('sla.create')}}" class="btn btn-primary pull-right"><span class="glyphicon glyphicon-plus"></span> {{Lang::get('lang.create_SLA')}}</a></div>
|
||||
|
||||
<div class="box-body table-responsive">
|
||||
|
||||
|
@@ -49,18 +49,17 @@ class="active"
|
||||
<div class="box-header with-border">
|
||||
<span class="lead border-right">{!! Lang::get('lang.priority') !!}</span>
|
||||
<div class="pull-right">
|
||||
<a href="{{route('priority.create')}}" class="btn btn-primary"> {{Lang::get('lang.create_ticket_priority')}}</a>
|
||||
<a href="{{route('priority.create')}}" class="btn btn-primary"> <span class="glyphicon glyphicon-plus"></span> {{Lang::get('lang.create_ticket_priority')}}</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<!-- <li><a class="right" title="" data-placement="right" data-toggle="tooltip" href="#" data-original-title="Tooltip on right"> sss</a></li> -->
|
||||
<div class="box-header with-border">
|
||||
<div class="box-header with-border">
|
||||
<a class="right" title="" data-placement="right" data-toggle="tooltip" href="#" data-original-title="{{Lang::get('lang.active_user_can_select_the_priority_while_creating_ticket')}}">
|
||||
|
||||
<span class="lead border-right" >{!! Lang::get('lang.current') !!}{!! Lang::get('lang.user_priority_status') !!}</span>
|
||||
|
||||
</a>
|
||||
|
||||
<div class="btn-group pull-right" id="toggle_event_editing">
|
||||
<button type="button" class="btn {{$user_status->status == '0' ? 'btn-info' : 'btn-default'}} locked_active">Inactive</button>
|
||||
<button type="button" class="btn {{$user_status->status == '1' ? 'btn-info' : 'btn-default'}} unlocked_inactive">Active</button>
|
||||
@@ -89,10 +88,10 @@ class="active"
|
||||
<div class="box-footer">
|
||||
</div>
|
||||
</div>
|
||||
<!-- <script type="text/javascript">
|
||||
<script type="text/javascript">
|
||||
$('a').tooltip()
|
||||
</script>
|
||||
-->
|
||||
|
||||
<script>
|
||||
function confirmDelete(priority_id) {
|
||||
var r = confirm('Are you sure?');
|
||||
@@ -107,7 +106,7 @@ class="active"
|
||||
</script>
|
||||
<script>
|
||||
$('#toggle_event_editing button').click(function () {
|
||||
|
||||
|
||||
var user_settings_priority=1;
|
||||
var user_settings_priority=0;
|
||||
if ($(this).hasClass('locked_active') ) {
|
||||
|
@@ -30,7 +30,7 @@ class="active"
|
||||
<div class="box box-primary">
|
||||
<div class="box-header">
|
||||
<h3 class="box-title">{!! Lang::get('lang.ticket_workflow') !!}</h3>
|
||||
<a href="{!! URL::route('workflow.create') !!}" class="btn btn-primary pull-right">{!! Lang::get('lang.create') !!}</a>
|
||||
<a href="{!! URL::route('workflow.create') !!}" class="btn btn-primary pull-right"><span class="glyphicon glyphicon-plus"></span> {!! Lang::get('lang.create') !!}</a>
|
||||
</div>
|
||||
<!-- /.box-header -->
|
||||
<div class="box-body">
|
||||
|
@@ -104,7 +104,7 @@
|
||||
|
||||
{!! Form::label('mobile',Lang::get('lang.mobile_number')) !!}
|
||||
{!! $errors->first('mobile', '<spam class="help-block">:message</spam>') !!}
|
||||
{!! Form::text('mobile',null,['class' => 'form-control']) !!}
|
||||
{!! Form::input('number', 'mobile',null,['class' => 'form-control']) !!}
|
||||
|
||||
</div>
|
||||
|
||||
|
@@ -4,7 +4,7 @@
|
||||
active
|
||||
@stop
|
||||
|
||||
@section('email-bar')
|
||||
@section('emails-bar')
|
||||
active
|
||||
@stop
|
||||
|
||||
|
@@ -1,14 +1,14 @@
|
||||
@extends('themes.default1.admin.layout.admin')
|
||||
|
||||
@section('Manage')
|
||||
@section('Emails')
|
||||
active
|
||||
@stop
|
||||
|
||||
@section('manage-bar')
|
||||
@section('emails-bar')
|
||||
active
|
||||
@stop
|
||||
|
||||
@section('forms')
|
||||
@section('queue')
|
||||
class="active"
|
||||
@stop
|
||||
|
||||
|
@@ -287,7 +287,105 @@
|
||||
</div>
|
||||
<!-- ./box-body -->
|
||||
</div>
|
||||
|
||||
<div class="box">
|
||||
<div class="box-header with-border">
|
||||
<h3 class="box-title">{!! Lang::get('lang.ticket') !!}</h3>
|
||||
</div>
|
||||
<!-- /.box-header -->
|
||||
<div class="box-body">
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
|
||||
<!--/.col-md-2-->
|
||||
<div class="col-md-2 col-sm-6">
|
||||
<div class="settingiconblue">
|
||||
<div class="settingdivblue">
|
||||
<a href="{{url('getticket')}}">
|
||||
<span class="fa-stack fa-2x">
|
||||
<i class="fa fa-file-text-o fa-stack-1x"></i>
|
||||
</span>
|
||||
</a>
|
||||
</div>
|
||||
<p class="box-title" >{!! Lang::get('lang.ticket') !!}</p>
|
||||
</div>
|
||||
</div>
|
||||
<!--/.col-md-2-->
|
||||
|
||||
<!--/.col-md-2-->
|
||||
<div class="col-md-2 col-sm-6">
|
||||
<div class="settingiconblue">
|
||||
<div class="settingdivblue">
|
||||
<a href="{{url('getresponder')}}">
|
||||
<span class="fa-stack fa-2x">
|
||||
<i class="fa fa-reply-all fa-stack-1x"></i>
|
||||
</span>
|
||||
</a>
|
||||
</div>
|
||||
<p class="box-title" >{!! Lang::get('lang.auto_response') !!}</p>
|
||||
</div>
|
||||
</div>
|
||||
<!--/.col-md-2-->
|
||||
|
||||
<!--/.col-md-2-->
|
||||
<div class="col-md-2 col-sm-6">
|
||||
<div class="settingiconblue">
|
||||
<div class="settingdivblue">
|
||||
<a href="{{url('getalert')}}">
|
||||
<span class="fa-stack fa-2x">
|
||||
<i class="fa fa-bell-o fa-stack-1x"></i>
|
||||
</span>
|
||||
</a>
|
||||
</div>
|
||||
<p class="box-title" >{!! Lang::get('lang.alert_notices') !!}</p>
|
||||
</div>
|
||||
</div>
|
||||
<!--/.col-md-2-->
|
||||
|
||||
<div class="col-md-2 col-sm-6">
|
||||
<div class="settingiconblue">
|
||||
<div class="settingdivblue">
|
||||
<a href="{{url('setting-status')}}">
|
||||
<span class="fa-stack fa-2x">
|
||||
<i class="fa fa-plus-square-o"></i>
|
||||
</span>
|
||||
</a>
|
||||
</div>
|
||||
<p class="box-title" >Statuses</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-md-2 col-sm-6">
|
||||
<div class="settingiconblue">
|
||||
<div class="settingdivblue">
|
||||
<a href="{{url('getratings')}}">
|
||||
<span class="fa-stack fa-2x">
|
||||
<i class="fa fa-star"></i>
|
||||
</span>
|
||||
</a>
|
||||
</div>
|
||||
<p class="box-title" >{!! Lang::get('lang.ratings') !!}</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-2 col-sm-6">
|
||||
<div class="settingiconblue">
|
||||
<div class="settingdivblue">
|
||||
<a href="{{url('close-workflow')}}">
|
||||
<span class="fa-stack fa-2x">
|
||||
<i class="fa fa-sitemap"></i>
|
||||
</span>
|
||||
</a>
|
||||
</div>
|
||||
<p class="box-title" >{!! Lang::get('lang.close_ticket_workflow') !!}</p>
|
||||
</div>
|
||||
</div>
|
||||
<?php \Event::fire('settings.ticket.view',[]); ?>
|
||||
<!--/.col-md-2-->
|
||||
</div>
|
||||
</div>
|
||||
<!-- /.row -->
|
||||
</div>
|
||||
<!-- ./box-body -->
|
||||
</div>
|
||||
<div class="box">
|
||||
<div class="box-header with-border">
|
||||
<h3 class="box-title">{!! Lang::get('lang.settings') !!}</h3>
|
||||
@@ -326,53 +424,19 @@
|
||||
<!--/.col-md-2-->
|
||||
|
||||
|
||||
<!--/.col-md-2-->
|
||||
|
||||
<!--/.col-md-2-->
|
||||
<div class="col-md-2 col-sm-6">
|
||||
<div class="settingiconblue">
|
||||
<div class="settingdivblue">
|
||||
<a href="{{url('getticket')}}">
|
||||
<a href="{{ url('social/media') }}">
|
||||
<span class="fa-stack fa-2x">
|
||||
<i class="fa fa-file-text-o fa-stack-1x"></i>
|
||||
<i class="fa fa-globe fa-stack-1x"></i>
|
||||
</span>
|
||||
</a>
|
||||
</div>
|
||||
<p class="box-title" >{!! Lang::get('lang.ticket') !!}</p>
|
||||
<p class="box-title" >{{Lang::get('lang.social-login')}}</p>
|
||||
</div>
|
||||
</div>
|
||||
<!--/.col-md-2-->
|
||||
|
||||
<!--/.col-md-2-->
|
||||
<div class="col-md-2 col-sm-6">
|
||||
<div class="settingiconblue">
|
||||
<div class="settingdivblue">
|
||||
<a href="{{url('getresponder')}}">
|
||||
<span class="fa-stack fa-2x">
|
||||
<i class="fa fa-reply-all fa-stack-1x"></i>
|
||||
</span>
|
||||
</a>
|
||||
</div>
|
||||
<p class="box-title" >{!! Lang::get('lang.auto_response') !!}</p>
|
||||
</div>
|
||||
</div>
|
||||
<!--/.col-md-2-->
|
||||
|
||||
<!--/.col-md-2-->
|
||||
<div class="col-md-2 col-sm-6">
|
||||
<div class="settingiconblue">
|
||||
<div class="settingdivblue">
|
||||
<a href="{{url('getalert')}}">
|
||||
<span class="fa-stack fa-2x">
|
||||
<i class="fa fa-bell-o fa-stack-1x"></i>
|
||||
</span>
|
||||
</a>
|
||||
</div>
|
||||
<p class="box-title" >{!! Lang::get('lang.alert_notices') !!}</p>
|
||||
</div>
|
||||
</div>
|
||||
<!--/.col-md-2-->
|
||||
|
||||
<!--/.col-md-2-->
|
||||
<div class="col-md-2 col-sm-6">
|
||||
<div class="settingiconblue">
|
||||
@@ -413,18 +477,7 @@
|
||||
</div>
|
||||
</div>
|
||||
<!--/.col-md-2-->
|
||||
<div class="col-md-2 col-sm-6">
|
||||
<div class="settingiconblue">
|
||||
<div class="settingdivblue">
|
||||
<a href="{{url('setting-status')}}">
|
||||
<span class="fa-stack fa-2x">
|
||||
<i class="fa fa-plus-square-o"></i>
|
||||
</span>
|
||||
</a>
|
||||
</div>
|
||||
<p class="box-title" >Statuses</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-md-2 col-sm-6">
|
||||
<div class="settingiconblue">
|
||||
<div class="settingdivblue">
|
||||
@@ -437,30 +490,20 @@
|
||||
<p class="box-title" >{!! Lang::get('lang.notification') !!}</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-md-2 col-sm-6">
|
||||
<div class="settingiconblue">
|
||||
<div class="settingdivblue">
|
||||
<a href="{{url('getratings')}}">
|
||||
<span class="fa-stack fa-2x">
|
||||
<i class="fa fa-star"></i>
|
||||
</span>
|
||||
</a>
|
||||
</div>
|
||||
<p class="box-title" >{!! Lang::get('lang.ratings') !!}</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-2 col-sm-6">
|
||||
<div class="settingiconblue">
|
||||
<div class="settingdivblue">
|
||||
<a href="{{url('close-workflow')}}">
|
||||
<a href="{{url('approval/settings')}}">
|
||||
<span class="fa-stack fa-2x">
|
||||
<i class="fa fa-sitemap"></i>
|
||||
<i class="glyphicon glyphicon-repeat"></i>
|
||||
</span>
|
||||
</a>
|
||||
</div>
|
||||
<p class="box-title" >{!! Lang::get('lang.close_ticket_workflow') !!}</p>
|
||||
<p class="box-title" >{!! Lang::get('lang.approval') !!}</p>
|
||||
</div>
|
||||
</div>
|
||||
<?php \Event::fire('settings.system',[]); ?>
|
||||
</div>
|
||||
</div>
|
||||
<!-- /.row -->
|
||||
@@ -548,18 +591,6 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-md-2 col-sm-6">
|
||||
<div class="settingiconblue">
|
||||
<div class="settingdivblue">
|
||||
<a href="{{ url('social/media') }}">
|
||||
<span class="fa-stack fa-2x">
|
||||
<i class="fa fa-medium fa-stack-1x"></i>
|
||||
</span>
|
||||
</a>
|
||||
</div>
|
||||
<p class="box-title" >Social media integration</p>
|
||||
</div>
|
||||
</div>
|
||||
<!--/.col-md-2-->
|
||||
</div>
|
||||
</div>
|
||||
|
@@ -1,10 +1,10 @@
|
||||
@extends('themes.default1.admin.layout.admin')
|
||||
|
||||
@section('Settings')
|
||||
@section('Tickets')
|
||||
active
|
||||
@stop
|
||||
|
||||
@section('settings-bar')
|
||||
@section('tickets-bar')
|
||||
active
|
||||
@stop
|
||||
|
||||
|
@@ -1,6 +1,6 @@
|
||||
@extends('themes.default1.admin.layout.admin')
|
||||
|
||||
@section('Settings')
|
||||
@section('Tickets')
|
||||
active
|
||||
@stop
|
||||
|
||||
|
@@ -1,6 +1,6 @@
|
||||
@extends('themes.default1.admin.layout.admin')
|
||||
|
||||
@section('Settings')
|
||||
@section('Tickets')
|
||||
active
|
||||
@stop
|
||||
|
||||
|
@@ -117,8 +117,6 @@
|
||||
</div><!-- /.info-box-content -->
|
||||
</div><!-- /.info-box -->
|
||||
</div>
|
||||
<!-- Follow up notification -->
|
||||
|
||||
|
||||
</div>
|
||||
<div class="box-footer">
|
||||
|
@@ -1,6 +1,6 @@
|
||||
@extends('themes.default1.admin.layout.admin')
|
||||
|
||||
@section('Settings')
|
||||
@section('Tickets')
|
||||
active
|
||||
@stop
|
||||
|
||||
|
@@ -81,15 +81,6 @@ class="active"
|
||||
{!!Session::get('fails')!!}
|
||||
</div>
|
||||
@endif
|
||||
@if($info == 1)
|
||||
<div class="alert alert-info alert-dismissable">
|
||||
<i class="fa fa-info-circle"></i>
|
||||
<b></b>
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
{{Lang::get('lang.plugin-info')}}
|
||||
<ul><li><a href="http://www.faveohelpdesk.com/plugins/" target="_blank">{{Lang::get('lang.click-here')}}</a>{{Lang::get('lang.plugin-info-pro')}}</li></ul>
|
||||
</div>
|
||||
@endif
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<script src="{{asset('lb-faveo/plugins/jQuery/jQuery-2.1.4.min.js')}}" type="text/javascript"></script>
|
||||
|
@@ -1,6 +1,6 @@
|
||||
@extends('themes.default1.admin.layout.admin')
|
||||
|
||||
@section('Settings')
|
||||
@section('Tickets')
|
||||
active
|
||||
@stop
|
||||
|
||||
|
@@ -1,10 +1,10 @@
|
||||
@extends('themes.default1.admin.layout.admin')
|
||||
|
||||
@section('Settings')
|
||||
@section('Tickets')
|
||||
active
|
||||
@stop
|
||||
|
||||
@section('settings-bar')
|
||||
@section('tickets-bar')
|
||||
active
|
||||
@stop
|
||||
|
||||
|
@@ -1,14 +1,14 @@
|
||||
@extends('themes.default1.admin.layout.admin')
|
||||
|
||||
<link href="{{asset("lb-faveo/css/faveo-css.css")}}" rel="stylesheet" type="text/css" />
|
||||
@section('Settings')
|
||||
class="active"
|
||||
active
|
||||
@stop
|
||||
|
||||
@section('settings-bar')
|
||||
active
|
||||
@stop
|
||||
|
||||
@section('access')
|
||||
@section('social-login')
|
||||
class="active"
|
||||
@stop
|
||||
|
||||
@@ -62,7 +62,6 @@ class="active"
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
|
||||
<table class="table table-responsive table-hover">
|
||||
<thead>
|
||||
<tr>
|
||||
|
@@ -1,14 +1,14 @@
|
||||
@extends('themes.default1.admin.layout.admin')
|
||||
|
||||
<link href="{{asset("lb-faveo/css/faveo-css.css")}}" rel="stylesheet" type="text/css" />
|
||||
@section('Settings')
|
||||
class="active"
|
||||
active
|
||||
@stop
|
||||
|
||||
@section('settings-bar')
|
||||
active
|
||||
@stop
|
||||
|
||||
@section('access')
|
||||
@section('social-login')
|
||||
class="active"
|
||||
@stop
|
||||
|
||||
|
@@ -1,6 +1,6 @@
|
||||
@extends('themes.default1.admin.layout.admin')
|
||||
|
||||
@section('Settings')
|
||||
@section('Tickets')
|
||||
active
|
||||
@stop
|
||||
|
||||
@@ -12,6 +12,12 @@ class="active"
|
||||
<h1>{!! Lang::get('lang.status_settings') !!}</h1>
|
||||
@stop
|
||||
|
||||
@section('breadcrumbs')
|
||||
<ol class="breadcrumb">
|
||||
</ol>
|
||||
@stop
|
||||
|
||||
|
||||
@section('content')
|
||||
{!! Form::model($status,['route'=>['statuss.update', $status->id],'method'=>'PATCH','files' => true]) !!}
|
||||
<div class="box box-primary">
|
||||
|
@@ -1,6 +1,6 @@
|
||||
@extends('themes.default1.admin.layout.admin')
|
||||
|
||||
@section('Settings')
|
||||
@section('Tickets')
|
||||
active
|
||||
@stop
|
||||
|
||||
@@ -12,6 +12,11 @@ class="active"
|
||||
<h1>{!! Lang::get('lang.settings') !!}</h1>
|
||||
@stop
|
||||
|
||||
@section('breadcrumbs')
|
||||
<ol class="breadcrumb">
|
||||
</ol>
|
||||
@stop
|
||||
|
||||
@section('content')
|
||||
<div class="box box-primary">
|
||||
<div class="box-header with-border">
|
||||
|
@@ -177,6 +177,7 @@ class="active"
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="box-footer">
|
||||
|
@@ -1,10 +1,10 @@
|
||||
@extends('themes.default1.admin.layout.admin')
|
||||
|
||||
@section('Settings')
|
||||
@section('Tickets')
|
||||
active
|
||||
@stop
|
||||
|
||||
@section('settings-bar')
|
||||
@section('tickets-bar')
|
||||
active
|
||||
@stop
|
||||
|
||||
|
@@ -1,14 +1,14 @@
|
||||
@extends('themes.default1.admin.layout.admin')
|
||||
|
||||
@section('Settings')
|
||||
class="active"
|
||||
@stop
|
||||
|
||||
@section('settings-bar')
|
||||
@section('Manage')
|
||||
active
|
||||
@stop
|
||||
|
||||
@section('access')
|
||||
@section('manage-bar')
|
||||
active
|
||||
@stop
|
||||
|
||||
@section('url')
|
||||
class="active"
|
||||
@stop
|
||||
|
||||
@@ -16,16 +16,15 @@ class="active"
|
||||
@stop
|
||||
<!-- header -->
|
||||
@section('PageHeader')
|
||||
|
||||
<h1>{!! Lang::get('lang.url') !!}</h1>
|
||||
@stop
|
||||
<!-- /header -->
|
||||
<!-- breadcrumbs -->
|
||||
@section('breadcrumbs')
|
||||
|
||||
<ol class="breadcrumb">
|
||||
|
||||
</ol>
|
||||
@stop
|
||||
|
||||
@section('content')
|
||||
{!! Form::open(['url' => 'url/settings', 'method' => 'PATCH']) !!}
|
||||
<div class="box box-primary">
|
||||
|
@@ -30,6 +30,8 @@
|
||||
<link href="{{asset("lb-faveo/plugins/bootstrap-wysihtml5/bootstrap3-wysihtml5.min.css")}}" rel="stylesheet" type="text/css" />
|
||||
|
||||
<link href="{{asset("lb-faveo/plugins/datatables/dataTables.bootstrap.css")}}" rel="stylesheet" type="text/css" >
|
||||
<!-- select2 -->
|
||||
<link href="{{asset("lb-faveo/plugins/select2/select2.min.css")}}" rel="stylesheet" type="text/css">
|
||||
<!-- Colorpicker -->
|
||||
|
||||
<link href="{{asset("lb-faveo/plugins/colorpicker/bootstrap-colorpicker.min.css")}}" rel="stylesheet" type="text/css" />
|
||||
@@ -86,18 +88,16 @@
|
||||
<?php \Event::fire('service.desk.admin.topbar', array()); ?>
|
||||
@endif
|
||||
</ul>
|
||||
|
||||
|
||||
<?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('admin')}}">{!! Lang::get('lang.admin_panel') !!}</a></li>
|
||||
@include('themes.default1.update.notification')
|
||||
<!-- User Account: style can be found in dropdown.less -->
|
||||
<ul class="nav navbar-nav navbar-right">
|
||||
<!-- 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()">
|
||||
<i class="fa fa-bell-o"></i>
|
||||
<span class="label label-danger" id="count">{!! count($noti) !!}</span>
|
||||
<span class="label label-danger" id="count">{!! $notifications->count() !!}</span>
|
||||
</a>
|
||||
<ul class="dropdown-menu" style="width:500px">
|
||||
|
||||
@@ -109,44 +109,44 @@
|
||||
|
||||
<li id="refreshNote">
|
||||
|
||||
<li class="header">You have {!! count($noti) !!} notifications. <a class="pull-right" id="read-all" href="#">Mark all as read.</a> </li>
|
||||
<li class="header">You have {!! $notifications->count() !!} notifications. <a class="pull-right" id="read-all" href="#">Mark all as read.</a></li>
|
||||
|
||||
<ul class="menu">
|
||||
@foreach($notifications as $notification)
|
||||
<?php $user = App\User::whereId($notification->user_id)->first(); ?>
|
||||
@if($notification->type == 'registration')
|
||||
|
||||
@if($notifications->count())
|
||||
@foreach($notifications->orderBy('created_at', 'desc')->get()->take(10) as $notification)
|
||||
|
||||
@if($notification->notification->type->type == 'registration')
|
||||
@if($notification->is_read == 1)
|
||||
<li class="task" style="list-style: none; margin-left: -30px;"><span> <img src="{{$user->profile_pic}}" class="user-image" style="width:6%;height: 5%" alt="User Image" />
|
||||
<a href="{!! route('user.show', $notification->model_id) !!}" id="{{$notification->notification_id}}" class='noti_User'>
|
||||
{!! $notification->message !!}
|
||||
<li class="task" style="list-style: none; margin-left: -30px;"><span> <img src="{{$notification -> users -> profile_pic}}" class="user-image" style="width:6%;height: 5%" alt="User Image" />
|
||||
<a href="{!! route('user.show', $notification->notification->model_id) !!}" id="{{$notification -> notification_id}}" class='noti_User'>
|
||||
{!! $notification->notification->type->message !!}
|
||||
</a></span>
|
||||
</li>
|
||||
@else
|
||||
<li style="list-style: none; margin-left: -30px;"><span> <img src="{{$user->profile_pic}}" class="user-image" style="width:6%;height: 5%" alt="User Image" />
|
||||
<a href="{!! route('user.show', $notification->model_id) !!}" id="{{$notification->notification_id}}" class='noti_User'>
|
||||
{!! $notification->message !!}
|
||||
<li style="list-style: none; margin-left: -30px;"><span> <img src="{{$notification -> users -> profile_pic}}" class="user-image" style="width:6%;height: 5%" alt="User Image" />
|
||||
<a href="{!! route('user.show', $notification->notification->model_id) !!}" id="{{$notification -> notification_id}}" class='noti_User'>
|
||||
{!! $notification->notification->type->message !!}
|
||||
</a></span>
|
||||
</li>
|
||||
@endif
|
||||
@else
|
||||
|
||||
<?php $ticket_number = App\Model\helpdesk\Ticket\Tickets::whereId($notification->model_id)->first(); ?>
|
||||
@if($notification->is_read == 1)
|
||||
<li class="task" style="list-style: none;margin-left: -30px"><span> <img src="{{$user->profile_pic}}" class="img-circle" style="width:6%;height: 5%" alt="User Image" />
|
||||
<a href="{!! route('ticket.thread', $notification->model_id) !!}" id='{{ $notification->notification_id}}' class='noti_User'>
|
||||
{!! $notification->message !!} with id "{!!$ticket_number->ticket_number!!}"
|
||||
<li class="task" style="list-style: none;margin-left: -30px"><span> <img src="{{$notification -> users -> profile_pic}}" class="img-circle" style="width:6%;height: 5%" alt="User Image" />
|
||||
<a href="{!! route('ticket.thread', $notification->notification->model_id) !!}" id='{{ $notification -> notification_id}}' class='noti_User'>
|
||||
{!! $notification->notification->type->message !!} with id "{!!$notification->notification->model->ticket_number!!}"
|
||||
</a></span>
|
||||
</li>
|
||||
@else
|
||||
<li style="list-style: none;margin-left: -30px"><span> <img src="{{$user->profile_pic}}" class="img-circle" style="width:6%;height: 5%" alt="User Image" />
|
||||
<a href="{!! route('ticket.thread', $notification->model_id) !!}" id='{{ $notification->notification_id}}' class='noti_User'>
|
||||
{!! $notification->message !!} with id "{!!$ticket_number->ticket_number!!}"
|
||||
@elseif($notification->notification->model)
|
||||
<li style="list-style: none;margin-left: -30px"><span> <img src="{{$notification -> users -> profile_pic}}" class="img-circle" style="width:6%;height: 5%" alt="User Image" />
|
||||
<a href="{!! route('ticket.thread', $notification->notification->model_id) !!}" id='{{ $notification -> notification_id}}' class='noti_User'>
|
||||
{!! $notification->notification->type->message !!} with id "{!!$notification->notification->model->ticket_number!!}"
|
||||
</a></span>
|
||||
</li>
|
||||
@endif
|
||||
@endif
|
||||
@endforeach
|
||||
|
||||
@endif
|
||||
</ul>
|
||||
</li>
|
||||
<li class="footer no-border"><div class="col-md-5"></div><div class="col-md-2">
|
||||
@@ -154,7 +154,6 @@
|
||||
</div><div class="col-md-5"></div></li>
|
||||
<li class="footer"><a href="{{ url('notifications-list')}}">View all</a>
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
</li>
|
||||
<li class="dropdown user user-menu">
|
||||
@@ -245,8 +244,8 @@
|
||||
<li @yield('ban')><a href="{{ url('banlist') }}"><i class="fa fa-ban"></i>{!! Lang::get('lang.ban_lists') !!}</a></li>
|
||||
<li @yield('template')><a href="{{ url('template-sets') }}"><i class="fa fa-mail-forward"></i>{!! Lang::get('lang.templates') !!}</a></li>
|
||||
<li @yield('email')><a href="{{url('getemail')}}"><i class="fa fa-at"></i>{!! Lang::get('lang.email-settings') !!}</a></li>
|
||||
<li @yield('diagnostics')><a href="{{ url('getdiagno') }}"><i class="fa fa-plus"></i>{!! Lang::get('lang.diagnostics') !!}</a></li>
|
||||
<li @yield('queue')><a href="{{ url('queue') }}"><i class="fa fa-upload"></i>{!! Lang::get('lang.queues') !!}</a></li>
|
||||
<li @yield('diagnostics')><a href="{{ url('getdiagno') }}"><i class="fa fa-plus"></i>{!! Lang::get('lang.diagnostics') !!}</a></li>
|
||||
|
||||
<!-- <li><a href="#"><i class="fa fa-circle-o"></i> Auto Response</a></li> -->
|
||||
<!-- <li><a href="#"><i class="fa fa-circle-o"></i> Rules/a></li> -->
|
||||
@@ -267,9 +266,23 @@
|
||||
<li @yield('forms')><a href="{{url('forms')}}"><i class="fa fa-file-text"></i>{!! Lang::get('lang.forms') !!}</a></li>
|
||||
<li @yield('workflow')><a href="{{url('workflow')}}"><i class="fa fa-sitemap"></i>{!! Lang::get('lang.workflow') !!}</a></li>
|
||||
<li @yield('priority')><a href="{{url('ticket/priority')}}"><i class="fa fa-asterisk"></i>{!! Lang::get('lang.priority') !!}</a></li>
|
||||
<li @yield('url')><a href="{{url('url/settings')}}"><i class="fa fa-server"></i>{!! Lang::get('lang.url') !!}</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="treeview @yield('Tickets')">
|
||||
<a href="#">
|
||||
<i class="fa fa-ticket"></i> <span>{!! Lang::get('lang.tickets') !!}</span> <i class="fa fa-angle-left pull-right"></i>
|
||||
</a>
|
||||
<ul class="treeview-menu">
|
||||
<li @yield('tickets')><a href="{{url('getticket')}}"><i class="fa fa-file-text"></i>{!! Lang::get('lang.ticket') !!}</a></li>
|
||||
<li @yield('auto-response')><a href="{{url('getresponder')}}"><i class="fa fa-reply-all"></i>{!! Lang::get('lang.auto_response') !!}</a></li>
|
||||
<li @yield('alert')><a href="{{url('getalert')}}"><i class="fa fa-bell"></i>{!! Lang::get('lang.alert_notices') !!}</a></li>
|
||||
<li @yield('status')><a href="{{url('setting-status')}}"><i class="fa fa-plus-square-o"></i>{!! Lang::get('lang.status') !!}</a></li>
|
||||
<li @yield('labels')><a href="{{url('labels')}}"><i class="fa fa-lastfm"></i>{!! Lang::get('lang.labels') !!}</a></li>
|
||||
<li @yield('ratings')><a href="{{url('getratings')}}"><i class="fa fa-star"></i>{!! Lang::get('lang.ratings') !!}</a></li>
|
||||
<li @yield('close-workflow')><a href="{{url('close-workflow')}}"><i class="fa fa-sitemap"></i>{!! Lang::get('lang.close-workflow') !!}</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
|
||||
<li class="treeview @yield('Settings')">
|
||||
<a href="#">
|
||||
<i class="fa fa-cog"></i>
|
||||
@@ -279,17 +292,12 @@
|
||||
<ul class="treeview-menu">
|
||||
<li @yield('company')><a href="{{url('getcompany')}}"><i class="fa fa-building"></i>{!! Lang::get('lang.company') !!}</a></li>
|
||||
<li @yield('system')><a href="{{url('getsystem')}}"><i class="fa fa-laptop"></i>{!! Lang::get('lang.system') !!}</a></li>
|
||||
<li @yield('tickets')><a href="{{url('getticket')}}"><i class="fa fa-file-text"></i>{!! Lang::get('lang.ticket') !!}</a></li>
|
||||
<li @yield('auto-response')><a href="{{url('getresponder')}}"><i class="fa fa-reply-all"></i>{!! Lang::get('lang.auto_response') !!}</a></li>
|
||||
<li @yield('alert')><a href="{{url('getalert')}}"><i class="fa fa-bell"></i>{!! Lang::get('lang.alert_notices') !!}</a></li>
|
||||
<li @yield('social-login')><a href="{{ url('social/media') }}"><i class="fa fa-globe"></i> {!! Lang::get('lang.social-login') !!}</a></li>
|
||||
<li @yield('languages')><a href="{{url('languages')}}"><i class="fa fa-language"></i>{!! Lang::get('lang.language') !!}</a></li>
|
||||
<li @yield('cron')><a href="{{url('job-scheduler')}}"><i class="fa fa-hourglass"></i>{!! Lang::get('lang.cron') !!}</a></li>
|
||||
<li @yield('security')><a href="{{url('security')}}"><i class="fa fa-lock"></i>{!! Lang::get('lang.security') !!}</a></li>
|
||||
<li @yield('status')><a href="{{url('setting-status')}}"><i class="fa fa-plus-square-o"></i>{!! Lang::get('lang.status') !!}</a></li>
|
||||
<li @yield('notification')><a href="{{url('settings-notification')}}"><i class="fa fa-bell"></i>{!! Lang::get('lang.notifications') !!}</a></li>
|
||||
<li @yield('ratings')><a href="{{url('getratings')}}"><i class="fa fa-star"></i>{!! Lang::get('lang.ratings') !!}</a></li>
|
||||
|
||||
<li @yield('close-workflow')><a href="{{url('close-workflow')}}"><i class="fa fa-sitemap"></i>{!! Lang::get('lang.close-workflow') !!}</a></li>
|
||||
<li @yield('Approval')><a href="{{url('approval/settings')}}"><i class="glyphicon glyphicon-repeat"></i>{!! Lang::get('lang.approval') !!}</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="treeview @yield('error-bugs')">
|
||||
@@ -394,6 +402,8 @@
|
||||
<script src="{{asset("lb-faveo/plugins/colorpicker/bootstrap-colorpicker.min.js")}}" ></script>
|
||||
<!--date time picker-->
|
||||
<script src="{{asset("lb-faveo/js/bootstrap-datetimepicker4.7.14.min.js")}}" type="text/javascript"></script>
|
||||
<!-- select2 -->
|
||||
<script src="{{asset("lb-faveo/plugins/select2/select2.min.js")}}" ></script>
|
||||
|
||||
@if (trim($__env->yieldContent('no-toolbar')))
|
||||
<h1>@yield('no-toolbar')</h1>
|
||||
|
@@ -17,133 +17,103 @@ class="active"
|
||||
@stop
|
||||
|
||||
@section('content')
|
||||
<!-- check whether success or not -->
|
||||
{{-- Success message --}}
|
||||
@if(Session::has('success'))
|
||||
<div class="alert alert-success alert-dismissable">
|
||||
<i class="fa fa-check-circle"></i>
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
{{Session::get('success')}}
|
||||
</div>
|
||||
@endif
|
||||
{{-- failure message --}}
|
||||
@if(Session::has('fails'))
|
||||
<div class="alert alert-danger alert-dismissable">
|
||||
<i class="fa fa-ban"></i>
|
||||
<b>{!! Lang::get('lang.alert') !!}!</b>
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
{{Session::get('fails')}}
|
||||
</div>
|
||||
@endif
|
||||
<!-- check whether success or not -->
|
||||
{{-- Success message --}}
|
||||
@if(Session::has('success'))
|
||||
<div class="alert alert-success alert-dismissable">
|
||||
<i class="fa fa-check-circle"></i>
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
{{Session::get('success')}}
|
||||
</div>
|
||||
@endif
|
||||
{{-- failure message --}}
|
||||
@if(Session::has('fails'))
|
||||
<div class="alert alert-danger alert-dismissable">
|
||||
<i class="fa fa-ban"></i>
|
||||
<b>{!! Lang::get('lang.alert') !!}!</b>
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
{{Session::get('fails')}}
|
||||
</div>
|
||||
@endif
|
||||
<link type="text/css" href="{{asset("lb-faveo/css/bootstrap-datetimepicker4.7.14.min.css")}}" rel="stylesheet">
|
||||
{{-- <script src="{{asset("lb-faveo/dist/js/bootstrap-datetimepicker4.7.14.min.js")}}" type="text/javascript"></script> --}}
|
||||
<div class="row">
|
||||
<?php
|
||||
if (Auth::user()->role == 'admin') {
|
||||
//$inbox = App\Model\helpdesk\Ticket\Tickets::all();
|
||||
$myticket = App\Model\helpdesk\Ticket\Tickets::where('assigned_to', Auth::user()->id)->where('status', '1')->get();
|
||||
$unassigned = App\Model\helpdesk\Ticket\Tickets::where('assigned_to', '=', null)->where('status', '=', '1')->get();
|
||||
$tickets = App\Model\helpdesk\Ticket\Tickets::where('status', '1')->get();
|
||||
$deleted = App\Model\helpdesk\Ticket\Tickets::where('status', '5')->get();
|
||||
} elseif (Auth::user()->role == 'agent') {
|
||||
//$inbox = App\Model\helpdesk\Ticket\Tickets::where('dept_id','',Auth::user()->primary_dpt)->get();
|
||||
$myticket = App\Model\helpdesk\Ticket\Tickets::where('assigned_to', Auth::user()->id)->where('status', '1')->get();
|
||||
$unassigned = App\Model\helpdesk\Ticket\Tickets::where('assigned_to', '=', null)->where('status', '=', '1')->where('dept_id', '=', Auth::user()->primary_dpt)->get();
|
||||
$tickets = App\Model\helpdesk\Ticket\Tickets::where('status', '1')->where('dept_id', '=', Auth::user()->primary_dpt)->get();
|
||||
$deleted = App\Model\helpdesk\Ticket\Tickets::where('status', '5')->where('dept_id', '=', Auth::user())->get();
|
||||
}
|
||||
if (Auth::user()->role == 'agent') {
|
||||
$dept = App\Model\helpdesk\Agent\Department::where('id', '=', Auth::user()->primary_dpt)->first();
|
||||
$overdues = App\Model\helpdesk\Ticket\Tickets::where('status', '=', 1)->where('isanswered', '=', 0)->where('dept_id', '=', $dept->id)->orderBy('id', 'DESC')->get();
|
||||
} 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;
|
||||
} else {
|
||||
$j = 0;
|
||||
foreach ($overdues as $overdue) {
|
||||
$sla_plan = App\Model\helpdesk\Manage\Sla_plan::where('id', '=', $overdue->sla)->first();
|
||||
|
||||
$ovadate = $overdue->created_at;
|
||||
$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 {
|
||||
$overdue_ticket = 0;
|
||||
}
|
||||
}
|
||||
$overdue_ticket = count($overdues);
|
||||
?>
|
||||
<?php
|
||||
if (Auth::user()->role == 'admin') {
|
||||
$todaytickets = count(App\Model\helpdesk\Ticket\Tickets::where('status', '=', 1)->whereRaw('date(duedate) = ?', [date('Y-m-d')])->get());
|
||||
} else {
|
||||
$dept = App\Model\helpdesk\Agent\Department::where('id', '=', Auth::user()->primary_dpt)->first();
|
||||
$todaytickets = count(App\Model\helpdesk\Ticket\Tickets::where('status', '=', 1)->whereRaw('date(duedate) = ?', [date('Y-m-d')])->where('dept_id', '=', $dept->id)->get());
|
||||
}
|
||||
?>
|
||||
<!-- <div class="col-md-3 col-sm-6 col-xs-12"> -->
|
||||
<div class="col-md-2" style="width:20%;">
|
||||
<a href="{!! route('inbox.ticket') !!}">
|
||||
<div class="info-box">
|
||||
<span class="info-box-icon bg-aqua"><i class="fa fa-envelope-o"></i></span>
|
||||
<div class="info-box-content">
|
||||
<span class="info-box-text">{!! Lang::get('lang.inbox') !!}</span>
|
||||
<span class="info-box-number"><?php echo $tickets->count() ?> <small> {!! Lang::get('lang.tickets') !!}</small></span>
|
||||
</div><!-- /.info-box-content -->
|
||||
</div><!-- /.info-box -->
|
||||
</a>
|
||||
</div><!-- /.col -->
|
||||
<!-- <div class="col-md-3 col-sm-6 col-xs-12"> -->
|
||||
<div class="col-md-2" style="width:20%;">
|
||||
<a href="{!! route('inbox.ticket') !!}">
|
||||
<div class="info-box">
|
||||
<span class="info-box-icon bg-aqua"><i class="fa fa-envelope-o"></i></span>
|
||||
|
||||
<div class="info-box-content">
|
||||
<span class="info-box-text">{!! Lang::get('lang.inbox') !!}</span>
|
||||
<span class="info-box-number"><?php echo count($tickets); ?> <small> {!! Lang::get('lang.tickets') !!}</small>
|
||||
</div>
|
||||
<!-- /.info-box-content -->
|
||||
</div>
|
||||
</a>
|
||||
<!-- /.info-box -->
|
||||
</div>
|
||||
<!-- /.col -->
|
||||
<div class="col-md-2" style="width:20%;">
|
||||
<a href="{!! route('unassigned') !!}">
|
||||
<div class="info-box">
|
||||
<span class="info-box-icon bg-orange"><i class="fa fa-user-times"></i></span>
|
||||
<div class="info-box-content">
|
||||
<span class="info-box-text">{!! Lang::get('lang.unassigned') !!}</span>
|
||||
<span class="info-box-number">{{count($unassigned) }} <small> {!! Lang::get('lang.tickets') !!}</small></span>
|
||||
<span class="info-box-number">{{$unassigned->count() }} <small> {!! Lang::get('lang.tickets') !!}</small></span>
|
||||
</div><!-- /.info-box-content -->
|
||||
</div><!-- /.info-box -->
|
||||
</a>
|
||||
<!-- /.info-box -->
|
||||
</div>
|
||||
<!-- /.col -->
|
||||
</div><!-- /.col -->
|
||||
|
||||
<div class="col-md-2" style="width:20%;" >
|
||||
<a href="{!! route('overdue.ticket') !!}">
|
||||
<!-- fix for small devices only -->
|
||||
<div class="clearfix visible-sm-block"></div>
|
||||
|
||||
<!-- <div class="col-md-3 col-sm-6 col-xs-12"> -->
|
||||
<div class="col-md-2" style="width:20%;">
|
||||
<a href="{!! route('overdue.ticket') !!}">
|
||||
<div class="info-box">
|
||||
<span class="info-box-icon bg-red"><i class="fa fa-calendar-times-o"></i></span>
|
||||
<div class="info-box-content">
|
||||
|
||||
<?php
|
||||
if (Auth::user()->role == 'admin') {
|
||||
$overdue_ticket = App\Model\helpdesk\Ticket\Tickets::where('status', '=', 1)->where('tickets.duedate','<', \Carbon\Carbon::now())->count();
|
||||
} else {
|
||||
$dept = App\Model\helpdesk\Agent\Department::where('id', '=', Auth::user()->primary_dpt)->first();
|
||||
$overdue_ticket = App\Model\helpdesk\Ticket\Tickets::where('status', '=', 1)->where('tickets.duedate','<', \Carbon\Carbon::now())->where('dept_id', '=', $dept->id)->count();
|
||||
}
|
||||
?>
|
||||
|
||||
<span class="info-box-text">{!! Lang::get('lang.overdue') !!}</span>
|
||||
<span class="info-box-number">{{ $overdue_ticket }} <small> Tickets</small></span>
|
||||
</div><!-- /.info-box-content -->
|
||||
</div><!-- /.info-box -->
|
||||
</a>
|
||||
</div>
|
||||
|
||||
<div class="col-md-2" style="width:20%;">
|
||||
<a href="{!! route('myticket.ticket') !!}">
|
||||
</div><!-- /.col -->
|
||||
<!-- <div class="col-md-3 col-sm-6 col-xs-12"> -->
|
||||
<div class="col-md-2" style="width:20%;">
|
||||
<a href="{!! route('myticket.ticket') !!}">
|
||||
<div class="info-box">
|
||||
<span class="info-box-icon bg-yellow"><i class="fa fa-user"></i></span>
|
||||
<div class="info-box-content">
|
||||
<span class="info-box-text">{!! Lang::get('lang.my_tickets') !!}</span>
|
||||
<span class="info-box-number">{{count($myticket) }} <small> Tickets</small></span>
|
||||
<span class="info-box-number">{{$myticket->count() }} <small> Tickets</small></span>
|
||||
</div><!-- /.info-box-content -->
|
||||
</div><!-- /.info-box -->
|
||||
</a>
|
||||
</div>
|
||||
<!-- /.col -->
|
||||
<div class="col-md-2" style="width:20%;">
|
||||
</div><!-- /.col -->
|
||||
|
||||
|
||||
<div class="col-md-2" style="width:20%;">
|
||||
<?php
|
||||
if (Auth::user()->role == 'admin') {
|
||||
$todaytickets = App\Model\helpdesk\Ticket\Tickets::where('status', '=', 1)->whereDate('tickets.duedate','=', \Carbon\Carbon::now()->format('Y-m-d'))->count();
|
||||
} else {
|
||||
$dept = App\Model\helpdesk\Agent\Department::where('id', '=', Auth::user()->primary_dpt)->first();
|
||||
$todaytickets = App\Model\helpdesk\Ticket\Tickets::where('status', '=', 1)->whereDate('tickets.duedate','=', \Carbon\Carbon::now()->format('Y-m-d'))->where('dept_id', '=', $dept->id)->count();
|
||||
}
|
||||
?>
|
||||
<a href="{!! route('ticket.duetoday') !!}">
|
||||
<div class="info-box">
|
||||
<span class="info-box-icon bg-red"><i class="glyphicon glyphicon-eye-open"></i></span>
|
||||
@@ -155,7 +125,6 @@ class="active"
|
||||
</a>
|
||||
<!-- /.info-box -->
|
||||
</div>
|
||||
<!-- /.col -->
|
||||
|
||||
</div>
|
||||
<div class="box box-info">
|
||||
@@ -182,7 +151,7 @@ class="active"
|
||||
}
|
||||
?>
|
||||
<script type="text/javascript">
|
||||
$(function() {
|
||||
$(function () {
|
||||
var timestring1 = "{!! $start_date !!}";
|
||||
var timestring2 = "{!! date('m/d/Y') !!}";
|
||||
$('#datepicker4').datetimepicker({
|
||||
@@ -198,7 +167,7 @@ class="active"
|
||||
{!! Form::text('end_date',null,['class'=>'form-control','id'=>'datetimepicker3'])!!}
|
||||
</div>
|
||||
<script type="text/javascript">
|
||||
$(function() {
|
||||
$(function () {
|
||||
var timestring1 = "{!! $start_date !!}";
|
||||
var timestring2 = "{!! date('m/d/Y') !!}";
|
||||
$('#datetimepicker3').datetimepicker({
|
||||
@@ -218,12 +187,12 @@ class="active"
|
||||
<div class="col-sm-2" style="margin-bottom:-20px;">
|
||||
<label class="lead">{!! Lang::get('lang.Legend') !!}:</label>
|
||||
</div>
|
||||
<style>
|
||||
#legend-holder { border: 1px solid #ccc; float: left; width: 25px; height: 25px; margin: 1px; }
|
||||
</style>
|
||||
<div class="col-md-3"><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-3"><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-3"><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>
|
||||
<style>
|
||||
#legend-holder { border: 1px solid #ccc; float: left; width: 25px; height: 25px; margin: 1px; }
|
||||
</style>
|
||||
<div class="col-md-3"><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-3"><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-3"><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>
|
||||
</form>
|
||||
@@ -239,28 +208,34 @@ class="active"
|
||||
</div>
|
||||
<div class="box-body">
|
||||
<table class="table table-hover table-bordered">
|
||||
<tr>
|
||||
<th>{!! Lang::get('lang.department') !!}</th>
|
||||
<th>{!! Lang::get('lang.opened') !!}</th>
|
||||
<th>{!! Lang::get('lang.resolved') !!}</th>
|
||||
<th>{!! Lang::get('lang.closed') !!}</th>
|
||||
<th>{!! Lang::get('lang.deleted') !!}</th>
|
||||
</tr>
|
||||
|
||||
<?php $departments = App\Model\helpdesk\Agent\Department::all(); ?>
|
||||
@foreach($departments as $department)
|
||||
<?php
|
||||
$open = App\Model\helpdesk\Ticket\Tickets::where('dept_id', '=', $department->id)->where('status', '=', 1)->count();
|
||||
$resolve = App\Model\helpdesk\Ticket\Tickets::where('dept_id', '=', $department->id)->where('status', '=', 2)->count();
|
||||
$close = App\Model\helpdesk\Ticket\Tickets::where('dept_id', '=', $department->id)->where('status', '=', 3)->count();
|
||||
$delete = App\Model\helpdesk\Ticket\Tickets::where('dept_id', '=', $department->id)->where('status', '=', 5)->count();
|
||||
// dd($department);
|
||||
$flattened = $department->flatMap(function ($values) {
|
||||
return $values->keyBy('status');
|
||||
});
|
||||
$statuses = $flattened->keys();
|
||||
?>
|
||||
<tr>
|
||||
<td>{!! $department->name !!}</td>
|
||||
<td>{!! $open !!}</td>
|
||||
<td>{!! $resolve !!}</td>
|
||||
<td>{!! $close !!}</td>
|
||||
<td>{!! $delete !!}</td>
|
||||
<th>Department</th>
|
||||
@forelse($statuses as $status)
|
||||
<th>{!! $status !!}</th>
|
||||
@empty
|
||||
|
||||
@endforelse
|
||||
|
||||
</tr>
|
||||
@foreach($department as $name=>$dept)
|
||||
<tr>
|
||||
<td>{!! $name !!}</td>
|
||||
@forelse($statuses as $status)
|
||||
@if($dept->get($status))
|
||||
<th>{!! $dept->get($status)->count !!}</th>
|
||||
@else
|
||||
<th></th>
|
||||
@endif
|
||||
@empty
|
||||
|
||||
@endforelse
|
||||
</tr>
|
||||
@endforeach
|
||||
</table>
|
||||
@@ -271,8 +246,8 @@ class="active"
|
||||
</div>
|
||||
<script src="{{asset("lb-faveo/plugins/chartjs/Chart.min.js")}}" type="text/javascript"></script>
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function() {
|
||||
$.getJSON("agen", function(result) {
|
||||
$(document).ready(function () {
|
||||
$.getJSON("agen", function (result) {
|
||||
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++) {
|
||||
@@ -365,10 +340,10 @@ class="active"
|
||||
});
|
||||
document.getElementById("legendDiv").innerHTML = myLineChart.generateLegend();
|
||||
});
|
||||
$('#click me').click(function() {
|
||||
$('#click me').click(function () {
|
||||
$('#foo').submit();
|
||||
});
|
||||
$('#foo').submit(function(event) {
|
||||
$('#foo').submit(function (event) {
|
||||
// get the form data
|
||||
// there are many ways to get this data using jQuery (you can use the class or id also)
|
||||
var date1 = $('#datepicker4').val();
|
||||
@@ -383,7 +358,7 @@ class="active"
|
||||
data: formData, // our data object
|
||||
dataType: 'json', // what type of data do we expect back from the server
|
||||
|
||||
success: function(result2) {
|
||||
success: function (result2) {
|
||||
// $.getJSON("agen", function (result) {
|
||||
var labels = [], open = [], closed = [], reopened = [], open_total = 0, closed_total = 0, reopened_total = 0;
|
||||
//,data2=[],data3=[],data4=[];
|
||||
@@ -535,16 +510,16 @@ class="active"
|
||||
});
|
||||
</script>
|
||||
<script type="text/javascript">
|
||||
jQuery(document).ready(function() {
|
||||
jQuery(document).ready(function () {
|
||||
// Close a ticket
|
||||
$('#close').on('click', function(e) {
|
||||
$('#close').on('click', function (e) {
|
||||
$.ajax({
|
||||
type: "GET",
|
||||
url: "agen",
|
||||
beforeSend: function() {
|
||||
beforeSend: function () {
|
||||
|
||||
},
|
||||
success: function(response) {
|
||||
success: function (response) {
|
||||
|
||||
}
|
||||
})
|
||||
|
@@ -0,0 +1,557 @@
|
||||
@extends('themes.default1.agent.layout.agent')
|
||||
|
||||
@section('Dashboard')
|
||||
class="active"
|
||||
@stop
|
||||
|
||||
@section('dashboard-bar')
|
||||
active
|
||||
@stop
|
||||
|
||||
@section('PageHeader')
|
||||
<h1>{!! Lang::get('lang.dashboard_reports') !!}</h1>
|
||||
@stop
|
||||
|
||||
@section('dashboard')
|
||||
class="active"
|
||||
@stop
|
||||
|
||||
@section('content')
|
||||
<!-- check whether success or not -->
|
||||
{{-- Success message --}}
|
||||
@if(Session::has('success'))
|
||||
<div class="alert alert-success alert-dismissable">
|
||||
<i class="fa fa-check-circle"></i>
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
{{Session::get('success')}}
|
||||
</div>
|
||||
@endif
|
||||
{{-- failure message --}}
|
||||
@if(Session::has('fails'))
|
||||
<div class="alert alert-danger alert-dismissable">
|
||||
<i class="fa fa-ban"></i>
|
||||
<b>{!! Lang::get('lang.alert') !!}!</b>
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
{{Session::get('fails')}}
|
||||
</div>
|
||||
@endif
|
||||
<link type="text/css" href="{{asset("lb-faveo/css/bootstrap-datetimepicker4.7.14.min.css")}}" rel="stylesheet">
|
||||
{{-- <script src="{{asset("lb-faveo/dist/js/bootstrap-datetimepicker4.7.14.min.js")}}" type="text/javascript"></script> --}}
|
||||
<div class="row">
|
||||
<?php
|
||||
if (Auth::user()->role == 'admin') {
|
||||
//$inbox = App\Model\helpdesk\Ticket\Tickets::all();
|
||||
$myticket = App\Model\helpdesk\Ticket\Tickets::where('assigned_to', Auth::user()->id)->where('status', '1')->get();
|
||||
$unassigned = App\Model\helpdesk\Ticket\Tickets::where('assigned_to', '=', null)->where('status', '=', '1')->get();
|
||||
$tickets = App\Model\helpdesk\Ticket\Tickets::where('status', '1')->get();
|
||||
$deleted = App\Model\helpdesk\Ticket\Tickets::where('status', '5')->get();
|
||||
} elseif (Auth::user()->role == 'agent') {
|
||||
//$inbox = App\Model\helpdesk\Ticket\Tickets::where('dept_id','',Auth::user()->primary_dpt)->get();
|
||||
$myticket = App\Model\helpdesk\Ticket\Tickets::where('assigned_to', Auth::user()->id)->where('status', '1')->get();
|
||||
$unassigned = App\Model\helpdesk\Ticket\Tickets::where('assigned_to', '=', null)->where('status', '=', '1')->where('dept_id', '=', Auth::user()->primary_dpt)->get();
|
||||
$tickets = App\Model\helpdesk\Ticket\Tickets::where('status', '1')->where('dept_id', '=', Auth::user()->primary_dpt)->get();
|
||||
$deleted = App\Model\helpdesk\Ticket\Tickets::where('status', '5')->where('dept_id', '=', Auth::user())->get();
|
||||
}
|
||||
if (Auth::user()->role == 'agent') {
|
||||
$dept = App\Model\helpdesk\Agent\Department::where('id', '=', Auth::user()->primary_dpt)->first();
|
||||
$overdues = App\Model\helpdesk\Ticket\Tickets::where('status', '=', 1)->where('isanswered', '=', 0)->where('dept_id', '=', $dept->id)->orderBy('id', 'DESC')->get();
|
||||
} 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;
|
||||
} else {
|
||||
$j = 0;
|
||||
foreach ($overdues as $overdue) {
|
||||
$sla_plan = App\Model\helpdesk\Manage\Sla_plan::where('id', '=', $overdue->sla)->first();
|
||||
|
||||
$ovadate = $overdue->created_at;
|
||||
$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 {
|
||||
$overdue_ticket = 0;
|
||||
}
|
||||
}
|
||||
?>
|
||||
<?php
|
||||
if (Auth::user()->role == 'admin' || Auth::user()->role == 'agent') {
|
||||
$todaytickets = count(App\Model\helpdesk\Ticket\Tickets::where('status', '=', 1)->whereRaw('date(duedate) = ?', [date('Y-m-d')])->get());
|
||||
} else {
|
||||
$dept = App\Model\helpdesk\Agent\Department::where('id', '=', Auth::user()->primary_dpt)->first();
|
||||
$todaytickets = count(App\Model\helpdesk\Ticket\Tickets::where('status', '=', 1)->whereRaw('date(duedate) = ?', [date('Y-m-d')])->where('dept_id', '=', $dept->id)->get());
|
||||
}
|
||||
?>
|
||||
<div class="col-md-2" style="width:20%;">
|
||||
<a href="{!! route('inbox.ticket') !!}">
|
||||
<div class="info-box">
|
||||
<span class="info-box-icon bg-aqua"><i class="fa fa-envelope-o"></i></span>
|
||||
|
||||
<div class="info-box-content">
|
||||
<span class="info-box-text">{!! Lang::get('lang.inbox') !!}</span>
|
||||
<span class="info-box-number"><?php echo count($tickets); ?> <small> {!! Lang::get('lang.tickets') !!}</small>
|
||||
</div>
|
||||
<!-- /.info-box-content -->
|
||||
</div>
|
||||
</a>
|
||||
<!-- /.info-box -->
|
||||
</div>
|
||||
<!-- /.col -->
|
||||
<div class="col-md-2" style="width:20%;">
|
||||
<a href="{!! route('unassigned') !!}">
|
||||
<div class="info-box">
|
||||
<span class="info-box-icon bg-orange"><i class="fa fa-user-times"></i></span>
|
||||
<div class="info-box-content">
|
||||
<span class="info-box-text">{!! Lang::get('lang.unassigned') !!}</span>
|
||||
<span class="info-box-number">{{count($unassigned) }} <small> {!! Lang::get('lang.tickets') !!}</small></span>
|
||||
</div><!-- /.info-box-content -->
|
||||
</div><!-- /.info-box -->
|
||||
</a>
|
||||
<!-- /.info-box -->
|
||||
</div>
|
||||
<!-- /.col -->
|
||||
|
||||
<div class="col-md-2" style="width:20%;" >
|
||||
<a href="{!! route('overdue.ticket') !!}">
|
||||
<div class="info-box">
|
||||
<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">{{ $overdue_ticket }} <small> Tickets</small></span>
|
||||
</div><!-- /.info-box-content -->
|
||||
</div><!-- /.info-box -->
|
||||
</a>
|
||||
</div>
|
||||
|
||||
<div class="col-md-2" style="width:20%;">
|
||||
<a href="{!! route('myticket.ticket') !!}">
|
||||
<div class="info-box">
|
||||
<span class="info-box-icon bg-yellow"><i class="fa fa-user"></i></span>
|
||||
<div class="info-box-content">
|
||||
<span class="info-box-text">{!! Lang::get('lang.my_tickets') !!}</span>
|
||||
<span class="info-box-number">{{count($myticket) }} <small> Tickets</small></span>
|
||||
</div><!-- /.info-box-content -->
|
||||
</div><!-- /.info-box -->
|
||||
</a>
|
||||
</div>
|
||||
<!-- /.col -->
|
||||
<div class="col-md-2" style="width:20%;">
|
||||
<a href="{!! route('ticket.duetoday') !!}">
|
||||
<div class="info-box">
|
||||
<span class="info-box-icon bg-red"><i class="glyphicon glyphicon-eye-open"></i></span>
|
||||
<div class="info-box-content">
|
||||
<span class="info-box-text">{!! Lang::get('lang.duetoday') !!}</span>
|
||||
<span class="info-box-number">{{ $todaytickets }} <small> Tickets</small></span>
|
||||
</div><!-- /.info-box-content -->
|
||||
</div><!-- /.info-box -->
|
||||
</a>
|
||||
<!-- /.info-box -->
|
||||
</div>
|
||||
<!-- /.col -->
|
||||
|
||||
</div>
|
||||
<div class="box box-info">
|
||||
<div class="box-header with-border">
|
||||
<h3 class="box-title">{!! Lang::get('lang.report') !!}</h3>
|
||||
</div>
|
||||
<div class="box-body">
|
||||
<form id="foo">
|
||||
<div class="form-group">
|
||||
<div class="row">
|
||||
<div class='col-sm-2'>
|
||||
{!! Form::label('date', 'Start Date:',['class' => 'lead']) !!}
|
||||
{!! Form::text('start_date',null,['class'=>'form-control','id'=>'datepicker4'])!!}
|
||||
</div>
|
||||
<?php
|
||||
$start_date = App\Model\helpdesk\Ticket\Tickets::where('id', '=', '1')->first();
|
||||
if ($start_date != null) {
|
||||
$created_date = $start_date->created_at;
|
||||
$created_date = explode(' ', $created_date);
|
||||
$created_date = $created_date[0];
|
||||
$start_date = date("m/d/Y", strtotime($created_date . ' -1 months'));
|
||||
} else {
|
||||
$start_date = date("m/d/Y", strtotime(date("m/d/Y") . ' -1 months'));
|
||||
}
|
||||
?>
|
||||
<script type="text/javascript">
|
||||
$(function() {
|
||||
var timestring1 = "{!! $start_date !!}";
|
||||
var timestring2 = "{!! date('m/d/Y') !!}";
|
||||
$('#datepicker4').datetimepicker({
|
||||
format: 'DD/MM/YYYY',
|
||||
minDate: moment(timestring1).startOf('day'),
|
||||
maxDate: moment(timestring2).startOf('day')
|
||||
});
|
||||
// $('#datepicker').datepicker()
|
||||
});
|
||||
</script>
|
||||
<div class='col-sm-2'>
|
||||
{!! Form::label('start_time', 'End Date:' ,['class' => 'lead']) !!}
|
||||
{!! Form::text('end_date',null,['class'=>'form-control','id'=>'datetimepicker3'])!!}
|
||||
</div>
|
||||
<script type="text/javascript">
|
||||
$(function() {
|
||||
var timestring1 = "{!! $start_date !!}";
|
||||
var timestring2 = "{!! date('m/d/Y') !!}";
|
||||
$('#datetimepicker3').datetimepicker({
|
||||
format: 'DD/MM/YYYY',
|
||||
minDate: moment(timestring1).startOf('day'),
|
||||
maxDate: moment(timestring2).startOf('day')
|
||||
});
|
||||
});
|
||||
</script>
|
||||
<div class='col-sm-1'>
|
||||
{!! Form::label('filter', 'Filter:',['class' => 'lead']) !!}<br>
|
||||
<input type="submit" class="btn btn-primary">
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-sm-1"></div>
|
||||
<div class="col-sm-2" style="margin-bottom:-20px;">
|
||||
<label class="lead">{!! Lang::get('lang.Legend') !!}:</label>
|
||||
</div>
|
||||
<style>
|
||||
#legend-holder { border: 1px solid #ccc; float: left; width: 25px; height: 25px; margin: 1px; }
|
||||
</style>
|
||||
<div class="col-md-3"><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-3"><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-3"><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>
|
||||
</form>
|
||||
<!--<div id="legendDiv"></div>-->
|
||||
<div class="chart">
|
||||
<canvas class="chart-data" id="tickets-graph" width="1000" height="250"></canvas>
|
||||
</div>
|
||||
</div><!-- /.box-body -->
|
||||
</div><!-- /.box -->
|
||||
<div class="box">
|
||||
<div class="box-header with-border ">
|
||||
<h1 class="box-title">{!! Lang::get('lang.statistics') !!}</h1>
|
||||
</div>
|
||||
<div class="box-body">
|
||||
<table class="table table-hover table-bordered">
|
||||
<tr>
|
||||
<th>{!! Lang::get('lang.department') !!}</th>
|
||||
<th>{!! Lang::get('lang.opened') !!}</th>
|
||||
<th>{!! Lang::get('lang.resolved') !!}</th>
|
||||
<th>{!! Lang::get('lang.closed') !!}</th>
|
||||
<th>{!! Lang::get('lang.deleted') !!}</th>
|
||||
</tr>
|
||||
|
||||
<?php $departments = App\Model\helpdesk\Agent\Department::all(); ?>
|
||||
@foreach($departments as $department)
|
||||
<?php
|
||||
$open = App\Model\helpdesk\Ticket\Tickets::where('dept_id', '=', $department->id)->where('status', '=', 1)->count();
|
||||
$resolve = App\Model\helpdesk\Ticket\Tickets::where('dept_id', '=', $department->id)->where('status', '=', 2)->count();
|
||||
$close = App\Model\helpdesk\Ticket\Tickets::where('dept_id', '=', $department->id)->where('status', '=', 3)->count();
|
||||
$delete = App\Model\helpdesk\Ticket\Tickets::where('dept_id', '=', $department->id)->where('status', '=', 5)->count();
|
||||
?>
|
||||
<tr>
|
||||
<td>{!! $department->name !!}</td>
|
||||
<td>{!! $open !!}</td>
|
||||
<td>{!! $resolve !!}</td>
|
||||
<td>{!! $close !!}</td>
|
||||
<td>{!! $delete !!}</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
<div id="refresh">
|
||||
<script src="{{asset("lb-faveo/plugins/chartjs/Chart.min.js")}}" type="text/javascript"></script>
|
||||
</div>
|
||||
<script src="{{asset("lb-faveo/plugins/chartjs/Chart.min.js")}}" type="text/javascript"></script>
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function() {
|
||||
$.getJSON("agen", function(result) {
|
||||
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;
|
||||
// labels.push($var12);
|
||||
labels.push(result[i].date);
|
||||
open.push(result[i].open);
|
||||
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,
|
||||
datasets: [
|
||||
{
|
||||
label: "Open Tickets",
|
||||
fillColor: "rgba(93, 189, 255, 0.05)",
|
||||
strokeColor: "rgba(2, 69, 195, 0.9)",
|
||||
pointColor: "rgba(2, 69, 195, 0.9)",
|
||||
pointStrokeColor: "#c1c7d1",
|
||||
pointHighlightFill: "#fff",
|
||||
pointHighlightStroke: "rgba(220,220,220,1)",
|
||||
data: open
|
||||
}
|
||||
, {
|
||||
label: "Closed Tickets",
|
||||
fillColor: "rgba(255, 206, 96, 0.08)",
|
||||
strokeColor: "rgba(221, 129, 0, 0.94)",
|
||||
pointColor: "rgba(221, 129, 0, 0.94)",
|
||||
pointStrokeColor: "rgba(60,141,188,1)",
|
||||
pointHighlightFill: "#fff",
|
||||
pointHighlightStroke: "rgba(60,141,188,1)",
|
||||
data: closed
|
||||
|
||||
}
|
||||
, {
|
||||
label: "Reopened Tickets",
|
||||
fillColor: "rgba(104, 255, 220, 0.06)",
|
||||
strokeColor: "rgba(0, 149, 115, 0.94)",
|
||||
pointColor: "rgba(0, 149, 115, 0.94)",
|
||||
pointStrokeColor: "rgba(60,141,188,1)",
|
||||
pointHighlightFill: "#fff",
|
||||
pointHighlightStroke: "rgba(60,141,188,1)",
|
||||
data: reopened
|
||||
}
|
||||
]
|
||||
};
|
||||
$("#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
|
||||
scaleShowGridLines: true,
|
||||
//String - Colour of the grid lines
|
||||
scaleGridLineColor: "rgba(0,0,0,.05)",
|
||||
//Number - Width of the grid lines
|
||||
scaleGridLineWidth: 1,
|
||||
//Boolean - Whether to show horizontal lines (except X axis)
|
||||
scaleShowHorizontalLines: true,
|
||||
//Boolean - Whether to show vertical lines (except Y axis)
|
||||
scaleShowVerticalLines: true,
|
||||
//Boolean - Whether the line is curved between points
|
||||
bezierCurve: true,
|
||||
//Number - Tension of the bezier curve between points
|
||||
bezierCurveTension: 0.3,
|
||||
//Boolean - Whether to show a dot for each point
|
||||
pointDot: true,
|
||||
//Number - Radius of each point dot in pixels
|
||||
pointDotRadius: 1,
|
||||
//Number - Pixel width of point dot stroke
|
||||
pointDotStrokeWidth: 1,
|
||||
//Number - amount extra to add to the radius to cater for hit detection outside the drawn point
|
||||
pointHitDetectionRadius: 10,
|
||||
//Boolean - Whether to show a stroke for datasets
|
||||
datasetStroke: true,
|
||||
//Number - Pixel width of dataset stroke
|
||||
datasetStrokeWidth: 1,
|
||||
//Boolean - Whether to fill the dataset with a color
|
||||
datasetFill: true,
|
||||
//String - A legend template
|
||||
//Boolean - whether to maintain the starting aspect ratio or not when responsive, if set to false, will take up entire container
|
||||
maintainAspectRatio: true,
|
||||
//Boolean - whether to make the chart responsive to window resizing
|
||||
responsive: true
|
||||
|
||||
});
|
||||
document.getElementById("legendDiv").innerHTML = myLineChart.generateLegend();
|
||||
});
|
||||
$('#click me').click(function() {
|
||||
$('#foo').submit();
|
||||
});
|
||||
$('#foo').submit(function(event) {
|
||||
// get the form data
|
||||
// there are many ways to get this data using jQuery (you can use the class or id also)
|
||||
var date1 = $('#datepicker4').val();
|
||||
var date2 = $('#datetimepicker3').val();
|
||||
var formData = date1.split("/").join('-');
|
||||
var dateData = date2.split("/").join('-');
|
||||
//$('#foo').serialize();
|
||||
// process the form
|
||||
$.ajax({
|
||||
type: 'POST', // define the type of HTTP verb we want to use (POST for our form)
|
||||
url: 'chart-range/' + dateData + '/' + formData, // the url where we want to POST
|
||||
data: formData, // our data object
|
||||
dataType: 'json', // what type of data do we expect back from the server
|
||||
|
||||
success: function(result2) {
|
||||
// $.getJSON("agen", function (result) {
|
||||
var labels = [], open = [], closed = [], reopened = [], open_total = 0, closed_total = 0, reopened_total = 0;
|
||||
//,data2=[],data3=[],data4=[];
|
||||
for (var i = 0; i < result2.length; i++) {
|
||||
// $var12 = result[i].day;
|
||||
// labels.push($var12);
|
||||
labels.push(result2[i].date);
|
||||
open.push(result2[i].open);
|
||||
closed.push(result2[i].closed);
|
||||
reopened.push(result2[i].reopened);
|
||||
// data4.push(result[i].open);
|
||||
open_total += parseInt(result2[i].open);
|
||||
closed_total += parseInt(result2[i].closed);
|
||||
reopened_total += parseInt(result2[i].reopened);
|
||||
}
|
||||
|
||||
var buyerData = {
|
||||
labels: labels,
|
||||
datasets: [
|
||||
{
|
||||
label: "Open Tickets",
|
||||
fillColor: "rgba(93, 189, 255, 0.05)",
|
||||
strokeColor: "rgba(2, 69, 195, 0.9)",
|
||||
pointColor: "rgba(2, 69, 195, 0.9)",
|
||||
pointStrokeColor: "#c1c7d1",
|
||||
pointHighlightFill: "#fff",
|
||||
pointHighlightStroke: "rgba(220,220,220,1)",
|
||||
data: open
|
||||
}
|
||||
, {
|
||||
label: "Closed Tickets",
|
||||
fillColor: "rgba(255, 206, 96, 0.08)",
|
||||
strokeColor: "rgba(221, 129, 0, 0.94)",
|
||||
pointColor: "rgba(221, 129, 0, 0.94)",
|
||||
pointStrokeColor: "rgba(60,141,188,1)",
|
||||
pointHighlightFill: "#fff",
|
||||
pointHighlightStroke: "rgba(60,141,188,1)",
|
||||
data: closed
|
||||
|
||||
}
|
||||
, {
|
||||
label: "Reopened Tickets",
|
||||
fillColor: "rgba(104, 255, 220, 0.06)",
|
||||
strokeColor: "rgba(0, 149, 115, 0.94)",
|
||||
pointColor: "rgba(0, 149, 115, 0.94)",
|
||||
pointStrokeColor: "rgba(60,141,188,1)",
|
||||
pointHighlightFill: "#fff",
|
||||
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
|
||||
scaleShowGridLines: true,
|
||||
//String - Colour of the grid lines
|
||||
scaleGridLineColor: "rgba(0,0,0,.05)",
|
||||
//Number - Width of the grid lines
|
||||
scaleGridLineWidth: 1,
|
||||
//Boolean - Whether to show horizontal lines (except X axis)
|
||||
scaleShowHorizontalLines: true,
|
||||
//Boolean - Whether to show vertical lines (except Y axis)
|
||||
scaleShowVerticalLines: true,
|
||||
//Boolean - Whether the line is curved between points
|
||||
bezierCurve: true,
|
||||
//Number - Tension of the bezier curve between points
|
||||
bezierCurveTension: 0.3,
|
||||
//Boolean - Whether to show a dot for each point
|
||||
pointDot: true,
|
||||
//Number - Radius of each point dot in pixels
|
||||
pointDotRadius: 1,
|
||||
//Number - Pixel width of point dot stroke
|
||||
pointDotStrokeWidth: 1,
|
||||
//Number - amount extra to add to the radius to cater for hit detection outside the drawn point
|
||||
pointHitDetectionRadius: 10,
|
||||
//Boolean - Whether to show a stroke for datasets
|
||||
datasetStroke: true,
|
||||
//Number - Pixel width of dataset stroke
|
||||
datasetStrokeWidth: 1,
|
||||
//Boolean - Whether to fill the dataset with a color
|
||||
datasetFill: true,
|
||||
//String - A legend template
|
||||
//Boolean - whether to maintain the starting aspect ratio or not when responsive, if set to false, will take up entire container
|
||||
maintainAspectRatio: true,
|
||||
//Boolean - whether to make the chart responsive to window resizing
|
||||
responsive: true
|
||||
|
||||
});
|
||||
myLineChart.options.responsive = false;
|
||||
$("#tickets-graph").remove();
|
||||
$(".chart").html("<canvas id='tickets-graph' width='1000' height='250'></canvas>");
|
||||
var myLineChart1 = new Chart(document.getElementById("tickets-graph").getContext("2d")).Line(buyerData, {
|
||||
showScale: true,
|
||||
//Boolean - Whether grid lines are shown across the chart
|
||||
scaleShowGridLines: true,
|
||||
//String - Colour of the grid lines
|
||||
scaleGridLineColor: "rgba(0,0,0,.05)",
|
||||
//Number - Width of the grid lines
|
||||
scaleGridLineWidth: 1,
|
||||
//Boolean - Whether to show horizontal lines (except X axis)
|
||||
scaleShowHorizontalLines: true,
|
||||
//Boolean - Whether to show vertical lines (except Y axis)
|
||||
scaleShowVerticalLines: true,
|
||||
//Boolean - Whether the line is curved between points
|
||||
bezierCurve: true,
|
||||
//Number - Tension of the bezier curve between points
|
||||
bezierCurveTension: 0.3,
|
||||
//Boolean - Whether to show a dot for each point
|
||||
pointDot: true,
|
||||
//Number - Radius of each point dot in pixels
|
||||
pointDotRadius: 1,
|
||||
//Number - Pixel width of point dot stroke
|
||||
pointDotStrokeWidth: 1,
|
||||
//Number - amount extra to add to the radius to cater for hit detection outside the drawn point
|
||||
pointHitDetectionRadius: 10,
|
||||
//Boolean - Whether to show a stroke for datasets
|
||||
datasetStroke: true,
|
||||
//Number - Pixel width of dataset stroke
|
||||
datasetStrokeWidth: 1,
|
||||
//Boolean - Whether to fill the dataset with a color
|
||||
datasetFill: true,
|
||||
//String - A legend template
|
||||
//Boolean - whether to maintain the starting aspect ratio or not when responsive, if set to false, will take up entire container
|
||||
maintainAspectRatio: true,
|
||||
//Boolean - whether to make the chart responsive to window resizing
|
||||
responsive: true
|
||||
});
|
||||
document.getElementById("legendDiv").innerHTML = myLineChart1.generateLegend();
|
||||
}
|
||||
});
|
||||
// using the done promise callback
|
||||
// stop the form from submitting the normal way and refreshing the page
|
||||
event.preventDefault();
|
||||
});
|
||||
});
|
||||
</script>
|
||||
<script type="text/javascript">
|
||||
jQuery(document).ready(function() {
|
||||
// Close a ticket
|
||||
$('#close').on('click', function(e) {
|
||||
$.ajax({
|
||||
type: "GET",
|
||||
url: "agen",
|
||||
beforeSend: function() {
|
||||
|
||||
},
|
||||
success: function(response) {
|
||||
|
||||
}
|
||||
})
|
||||
return false;
|
||||
});
|
||||
});
|
||||
</script>
|
||||
<script src="{{asset("lb-faveo/plugins/moment-develop/moment.js")}}" type="text/javascript"></script>
|
||||
<script src="{{asset("lb-faveo/js/bootstrap-datetimepicker4.7.14.min.js")}}" type="text/javascript"></script>
|
||||
@stop
|
@@ -1,448 +0,0 @@
|
||||
@extends('themes.default1.agent.layout.agent')
|
||||
|
||||
@section('Tickets')
|
||||
class="active"
|
||||
@stop
|
||||
|
||||
@section('ticket-bar')
|
||||
active
|
||||
@stop
|
||||
|
||||
@section('inbox')
|
||||
class="active"
|
||||
@stop
|
||||
|
||||
@section('PageHeader')
|
||||
<h1>{{Lang::get('lang.tickets')}}</h1>
|
||||
@stop
|
||||
|
||||
@section('content')
|
||||
<?php
|
||||
$date_time_format = UTC::getDateTimeFormat();
|
||||
$dept = App\Model\helpdesk\Agent\Department::where('name','=',$id)->first();
|
||||
if(Auth::user()->role == 'agent') {
|
||||
$tickets = App\Model\helpdesk\Ticket\Tickets::where('status','=','2')->where('status','=','3')->where('dept_id','=',$dept->id)->orderBy('id', 'DESC')->paginate(20);
|
||||
} else {
|
||||
$tickets = App\Model\helpdesk\Ticket\Tickets::where('status','=','2')->where('status','=','3')->where('dept_id','=',$dept->id)->orderBy('id', 'DESC')->paginate(20);
|
||||
}
|
||||
?>
|
||||
<!-- Main content -->
|
||||
<div class="box box-primary">
|
||||
<div class="box-header with-border">
|
||||
<h3 class="box-title">{!! $dept->name !!} / {!! Lang::get('lang.closed') !!} </h3> <small id="title_refresh">{!! $tickets->total() !!} {!! Lang::get('lang.tickets') !!}</small>
|
||||
<div class="box-tools pull-right">
|
||||
<div class="has-feedback">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div><!-- /.box-header -->
|
||||
<div class="box-body">
|
||||
@if(Session::has('success'))
|
||||
<div class="alert alert-success alert-dismissable">
|
||||
<i class="fa fa-check-circle"> </i>
|
||||
<b> Success </b>
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
{{Session::get('success')}}
|
||||
</div>
|
||||
@endif
|
||||
<!-- failure message -->
|
||||
@if(Session::has('fails'))
|
||||
<div class="alert alert-danger alert-dismissable">
|
||||
<i class="fa fa-ban"> </i>
|
||||
<b> Fail! </b>
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
{{Session::get('fails')}}
|
||||
</div>
|
||||
@endif
|
||||
{!! Form::open(['id'=>'modalpopup', 'route'=>'select_all','method'=>'post']) !!}
|
||||
<div class="mailbox-controls">
|
||||
<!-- Check all button -->
|
||||
<a class="btn btn-default btn-sm checkbox-toggle"><i class="fa fa-square-o"></i></a>
|
||||
<input type="submit" class="submit btn btn-default text-orange btn-sm" id="delete" name="submit" value="{!! Lang::get('lang.delete') !!}">
|
||||
<input type="submit" class="submit btn btn-default text-blue btn-sm" id="close" name="submit" value="{!! Lang::get('lang.open') !!}">
|
||||
<!-- <button type="button" class="btn btn-sm btn-default text-green" id="Edit_Ticket" data-toggle="modal" data-target="#MergeTickets"><i class="fa fa-code-fork"> </i> {!! Lang::get('lang.merge') !!}</button>
|
||||
--> </div>
|
||||
<p><p/>
|
||||
<div class="mailbox-messages" id="refresh">
|
||||
<p style="display:none;text-align:center; position:fixed; margin-left:40%;margin-top:-70px;" id="show" class="text-red"><b>{!! Lang::get('lang.loading') !!}...</b></p>
|
||||
<!-- table -->
|
||||
{!! Datatable::table()
|
||||
->addColumn(
|
||||
"",
|
||||
Lang::get('lang.subject'),
|
||||
Lang::get('lang.ticket_id'),
|
||||
Lang::get('lang.priority'),
|
||||
Lang::get('lang.from'),
|
||||
Lang::get('lang.assigned_to'),
|
||||
Lang::get('lang.last_activity'))
|
||||
->setUrl(route('get.dept.close', $dept->id))
|
||||
|
||||
->setOrder(array(6=>'desc'))
|
||||
->setClass('table table-hover table-bordered table-striped')
|
||||
->setCallbacks("fnRowCallback",'function( nRow, aData, iDisplayIndex, iDisplayIndexFull ) {
|
||||
var str = aData[3];
|
||||
if(str.search("#000") == -1) {
|
||||
$("td", nRow).css({"background-color":"#F3F3F3", "font-weight":"600", "border-bottom":"solid 0.5px #ddd", "border-right":"solid 0.5px #F3F3F3"});
|
||||
$("td", nRow).mouseenter(function(){
|
||||
$("td", nRow).css({"background-color":"#DEDFE0", "font-weight":"600", "border-bottom":"solid 0.5px #ddd", "border-right":"solid 0.5px #DEDFE0"});
|
||||
});
|
||||
$("td", nRow).mouseleave(function(){
|
||||
$("td", nRow).css({"background-color":"#F3F3F3", "font-weight":"600", "border-bottom":"solid 0.5px #ddd","border-right":"solid 0.5px #F3F3F3"});
|
||||
});
|
||||
} else {
|
||||
$("td", nRow).css({"background-color":"white", "border-bottom":"solid 0.5px #ddd", "border-right":"solid 0.5px white"});
|
||||
$("td", nRow).mouseenter(function(){
|
||||
$("td", nRow).css({"background-color":"#DEDFE0", "border-bottom":"solid 0.5px #ddd", "border-right":"solid 0.5px #DEDFE0"});
|
||||
});
|
||||
$("td", nRow).mouseleave(function(){
|
||||
$("td", nRow).css({"background-color":"white", "border-bottom":"solid 0.5px #ddd", "border-right":"solid 0.5px white"});
|
||||
});
|
||||
}
|
||||
}')
|
||||
->render();!!}
|
||||
|
||||
</div><!-- /.mail-box-messages -->
|
||||
{!! Form::close() !!}
|
||||
</div><!-- /.box-body -->
|
||||
</div><!-- /. box -->
|
||||
|
||||
<!-- merge tickets modal -->
|
||||
<div class="modal fade" id="MergeTickets">
|
||||
<div class="modal-dialog">
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<button type="button" class="close" data-dismiss="modal" id="merge-close" aria-label="Close"><span aria-hidden="true">×</span></button>
|
||||
<h4 class="modal-title">{!! Lang::get('lang.merge-ticket') !!} </h4>
|
||||
</div><!-- /.modal-header-->
|
||||
<div class ="modal-body">
|
||||
<div class="row">
|
||||
<div class="col-md-4">
|
||||
</div>
|
||||
<div class="col-md-6" id="merge_loader" style="display:none;">
|
||||
<img src="{{asset("lb-faveo/media/images/gifloader.gif")}}"><br/><br/><br/>
|
||||
</div><!-- /.merge-loader -->
|
||||
</div>
|
||||
<div id="merge_body">
|
||||
<div id="merge-body-alert">
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div id="merge-succ-alert" class="alert alert-success alert-dismissable" style="display:none;" >
|
||||
<!--<button id="dismiss-merge" type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>-->
|
||||
<h4><i class="icon fa fa-check"></i>Alert!</h4>
|
||||
<div id="message-merge-succ"></div>
|
||||
</div>
|
||||
<div id="merge-err-alert" class="alert alert-danger alert-dismissable" style="display:none;">
|
||||
<!--<button id="dismiss-merge2" type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>-->
|
||||
<h4><i class="icon fa fa-ban"></i>Alert!</h4>
|
||||
<div id="message-merge-err"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div><!-- /.merge-alert -->
|
||||
<div id="merge-body-form">
|
||||
<div class="row">
|
||||
<div class="col-md-6">
|
||||
{!! Form::open(['id'=>'merge-form','method' => 'PATCH'] )!!}
|
||||
<label>{!! Lang::get('lang.title') !!}</label>
|
||||
<input type="text" name='title' class="form-control" value="" placeholder="Optional" />
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<label>{!! Lang::get('lang.select-pparent-ticket') !!}</label>
|
||||
<select class="form-control" id="select-merge-parent" name='p_id' data-placeholder="{!! Lang::get('lang.select_tickets') !!}" style="width: 100%;"><option value=""></option></select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-8">
|
||||
<label>{!! Lang::get('lang.merge-reason') !!}</label>
|
||||
<textarea name="reason" class="form-control"></textarea>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div><!-- mereg-body-form -->
|
||||
</div><!-- merge-body -->
|
||||
</div><!-- /.modal-body -->
|
||||
<div class="modal-footer">
|
||||
<button type="button" class="btn btn-default pull-left" data-dismiss="modal" id="dismis2">{!! Lang::get('lang.close') !!}</button>
|
||||
<input type="submit" id="merge-btn" class="btn btn-primary pull-right" value="{!! Lang::get('lang.merge') !!}"></input>
|
||||
{!! Form::close() !!}
|
||||
</div><!-- /.modal-footer -->
|
||||
</div><!-- /.modal-content -->
|
||||
</div><!-- /.modal-dialog -->
|
||||
</div><!-- /.modal -->
|
||||
|
||||
<!-- Modal -->
|
||||
<div class="modal fade in" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="false" style="display: none; padding-right: 15px;background-color: rgba(0, 0, 0, 0.7);">
|
||||
<div class="modal-dialog" role="document">
|
||||
<div class="col-md-2"></div>
|
||||
<div class="col-md-8">
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<button type="button" class="close closemodal" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
|
||||
<h4 class="modal-title" id="myModalLabel"></h4>
|
||||
</div>
|
||||
<div class="modal-body" id="custom-alert-body" >
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button type="button" class="btn btn-primary pull-left yes" data-dismiss="modal">{{Lang::get('lang.ok')}}</button>
|
||||
<button type="button" class="btn btn-default no">{{Lang::get('lang.cancel')}}</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
<script>
|
||||
var t_id =[];
|
||||
$(function () {
|
||||
//Enable check and uncheck all functionality
|
||||
$(".checkbox-toggle").click(function () {
|
||||
var clicks = $(this).data('clicks');
|
||||
if (clicks) {
|
||||
//Uncheck all checkboxes
|
||||
$(".mailbox-messages input[type='checkbox']").iCheck("uncheck");
|
||||
$(".fa", this).removeClass("fa-check-square-o").addClass('fa-square-o');
|
||||
} else {
|
||||
//Check all checkboxes
|
||||
$(".mailbox-messages input[type='checkbox']").iCheck("check");
|
||||
$(".fa", this).removeClass("fa-square-o").addClass('fa-check-square-o');
|
||||
}
|
||||
$(this).data("clicks", !clicks);
|
||||
});
|
||||
});
|
||||
|
||||
$(function() {
|
||||
// Enable check and uncheck all functionality
|
||||
|
||||
$(".checkbox-toggle").click(function() {
|
||||
var clicks = $(this).data('clicks');
|
||||
if (clicks) {
|
||||
//Uncheck all checkboxes
|
||||
$("input[type='checkbox']", ".mailbox-messages").iCheck("uncheck");
|
||||
// alert($("input[type='checkbox']").val());
|
||||
t_id = $('.selectval').map(function() {
|
||||
return $(this).val();
|
||||
}).get();
|
||||
// alert(checkboxValues);
|
||||
} else {
|
||||
//Check all checkboxes
|
||||
$("input[type='checkbox']", ".mailbox-messages").iCheck("check");
|
||||
// alert('Hallo');
|
||||
t_id = [];
|
||||
}
|
||||
$(this).data("clicks", !clicks);
|
||||
|
||||
});
|
||||
|
||||
|
||||
});
|
||||
|
||||
|
||||
$(document).ready(function() { /// Wait till page is loaded
|
||||
$('#click').click(function() {
|
||||
$('#refresh').load('inbox #refresh');
|
||||
$('#title_refresh').load('inbox #title_refresh');
|
||||
$('#count_refresh').load('inbox #count_refresh');
|
||||
$("#show").show();
|
||||
});
|
||||
|
||||
$(".select2").select2();
|
||||
|
||||
$('#delete').on('click', function(){
|
||||
option = 0;
|
||||
$('#myModalLabel').html("{{Lang::get('lang.delete-tickets')}}");
|
||||
});
|
||||
|
||||
$('#close').on('click', function(){
|
||||
option = 1;
|
||||
$('#myModalLabel').html("{{Lang::get('lang.close-tickets')}}");
|
||||
});
|
||||
|
||||
$("#modalpopup").on('submit', function(e){
|
||||
e.preventDefault();
|
||||
var msg ="{{Lang::get('lang.confirm')}}";
|
||||
var values = getValues();
|
||||
if(values == ""){
|
||||
msg = "{{Lang::get('lang.select-ticket')}}";
|
||||
$('.yes').html("{{Lang::get('lang.ok')}}");
|
||||
$('#myModalLabel').html("{{Lang::get('lang.alert')}}");
|
||||
} else {
|
||||
$('.yes').html("Yes");
|
||||
}
|
||||
$('#custom-alert-body').html(msg);
|
||||
$("#myModal").css("display", "block");
|
||||
});
|
||||
|
||||
$(".closemodal, .no").click(function(){
|
||||
|
||||
$("#myModal").css("display", "none");
|
||||
|
||||
});
|
||||
|
||||
$('.yes').click(function(){
|
||||
var values = getValues();
|
||||
if(values == ""){
|
||||
$("#myModal").css("display", "none");
|
||||
} else {
|
||||
$("#myModal").css("display", "none");
|
||||
$("#modalpopup").unbind('submit');
|
||||
if (option == 0) {
|
||||
//alert('delete');
|
||||
$('#delete').click();
|
||||
} else {
|
||||
//alert('close');
|
||||
$('#close').click();
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
function getValues(){
|
||||
var values = $('.selectval:checked').map(function() {
|
||||
return $(this).val();
|
||||
}).get();
|
||||
return values;
|
||||
}
|
||||
|
||||
|
||||
//checking merging tickets
|
||||
$('#MergeTickets').on('show.bs.modal', function () {
|
||||
|
||||
// alert("hi");
|
||||
$.ajax({
|
||||
type: "GET",
|
||||
url: "{{route('check.merge.tickets',0)}}",
|
||||
dataType: "html",
|
||||
data:{data1: t_id},
|
||||
beforeSend: function() {
|
||||
$("#merge_body").hide();
|
||||
$("#merge_loader").show();
|
||||
},
|
||||
success: function(response) {
|
||||
if(response == 0) {
|
||||
$("#merge_body").show();
|
||||
$("#merge-succ-alert").hide();
|
||||
$("#merge-body-alert").show();
|
||||
$("#merge-body-form").hide();
|
||||
$("#merge_loader").hide();
|
||||
$("#merge-btn").attr('disabled', true);
|
||||
var message = "{{Lang::get('lang.select-tickets-to merge')}}";
|
||||
$("#merge-err-alert").show();
|
||||
$('#message-merge-err').html(message);
|
||||
|
||||
} else if(response == 2) {
|
||||
$("#merge_body").show();
|
||||
$("#merge-succ-alert").hide();
|
||||
$("#merge-body-alert").show();
|
||||
$("#merge-body-form").hide();
|
||||
$("#merge_loader").hide();
|
||||
$("#merge-btn").attr('disabled', true);
|
||||
var message = "{{Lang::get('lang.different-users')}}";
|
||||
$("#merge-err-alert").show();
|
||||
$('#message-merge-err').html(message);
|
||||
} else {
|
||||
|
||||
$("#merge_body").show();
|
||||
$("#merge-body-alert").hide();
|
||||
$("#merge-body-form").show();
|
||||
$("#merge_loader").hide();
|
||||
$("#merge-btn").attr('disabled', false);
|
||||
$("#merge_loader").hide();
|
||||
$.ajax({
|
||||
url: "{{ route('get.merge.tickets',0) }}",
|
||||
dataType: "html",
|
||||
data:{data1: t_id},
|
||||
success: function(data) {
|
||||
|
||||
$('#select-merge-parent').html(data);
|
||||
}
|
||||
// return false;
|
||||
});
|
||||
|
||||
}
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
//submit merging form
|
||||
$('#merge-form').on('submit', function(){
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: "{!! url('merge-tickets/') !!}/"+t_id,
|
||||
dataType: "json",
|
||||
data: $(this).serialize(),
|
||||
beforeSend: function() {
|
||||
$("#merge_body").hide();
|
||||
$("#merge_loader").show();
|
||||
|
||||
},
|
||||
success: function(response) {
|
||||
if(response == 0) {
|
||||
$("#merge_body").show();
|
||||
$("#merge-succ-alert").hide();
|
||||
$("#merge-body-alert").show();
|
||||
$("#merge-body-form").hide();
|
||||
$("#merge_loader").hide();
|
||||
$("#merge-btn").attr('disabled', true);
|
||||
var message = "{{Lang::get('lang.merge-error')}}";
|
||||
$("#merge-err-alert").show();
|
||||
$('#message-merge-err').html(message);
|
||||
|
||||
} else {
|
||||
$("#merge_body").show();
|
||||
$("#merge-err-alert").hide();
|
||||
$("#merge-body-alert").show();
|
||||
$("#merge-body-form").hide();
|
||||
$("#merge_loader").hide();
|
||||
$("#merge-btn").attr('disabled', true);
|
||||
var message = "{{Lang::get('lang.merge-success')}}";
|
||||
$("#merge-succ-alert").show();
|
||||
$('#message-merge-succ').html(message);
|
||||
setInterval(function(){
|
||||
$("#alert11").hide();
|
||||
setTimeout(function() {
|
||||
var link = document.querySelector('#load-open');
|
||||
if(link) {
|
||||
link.click();
|
||||
}
|
||||
}, 500);
|
||||
},2000);
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
})
|
||||
return false;
|
||||
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
function someFunction(id){
|
||||
if(document.getElementById(id).checked) {
|
||||
t_id.push(id);
|
||||
// alert(t_id);
|
||||
} else {
|
||||
var index = t_id.indexOf(id);
|
||||
t_id.splice(index, 1);
|
||||
// alert(t_id);
|
||||
}
|
||||
|
||||
// thisid.push(id);
|
||||
// alert(thisid);
|
||||
// document.getElementById("demo").innerHTML = thisid;
|
||||
|
||||
|
||||
// push.thisid;
|
||||
// alert(thisid);
|
||||
|
||||
// document.getElementByID('demo').innerHTML = thisid;
|
||||
}
|
||||
|
||||
</script>
|
||||
@stop
|
@@ -1,533 +0,0 @@
|
||||
@extends('themes.default1.agent.layout.agent')
|
||||
|
||||
@section('Tickets')
|
||||
class="active"
|
||||
@stop
|
||||
|
||||
@section('ticket-bar')
|
||||
active
|
||||
@stop
|
||||
|
||||
@section('inbox')
|
||||
class="active"
|
||||
@stop
|
||||
|
||||
@section('PageHeader')
|
||||
<h1>{{Lang::get('lang.tickets')}}</h1>
|
||||
@stop
|
||||
|
||||
@section('content')
|
||||
|
||||
<?php
|
||||
$date_time_format = UTC::getDateTimeFormat();
|
||||
$dept = App\Model\helpdesk\Agent\Department::where('name', '=', $id)->first();
|
||||
if (Auth::user()->role == 'agent') {
|
||||
$tickets = App\Model\helpdesk\Ticket\Tickets::where('status', '=', '1')->where('assigned_to', '>', 0)
|
||||
->where('dept_id', '=', $dept->id)->orderBy('id', 'DESC')->count();
|
||||
} else {
|
||||
$tickets = App\Model\helpdesk\Ticket\Tickets::where('status', '=', '1')->where('assigned_to', '>', 0)->where('dept_id', '=', $dept->id)->orderBy('id', 'DESC')->count();
|
||||
}
|
||||
?>
|
||||
<!-- Main content -->
|
||||
<div class="box box-primary">
|
||||
<div class="box-header with-border">
|
||||
<h3 class="box-title">{!! $dept->name !!} / {!! Lang::get('lang.assigned') !!} </h3> <small id="title_refresh">{!! $tickets !!} {!! Lang::get('lang.tickets') !!}</small>
|
||||
<div class="box-tools pull-right">
|
||||
<div class="has-feedback">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div><!-- /.box-header -->
|
||||
<div class="box-body">
|
||||
@if(Session::has('success'))
|
||||
<div class="alert alert-success alert-dismissable">
|
||||
<i class="fa fa-check-circle"> </i>
|
||||
<b> Success </b>
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
{{Session::get('success')}}
|
||||
</div>
|
||||
@endif
|
||||
<!-- failure message -->
|
||||
@if(Session::has('fails'))
|
||||
<div class="alert alert-danger alert-dismissable">
|
||||
<i class="fa fa-ban"> </i>
|
||||
<b> Fail! </b>
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
{{Session::get('fails')}}
|
||||
</div>
|
||||
@endif
|
||||
{!! Form::open(['id'=>'modalpopup', 'route'=>'select_all','method'=>'post']) !!}
|
||||
<div class="mailbox-controls">
|
||||
<!-- Check all button -->
|
||||
<a class="btn btn-default btn-sm checkbox-toggle"><i class="fa fa-square-o"></i></a>
|
||||
<input type="submit" class="submit btn btn-default text-orange btn-sm" id="delete" name="submit" value="{!! Lang::get('lang.delete') !!}">
|
||||
<input type="submit" class="submit btn btn-default text-yellow btn-sm" id="close" name="submit" value="{!! Lang::get('lang.close') !!}">
|
||||
<button type="button" class="btn btn-sm btn-default text-green" id="Edit_Ticket" data-toggle="modal" data-target="#MergeTickets"><i class="fa fa-code-fork"> </i> {!! Lang::get('lang.merge') !!}</button>
|
||||
<button type="button" class="btn btn-sm btn-default" id="assign_Ticket" data-toggle="modal" data-target="#AssignTickets" style="display: none;"><i class="fa fa-hand-o-right"> </i> {!! Lang::get('lang.assign') !!}</button>
|
||||
</div>
|
||||
<p><p/>
|
||||
<div class="mailbox-messages" id="refresh">
|
||||
<p style="display:none;text-align:center; position:fixed; margin-left:40%;margin-top:-70px;" id="show" class="text-red"><b>{!! Lang::get('lang.loading') !!}...</b></p>
|
||||
<!-- table -->
|
||||
{!! Datatable::table()
|
||||
->addColumn(
|
||||
"",
|
||||
Lang::get('lang.subject'),
|
||||
Lang::get('lang.ticket_id'),
|
||||
Lang::get('lang.priority'),
|
||||
Lang::get('lang.from'),
|
||||
Lang::get('lang.assigned_to'),
|
||||
Lang::get('lang.last_activity'))
|
||||
->setUrl(route('get.dept.inprocess', $dept->id))
|
||||
|
||||
->setOrder(array(6=>'desc'))
|
||||
->setClass('table table-hover table-bordered table-striped')
|
||||
->setCallbacks("fnRowCallback",'function( nRow, aData, iDisplayIndex, iDisplayIndexFull ) {
|
||||
var str = aData[3];
|
||||
if(str.search("#000") == -1) {
|
||||
$("td", nRow).css({"background-color":"#F3F3F3", "font-weight":"600", "border-bottom":"solid 0.5px #ddd", "border-right":"solid 0.5px #F3F3F3"});
|
||||
$("td", nRow).mouseenter(function(){
|
||||
$("td", nRow).css({"background-color":"#DEDFE0", "font-weight":"600", "border-bottom":"solid 0.5px #ddd", "border-right":"solid 0.5px #DEDFE0"});
|
||||
});
|
||||
$("td", nRow).mouseleave(function(){
|
||||
$("td", nRow).css({"background-color":"#F3F3F3", "font-weight":"600", "border-bottom":"solid 0.5px #ddd","border-right":"solid 0.5px #F3F3F3"});
|
||||
});
|
||||
} else {
|
||||
$("td", nRow).css({"background-color":"white", "border-bottom":"solid 0.5px #ddd", "border-right":"solid 0.5px white"});
|
||||
$("td", nRow).mouseenter(function(){
|
||||
$("td", nRow).css({"background-color":"#DEDFE0", "border-bottom":"solid 0.5px #ddd", "border-right":"solid 0.5px #DEDFE0"});
|
||||
});
|
||||
$("td", nRow).mouseleave(function(){
|
||||
$("td", nRow).css({"background-color":"white", "border-bottom":"solid 0.5px #ddd", "border-right":"solid 0.5px white"});
|
||||
});
|
||||
}
|
||||
}')
|
||||
->render();!!}
|
||||
|
||||
</div><!-- /.mail-box-messages -->
|
||||
{!! Form::close() !!}
|
||||
</div><!-- /.box-body -->
|
||||
</div><!-- /. box -->
|
||||
<div class="modal fade" id="AssignTickets">
|
||||
<div class="modal-dialog">
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<button type="button" class="close" data-dismiss="modal" id="assign-close" aria-label="Close"><span aria-hidden="true">×</span></button>
|
||||
<h4 class="modal-title">{!! Lang::get('lang.assign-ticket') !!} </h4>
|
||||
</div><!-- /.modal-header-->
|
||||
<div class ="modal-body">
|
||||
<div class="row">
|
||||
<div class="col-md-4">
|
||||
</div>
|
||||
<div class="col-md-6" id="assign_loader" style="display:none;">
|
||||
<img src="{{asset("lb-faveo/media/images/gifloader.gif")}}"><br/><br/><br/>
|
||||
</div><!-- /.merge-loader -->
|
||||
</div>
|
||||
<div id="assign_body">
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
{!! Form::open(['id'=>'assign-form','method' => 'PATCH'] )!!}
|
||||
<label>{!! Lang::get('lang.whome_do_you_want_to_assign_ticket') !!}</label>
|
||||
<select class="form-control" id="select-assign-agent" name="assign_to" data-placeholder="{!! Lang::get('lang.select_agent') !!}" style="width: 100%;"><option value=""></option></select>
|
||||
</div>
|
||||
</div>
|
||||
</div><!-- mereg-body-form -->
|
||||
</div><!-- merge-body -->
|
||||
<div class="modal-footer">
|
||||
<button type="button" class="btn btn-default pull-left" data-dismiss="modal" id="dismis2">{!! Lang::get('lang.close') !!}</button>
|
||||
<input type="submit" id="merge-btn" class="btn btn-primary pull-right" value="{!! Lang::get('lang.assign') !!}"></input>
|
||||
{!! Form::close() !!}
|
||||
</div><!-- /.modal-footer -->
|
||||
</div><!-- /.modal-content -->
|
||||
</div><!-- /.modal-dialog -->
|
||||
</div><!-- /.modal -->
|
||||
<!-- Assign ticket model-->
|
||||
<!-- merge tickets modal -->
|
||||
<div class="modal fade" id="MergeTickets">
|
||||
<div class="modal-dialog">
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<button type="button" class="close" data-dismiss="modal" id="merge-close" aria-label="Close"><span aria-hidden="true">×</span></button>
|
||||
<h4 class="modal-title">{!! Lang::get('lang.merge-ticket') !!} </h4>
|
||||
</div><!-- /.modal-header-->
|
||||
<div class ="modal-body">
|
||||
<div class="row">
|
||||
<div class="col-md-4">
|
||||
</div>
|
||||
<div class="col-md-6" id="merge_loader" style="display:none;">
|
||||
<img src="{{asset("lb-faveo/media/images/gifloader.gif")}}"><br/><br/><br/>
|
||||
</div><!-- /.merge-loader -->
|
||||
</div>
|
||||
<div id="merge_body">
|
||||
<div id="merge-body-alert">
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div id="merge-succ-alert" class="alert alert-success alert-dismissable" style="display:none;" >
|
||||
<!--<button id="dismiss-merge" type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>-->
|
||||
<h4><i class="icon fa fa-check"></i>Alert!</h4>
|
||||
<div id="message-merge-succ"></div>
|
||||
</div>
|
||||
<div id="merge-err-alert" class="alert alert-danger alert-dismissable" style="display:none;">
|
||||
<!--<button id="dismiss-merge2" type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>-->
|
||||
<h4><i class="icon fa fa-ban"></i>Alert!</h4>
|
||||
<div id="message-merge-err"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div><!-- /.merge-alert -->
|
||||
<div id="merge-body-form">
|
||||
<div class="row">
|
||||
<div class="col-md-6">
|
||||
{!! Form::open(['id'=>'merge-form','method' => 'PATCH'] )!!}
|
||||
<label>{!! Lang::get('lang.title') !!}</label>
|
||||
<input type="text" name='title' class="form-control" value="" placeholder="Optional" />
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<label>{!! Lang::get('lang.select-pparent-ticket') !!}</label>
|
||||
<select class="form-control" id="select-merge-parent" name='p_id' data-placeholder="{!! Lang::get('lang.select_tickets') !!}" style="width: 100%;"><option value=""></option></select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-8">
|
||||
<label>{!! Lang::get('lang.merge-reason') !!}</label>
|
||||
<textarea name="reason" class="form-control"></textarea>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div><!-- mereg-body-form -->
|
||||
</div><!-- merge-body -->
|
||||
</div><!-- /.modal-body -->
|
||||
<div class="modal-footer">
|
||||
<button type="button" class="btn btn-default pull-left" data-dismiss="modal" id="dismis2">{!! Lang::get('lang.close') !!}</button>
|
||||
<input type="submit" id="merge-btn" class="btn btn-primary pull-right" value="{!! Lang::get('lang.merge') !!}"></input>
|
||||
{!! Form::close() !!}
|
||||
</div><!-- /.modal-footer -->
|
||||
</div><!-- /.modal-content -->
|
||||
</div><!-- /.modal-dialog -->
|
||||
</div><!-- /.modal -->
|
||||
|
||||
<!-- Modal -->
|
||||
<div class="modal fade in" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="false" style="display: none; padding-right: 15px;background-color: rgba(0, 0, 0, 0.7);">
|
||||
<div class="modal-dialog" role="document">
|
||||
<div class="col-md-2"></div>
|
||||
<div class="col-md-8">
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<button type="button" class="close closemodal" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
|
||||
<h4 class="modal-title" id="myModalLabel"></h4>
|
||||
</div>
|
||||
<div class="modal-body" id="custom-alert-body" >
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button type="button" class="btn btn-primary pull-left yes" data-dismiss="modal">{{Lang::get('lang.ok')}}</button>
|
||||
<button type="button" class="btn btn-default no">{{Lang::get('lang.cancel')}}</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
<script>
|
||||
var t_id =[];
|
||||
$(function () {
|
||||
//Enable check and uncheck all functionality
|
||||
$(".checkbox-toggle").click(function () {
|
||||
var clicks = $(this).data('clicks');
|
||||
if (clicks) {
|
||||
//Uncheck all checkboxes
|
||||
$(".mailbox-messages input[type='checkbox']").iCheck("uncheck");
|
||||
$(".fa", this).removeClass("fa-check-square-o").addClass('fa-square-o');
|
||||
} else {
|
||||
//Check all checkboxes
|
||||
$(".mailbox-messages input[type='checkbox']").iCheck("check");
|
||||
$(".fa", this).removeClass("fa-square-o").addClass('fa-check-square-o');
|
||||
}
|
||||
$(this).data("clicks", !clicks);
|
||||
});
|
||||
});
|
||||
|
||||
$(function() {
|
||||
// Enable check and uncheck all functionality
|
||||
|
||||
$(".checkbox-toggle").click(function() {
|
||||
var clicks = $(this).data('clicks');
|
||||
if (clicks) {
|
||||
//Uncheck all checkboxes
|
||||
$("input[type='checkbox']", ".mailbox-messages").iCheck("uncheck");
|
||||
// alert($("input[type='checkbox']").val());
|
||||
t_id = $('.selectval').map(function() {
|
||||
return $(this).val();
|
||||
}).get();
|
||||
showAssign(t_id);
|
||||
// alert(checkboxValues);
|
||||
} else {
|
||||
//Check all checkboxes
|
||||
$("input[type='checkbox']", ".mailbox-messages").iCheck("check");
|
||||
// alert('Hallo');
|
||||
t_id = [];
|
||||
showAssign(t_id);
|
||||
}
|
||||
$(this).data("clicks", !clicks);
|
||||
|
||||
});
|
||||
|
||||
|
||||
});
|
||||
|
||||
|
||||
$(document).ready(function() { /// Wait till page is loaded
|
||||
$('#click').click(function() {
|
||||
$('#refresh').load('inbox #refresh');
|
||||
$('#title_refresh').load('inbox #title_refresh');
|
||||
$('#count_refresh').load('inbox #count_refresh');
|
||||
$("#show").show();
|
||||
});
|
||||
|
||||
$(".select2").select2();
|
||||
|
||||
$('#delete').on('click', function(){
|
||||
option = 0;
|
||||
$('#myModalLabel').html("{{Lang::get('lang.delete-tickets')}}");
|
||||
});
|
||||
|
||||
$('#close').on('click', function(){
|
||||
option = 1;
|
||||
$('#myModalLabel').html("{{Lang::get('lang.close-tickets')}}");
|
||||
});
|
||||
|
||||
$("#modalpopup").on('submit', function(e){
|
||||
e.preventDefault();
|
||||
var msg ="{{Lang::get('lang.confirm')}}";
|
||||
var values = getValues();
|
||||
if(values == ""){
|
||||
msg = "{{Lang::get('lang.select-ticket')}}";
|
||||
$('.yes').html("{{Lang::get('lang.ok')}}");
|
||||
$('#myModalLabel').html("{{Lang::get('lang.alert')}}");
|
||||
} else {
|
||||
$('.yes').html("Yes");
|
||||
}
|
||||
$('#custom-alert-body').html(msg);
|
||||
$("#myModal").css("display", "block");
|
||||
});
|
||||
|
||||
$(".closemodal, .no").click(function(){
|
||||
|
||||
$("#myModal").css("display", "none");
|
||||
|
||||
});
|
||||
|
||||
$('.yes').click(function(){
|
||||
var values = getValues();
|
||||
if(values == ""){
|
||||
$("#myModal").css("display", "none");
|
||||
} else {
|
||||
$("#myModal").css("display", "none");
|
||||
$("#modalpopup").unbind('submit');
|
||||
if (option == 0) {
|
||||
//alert('delete');
|
||||
$('#delete').click();
|
||||
} else {
|
||||
//alert('close');
|
||||
$('#close').click();
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
function getValues(){
|
||||
var values = $('.selectval:checked').map(function() {
|
||||
return $(this).val();
|
||||
}).get();
|
||||
return values;
|
||||
}
|
||||
|
||||
|
||||
//checking merging tickets
|
||||
$('#MergeTickets').on('show.bs.modal', function () {
|
||||
|
||||
// alert("hi");
|
||||
$.ajax({
|
||||
type: "GET",
|
||||
url: "{{route('check.merge.tickets',0)}}",
|
||||
dataType: "html",
|
||||
data:{data1: t_id},
|
||||
beforeSend: function() {
|
||||
$("#merge_body").hide();
|
||||
$("#merge_loader").show();
|
||||
},
|
||||
success: function(response) {
|
||||
if(response == 0) {
|
||||
$("#merge_body").show();
|
||||
$("#merge-succ-alert").hide();
|
||||
$("#merge-body-alert").show();
|
||||
$("#merge-body-form").hide();
|
||||
$("#merge_loader").hide();
|
||||
$("#merge-btn").attr('disabled', true);
|
||||
var message = "{{Lang::get('lang.select-tickets-to merge')}}";
|
||||
$("#merge-err-alert").show();
|
||||
$('#message-merge-err').html(message);
|
||||
|
||||
} else if(response == 2) {
|
||||
$("#merge_body").show();
|
||||
$("#merge-succ-alert").hide();
|
||||
$("#merge-body-alert").show();
|
||||
$("#merge-body-form").hide();
|
||||
$("#merge_loader").hide();
|
||||
$("#merge-btn").attr('disabled', true);
|
||||
var message = "{{Lang::get('lang.different-users')}}";
|
||||
$("#merge-err-alert").show();
|
||||
$('#message-merge-err').html(message);
|
||||
} else {
|
||||
|
||||
$("#merge_body").show();
|
||||
$("#merge-body-alert").hide();
|
||||
$("#merge-body-form").show();
|
||||
$("#merge_loader").hide();
|
||||
$("#merge-btn").attr('disabled', false);
|
||||
$("#merge_loader").hide();
|
||||
$.ajax({
|
||||
url: "{{ route('get.merge.tickets',0) }}",
|
||||
dataType: "html",
|
||||
data:{data1: t_id},
|
||||
success: function(data) {
|
||||
|
||||
$('#select-merge-parent').html(data);
|
||||
}
|
||||
// return false;
|
||||
});
|
||||
|
||||
}
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
//submit merging form
|
||||
$('#merge-form').on('submit', function(){
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: "{!! url('merge-tickets/') !!}/"+t_id,
|
||||
dataType: "json",
|
||||
data: $(this).serialize(),
|
||||
beforeSend: function() {
|
||||
$("#merge_body").hide();
|
||||
$("#merge_loader").show();
|
||||
|
||||
},
|
||||
success: function(response) {
|
||||
if(response == 0) {
|
||||
$("#merge_body").show();
|
||||
$("#merge-succ-alert").hide();
|
||||
$("#merge-body-alert").show();
|
||||
$("#merge-body-form").hide();
|
||||
$("#merge_loader").hide();
|
||||
$("#merge-btn").attr('disabled', true);
|
||||
var message = "{{Lang::get('lang.merge-error')}}";
|
||||
$("#merge-err-alert").show();
|
||||
$('#message-merge-err').html(message);
|
||||
|
||||
} else {
|
||||
$("#merge_body").show();
|
||||
$("#merge-err-alert").hide();
|
||||
$("#merge-body-alert").show();
|
||||
$("#merge-body-form").hide();
|
||||
$("#merge_loader").hide();
|
||||
$("#merge-btn").attr('disabled', true);
|
||||
var message = "{{Lang::get('lang.merge-success')}}";
|
||||
$("#merge-succ-alert").show();
|
||||
$('#message-merge-succ').html(message);
|
||||
setInterval(function(){
|
||||
$("#alert11").hide();
|
||||
setTimeout(function() {
|
||||
var link = document.querySelector('#load-open');
|
||||
if(link) {
|
||||
link.click();
|
||||
}
|
||||
}, 500);
|
||||
},2000);
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
})
|
||||
return false;
|
||||
|
||||
});
|
||||
$('#AssignTickets').on('show.bs.modal', function() {
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: "{{route('get-agents')}}",
|
||||
dataType: "html",
|
||||
beforeSend: function() {
|
||||
$("#assign_body").hide();
|
||||
$("#assign_loader").show();
|
||||
},
|
||||
success: function(data) {
|
||||
$("#assign_loader").hide();
|
||||
$("#assign_body").show();
|
||||
$('#select-assign-agent').html(data);
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
// Assign a ticket
|
||||
$('#assign-form').on('submit', function() {
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: "../ticket/assign/"+t_id,
|
||||
dataType: "html",
|
||||
data: $(this).serialize(),
|
||||
beforeSend: function() {
|
||||
$("#assign_body").hide();
|
||||
$("#assign_loader").show();
|
||||
},
|
||||
success: function(response) {
|
||||
if (response == 1)
|
||||
{
|
||||
location.reload();
|
||||
var message = "Success!";
|
||||
$("#alert11").show();
|
||||
$('#message-success1').html(message);
|
||||
setInterval(function(){$("#dismiss11").trigger("click"); }, 2000);
|
||||
}
|
||||
$("#assign_body").show();
|
||||
$("#assign_loader").hide();
|
||||
$("#dismis4").trigger("click");
|
||||
}
|
||||
})
|
||||
return false;
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
function someFunction(id) {
|
||||
if (document.getElementById(id).checked) {
|
||||
t_id.push(id);
|
||||
// alert(t_id);
|
||||
} else if(document.getElementById(id).checked === undefined){
|
||||
var index = t_id.indexOf(id);
|
||||
if (index === -1){
|
||||
t_id.push(id);
|
||||
} else{
|
||||
t_id.splice(index, 1);
|
||||
}
|
||||
} else {
|
||||
var index = t_id.indexOf(id);
|
||||
t_id.splice(index, 1);
|
||||
// alert(t_id);
|
||||
}
|
||||
showAssign(t_id);
|
||||
}
|
||||
|
||||
function showAssign(t_id)
|
||||
{
|
||||
if (t_id.length >= 1) {
|
||||
$('#assign_Ticket').css('display', 'inline');
|
||||
} else {
|
||||
$('#assign_Ticket').css('display', 'none');
|
||||
}
|
||||
}
|
||||
</script>
|
||||
@stop
|
@@ -14,33 +14,54 @@ class="active"
|
||||
|
||||
@section('PageHeader')
|
||||
<h1>{{Lang::get('lang.tickets')}}</h1>
|
||||
<style>
|
||||
.tooltip1 {
|
||||
position: relative;
|
||||
/*display: inline-block;*/
|
||||
/*border-bottom: 1px dotted black;*/
|
||||
}
|
||||
|
||||
.tooltip1 .tooltiptext {
|
||||
visibility: hidden;
|
||||
width: 100%;
|
||||
background-color: black;
|
||||
color: #fff;
|
||||
text-align: center;
|
||||
border-radius: 6px;
|
||||
padding: 5px 0;
|
||||
|
||||
/* Position the tooltip */
|
||||
position: absolute;
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
.tooltip1:hover .tooltiptext {
|
||||
visibility: visible;
|
||||
}
|
||||
</style>
|
||||
@stop
|
||||
|
||||
@section('content')
|
||||
<?php
|
||||
$date_time_format = UTC::getDateTimeFormat();
|
||||
$dept = App\Model\helpdesk\Agent\Department::where('name','=',$id)->first();
|
||||
if (Auth::user()->role == 'admin') {
|
||||
$tickets = App\Model\helpdesk\Ticket\Tickets::where('status', '=', 1)->where('isanswered', '=', 0)->where('dept_id', '=', $dept->id)->count();
|
||||
if (Auth::user()->role == 'agent') {
|
||||
$dept = App\Model\helpdesk\Agent\Department::select('id', 'name')->where('id', '=', Auth::user()->primary_dpt)->first();
|
||||
$tickets = App\Model\helpdesk\Ticket\Tickets::whereIn('status', array(1, 7))->where('dept_id', '=', $dept->id)->orderBy('id', 'DESC')->paginate(20);
|
||||
$dept_name = $dept->name;
|
||||
} else {
|
||||
$dept = App\Model\helpdesk\Agent\Department::where('id', '=', Auth::user()->primary_dpt)->first();
|
||||
$tickets = App\Model\helpdesk\Ticket\Tickets::where('status', '=', 1)->where('isanswered', '=', 0)->where('dept_id', '=', $dept->id)->count();
|
||||
$dept_name = \Request::segments()[1];
|
||||
$tickets = App\Model\helpdesk\Ticket\Tickets::whereIn('status', array(1, 7))->orderBy('id', 'DESC')->paginate(20);
|
||||
}
|
||||
?>
|
||||
<!-- Main content -->
|
||||
<div class="box box-primary">
|
||||
<div class="box-header with-border">
|
||||
<h3 class="box-title">{!! $dept->name !!} / {!! Lang::get('lang.open') !!} <small id="title_refresh">{!! $tickets !!} {!! Lang::get('lang.tickets') !!}</small></h3>
|
||||
<div class="box-tools pull-right">
|
||||
<div class="has-feedback">
|
||||
</div>
|
||||
</div>
|
||||
<div class="box-header with-border">
|
||||
<h3 class="box-title">{!! $dept_name !!} / {!! $status !!} </h3> <small id="title_refresh">{!! $tickets->total() !!} {!! Lang::get('lang.tickets') !!}</small>
|
||||
</div><!-- /.box-header -->
|
||||
<div class="box-body">
|
||||
|
||||
<div class="box-body ">
|
||||
@if(Session::has('success'))
|
||||
<div class="alert alert-success alert-dismissable">
|
||||
<i class="fa fa-check-circle"> </i>
|
||||
<b> Success </b>
|
||||
<i class="fa fa-check-circle"> </i>
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
{{Session::get('success')}}
|
||||
</div>
|
||||
@@ -48,130 +69,100 @@ if (Auth::user()->role == 'admin') {
|
||||
<!-- failure message -->
|
||||
@if(Session::has('fails'))
|
||||
<div class="alert alert-danger alert-dismissable">
|
||||
<i class="fa fa-ban"> </i>
|
||||
<b> Fail! </b>
|
||||
<i class="fa fa-ban"> </i> <b> {!! Lang::get('lang.alert') !!}! </b>
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
{{Session::get('fails')}}
|
||||
</div>
|
||||
@endif
|
||||
{!! Form::open(['id'=>'modalpopup', 'route'=>'select_all','method'=>'post']) !!}
|
||||
<div class="mailbox-controls">
|
||||
<!-- Check all button -->
|
||||
<a class="btn btn-default btn-sm checkbox-toggle"><i class="fa fa-square-o"></i></a>
|
||||
<input type="submit" class="submit btn btn-default text-orange btn-sm" id="delete" name="submit" value="{!! Lang::get('lang.delete') !!}">
|
||||
<input type="submit" class="submit btn btn-default text-yellow btn-sm" id="close" name="submit" value="{!! Lang::get('lang.close') !!}">
|
||||
<button type="button" class="btn btn-sm btn-default text-green" id="Edit_Ticket" data-toggle="modal" data-target="#MergeTickets"><i class="fa fa-code-fork"> </i> {!! Lang::get('lang.merge') !!}</button>
|
||||
<button type="button" class="btn btn-sm btn-default" id="assign_Ticket" data-toggle="modal" data-target="#AssignTickets" style="display: none;"><i class="fa fa-hand-o-right"> </i> {!! Lang::get('lang.assign') !!}</button>
|
||||
</div>
|
||||
<p><p/>
|
||||
<div class="mailbox-messages" id="refresh">
|
||||
<p style="display:none;text-align:center; position:fixed; margin-left:40%;margin-top:-70px;" id="show" class="text-red"><b>{!! Lang::get('lang.loading') !!}...</b></p>
|
||||
<!-- table -->
|
||||
{!! Datatable::table()
|
||||
->addColumn(
|
||||
"",
|
||||
Lang::get('lang.subject'),
|
||||
Lang::get('lang.ticket_id'),
|
||||
Lang::get('lang.priority'),
|
||||
Lang::get('lang.from'),
|
||||
Lang::get('lang.assigned_to'),
|
||||
Lang::get('lang.last_activity'))
|
||||
->setUrl(route('get.dept.open', $dept->id))
|
||||
|
||||
->setOrder(array(6=>'desc'))
|
||||
->setClass('table table-hover table-bordered table-striped')
|
||||
->setCallbacks("fnRowCallback",'function( nRow, aData, iDisplayIndex, iDisplayIndexFull ) {
|
||||
var str = aData[3];
|
||||
if(str.search("#000") == -1) {
|
||||
$("td", nRow).css({"background-color":"#F3F3F3", "font-weight":"600", "border-bottom":"solid 0.5px #ddd", "border-right":"solid 0.5px #F3F3F3"});
|
||||
$("td", nRow).mouseenter(function(){
|
||||
$("td", nRow).css({"background-color":"#DEDFE0", "font-weight":"600", "border-bottom":"solid 0.5px #ddd", "border-right":"solid 0.5px #DEDFE0"});
|
||||
});
|
||||
$("td", nRow).mouseleave(function(){
|
||||
$("td", nRow).css({"background-color":"#F3F3F3", "font-weight":"600", "border-bottom":"solid 0.5px #ddd","border-right":"solid 0.5px #F3F3F3"});
|
||||
});
|
||||
} else {
|
||||
$("td", nRow).css({"background-color":"white", "border-bottom":"solid 0.5px #ddd", "border-right":"solid 0.5px white"});
|
||||
$("td", nRow).mouseenter(function(){
|
||||
$("td", nRow).css({"background-color":"#DEDFE0", "border-bottom":"solid 0.5px #ddd", "border-right":"solid 0.5px #DEDFE0"});
|
||||
});
|
||||
$("td", nRow).mouseleave(function(){
|
||||
$("td", nRow).css({"background-color":"white", "border-bottom":"solid 0.5px #ddd", "border-right":"solid 0.5px white"});
|
||||
});
|
||||
}
|
||||
}')
|
||||
->render();!!}
|
||||
|
||||
{!! Form::open(['id'=>'modalpopup', 'route'=>'select_all','method'=>'post']) !!}
|
||||
<!--<div class="mailbox-controls">-->
|
||||
<!-- Check all button -->
|
||||
<a class="btn btn-default btn-sm checkbox-toggle"><i class="fa fa-square-o"></i></a>
|
||||
{{-- <a class="btn btn-default btn-sm" id="click"><i class="fa fa-refresh"></i></a> --}}
|
||||
|
||||
<input type="submit" class="submit btn btn-default text-orange btn-sm" id="delete" name="submit" value="{!! Lang::get('lang.delete') !!}">
|
||||
@if(Auth::user()->role == 'admin')
|
||||
<input type="submit" class="submit btn btn-default text-yellow btn-sm" id="close" name="submit" value="{!! Lang::get('lang.close') !!}">
|
||||
@endif
|
||||
<button type="button" class="btn btn-sm btn-default text-green" id="Edit_Ticket" data-toggle="modal" data-target="#MergeTickets"><i class="fa fa-code-fork"> </i> {!! Lang::get('lang.merge') !!}</button>
|
||||
<button type="button" class="btn btn-sm btn-default" id="assign_Ticket" data-toggle="modal" data-target="#AssignTickets" style="display: none;"><i class="fa fa-hand-o-right"> </i> {!! Lang::get('lang.assign') !!}</button>
|
||||
|
||||
<!--</div>-->
|
||||
<div class="mailbox-messages" id="refresh">
|
||||
<!--datatable-->
|
||||
{!!$table->render('vendor.Chumper.template')!!}
|
||||
|
||||
|
||||
<!-- /.datatable -->
|
||||
</div><!-- /.mail-box-messages -->
|
||||
{!! Form::close() !!}
|
||||
</div><!-- /.box-body -->
|
||||
</div><!-- /. box -->
|
||||
|
||||
<!-- merge tickets modal -->
|
||||
<div class="modal fade" id="MergeTickets">
|
||||
<div class="modal-dialog">
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<button type="button" class="close" data-dismiss="modal" id="merge-close" aria-label="Close"><span aria-hidden="true">×</span></button>
|
||||
<h4 class="modal-title">{!! Lang::get('lang.merge-ticket') !!} </h4>
|
||||
</div><!-- /.modal-header-->
|
||||
<div class ="modal-body">
|
||||
<div class="row">
|
||||
<div class="col-md-4">
|
||||
</div>
|
||||
<div class="col-md-6" id="merge_loader" style="display:none;">
|
||||
<img src="{{asset("lb-faveo/media/images/gifloader.gif")}}"><br/><br/><br/>
|
||||
</div><!-- /.merge-loader -->
|
||||
<div class="modal fade" id="MergeTickets">
|
||||
<div class="modal-dialog">
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<button type="button" class="close" data-dismiss="modal" id="merge-close" aria-label="Close"><span aria-hidden="true">×</span></button>
|
||||
<h4 class="modal-title">{!! Lang::get('lang.merge-ticket') !!} </h4>
|
||||
</div><!-- /.modal-header-->
|
||||
<div class ="modal-body">
|
||||
<div class="row">
|
||||
<div class="col-md-4">
|
||||
</div>
|
||||
<div id="merge_body">
|
||||
<div id="merge-body-alert">
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div id="merge-succ-alert" class="alert alert-success alert-dismissable" style="display:none;" >
|
||||
<!--<button id="dismiss-merge" type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>-->
|
||||
<h4><i class="icon fa fa-check"></i>Alert!</h4>
|
||||
<div id="message-merge-succ"></div>
|
||||
</div>
|
||||
<div id="merge-err-alert" class="alert alert-danger alert-dismissable" style="display:none;">
|
||||
<!--<button id="dismiss-merge2" type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>-->
|
||||
<h4><i class="icon fa fa-ban"></i>Alert!</h4>
|
||||
<div id="message-merge-err"></div>
|
||||
</div>
|
||||
<div class="col-md-6" id="merge_loader" style="display:none;">
|
||||
<img src="{{asset("lb-faveo/media/images/gifloader.gif")}}"><br/><br/><br/>
|
||||
</div><!-- /.merge-loader -->
|
||||
</div>
|
||||
<div id="merge_body">
|
||||
<div id="merge-body-alert">
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div id="merge-succ-alert" class="alert alert-success alert-dismissable" style="display:none;" >
|
||||
<!--<button id="dismiss-merge" type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>-->
|
||||
<h4><i class="icon fa fa-check"></i>{!! Lang::get('lang.alert') !!}!</h4>
|
||||
<div id="message-merge-succ"></div>
|
||||
</div>
|
||||
<div id="merge-err-alert" class="alert alert-danger alert-dismissable" style="display:none;">
|
||||
<!--<button id="dismiss-merge2" type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>-->
|
||||
<h4><i class="icon fa fa-ban"></i>{!! Lang::get('lang.alert') !!}!</h4>
|
||||
<div id="message-merge-err"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div><!-- /.merge-alert -->
|
||||
<div id="merge-body-form">
|
||||
<div class="row">
|
||||
<div class="col-md-6">
|
||||
{!! Form::open(['id'=>'merge-form','method' => 'PATCH'] )!!}
|
||||
<label>{!! Lang::get('lang.title') !!}</label>
|
||||
<input type="text" name='title' class="form-control" value="" placeholder="Optional" />
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<label>{!! Lang::get('lang.select-pparent-ticket') !!}</label>
|
||||
<select class="form-control" id="select-merge-parent" name='p_id' data-placeholder="{!! Lang::get('lang.select_tickets') !!}" style="width: 100%;"><option value=""></option></select>
|
||||
</div>
|
||||
</div>
|
||||
</div><!-- /.merge-alert -->
|
||||
<div id="merge-body-form">
|
||||
<div class="row">
|
||||
<div class="col-md-6">
|
||||
{!! Form::open(['id'=>'merge-form','method' => 'PATCH'] )!!}
|
||||
<label>{!! Lang::get('lang.title') !!}</label>
|
||||
<input type="text" name='title' class="form-control" value="" placeholder="Optional" />
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-8">
|
||||
<label>{!! Lang::get('lang.merge-reason') !!}</label>
|
||||
<textarea name="reason" class="form-control"></textarea>
|
||||
</div>
|
||||
|
||||
<div class="col-md-6">
|
||||
<label>{!! Lang::get('lang.select-pparent-ticket') !!}</label>
|
||||
<select class="form-control" id="select-merge-parent" name='p_id' data-placeholder="{!! Lang::get('lang.select_tickets') !!}" style="width: 100%;"><option value=""></option></select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-md-8">
|
||||
<label>{!! Lang::get('lang.merge-reason') !!}</label>
|
||||
<textarea name="reason" class="form-control"></textarea>
|
||||
</div>
|
||||
</div><!-- mereg-body-form -->
|
||||
</div><!-- merge-body -->
|
||||
</div><!-- /.modal-body -->
|
||||
<div class="modal-footer">
|
||||
<button type="button" class="btn btn-default pull-left" data-dismiss="modal" id="dismis2">{!! Lang::get('lang.close') !!}</button>
|
||||
<input type="submit" id="merge-btn" class="btn btn-primary pull-right" value="{!! Lang::get('lang.merge') !!}"></input>
|
||||
{!! Form::close() !!}
|
||||
</div><!-- /.modal-footer -->
|
||||
</div><!-- /.modal-content -->
|
||||
</div><!-- /.modal-dialog -->
|
||||
</div><!-- /.modal -->
|
||||
|
||||
</div>
|
||||
</div><!-- mereg-body-form -->
|
||||
</div><!-- merge-body -->
|
||||
</div><!-- /.modal-body -->
|
||||
<div class="modal-footer">
|
||||
<button type="button" class="btn btn-default pull-left" data-dismiss="modal" id="dismis2">{!! Lang::get('lang.close') !!}</button>
|
||||
<input type="submit" id="merge-btn" class="btn btn-primary pull-right" value="{!! Lang::get('lang.merge') !!}"></input>
|
||||
{!! Form::close() !!}
|
||||
</div><!-- /.modal-footer -->
|
||||
</div><!-- /.modal-content -->
|
||||
</div><!-- /.modal-dialog -->
|
||||
</div><!-- /.modal -->
|
||||
<!-- Assign ticket model-->
|
||||
<div class="modal fade" id="AssignTickets">
|
||||
<div class="modal-dialog">
|
||||
@@ -207,60 +198,58 @@ if (Auth::user()->role == 'admin') {
|
||||
</div><!-- /.modal-dialog -->
|
||||
</div><!-- /.modal -->
|
||||
<!-- Assign ticket model-->
|
||||
|
||||
<!-- Modal -->
|
||||
<div class="modal fade in" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="false" style="display: none; padding-right: 15px;background-color: rgba(0, 0, 0, 0.7);">
|
||||
<div class="modal-dialog" role="document">
|
||||
<div class="col-md-2"></div>
|
||||
<div class="col-md-8">
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<button type="button" class="close closemodal" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
|
||||
<h4 class="modal-title" id="myModalLabel"></h4>
|
||||
</div>
|
||||
<div class="modal-body" id="custom-alert-body" >
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button type="button" class="btn btn-primary pull-left yes" data-dismiss="modal">{{Lang::get('lang.ok')}}</button>
|
||||
<button type="button" class="btn btn-default no">{{Lang::get('lang.cancel')}}</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="modal fade in" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="false" style="display: none; padding-right: 15px;background-color: rgba(0, 0, 0, 0.7);">
|
||||
<div class="modal-dialog" role="document">
|
||||
<div class="col-md-2"></div>
|
||||
<div class="col-md-8">
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<button type="button" class="close closemodal" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
|
||||
<h4 class="modal-title" id="myModalLabel"></h4>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="modal-body" id="custom-alert-body" >
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button type="button" class="btn btn-primary pull-left yes" data-dismiss="modal">{{Lang::get('lang.ok')}}</button>
|
||||
<button type="button" class="btn btn-default no">{{Lang::get('lang.cancel')}}</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{!! $table->script('vendor.Chumper.ticket-dept-javascript') !!}
|
||||
<script>
|
||||
var t_id =[];
|
||||
|
||||
var t_id = [];
|
||||
var option = null;
|
||||
$(function () {
|
||||
//Enable check and uncheck all functionality
|
||||
$(".checkbox-toggle").click(function () {
|
||||
var clicks = $(this).data('clicks');
|
||||
if (clicks) {
|
||||
//Uncheck all checkboxes
|
||||
//Uncheck all checkboxes
|
||||
$(".mailbox-messages input[type='checkbox']").iCheck("uncheck");
|
||||
$(".fa", this).removeClass("fa-check-square-o").addClass('fa-square-o');
|
||||
} else {
|
||||
//Check all checkboxes
|
||||
$(".mailbox-messages input[type='checkbox']").iCheck("check");
|
||||
$(".fa", this).removeClass("fa-square-o").addClass('fa-check-square-o');
|
||||
}
|
||||
}
|
||||
$(this).data("clicks", !clicks);
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
$(function() {
|
||||
$(function () {
|
||||
// Enable check and uncheck all functionality
|
||||
|
||||
$(".checkbox-toggle").click(function() {
|
||||
$(".checkbox-toggle").click(function () {
|
||||
var clicks = $(this).data('clicks');
|
||||
if (clicks) {
|
||||
//Uncheck all checkboxes
|
||||
$("input[type='checkbox']", ".mailbox-messages").iCheck("uncheck");
|
||||
// alert($("input[type='checkbox']").val());
|
||||
t_id = $('.selectval').map(function() {
|
||||
t_id = $('.selectval').map(function () {
|
||||
return $(this).val();
|
||||
}).get();
|
||||
showAssign(t_id);
|
||||
@@ -280,8 +269,8 @@ if (Auth::user()->role == 'admin') {
|
||||
});
|
||||
|
||||
|
||||
$(document).ready(function() { /// Wait till page is loaded
|
||||
$('#click').click(function() {
|
||||
$(document).ready(function () { /// Wait till page is loaded
|
||||
$('#click').click(function () {
|
||||
$('#refresh').load('inbox #refresh');
|
||||
$('#title_refresh').load('inbox #title_refresh');
|
||||
$('#count_refresh').load('inbox #count_refresh');
|
||||
@@ -290,21 +279,21 @@ if (Auth::user()->role == 'admin') {
|
||||
|
||||
$(".select2").select2();
|
||||
|
||||
$('#delete').on('click', function(){
|
||||
$('#delete').on('click', function () {
|
||||
option = 0;
|
||||
$('#myModalLabel').html("{{Lang::get('lang.delete-tickets')}}");
|
||||
});
|
||||
|
||||
$('#close').on('click', function(){
|
||||
$('#close').on('click', function () {
|
||||
option = 1;
|
||||
$('#myModalLabel').html("{{Lang::get('lang.close-tickets')}}");
|
||||
});
|
||||
|
||||
$("#modalpopup").on('submit', function(e){
|
||||
$("#modalpopup").on('submit', function (e) {
|
||||
e.preventDefault();
|
||||
var msg ="{{Lang::get('lang.confirm')}}";
|
||||
var msg = "{{Lang::get('lang.confirm')}}";
|
||||
var values = getValues();
|
||||
if(values == ""){
|
||||
if (values == "") {
|
||||
msg = "{{Lang::get('lang.select-ticket')}}";
|
||||
$('.yes').html("{{Lang::get('lang.ok')}}");
|
||||
$('#myModalLabel').html("{{Lang::get('lang.alert')}}");
|
||||
@@ -314,16 +303,18 @@ if (Auth::user()->role == 'admin') {
|
||||
$('#custom-alert-body').html(msg);
|
||||
$("#myModal").css("display", "block");
|
||||
});
|
||||
|
||||
$(".closemodal, .no").click(function(){
|
||||
|
||||
$(".closemodal, .no").click(function () {
|
||||
$("#myModal").css("display", "none");
|
||||
|
||||
});
|
||||
|
||||
$('.yes').click(function(){
|
||||
$(".closemodal, .no").click(function () {
|
||||
$("#myModal").css("display", "none");
|
||||
});
|
||||
|
||||
$('.yes').click(function () {
|
||||
var values = getValues();
|
||||
if(values == ""){
|
||||
if (values == "") {
|
||||
$("#myModal").css("display", "none");
|
||||
} else {
|
||||
$("#myModal").css("display", "none");
|
||||
@@ -338,49 +329,48 @@ if (Auth::user()->role == 'admin') {
|
||||
}
|
||||
});
|
||||
|
||||
function getValues(){
|
||||
var values = $('.selectval:checked').map(function() {
|
||||
return $(this).val();
|
||||
}).get();
|
||||
function getValues() {
|
||||
var values = $('.selectval:checked').map(function () {
|
||||
return $(this).val();
|
||||
}).get();
|
||||
return values;
|
||||
}
|
||||
|
||||
|
||||
//checking merging tickets
|
||||
$('#MergeTickets').on('show.bs.modal', function () {
|
||||
|
||||
|
||||
// alert("hi");
|
||||
$.ajax({
|
||||
type: "GET",
|
||||
url: "{{route('check.merge.tickets',0)}}",
|
||||
dataType: "html",
|
||||
data:{data1: t_id},
|
||||
beforeSend: function() {
|
||||
data: {data1: t_id},
|
||||
beforeSend: function () {
|
||||
$("#merge_body").hide();
|
||||
$("#merge_loader").show();
|
||||
},
|
||||
success: function(response) {
|
||||
if(response == 0) {
|
||||
success: function (response) {
|
||||
if (response == 0) {
|
||||
$("#merge_body").show();
|
||||
$("#merge-succ-alert").hide();
|
||||
$("#merge-body-alert").show();
|
||||
$("#merge-body-form").hide();
|
||||
$("#merge_loader").hide();
|
||||
$("#merge-btn").attr('disabled', true);
|
||||
var message = "{{Lang::get('lang.select-tickets-to merge')}}";
|
||||
var message = "{{Lang::get('lang.select-tickets-to merge')}}";
|
||||
$("#merge-err-alert").show();
|
||||
$('#message-merge-err').html(message);
|
||||
$('#message-merge-err').html(message);
|
||||
|
||||
} else if(response == 2) {
|
||||
} else if (response == 2) {
|
||||
$("#merge_body").show();
|
||||
$("#merge-succ-alert").hide();
|
||||
$("#merge-body-alert").show();
|
||||
$("#merge-body-form").hide();
|
||||
$("#merge_loader").hide();
|
||||
$("#merge-btn").attr('disabled', true);
|
||||
var message = "{{Lang::get('lang.different-users')}}";
|
||||
var message = "{{Lang::get('lang.different-users')}}";
|
||||
$("#merge-err-alert").show();
|
||||
$('#message-merge-err').html(message);
|
||||
$('#message-merge-err').html(message);
|
||||
} else {
|
||||
|
||||
$("#merge_body").show();
|
||||
@@ -392,43 +382,39 @@ if (Auth::user()->role == 'admin') {
|
||||
$.ajax({
|
||||
url: "{{ route('get.merge.tickets',0) }}",
|
||||
dataType: "html",
|
||||
data:{data1: t_id},
|
||||
success: function(data) {
|
||||
|
||||
data: {data1: t_id},
|
||||
success: function (data) {
|
||||
$('#select-merge-parent').html(data);
|
||||
}
|
||||
// return false;
|
||||
});
|
||||
|
||||
}
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
//submit merging form
|
||||
$('#merge-form').on('submit', function(){
|
||||
$('#merge-form').on('submit', function () {
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: "{!! url('merge-tickets/') !!}/"+t_id,
|
||||
url: "{!! url('merge-tickets/') !!}/" + t_id,
|
||||
dataType: "json",
|
||||
data: $(this).serialize(),
|
||||
beforeSend: function() {
|
||||
beforeSend: function () {
|
||||
$("#merge_body").hide();
|
||||
$("#merge_loader").show();
|
||||
|
||||
},
|
||||
success: function(response) {
|
||||
if(response == 0) {
|
||||
success: function (response) {
|
||||
if (response == 0) {
|
||||
$("#merge_body").show();
|
||||
$("#merge-succ-alert").hide();
|
||||
$("#merge-body-alert").show();
|
||||
$("#merge-body-form").hide();
|
||||
$("#merge_loader").hide();
|
||||
$("#merge-btn").attr('disabled', true);
|
||||
var message = "{{Lang::get('lang.merge-error')}}";
|
||||
var message = "{{Lang::get('lang.merge-error')}}";
|
||||
$("#merge-err-alert").show();
|
||||
$('#message-merge-err').html(message);
|
||||
|
||||
$('#message-merge-err').html(message);
|
||||
} else {
|
||||
$("#merge_body").show();
|
||||
$("#merge-err-alert").hide();
|
||||
@@ -436,26 +422,19 @@ if (Auth::user()->role == 'admin') {
|
||||
$("#merge-body-form").hide();
|
||||
$("#merge_loader").hide();
|
||||
$("#merge-btn").attr('disabled', true);
|
||||
var message = "{{Lang::get('lang.merge-success')}}";
|
||||
var message = "{{Lang::get('lang.merge-success')}}";
|
||||
$("#merge-succ-alert").show();
|
||||
$('#message-merge-succ').html(message);
|
||||
setInterval(function(){
|
||||
$("#alert11").hide();
|
||||
setTimeout(function() {
|
||||
var link = document.querySelector('#load-open');
|
||||
if(link) {
|
||||
link.click();
|
||||
}
|
||||
}, 500);
|
||||
},2000);
|
||||
|
||||
$('#message-merge-succ').html(message);
|
||||
setTimeout(function () {
|
||||
$("#alert11").hide();
|
||||
location.reload();
|
||||
}, 1000);
|
||||
}
|
||||
|
||||
}
|
||||
})
|
||||
return false;
|
||||
|
||||
});
|
||||
|
||||
$('#AssignTickets').on('show.bs.modal', function() {
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
@@ -500,18 +479,17 @@ if (Auth::user()->role == 'admin') {
|
||||
})
|
||||
return false;
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
function someFunction(id) {
|
||||
if (document.getElementById(id).checked) {
|
||||
t_id.push(id);
|
||||
// alert(t_id);
|
||||
} else if(document.getElementById(id).checked === undefined){
|
||||
} else if (document.getElementById(id).checked === undefined) {
|
||||
var index = t_id.indexOf(id);
|
||||
if (index === -1){
|
||||
if (index === -1) {
|
||||
t_id.push(id);
|
||||
} else{
|
||||
} else {
|
||||
t_id.splice(index, 1);
|
||||
}
|
||||
} else {
|
@@ -121,7 +121,7 @@ class="active"
|
||||
<ul class="dropdown-menu" role="menu">
|
||||
<li><a href="#" id="stop"><input type="checkbox" name="open" id="open"> {!! lang::get('lang.created') !!} {!! lang::get('lang.tickets') !!}</a></li>
|
||||
<li><a href="#" id="stop"><input type="checkbox" name="closed" id="closed"> {!! lang::get('lang.closed') !!} {!! lang::get('lang.tickets') !!}</a></li>
|
||||
<li><a href="#" id="stop"><input type="checkbox" name="reopened" id="reopened"> {!! Lang::get('lang.reopened') !!} {!! lang::get('lang.tickets') !!}</a></li>
|
||||
<li><a href="#" id="stop"><input type="checkbox" name="reopened" id="reopened"> {!! lang::get('lang.reopened') !!} {!! lang::get('lang.tickets') !!}</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
@@ -14,6 +14,31 @@ class="active"
|
||||
|
||||
@section('PageHeader')
|
||||
<h1>{{Lang::get('lang.tickets')}}</h1>
|
||||
<style>
|
||||
.tooltip1 {
|
||||
position: relative;
|
||||
/*display: inline-block;*/
|
||||
/*border-bottom: 1px dotted black;*/
|
||||
}
|
||||
|
||||
.tooltip1 .tooltiptext {
|
||||
visibility: hidden;
|
||||
width: 100%;
|
||||
background-color: black;
|
||||
color: #fff;
|
||||
text-align: center;
|
||||
border-radius: 6px;
|
||||
padding: 5px 0;
|
||||
|
||||
/* Position the tooltip */
|
||||
position: absolute;
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
.tooltip1:hover .tooltiptext {
|
||||
visibility: visible;
|
||||
}
|
||||
</style>
|
||||
@stop
|
||||
|
||||
@section('content')
|
||||
@@ -52,6 +77,7 @@ if (Auth::user()->role == 'agent') {
|
||||
{{Session::get('fails')}}
|
||||
</div>
|
||||
@endif
|
||||
|
||||
{!! Form::open(['id'=>'modalpopup', 'route'=>'select_all','method'=>'post']) !!}
|
||||
<!--<div class="mailbox-controls">-->
|
||||
<!-- Check all button -->
|
||||
@@ -59,46 +85,14 @@ if (Auth::user()->role == 'agent') {
|
||||
<input type="submit" class="submit btn btn-default text-orange btn-sm" id="delete" name="submit" value="{!! Lang::get('lang.delete') !!}">
|
||||
<input type="submit" class="submit btn btn-default text-yellow btn-sm" id="close" name="submit" value="{!! Lang::get('lang.close') !!}">
|
||||
<button type="button" class="btn btn-sm btn-default text-green" id="Edit_Ticket" data-toggle="modal" data-target="#MergeTickets"><i class="fa fa-code-fork"> </i> {!! Lang::get('lang.merge') !!}</button>
|
||||
|
||||
<button type="button" class="btn btn-sm btn-default" id="assign_Ticket" data-toggle="modal" data-target="#AssignTickets" style="display: none;"><i class="fa fa-hand-o-right"> </i> {!! Lang::get('lang.assign') !!}</button>
|
||||
<!--</div>-->
|
||||
<!--</div>-->
|
||||
<p><p/>
|
||||
<div class="mailbox-messages" id="refresh">
|
||||
<p style="display:none;text-align:center; position:fixed; margin-left:40%;margin-top:-70px;" id="show" class="text-red"><b>{!! Lang::get('lang.loading') !!}...</b></p>
|
||||
<!-- table -->
|
||||
{!! Datatable::table()
|
||||
->addColumn(
|
||||
"",
|
||||
Lang::get('lang.subject'),
|
||||
Lang::get('lang.ticket_id'),
|
||||
Lang::get('lang.priority'),
|
||||
Lang::get('lang.from'),
|
||||
Lang::get('lang.assigned_to'),
|
||||
Lang::get('lang.last_activity'))
|
||||
->setUrl(route('get.answered.ticket'))
|
||||
|
||||
->setOrder(array(6=>'desc'))
|
||||
->setClass('table table-hover table-bordered table-striped')
|
||||
->setCallbacks("fnRowCallback",'function( nRow, aData, iDisplayIndex, iDisplayIndexFull ) {
|
||||
var str = aData[3];
|
||||
if(str.search("#000") == -1) {
|
||||
$("td", nRow).css({"background-color":"#F3F3F3", "font-weight":"600", "border-bottom":"solid 0.5px #ddd", "border-right":"solid 0.5px #F3F3F3"});
|
||||
$("td", nRow).mouseenter(function(){
|
||||
$("td", nRow).css({"background-color":"#DEDFE0", "font-weight":"600", "border-bottom":"solid 0.5px #ddd", "border-right":"solid 0.5px #DEDFE0"});
|
||||
});
|
||||
$("td", nRow).mouseleave(function(){
|
||||
$("td", nRow).css({"background-color":"#F3F3F3", "font-weight":"600", "border-bottom":"solid 0.5px #ddd","border-right":"solid 0.5px #F3F3F3"});
|
||||
});
|
||||
} else {
|
||||
$("td", nRow).css({"background-color":"white", "border-bottom":"solid 0.5px #ddd", "border-right":"solid 0.5px white"});
|
||||
$("td", nRow).mouseenter(function(){
|
||||
$("td", nRow).css({"background-color":"#DEDFE0", "border-bottom":"solid 0.5px #ddd", "border-right":"solid 0.5px #DEDFE0"});
|
||||
});
|
||||
$("td", nRow).mouseleave(function(){
|
||||
$("td", nRow).css({"background-color":"white", "border-bottom":"solid 0.5px #ddd", "border-right":"solid 0.5px white"});
|
||||
});
|
||||
}
|
||||
}')
|
||||
->render();!!}
|
||||
{!!$table->render('vendor.Chumper.template')!!}
|
||||
</div><!-- /.mail-box-messages -->
|
||||
{!! Form::close() !!}
|
||||
</div><!-- /.box-body -->
|
||||
@@ -125,12 +119,12 @@ if (Auth::user()->role == 'agent') {
|
||||
<div class="col-md-12">
|
||||
<div id="merge-succ-alert" class="alert alert-success alert-dismissable" style="display:none;" >
|
||||
<!--<button id="dismiss-merge" type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>-->
|
||||
<h4><i class="icon fa fa-check"></i>{!! Lang::get('lang.alert') !!}!</h4>
|
||||
<h4><i class="icon fa fa-check"></i>{!! Lang::get('lag.alert') !!}!</h4>
|
||||
<div id="message-merge-succ"></div>
|
||||
</div>
|
||||
<div id="merge-err-alert" class="alert alert-danger alert-dismissable" style="display:none;">
|
||||
<!--<button id="dismiss-merge2" type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>-->
|
||||
<h4><i class="icon fa fa-ban"></i>{!! Lang::get('lang.alert') !!}!</h4>
|
||||
<h4><i class="icon fa fa-ban"></i>{!! Lang::get('lag.alert') !!}!</h4>
|
||||
<div id="message-merge-err"></div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -165,6 +159,8 @@ if (Auth::user()->role == 'agent') {
|
||||
</div><!-- /.modal-content -->
|
||||
</div><!-- /.modal-dialog -->
|
||||
</div><!-- /.modal -->
|
||||
|
||||
<!-- Assign ticket model-->
|
||||
<div class="modal fade" id="AssignTickets">
|
||||
<div class="modal-dialog">
|
||||
<div class="modal-content">
|
||||
@@ -219,7 +215,7 @@ if (Auth::user()->role == 'agent') {
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{!! $table->script('vendor.Chumper.ticket-javascript') !!}
|
||||
<script>
|
||||
var t_id = [];
|
||||
var option = null;
|
||||
@@ -251,14 +247,14 @@ if (Auth::user()->role == 'agent') {
|
||||
t_id = $('.selectval').map(function() {
|
||||
return $(this).val();
|
||||
}).get();
|
||||
showAssign(t_id);
|
||||
// alert(checkboxValues);
|
||||
showAssign(t_id)
|
||||
} else {
|
||||
//Check all checkboxes
|
||||
$("input[type='checkbox']", ".mailbox-messages").iCheck("check");
|
||||
// alert('Hallo');
|
||||
showAssign(t_id);
|
||||
t_id = [];
|
||||
showAssign(t_id)
|
||||
}
|
||||
$(this).data("clicks", !clicks);
|
||||
});
|
||||
@@ -407,15 +403,10 @@ if (Auth::user()->role == 'agent') {
|
||||
var message = "{{Lang::get('lang.merge-success')}}";
|
||||
$("#merge-succ-alert").show();
|
||||
$('#message-merge-succ').html(message);
|
||||
setInterval(function() {
|
||||
setTimeout(function () {
|
||||
$("#alert11").hide();
|
||||
setTimeout(function() {
|
||||
var link = document.querySelector('#load-answered');
|
||||
if (link) {
|
||||
link.click();
|
||||
}
|
||||
}, 500);
|
||||
}, 2000);
|
||||
location.reload();
|
||||
}, 1000);
|
||||
}
|
||||
}
|
||||
})
|
||||
|
@@ -14,6 +14,31 @@ class="active"
|
||||
|
||||
@section('PageHeader')
|
||||
<h1>{{Lang::get('lang.tickets')}}</h1>
|
||||
<style>
|
||||
.tooltip1 {
|
||||
position: relative;
|
||||
/*display: inline-block;*/
|
||||
/*border-bottom: 1px dotted black;*/
|
||||
}
|
||||
|
||||
.tooltip1 .tooltiptext {
|
||||
visibility: hidden;
|
||||
width: 100%;
|
||||
background-color: black;
|
||||
color: #fff;
|
||||
text-align: center;
|
||||
border-radius: 6px;
|
||||
padding: 5px 0;
|
||||
|
||||
/* Position the tooltip */
|
||||
position: absolute;
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
.tooltip1:hover .tooltiptext {
|
||||
visibility: visible;
|
||||
}
|
||||
</style>
|
||||
@stop
|
||||
|
||||
@section('content')
|
||||
@@ -47,6 +72,7 @@ if (Auth::user()->role == 'agent') {
|
||||
{{Session::get('fails')}}
|
||||
</div>
|
||||
@endif
|
||||
|
||||
{!! Form::open(['id'=>'modalpopup', 'route'=>'select_all','method'=>'post']) !!}
|
||||
<!--<div class="mailbox-controls">-->
|
||||
<!-- Check all button -->
|
||||
@@ -54,47 +80,14 @@ if (Auth::user()->role == 'agent') {
|
||||
<input type="submit" class="submit btn btn-default text-orange btn-sm" id="delete" name="submit" value="{!! Lang::get('lang.delete') !!}">
|
||||
<input type="submit" class="submit btn btn-default text-yellow btn-sm" id="close" name="submit" value="{!! Lang::get('lang.close') !!}">
|
||||
<button type="button" class="btn btn-sm btn-default text-green" id="Edit_Ticket" data-toggle="modal" data-target="#MergeTickets"><i class="fa fa-code-fork"> </i> {!! Lang::get('lang.merge') !!}</button>
|
||||
|
||||
<button type="button" class="btn btn-sm btn-default" id="assign_Ticket" data-toggle="modal" data-target="#AssignTickets" style="display: none;"><i class="fa fa-hand-o-right"> </i> {!! Lang::get('lang.assign') !!}</button>
|
||||
|
||||
<!--</div>-->
|
||||
<p><p/>
|
||||
<div class="mailbox-messages" id="refresh">
|
||||
<p style="display:none;text-align:center; position:fixed; margin-left:40%;margin-top:-70px;" id="show" class="text-red"><b>{!! Lang::get('lang.loading') !!}...</b></p>
|
||||
<!-- table -->
|
||||
{!! Datatable::table()
|
||||
->addColumn(
|
||||
"",
|
||||
Lang::get('lang.subject'),
|
||||
Lang::get('lang.ticket_id'),
|
||||
Lang::get('lang.priority'),
|
||||
Lang::get('lang.from'),
|
||||
Lang::get('lang.assigned_to'),
|
||||
Lang::get('lang.last_activity'))
|
||||
->setUrl(route('get.assigned.ticket'))
|
||||
|
||||
->setOrder(array(6=>'desc'))
|
||||
->setClass('table table-hover table-bordered table-striped')
|
||||
->setCallbacks("fnRowCallback",'function( nRow, aData, iDisplayIndex, iDisplayIndexFull ) {
|
||||
var str = aData[3];
|
||||
if(str.search("#000") == -1) {
|
||||
$("td", nRow).css({"background-color":"#F3F3F3", "font-weight":"600", "border-bottom":"solid 0.5px #ddd", "border-right":"solid 0.5px #F3F3F3"});
|
||||
$("td", nRow).mouseenter(function(){
|
||||
$("td", nRow).css({"background-color":"#DEDFE0", "font-weight":"600", "border-bottom":"solid 0.5px #ddd", "border-right":"solid 0.5px #DEDFE0"});
|
||||
});
|
||||
$("td", nRow).mouseleave(function(){
|
||||
$("td", nRow).css({"background-color":"#F3F3F3", "font-weight":"600", "border-bottom":"solid 0.5px #ddd","border-right":"solid 0.5px #F3F3F3"});
|
||||
});
|
||||
} else {
|
||||
$("td", nRow).css({"background-color":"white", "border-bottom":"solid 0.5px #ddd", "border-right":"solid 0.5px white"});
|
||||
$("td", nRow).mouseenter(function(){
|
||||
$("td", nRow).css({"background-color":"#DEDFE0", "border-bottom":"solid 0.5px #ddd", "border-right":"solid 0.5px #DEDFE0"});
|
||||
});
|
||||
$("td", nRow).mouseleave(function(){
|
||||
$("td", nRow).css({"background-color":"white", "border-bottom":"solid 0.5px #ddd", "border-right":"solid 0.5px white"});
|
||||
});
|
||||
}
|
||||
}')
|
||||
->render();!!}
|
||||
{!!$table->render('vendor.Chumper.template')!!}
|
||||
</div><!-- /.mail-box-messages -->
|
||||
{!! Form::close() !!}
|
||||
</div><!-- /.box-body -->
|
||||
@@ -197,7 +190,7 @@ if (Auth::user()->role == 'agent') {
|
||||
</div><!-- /.modal-content -->
|
||||
</div><!-- /.modal-dialog -->
|
||||
</div><!-- /.modal -->
|
||||
<!-- Assign ticket model-->
|
||||
<!-- Assign ticket model-->
|
||||
<!-- Modal -->
|
||||
<div class="modal fade in" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="false" style="display: none; padding-right: 15px;background-color: rgba(0, 0, 0, 0.7);">
|
||||
<div class="modal-dialog" role="document">
|
||||
@@ -218,7 +211,7 @@ if (Auth::user()->role == 'agent') {
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{!! $table->script('vendor.Chumper.ticket-javascript') !!}
|
||||
|
||||
<script>
|
||||
var t_id = [];
|
||||
@@ -252,16 +245,16 @@ if (Auth::user()->role == 'agent') {
|
||||
t_id = $('.selectval').map(function() {
|
||||
return $(this).val();
|
||||
}).get();
|
||||
showAssign(t_id)
|
||||
// alert(checkboxValues);
|
||||
showAssign(t_id);
|
||||
} else {
|
||||
//Check all checkboxes
|
||||
$("input[type='checkbox']", ".mailbox-messages").iCheck("check");
|
||||
// alert('Hallo');
|
||||
t_id = [];
|
||||
showAssign(t_id)
|
||||
}
|
||||
$(this).data("clicks", !clicks);
|
||||
showAssign(t_id);
|
||||
|
||||
});
|
||||
|
||||
@@ -423,20 +416,16 @@ if (Auth::user()->role == 'agent') {
|
||||
var message = "{{Lang::get('lang.merge-success')}}";
|
||||
$("#merge-succ-alert").show();
|
||||
$('#message-merge-succ').html(message);
|
||||
setInterval(function() {
|
||||
setTimeout(function () {
|
||||
$("#alert11").hide();
|
||||
setTimeout(function() {
|
||||
var link = document.querySelector('#load-assigned');
|
||||
if (link) {
|
||||
link.click();
|
||||
}
|
||||
}, 500);
|
||||
}, 2000);
|
||||
location.reload();
|
||||
}, 1000);
|
||||
}
|
||||
}
|
||||
})
|
||||
return false;
|
||||
});
|
||||
|
||||
$('#AssignTickets').on('show.bs.modal', function() {
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
@@ -481,7 +470,6 @@ if (Auth::user()->role == 'agent') {
|
||||
})
|
||||
return false;
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
function someFunction(id) {
|
||||
|
@@ -14,6 +14,31 @@ class="active"
|
||||
|
||||
@section('PageHeader')
|
||||
<h1>{{Lang::get('lang.tickets')}}</h1>
|
||||
<style>
|
||||
.tooltip1 {
|
||||
position: relative;
|
||||
/*display: inline-block;*/
|
||||
/*border-bottom: 1px dotted black;*/
|
||||
}
|
||||
|
||||
.tooltip1 .tooltiptext {
|
||||
visibility: hidden;
|
||||
width: 100%;
|
||||
background-color: black;
|
||||
color: #fff;
|
||||
text-align: center;
|
||||
border-radius: 6px;
|
||||
padding: 5px 0;
|
||||
|
||||
/* Position the tooltip */
|
||||
position: absolute;
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
.tooltip1:hover .tooltiptext {
|
||||
visibility: visible;
|
||||
}
|
||||
</style>
|
||||
@stop
|
||||
|
||||
@section('content')
|
||||
@@ -47,6 +72,7 @@ if (Auth::user()->role == 'agent') {
|
||||
{{Session::get('fails')}}
|
||||
</div>
|
||||
@endif
|
||||
|
||||
{!! Form::open(['id'=>'modalpopup', 'route'=>'select_all','method'=>'post']) !!}
|
||||
<!--<div class="mailbox-controls">-->
|
||||
<!-- Check all button -->
|
||||
@@ -54,45 +80,14 @@ if (Auth::user()->role == 'agent') {
|
||||
{{-- <a class="btn btn-default btn-sm" id="click"><i class="fa fa-refresh"></i></a> --}}
|
||||
<input type="submit" class="btn btn-default text-orange btn-sm" name="submit" id="delete" value="{!! Lang::get('lang.delete') !!}">
|
||||
<input type="submit" class="btn btn-default text-blue btn-sm" name="submit" id="close" value="{!! Lang::get('lang.open') !!}">
|
||||
|
||||
|
||||
<!--</div>-->
|
||||
<p><p/>
|
||||
<div class="mailbox-messages" id="refresh">
|
||||
<p style="display:none;text-align:center; position:fixed; margin-left:40%;margin-top:-70px;" id="show" class="text-red"><b>{!! Lang::get('lang.loading') !!}...</b></p>
|
||||
<!-- table -->
|
||||
{!! Datatable::table()
|
||||
->addColumn(
|
||||
"",
|
||||
Lang::get('lang.subject'),
|
||||
Lang::get('lang.ticket_id'),
|
||||
Lang::get('lang.priority'),
|
||||
Lang::get('lang.from'),
|
||||
Lang::get('lang.assigned_to'),
|
||||
Lang::get('lang.last_activity'))
|
||||
->setUrl(route('get.closed.ticket'))
|
||||
|
||||
->setOrder(array(6=>'desc'))
|
||||
->setClass('table table-hover table-bordered table-striped')
|
||||
->setCallbacks("fnRowCallback",'function( nRow, aData, iDisplayIndex, iDisplayIndexFull ) {
|
||||
var str = aData[3];
|
||||
if(str.search("#000") == -1) {
|
||||
$("td", nRow).css({"background-color":"#F3F3F3", "font-weight":"600", "border-bottom":"solid 0.5px #ddd", "border-right":"solid 0.5px #F3F3F3"});
|
||||
$("td", nRow).mouseenter(function(){
|
||||
$("td", nRow).css({"background-color":"#DEDFE0", "font-weight":"600", "border-bottom":"solid 0.5px #ddd", "border-right":"solid 0.5px #DEDFE0"});
|
||||
});
|
||||
$("td", nRow).mouseleave(function(){
|
||||
$("td", nRow).css({"background-color":"#F3F3F3", "font-weight":"600", "border-bottom":"solid 0.5px #ddd","border-right":"solid 0.5px #F3F3F3"});
|
||||
});
|
||||
} else {
|
||||
$("td", nRow).css({"background-color":"white", "border-bottom":"solid 0.5px #ddd", "border-right":"solid 0.5px white"});
|
||||
$("td", nRow).mouseenter(function(){
|
||||
$("td", nRow).css({"background-color":"#DEDFE0", "border-bottom":"solid 0.5px #ddd", "border-right":"solid 0.5px #DEDFE0"});
|
||||
});
|
||||
$("td", nRow).mouseleave(function(){
|
||||
$("td", nRow).css({"background-color":"white", "border-bottom":"solid 0.5px #ddd", "border-right":"solid 0.5px white"});
|
||||
});
|
||||
}
|
||||
}')
|
||||
->render();!!}
|
||||
{!!$table->render('vendor.Chumper.template')!!}
|
||||
|
||||
</div><!-- /.mail-box-messages -->
|
||||
{!! Form::close() !!}
|
||||
@@ -121,7 +116,7 @@ if (Auth::user()->role == 'agent') {
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
{!! $table->script('vendor.Chumper.ticket-javascript') !!}
|
||||
<script>
|
||||
var option = null;
|
||||
$(function() {
|
||||
|
@@ -14,11 +14,37 @@ class="active"
|
||||
|
||||
@section('PageHeader')
|
||||
<h1>{{Lang::get('lang.today-due_tickets')}}</h1>
|
||||
<style>
|
||||
.tooltip1 {
|
||||
position: relative;
|
||||
/*display: inline-block;*/
|
||||
/*border-bottom: 1px dotted black;*/
|
||||
}
|
||||
|
||||
.tooltip1 .tooltiptext {
|
||||
visibility: hidden;
|
||||
width: 100%;
|
||||
background-color: black;
|
||||
color: #fff;
|
||||
text-align: center;
|
||||
border-radius: 6px;
|
||||
padding: 5px 0;
|
||||
|
||||
/* Position the tooltip */
|
||||
position: absolute;
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
.tooltip1:hover .tooltiptext {
|
||||
visibility: visible;
|
||||
}
|
||||
</style>
|
||||
@stop
|
||||
|
||||
@section('content')
|
||||
<?php
|
||||
if (Auth::user()->role == 'admin' || user()->role == 'agent') {
|
||||
|
||||
if (Auth::user()->role == 'admin' || Auth::user()->role == 'agent') {
|
||||
$todaytickets = count(App\Model\helpdesk\Ticket\Tickets::where('status', '=', 1)->whereRaw('date(duedate) = ?', [date('Y-m-d')])->get());
|
||||
} else {
|
||||
$dept = App\Model\helpdesk\Agent\Department::where('id', '=', Auth::user()->primary_dpt)->first();
|
||||
@@ -68,47 +94,13 @@ if (Auth::user()->role == 'agent') {
|
||||
<a class="btn btn-default btn-sm checkbox-toggle"><i class="fa fa-square-o"></i></a>
|
||||
<input type="submit" class="submit btn btn-default text-orange btn-sm" id="delete" name="submit" value="{!! Lang::get('lang.delete') !!}">
|
||||
<input type="submit" class="submit btn btn-default text-yellow btn-sm" id="close" name="submit" value="{!! Lang::get('lang.close') !!}">
|
||||
<button type="button" class="btn btn-sm btn-default text-green" id="Edit_Ticket" data-toggle="modal" data-target="#MergeTickets"><i class="fa fa-code-fork"> </i> {!! Lang::get('lang.merge') !!}</button>
|
||||
|
||||
<button type="button" class="btn btn-sm btn-default" id="assign_Ticket" data-toggle="modal" data-target="#AssignTickets" style="display: none;"><i class="fa fa-hand-o-right"> </i> {!! Lang::get('lang.assign') !!}</button>
|
||||
<button type="button" class="btn btn-sm btn-default text-green" id="Edit_Ticket" data-toggle="modal" data-target="#MergeTickets"><i class="fa fa-code-fork"> </i> {!! Lang::get('lang.merge') !!}</button>
|
||||
<!--</div>-->
|
||||
<p><p/>
|
||||
<div class="mailbox-messages" id="refresh">
|
||||
<p style="display:none;text-align:center; position:fixed; margin-left:40%;margin-top:-70px;" id="show" class="text-red"><b>{!! Lang::get('lang.loading') !!}...</b></p>
|
||||
<!-- table -->
|
||||
{!! Datatable::table()
|
||||
->addColumn(
|
||||
"",
|
||||
Lang::get('lang.subject'),
|
||||
Lang::get('lang.ticket_id'),
|
||||
Lang::get('lang.priority'),
|
||||
Lang::get('lang.from'),
|
||||
Lang::get('lang.assigned_to'),
|
||||
Lang::get('lang.last_activity'))
|
||||
->setUrl(route('ticket.post.duetoday'))
|
||||
|
||||
->setOrder(array(6=>'desc'))
|
||||
->setClass('table table-hover table-bordered table-striped')
|
||||
->setCallbacks("fnRowCallback",'function( nRow, aData, iDisplayIndex, iDisplayIndexFull ) {
|
||||
var str = aData[3];
|
||||
if(str.search("#000") == -1) {
|
||||
$("td", nRow).css({"background-color":"#F3F3F3", "font-weight":"600", "border-bottom":"solid 0.5px #ddd", "border-right":"solid 0.5px #F3F3F3"});
|
||||
$("td", nRow).mouseenter(function(){
|
||||
$("td", nRow).css({"background-color":"#DEDFE0", "font-weight":"600", "border-bottom":"solid 0.5px #ddd", "border-right":"solid 0.5px #DEDFE0"});
|
||||
});
|
||||
$("td", nRow).mouseleave(function(){
|
||||
$("td", nRow).css({"background-color":"#F3F3F3", "font-weight":"600", "border-bottom":"solid 0.5px #ddd","border-right":"solid 0.5px #F3F3F3"});
|
||||
});
|
||||
} else {
|
||||
$("td", nRow).css({"background-color":"white", "border-bottom":"solid 0.5px #ddd", "border-right":"solid 0.5px white"});
|
||||
$("td", nRow).mouseenter(function(){
|
||||
$("td", nRow).css({"background-color":"#DEDFE0", "border-bottom":"solid 0.5px #ddd", "border-right":"solid 0.5px #DEDFE0"});
|
||||
});
|
||||
$("td", nRow).mouseleave(function(){
|
||||
$("td", nRow).css({"background-color":"white", "border-bottom":"solid 0.5px #ddd", "border-right":"solid 0.5px white"});
|
||||
});
|
||||
}
|
||||
}')
|
||||
->render();!!}
|
||||
{!!$table->render('vendor.Chumper.template')!!}
|
||||
</div><!-- /.mail-box-messages -->
|
||||
{!! Form::close() !!}
|
||||
</div><!-- /.box-body -->
|
||||
@@ -211,7 +203,7 @@ if (Auth::user()->role == 'agent') {
|
||||
</div><!-- /.modal-content -->
|
||||
</div><!-- /.modal-dialog -->
|
||||
</div><!-- /.modal -->
|
||||
<!-- Assign ticket model-->
|
||||
<!-- Assign ticket model-->
|
||||
<!-- Modal -->
|
||||
<div class="modal fade in" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="false" style="display: none; padding-right: 15px;background-color: rgba(0, 0, 0, 0.7);">
|
||||
<div class="modal-dialog" role="document">
|
||||
@@ -232,7 +224,7 @@ if (Auth::user()->role == 'agent') {
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{!! $table->script('vendor.Chumper.ticket-javascript') !!}
|
||||
<script>
|
||||
var t_id = [];
|
||||
$(function() {
|
||||
@@ -264,14 +256,14 @@ if (Auth::user()->role == 'agent') {
|
||||
t_id = $('.selectval').map(function() {
|
||||
return $(this).val();
|
||||
}).get();
|
||||
showAssign(t_id);
|
||||
showAssign(t_id)
|
||||
// alert(checkboxValues);
|
||||
} else {
|
||||
//Check all checkboxes
|
||||
$("input[type='checkbox']", ".mailbox-messages").iCheck("check");
|
||||
// alert('Hallo');
|
||||
showAssign(t_id)
|
||||
t_id = [];
|
||||
showAssign(t_id);
|
||||
}
|
||||
$(this).data("clicks", !clicks);
|
||||
});
|
||||
@@ -421,20 +413,16 @@ if (Auth::user()->role == 'agent') {
|
||||
var message = "{{Lang::get('lang.merge-success')}}";
|
||||
$("#merge-succ-alert").show();
|
||||
$('#message-merge-succ').html(message);
|
||||
setInterval(function() {
|
||||
setTimeout(function () {
|
||||
$("#alert11").hide();
|
||||
setTimeout(function() {
|
||||
var link = document.querySelector('#load-open');
|
||||
if (link) {
|
||||
link.click();
|
||||
}
|
||||
}, 500);
|
||||
}, 2000);
|
||||
location.reload();
|
||||
}, 1000);
|
||||
}
|
||||
}
|
||||
})
|
||||
return false;
|
||||
});
|
||||
|
||||
$('#AssignTickets').on('show.bs.modal', function() {
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
@@ -456,7 +444,7 @@ if (Auth::user()->role == 'agent') {
|
||||
$('#assign-form').on('submit', function() {
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: "../ticket/assign/"+t_id,
|
||||
url: "ticket/assign/"+t_id,
|
||||
dataType: "html",
|
||||
data: $(this).serialize(),
|
||||
beforeSend: function() {
|
||||
@@ -479,7 +467,6 @@ if (Auth::user()->role == 'agent') {
|
||||
})
|
||||
return false;
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
function someFunction(id) {
|
||||
|
@@ -14,15 +14,40 @@ class="active"
|
||||
|
||||
@section('PageHeader')
|
||||
<h1>{{Lang::get('lang.tickets')}}</h1>
|
||||
<style>
|
||||
.tooltip1 {
|
||||
position: relative;
|
||||
/*display: inline-block;*/
|
||||
/*border-bottom: 1px dotted black;*/
|
||||
}
|
||||
|
||||
.tooltip1 .tooltiptext {
|
||||
visibility: hidden;
|
||||
width: 100%;
|
||||
background-color: black;
|
||||
color: #fff;
|
||||
text-align: center;
|
||||
border-radius: 6px;
|
||||
padding: 5px 0;
|
||||
|
||||
/* Position the tooltip */
|
||||
position: absolute;
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
.tooltip1:hover .tooltiptext {
|
||||
visibility: visible;
|
||||
}
|
||||
</style>
|
||||
@stop
|
||||
@section('content')
|
||||
<?php
|
||||
$date_time_format = UTC::getDateTimeFormat();
|
||||
if (Auth::user()->role == 'agent') {
|
||||
$dept = App\Model\helpdesk\Agent\Department::where('id', '=', Auth::user()->primary_dpt)->first();
|
||||
$tickets = App\Model\helpdesk\Ticket\Tickets::whereIn('status', array(1, 7))->where('dept_id', '=', $dept->id)->orderBy('id', 'DESC')->paginate(20);
|
||||
$tickets = App\Model\helpdesk\Ticket\Tickets::whereIn('status', array(1, 7))->where('dept_id', '=', $dept->id)->orderBy('id', 'DESC')->paginate(20);
|
||||
} else {
|
||||
$tickets = App\Model\helpdesk\Ticket\Tickets::whereIn('status', array(1, 7))->orderBy('id', 'DESC')->paginate(20);
|
||||
$tickets = App\Model\helpdesk\Ticket\Tickets::whereIn('status', array(1, 7))->orderBy('id', 'DESC')->paginate(20);
|
||||
}
|
||||
?>
|
||||
<!-- Main content -->
|
||||
@@ -49,54 +74,24 @@ if (Auth::user()->role == 'agent') {
|
||||
@endif
|
||||
{!! Form::open(['id'=>'modalpopup', 'route'=>'select_all','method'=>'post']) !!}
|
||||
<!--<div class="mailbox-controls">-->
|
||||
<!-- Check all button -->
|
||||
<a class="btn btn-default btn-sm checkbox-toggle"><i class="fa fa-square-o"></i></a>
|
||||
{{-- <a class="btn btn-default btn-sm" id="click"><i class="fa fa-refresh"></i></a> --}}
|
||||
|
||||
<input type="submit" class="submit btn btn-default text-orange btn-sm" id="delete" name="submit" value="{!! Lang::get('lang.delete') !!}">
|
||||
{{--@if(Auth::user()->role == 'admin')--}}
|
||||
<input type="submit" class="submit btn btn-default text-yellow btn-sm" id="close" name="submit" value="{!! Lang::get('lang.close') !!}">
|
||||
{{--@endif--}}
|
||||
<button type="button" class="btn btn-sm btn-default text-green" id="Edit_Ticket" data-toggle="modal" data-target="#MergeTickets"><i class="fa fa-code-fork"> </i> {!! Lang::get('lang.merge') !!}</button>
|
||||
<button type="button" class="btn btn-sm btn-default" id="assign_Ticket" data-toggle="modal" data-target="#AssignTickets" style="display: none;"><i class="fa fa-hand-o-right"> </i> {!! Lang::get('lang.assign') !!}</button>
|
||||
<!-- Check all button -->
|
||||
<a class="btn btn-default btn-sm checkbox-toggle"><i class="fa fa-square-o"></i></a>
|
||||
{{-- <a class="btn btn-default btn-sm" id="click"><i class="fa fa-refresh"></i></a> --}}
|
||||
|
||||
<input type="submit" class="submit btn btn-default text-orange btn-sm" id="delete" name="submit" value="{!! Lang::get('lang.delete') !!}">
|
||||
@if(Auth::user()->role == 'admin')
|
||||
<input type="submit" class="submit btn btn-default text-yellow btn-sm" id="close" name="submit" value="{!! Lang::get('lang.close') !!}">
|
||||
@endif
|
||||
<button type="button" class="btn btn-sm btn-default text-green" id="Edit_Ticket" data-toggle="modal" data-target="#MergeTickets"><i class="fa fa-code-fork"> </i> {!! Lang::get('lang.merge') !!}</button>
|
||||
<!--</div>-->
|
||||
|
||||
<button type="button" class="btn btn-sm btn-default" id="assign_Ticket" data-toggle="modal" data-target="#AssignTickets" style="display: none;"><i class="fa fa-hand-o-right"> </i> {!! Lang::get('lang.assign') !!}</button>
|
||||
<p><p/>
|
||||
<div class="mailbox-messages" id="refresh">
|
||||
<!--datatable-->
|
||||
{!! Datatable::table()
|
||||
->addColumn(
|
||||
"",
|
||||
Lang::get('lang.subject'),
|
||||
Lang::get('lang.ticket_id'),
|
||||
Lang::get('lang.priority'),
|
||||
Lang::get('lang.from'),
|
||||
Lang::get('lang.assigned_to'),
|
||||
Lang::get('lang.last_activity'))
|
||||
->setUrl(route('get.inbox.ticket'))
|
||||
{!!$table->render('vendor.Chumper.template')!!}
|
||||
|
||||
|
||||
->setOrder(array(6=>'desc'))
|
||||
->setClass('table table-hover table-bordered table-striped')
|
||||
->setCallbacks("fnCreatedRow", 'function( nRow, aData, iDataIndex ) {
|
||||
var str = aData[3];
|
||||
if(str.search("#000") == -1) {
|
||||
$("td", nRow).css({"background-color":"#F3F3F3", "font-weight":"600", "border-bottom":"solid 0.5px #ddd", "border-right":"solid 0.5px #F3F3F3"});
|
||||
$("td", nRow).mouseenter(function(){
|
||||
$("td", nRow).css({"background-color":"#DEDFE0", "font-weight":"600", "border-bottom":"solid 0.5px #ddd", "border-right":"solid 0.5px #DEDFE0"});
|
||||
});
|
||||
$("td", nRow).mouseleave(function(){
|
||||
$("td", nRow).css({"background-color":"#F3F3F3", "font-weight":"600", "border-bottom":"solid 0.5px #ddd","border-right":"solid 0.5px #F3F3F3"});
|
||||
});
|
||||
} else {
|
||||
$("td", nRow).css({"background-color":"white", "border-bottom":"solid 0.5px #ddd", "border-right":"solid 0.5px white"});
|
||||
$("td", nRow).mouseenter(function(){
|
||||
$("td", nRow).css({"background-color":"#DEDFE0", "border-bottom":"solid 0.5px #ddd", "border-right":"solid 0.5px #DEDFE0"});
|
||||
});
|
||||
$("td", nRow).mouseleave(function(){
|
||||
$("td", nRow).css({"background-color":"white", "border-bottom":"solid 0.5px #ddd", "border-right":"solid 0.5px white"});
|
||||
});
|
||||
}
|
||||
}')
|
||||
->render();!!}
|
||||
<!-- /.datatable -->
|
||||
</div><!-- /.mail-box-messages -->
|
||||
{!! Form::close() !!}
|
||||
@@ -166,7 +161,6 @@ if (Auth::user()->role == 'agent') {
|
||||
</div><!-- /.modal-content -->
|
||||
</div><!-- /.modal-dialog -->
|
||||
</div><!-- /.modal -->
|
||||
|
||||
<!-- Assign ticket model-->
|
||||
<div class="modal fade" id="AssignTickets">
|
||||
<div class="modal-dialog">
|
||||
@@ -201,8 +195,7 @@ if (Auth::user()->role == 'agent') {
|
||||
</div><!-- /.modal-content -->
|
||||
</div><!-- /.modal-dialog -->
|
||||
</div><!-- /.modal -->
|
||||
<!-- Assign ticket model-->
|
||||
|
||||
<!-- Assign ticket model-->
|
||||
<!-- Modal -->
|
||||
<div class="modal fade in" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="false" style="display: none; padding-right: 15px;background-color: rgba(0, 0, 0, 0.7);">
|
||||
<div class="modal-dialog" role="document">
|
||||
@@ -223,14 +216,14 @@ if (Auth::user()->role == 'agent') {
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
{!! $table->script('vendor.Chumper.ticket-javascript') !!}
|
||||
<script>
|
||||
|
||||
var t_id = [];
|
||||
var option = null;
|
||||
$(function() {
|
||||
$(function () {
|
||||
//Enable check and uncheck all functionality
|
||||
$(".checkbox-toggle").click(function() {
|
||||
$(".checkbox-toggle").click(function () {
|
||||
var clicks = $(this).data('clicks');
|
||||
if (clicks) {
|
||||
//Uncheck all checkboxes
|
||||
@@ -245,20 +238,20 @@ if (Auth::user()->role == 'agent') {
|
||||
});
|
||||
});
|
||||
|
||||
$(function() {
|
||||
$(function () {
|
||||
// Enable check and uncheck all functionality
|
||||
|
||||
$(".checkbox-toggle").click(function() {
|
||||
$(".checkbox-toggle").click(function () {
|
||||
var clicks = $(this).data('clicks');
|
||||
if (clicks) {
|
||||
//Uncheck all checkboxes
|
||||
$("input[type='checkbox']", ".mailbox-messages").iCheck("uncheck");
|
||||
// alert($("input[type='checkbox']").val());
|
||||
t_id = $('.selectval').map(function() {
|
||||
t_id = $('.selectval').map(function () {
|
||||
return $(this).val();
|
||||
}).get();
|
||||
// alert(checkboxValues);
|
||||
showAssign(t_id);
|
||||
// alert(checkboxValues);
|
||||
} else {
|
||||
//Check all checkboxes
|
||||
$("input[type='checkbox']", ".mailbox-messages").iCheck("check");
|
||||
@@ -274,8 +267,8 @@ if (Auth::user()->role == 'agent') {
|
||||
});
|
||||
|
||||
|
||||
$(document).ready(function() { /// Wait till page is loaded
|
||||
$('#click').click(function() {
|
||||
$(document).ready(function () { /// Wait till page is loaded
|
||||
$('#click').click(function () {
|
||||
$('#refresh').load('inbox #refresh');
|
||||
$('#title_refresh').load('inbox #title_refresh');
|
||||
$('#count_refresh').load('inbox #count_refresh');
|
||||
@@ -284,17 +277,17 @@ if (Auth::user()->role == 'agent') {
|
||||
|
||||
$(".select2").select2();
|
||||
|
||||
$('#delete').on('click', function() {
|
||||
$('#delete').on('click', function () {
|
||||
option = 0;
|
||||
$('#myModalLabel').html("{{Lang::get('lang.delete-tickets')}}");
|
||||
});
|
||||
|
||||
$('#close').on('click', function() {
|
||||
$('#close').on('click', function () {
|
||||
option = 1;
|
||||
$('#myModalLabel').html("{{Lang::get('lang.close-tickets')}}");
|
||||
});
|
||||
|
||||
$("#modalpopup").on('submit', function(e) {
|
||||
$("#modalpopup").on('submit', function (e) {
|
||||
e.preventDefault();
|
||||
var msg = "{{Lang::get('lang.confirm')}}";
|
||||
var values = getValues();
|
||||
@@ -309,15 +302,15 @@ if (Auth::user()->role == 'agent') {
|
||||
$("#myModal").css("display", "block");
|
||||
});
|
||||
|
||||
$(".closemodal, .no").click(function() {
|
||||
$(".closemodal, .no").click(function () {
|
||||
$("#myModal").css("display", "none");
|
||||
});
|
||||
|
||||
$(".closemodal, .no").click(function() {
|
||||
$(".closemodal, .no").click(function () {
|
||||
$("#myModal").css("display", "none");
|
||||
});
|
||||
|
||||
$('.yes').click(function() {
|
||||
$('.yes').click(function () {
|
||||
var values = getValues();
|
||||
if (values == "") {
|
||||
$("#myModal").css("display", "none");
|
||||
@@ -335,14 +328,14 @@ if (Auth::user()->role == 'agent') {
|
||||
});
|
||||
|
||||
function getValues() {
|
||||
var values = $('.selectval:checked').map(function() {
|
||||
var values = $('.selectval:checked').map(function () {
|
||||
return $(this).val();
|
||||
}).get();
|
||||
return values;
|
||||
}
|
||||
|
||||
//checking merging tickets
|
||||
$('#MergeTickets').on('show.bs.modal', function() {
|
||||
$('#MergeTickets').on('show.bs.modal', function () {
|
||||
|
||||
// alert("hi");
|
||||
$.ajax({
|
||||
@@ -350,11 +343,11 @@ if (Auth::user()->role == 'agent') {
|
||||
url: "{{route('check.merge.tickets',0)}}",
|
||||
dataType: "html",
|
||||
data: {data1: t_id},
|
||||
beforeSend: function() {
|
||||
beforeSend: function () {
|
||||
$("#merge_body").hide();
|
||||
$("#merge_loader").show();
|
||||
},
|
||||
success: function(response) {
|
||||
success: function (response) {
|
||||
if (response == 0) {
|
||||
$("#merge_body").show();
|
||||
$("#merge-succ-alert").hide();
|
||||
@@ -388,7 +381,7 @@ if (Auth::user()->role == 'agent') {
|
||||
url: "{{ route('get.merge.tickets',0) }}",
|
||||
dataType: "html",
|
||||
data: {data1: t_id},
|
||||
success: function(data) {
|
||||
success: function (data) {
|
||||
$('#select-merge-parent').html(data);
|
||||
}
|
||||
// return false;
|
||||
@@ -399,17 +392,17 @@ if (Auth::user()->role == 'agent') {
|
||||
});
|
||||
|
||||
//submit merging form
|
||||
$('#merge-form').on('submit', function() {
|
||||
$('#merge-form').on('submit', function () {
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: "{!! url('merge-tickets/') !!}/" + t_id,
|
||||
dataType: "json",
|
||||
data: $(this).serialize(),
|
||||
beforeSend: function() {
|
||||
beforeSend: function () {
|
||||
$("#merge_body").hide();
|
||||
$("#merge_loader").show();
|
||||
},
|
||||
success: function(response) {
|
||||
success: function (response) {
|
||||
if (response == 0) {
|
||||
$("#merge_body").show();
|
||||
$("#merge-succ-alert").hide();
|
||||
@@ -430,14 +423,9 @@ if (Auth::user()->role == 'agent') {
|
||||
var message = "{{Lang::get('lang.merge-success')}}";
|
||||
$("#merge-succ-alert").show();
|
||||
$('#message-merge-succ').html(message);
|
||||
setInterval(function() {
|
||||
setTimeout(function () {
|
||||
$("#alert11").hide();
|
||||
setTimeout(function() {
|
||||
var link = document.querySelector('#load-inbox');
|
||||
if (link) {
|
||||
link.click();
|
||||
}
|
||||
}, 100);
|
||||
location.reload();
|
||||
}, 1000);
|
||||
}
|
||||
}
|
||||
@@ -489,18 +477,17 @@ if (Auth::user()->role == 'agent') {
|
||||
})
|
||||
return false;
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
function someFunction(id) {
|
||||
if (document.getElementById(id).checked) {
|
||||
t_id.push(id);
|
||||
// alert(t_id);
|
||||
} else if(document.getElementById(id).checked === undefined){
|
||||
} else if (document.getElementById(id).checked === undefined) {
|
||||
var index = t_id.indexOf(id);
|
||||
if (index === -1){
|
||||
if (index === -1) {
|
||||
t_id.push(id);
|
||||
} else{
|
||||
} else {
|
||||
t_id.splice(index, 1);
|
||||
}
|
||||
} else {
|
||||
|
@@ -13,6 +13,31 @@ class="active"
|
||||
@stop
|
||||
@section('PageHeader')
|
||||
<h1>{{Lang::get('lang.tickets')}}</h1>
|
||||
<style>
|
||||
.tooltip1 {
|
||||
position: relative;
|
||||
/*display: inline-block;*/
|
||||
/*border-bottom: 1px dotted black;*/
|
||||
}
|
||||
|
||||
.tooltip1 .tooltiptext {
|
||||
visibility: hidden;
|
||||
width: 100%;
|
||||
background-color: black;
|
||||
color: #fff;
|
||||
text-align: center;
|
||||
border-radius: 6px;
|
||||
padding: 5px 0;
|
||||
|
||||
/* Position the tooltip */
|
||||
position: absolute;
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
.tooltip1:hover .tooltiptext {
|
||||
visibility: visible;
|
||||
}
|
||||
</style>
|
||||
@stop
|
||||
@section('content')
|
||||
<?php
|
||||
@@ -46,7 +71,6 @@ if (Auth::user()->role == 'agent') {
|
||||
{{Session::get('fails')}}
|
||||
</div>
|
||||
@endif
|
||||
|
||||
{!! Form::open(['id'=>'modalpopup', 'route'=>'select_all','method'=>'post']) !!}
|
||||
<!--<div class="mailbox-controls">-->
|
||||
<!-- Check all button -->
|
||||
@@ -55,46 +79,15 @@ if (Auth::user()->role == 'agent') {
|
||||
<input type="submit" class="submit btn btn-default text-orange btn-sm" id="delete" name="submit" value="{!! Lang::get('lang.delete') !!}">
|
||||
<input type="submit" class="submit btn btn-default text-yellow btn-sm" id="close" name="submit" value="{!! Lang::get('lang.close') !!}">
|
||||
<button type="button" class="btn btn-sm btn-default text-green" id="Edit_Ticket" data-toggle="modal" data-target="#MergeTickets"><i class="fa fa-code-fork"> </i> {!! Lang::get('lang.merge') !!}</button>
|
||||
|
||||
<button type="button" class="btn btn-sm btn-default" id="assign_Ticket" data-toggle="modal" data-target="#AssignTickets" style="display: none;"><i class="fa fa-hand-o-right"> </i> {!! Lang::get('lang.assign') !!}</button>
|
||||
|
||||
<!--</div>-->
|
||||
<p><p/>
|
||||
<div class="mailbox-messages" id="refresh">
|
||||
<p style="display:none;text-align:center; position:fixed; margin-left:40%;margin-top:-70px;" id="show" class="text-red"><b>{!! Lang::get('lang.loading') !!}...</b></p>
|
||||
<!-- table -->
|
||||
{!! Datatable::table()
|
||||
->addColumn(
|
||||
"",
|
||||
Lang::get('lang.subject'),
|
||||
Lang::get('lang.ticket_id'),
|
||||
Lang::get('lang.priority'),
|
||||
Lang::get('lang.from'),
|
||||
Lang::get('lang.assigned_to'),
|
||||
Lang::get('lang.last_activity'))
|
||||
->setUrl(route('get.myticket.ticket'))
|
||||
|
||||
->setOrder(array(6=>'desc'))
|
||||
->setClass('table table-hover table-bordered table-striped')
|
||||
->setCallbacks("fnRowCallback",'function( nRow, aData, iDisplayIndex, iDisplayIndexFull ) {
|
||||
var str = aData[3];
|
||||
if(str.search("#000") == -1) {
|
||||
$("td", nRow).css({"background-color":"#F3F3F3", "font-weight":"600", "border-bottom":"solid 0.5px #ddd", "border-right":"solid 0.5px #F3F3F3"});
|
||||
$("td", nRow).mouseenter(function(){
|
||||
$("td", nRow).css({"background-color":"#DEDFE0", "font-weight":"600", "border-bottom":"solid 0.5px #ddd", "border-right":"solid 0.5px #DEDFE0"});
|
||||
});
|
||||
$("td", nRow).mouseleave(function(){
|
||||
$("td", nRow).css({"background-color":"#F3F3F3", "font-weight":"600", "border-bottom":"solid 0.5px #ddd","border-right":"solid 0.5px #F3F3F3"});
|
||||
});
|
||||
} else {
|
||||
$("td", nRow).css({"background-color":"white", "border-bottom":"solid 0.5px #ddd", "border-right":"solid 0.5px white"});
|
||||
$("td", nRow).mouseenter(function(){
|
||||
$("td", nRow).css({"background-color":"#DEDFE0", "border-bottom":"solid 0.5px #ddd", "border-right":"solid 0.5px #DEDFE0"});
|
||||
});
|
||||
$("td", nRow).mouseleave(function(){
|
||||
$("td", nRow).css({"background-color":"white", "border-bottom":"solid 0.5px #ddd", "border-right":"solid 0.5px white"});
|
||||
});
|
||||
}
|
||||
}')
|
||||
->render();!!}
|
||||
{!!$table->render('vendor.Chumper.template')!!}
|
||||
|
||||
</div><!-- /.mail-box-messages -->
|
||||
{!! Form::close() !!}
|
||||
@@ -199,8 +192,7 @@ if (Auth::user()->role == 'agent') {
|
||||
</div><!-- /.modal-content -->
|
||||
</div><!-- /.modal-dialog -->
|
||||
</div><!-- /.modal -->
|
||||
<!-- Assign ticket model-->
|
||||
|
||||
<!-- Assign ticket model-->
|
||||
|
||||
<!-- Modal -->
|
||||
<div class="modal fade in" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="false" style="display: none; padding-right: 15px;background-color: rgba(0, 0, 0, 0.7);">
|
||||
@@ -224,6 +216,7 @@ if (Auth::user()->role == 'agent') {
|
||||
</div>
|
||||
|
||||
|
||||
{!! $table->script('vendor.Chumper.ticket-javascript') !!}
|
||||
|
||||
<script>
|
||||
var t_id = [];
|
||||
@@ -257,14 +250,14 @@ if (Auth::user()->role == 'agent') {
|
||||
t_id = $('.selectval').map(function() {
|
||||
return $(this).val();
|
||||
}).get();
|
||||
showAssign(t_id);
|
||||
showAssign(t_id)
|
||||
// alert(checkboxValues);
|
||||
} else {
|
||||
//Check all checkboxes
|
||||
$("input[type='checkbox']", ".mailbox-messages").iCheck("check");
|
||||
// alert('Hallo');
|
||||
t_id = [];
|
||||
showAssign(t_id);
|
||||
showAssign(t_id)
|
||||
}
|
||||
$(this).data("clicks", !clicks);
|
||||
|
||||
@@ -435,15 +428,10 @@ if (Auth::user()->role == 'agent') {
|
||||
var message = "{{Lang::get('lang.merge-success')}}";
|
||||
$("#merge-succ-alert").show();
|
||||
$('#message-merge-succ').html(message);
|
||||
setInterval(function() {
|
||||
setTimeout(function () {
|
||||
$("#alert11").hide();
|
||||
setTimeout(function() {
|
||||
var link = document.querySelector('#load-myticket');
|
||||
if (link) {
|
||||
link.click();
|
||||
}
|
||||
}, 500);
|
||||
}, 2000);
|
||||
location.reload();
|
||||
}, 1000);
|
||||
|
||||
}
|
||||
|
||||
@@ -452,6 +440,7 @@ if (Auth::user()->role == 'agent') {
|
||||
return false;
|
||||
|
||||
});
|
||||
|
||||
$('#AssignTickets').on('show.bs.modal', function() {
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
@@ -496,51 +485,6 @@ if (Auth::user()->role == 'agent') {
|
||||
})
|
||||
return false;
|
||||
});
|
||||
$('#AssignTickets').on('show.bs.modal', function() {
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: "{{route('get-agents')}}",
|
||||
dataType: "html",
|
||||
beforeSend: function() {
|
||||
$("#assign_body").hide();
|
||||
$("#assign_loader").show();
|
||||
},
|
||||
success: function(data) {
|
||||
$("#assign_loader").hide();
|
||||
$("#assign_body").show();
|
||||
$('#select-assign-agent').html(data);
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
// Assign a ticket
|
||||
$('#assign-form').on('submit', function() {
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: "../ticket/assign/"+t_id,
|
||||
dataType: "html",
|
||||
data: $(this).serialize(),
|
||||
beforeSend: function() {
|
||||
$("#assign_body").hide();
|
||||
$("#assign_loader").show();
|
||||
},
|
||||
success: function(response) {
|
||||
if (response == 1)
|
||||
{
|
||||
location.reload();
|
||||
var message = "Success!";
|
||||
$("#alert11").show();
|
||||
$('#message-success1').html(message);
|
||||
setInterval(function(){$("#dismiss11").trigger("click"); }, 2000);
|
||||
}
|
||||
$("#assign_body").show();
|
||||
$("#assign_loader").hide();
|
||||
$("#dismis4").trigger("click");
|
||||
}
|
||||
})
|
||||
return false;
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
|
||||
|
@@ -158,7 +158,7 @@ class="active"
|
||||
<div class="form-group">
|
||||
<label>{!! Lang::get('lang.help_topic') !!}:</label>
|
||||
<!-- helptopic -->
|
||||
<?php $helptopic = App\Model\helpdesk\Manage\Help_topic::where('status', '=', 1)->get(); ?>
|
||||
<?php $helptopic = App\Model\helpdesk\Manage\Help_topic::where('status', '=', 1)->select('topic', 'id')->get(); ?>
|
||||
{!! Form::select('helptopic', ['Helptopic'=>$helptopic->lists('topic','id')->toArray()],null,['class' => 'form-control select','id'=>'selectid']) !!}
|
||||
</div>
|
||||
</div>
|
||||
@@ -166,7 +166,7 @@ class="active"
|
||||
<!-- sla plan -->
|
||||
<div class="form-group">
|
||||
<label>{!! Lang::get('lang.sla_plan') !!}:</label>
|
||||
<?php $sla_plan = App\Model\helpdesk\Manage\Sla_plan::all(); ?>
|
||||
<?php $sla_plan = App\Model\helpdesk\Manage\Sla_plan::where('status', '=', 1)->select('grace_period', 'id')->get(); ?>
|
||||
{!! Form::select('sla', ['SLA'=>$sla_plan->lists('grace_period','id')->toArray()],null,['class' => 'form-control select']) !!}
|
||||
</div>
|
||||
</div>
|
||||
@@ -181,7 +181,7 @@ class="active"
|
||||
<!-- assign to -->
|
||||
<div class="form-group">
|
||||
<label>{!! Lang::get('lang.assign_to') !!}:</label>
|
||||
<?php $agents = App\User::where('role', '!=', 'user')->get(); ?>
|
||||
<?php $agents = App\User::where('role', '!=', 'user')->where('active', '=', 1)->get(); ?>
|
||||
{!! Form::select('assignto', [''=>'Select an Agent','Agents'=>$agents->lists('first_name','id')->toArray()],null,['class' => 'form-control select']) !!}
|
||||
</div>
|
||||
</div>
|
||||
|
@@ -14,6 +14,31 @@ class="active"
|
||||
|
||||
@section('PageHeader')
|
||||
<h1>{{Lang::get('lang.tickets')}}</h1>
|
||||
<style>
|
||||
.tooltip1 {
|
||||
position: relative;
|
||||
/*display: inline-block;*/
|
||||
/*border-bottom: 1px dotted black;*/
|
||||
}
|
||||
|
||||
.tooltip1 .tooltiptext {
|
||||
visibility: hidden;
|
||||
width: 100%;
|
||||
background-color: black;
|
||||
color: #fff;
|
||||
text-align: center;
|
||||
border-radius: 6px;
|
||||
padding: 5px 0;
|
||||
|
||||
/* Position the tooltip */
|
||||
position: absolute;
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
.tooltip1:hover .tooltiptext {
|
||||
visibility: visible;
|
||||
}
|
||||
</style>
|
||||
@stop
|
||||
|
||||
@section('content')
|
||||
@@ -60,46 +85,15 @@ if (Auth::user()->role == 'agent') {
|
||||
<input type="submit" class="submit btn btn-default text-orange btn-sm" id="delete" name="submit" value="{!! Lang::get('lang.delete') !!}">
|
||||
<input type="submit" class="submit btn btn-default text-yellow btn-sm" id="close" name="submit" value="{!! Lang::get('lang.close') !!}">
|
||||
<button type="button" class="btn btn-sm btn-default text-green" id="Edit_Ticket" data-toggle="modal" data-target="#MergeTickets"><i class="fa fa-code-fork"> </i> {!! Lang::get('lang.merge') !!}</button>
|
||||
|
||||
<button type="button" class="btn btn-sm btn-default" id="assign_Ticket" data-toggle="modal" data-target="#AssignTickets" style="display: none;"><i class="fa fa-hand-o-right"> </i> {!! Lang::get('lang.assign') !!}</button>
|
||||
|
||||
<!--</div>-->
|
||||
<p><p/>
|
||||
<div class="mailbox-messages" id="refresh">
|
||||
<p style="display:none;text-align:center; position:fixed; margin-left:40%;margin-top:-70px;" id="show" class="text-red"><b>{!! Lang::get('lang.loading') !!}...</b></p>
|
||||
<!-- table -->
|
||||
{!! Datatable::table()
|
||||
->addColumn(
|
||||
"",
|
||||
Lang::get('lang.subject'),
|
||||
Lang::get('lang.ticket_id'),
|
||||
Lang::get('lang.priority'),
|
||||
Lang::get('lang.from'),
|
||||
Lang::get('lang.assigned_to'),
|
||||
Lang::get('lang.last_activity'))
|
||||
->setUrl(route('get.open.ticket'))
|
||||
|
||||
->setOrder(array(6=>'desc'))
|
||||
->setClass('table table-hover table-bordered table-striped')
|
||||
->setCallbacks("fnRowCallback",'function( nRow, aData, iDisplayIndex, iDisplayIndexFull ) {
|
||||
var str = aData[3];
|
||||
if(str.search("#000") == -1) {
|
||||
$("td", nRow).css({"background-color":"#F3F3F3", "font-weight":"600", "border-bottom":"solid 0.5px #ddd", "border-right":"solid 0.5px #F3F3F3"});
|
||||
$("td", nRow).mouseenter(function(){
|
||||
$("td", nRow).css({"background-color":"#DEDFE0", "font-weight":"600", "border-bottom":"solid 0.5px #ddd", "border-right":"solid 0.5px #DEDFE0"});
|
||||
});
|
||||
$("td", nRow).mouseleave(function(){
|
||||
$("td", nRow).css({"background-color":"#F3F3F3", "font-weight":"600", "border-bottom":"solid 0.5px #ddd","border-right":"solid 0.5px #F3F3F3"});
|
||||
});
|
||||
} else {
|
||||
$("td", nRow).css({"background-color":"white", "border-bottom":"solid 0.5px #ddd", "border-right":"solid 0.5px white"});
|
||||
$("td", nRow).mouseenter(function(){
|
||||
$("td", nRow).css({"background-color":"#DEDFE0", "border-bottom":"solid 0.5px #ddd", "border-right":"solid 0.5px #DEDFE0"});
|
||||
});
|
||||
$("td", nRow).mouseleave(function(){
|
||||
$("td", nRow).css({"background-color":"white", "border-bottom":"solid 0.5px #ddd", "border-right":"solid 0.5px white"});
|
||||
});
|
||||
}
|
||||
}')
|
||||
->render();!!}
|
||||
{!!$table->render('vendor.Chumper.template')!!}
|
||||
</div><!-- /.mail-box-messages -->
|
||||
{!! Form::close() !!}
|
||||
</div><!-- /.box-body -->
|
||||
@@ -202,7 +196,7 @@ if (Auth::user()->role == 'agent') {
|
||||
</div><!-- /.modal-content -->
|
||||
</div><!-- /.modal-dialog -->
|
||||
</div><!-- /.modal -->
|
||||
<!-- Assign ticket model-->
|
||||
<!-- Assign ticket model-->
|
||||
<!-- Modal -->
|
||||
<div class="modal fade in" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="false" style="display: none; padding-right: 15px;background-color: rgba(0, 0, 0, 0.7);">
|
||||
<div class="modal-dialog" role="document">
|
||||
@@ -223,7 +217,7 @@ if (Auth::user()->role == 'agent') {
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{!! $table->script('vendor.Chumper.ticket-javascript') !!}
|
||||
<script>
|
||||
var t_id = [];
|
||||
$(function() {
|
||||
@@ -255,14 +249,14 @@ if (Auth::user()->role == 'agent') {
|
||||
t_id = $('.selectval').map(function() {
|
||||
return $(this).val();
|
||||
}).get();
|
||||
showAssign(t_id);
|
||||
showAssign(t_id)
|
||||
// alert(checkboxValues);
|
||||
} else {
|
||||
//Check all checkboxes
|
||||
$("input[type='checkbox']", ".mailbox-messages").iCheck("check");
|
||||
// alert('Hallo');
|
||||
t_id = [];
|
||||
showAssign(t_id);
|
||||
showAssign(t_id)
|
||||
}
|
||||
$(this).data("clicks", !clicks);
|
||||
});
|
||||
@@ -412,20 +406,16 @@ if (Auth::user()->role == 'agent') {
|
||||
var message = "{{Lang::get('lang.merge-success')}}";
|
||||
$("#merge-succ-alert").show();
|
||||
$('#message-merge-succ').html(message);
|
||||
setInterval(function() {
|
||||
setTimeout(function () {
|
||||
$("#alert11").hide();
|
||||
setTimeout(function() {
|
||||
var link = document.querySelector('#load-open');
|
||||
if (link) {
|
||||
link.click();
|
||||
}
|
||||
}, 500);
|
||||
}, 2000);
|
||||
location.reload();
|
||||
}, 1000);
|
||||
}
|
||||
}
|
||||
})
|
||||
return false;
|
||||
});
|
||||
|
||||
$('#AssignTickets').on('show.bs.modal', function() {
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
@@ -490,6 +480,7 @@ if (Auth::user()->role == 'agent') {
|
||||
}
|
||||
showAssign(t_id);
|
||||
}
|
||||
|
||||
function showAssign(t_id)
|
||||
{
|
||||
if (t_id.length >= 1) {
|
||||
|
@@ -12,38 +12,68 @@ active
|
||||
class="active"
|
||||
@stop
|
||||
@section('PageHeader')
|
||||
<h1>{{Lang::get('lang.tickets')}}</h1>@stop
|
||||
<h1>{{Lang::get('lang.tickets')}}</h1>
|
||||
<style>
|
||||
.tooltip1 {
|
||||
position: relative;
|
||||
/*display: inline-block;*/
|
||||
/*border-bottom: 1px dotted black;*/
|
||||
}
|
||||
|
||||
.tooltip1 .tooltiptext {
|
||||
visibility: hidden;
|
||||
width: 100%;
|
||||
background-color: black;
|
||||
color: #fff;
|
||||
text-align: center;
|
||||
border-radius: 6px;
|
||||
padding: 5px 0;
|
||||
|
||||
/* Position the tooltip */
|
||||
position: absolute;
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
.tooltip1:hover .tooltiptext {
|
||||
visibility: visible;
|
||||
}
|
||||
</style>
|
||||
@stop
|
||||
@section('content')
|
||||
<?php
|
||||
$date_time_format = UTC::getDateTimeFormat();
|
||||
if (Auth::user()->role == 'agent') {
|
||||
$dept = \App\Model\helpdesk\Agent\Department::where('id', '=', Auth::user()->primary_dpt)->first();
|
||||
$overdues = App\Model\helpdesk\Ticket\Tickets::where('status', '=', 1)->where('isanswered', '=', 0)->where('dept_id', '=', $dept->id)->orderBy('id', 'DESC')->get();
|
||||
} 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;
|
||||
} else {
|
||||
$j = 0;
|
||||
foreach ($overdues as $overdue) {
|
||||
$sla_plan = App\Model\helpdesk\Manage\Sla_plan::where('id', '=', $overdue->sla)->first();
|
||||
// $date_time_format = UTC::getDateTimeFormat();
|
||||
// if (Auth::user()->role == 'agent') {
|
||||
// $dept = \App\Model\helpdesk\Agent\Department::where('id', '=', Auth::user()->primary_dpt)->first();
|
||||
// $overdues = App\Model\helpdesk\Ticket\Tickets::where('status', '=', 1)->where('isanswered', '=', 0)->where('dept_id', '=', $dept->id)->orderBy('id', 'DESC')->get();
|
||||
// } 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;
|
||||
// } else {
|
||||
// $j = 0;
|
||||
// foreach ($overdues as $overdue) {
|
||||
// $sla_plan = App\Model\helpdesk\Manage\Sla_plan::where('id', '=', $overdue->sla)->first();
|
||||
|
||||
// $ovadate = $overdue->created_at;
|
||||
// $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 {
|
||||
// $overdue_ticket = 0;
|
||||
// }
|
||||
// }
|
||||
|
||||
$overdue_ticket=App\Model\helpdesk\Ticket\Tickets::where('tickets.duedate','<', \Carbon\Carbon::now())->count();
|
||||
|
||||
|
||||
$ovadate = $overdue->created_at;
|
||||
$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 {
|
||||
$overdue_ticket = 0;
|
||||
}
|
||||
}
|
||||
?>
|
||||
<!-- Main content -->
|
||||
<div class="box box-primary">
|
||||
@@ -74,45 +104,13 @@ if ($i == 0) {
|
||||
<input type="submit" class="submit btn btn-default text-orange btn-sm" id="delete" name="submit" value="{!! Lang::get('lang.delete') !!}">
|
||||
<input type="submit" class="submit btn btn-default text-yellow btn-sm" id="close" name="submit" value="{!! Lang::get('lang.close') !!}">
|
||||
<button type="button" class="btn btn-sm btn-default text-green" id="Edit_Ticket" data-toggle="modal" data-target="#MergeTickets"><i class="fa fa-code-fork"> </i> {!! Lang::get('lang.merge') !!}</button>
|
||||
<button type="button" class="btn btn-sm btn-default" id="assign_Ticket" data-toggle="modal" data-target="#AssignTickets" style="display: none;"><i class="fa fa-hand-o-right"> </i> {!! Lang::get('lang.assign') !!}</button>
|
||||
<!--</div>-->
|
||||
|
||||
<button type="button" class="btn btn-sm btn-default" id="assign_Ticket" data-toggle="modal" data-target="#AssignTickets" style="display: none;"><i class="fa fa-hand-o-right"> </i> {!! Lang::get('lang.assign') !!}</button>
|
||||
<!--</div>-->
|
||||
<p><p/>
|
||||
<div class="mailbox-messages" id="refresh">
|
||||
<!--datatable-->
|
||||
{!! Datatable::table()
|
||||
->addColumn(
|
||||
"",
|
||||
Lang::get('lang.subject'),
|
||||
Lang::get('lang.ticket_id'),
|
||||
Lang::get('lang.priority'),
|
||||
Lang::get('lang.from'),
|
||||
Lang::get('lang.assigned_to'),
|
||||
Lang::get('lang.last_activity'))
|
||||
->setUrl(route('get.overdue.ticket'))
|
||||
|
||||
->setOrder(array(6=>'desc'))
|
||||
->setClass('table table-hover table-bordered table-striped')
|
||||
->setCallbacks("fnRowCallback",'function( nRow, aData, iDisplayIndex, iDisplayIndexFull ) {
|
||||
var str = aData[3];
|
||||
if(str.search("#000") == -1) {
|
||||
$("td", nRow).css({"background-color":"#F3F3F3", "font-weight":"600", "border-bottom":"solid 0.5px #ddd", "border-right":"solid 0.5px #F3F3F3"});
|
||||
$("td", nRow).mouseenter(function(){
|
||||
$("td", nRow).css({"background-color":"#DEDFE0", "font-weight":"600", "border-bottom":"solid 0.5px #ddd", "border-right":"solid 0.5px #DEDFE0"});
|
||||
});
|
||||
$("td", nRow).mouseleave(function(){
|
||||
$("td", nRow).css({"background-color":"#F3F3F3", "font-weight":"600", "border-bottom":"solid 0.5px #ddd","border-right":"solid 0.5px #F3F3F3"});
|
||||
});
|
||||
} else {
|
||||
$("td", nRow).css({"background-color":"white", "border-bottom":"solid 0.5px #ddd", "border-right":"solid 0.5px white"});
|
||||
$("td", nRow).mouseenter(function(){
|
||||
$("td", nRow).css({"background-color":"#DEDFE0", "border-bottom":"solid 0.5px #ddd", "border-right":"solid 0.5px #DEDFE0"});
|
||||
});
|
||||
$("td", nRow).mouseleave(function(){
|
||||
$("td", nRow).css({"background-color":"white", "border-bottom":"solid 0.5px #ddd", "border-right":"solid 0.5px white"});
|
||||
});
|
||||
}
|
||||
}')
|
||||
->render();!!}
|
||||
{!!$table->render('vendor.Chumper.template')!!}
|
||||
<!-- /.datatable -->
|
||||
</div><!-- /.mail-box-messages -->
|
||||
{!! Form::close() !!}
|
||||
@@ -216,7 +214,7 @@ if ($i == 0) {
|
||||
</div><!-- /.modal-content -->
|
||||
</div><!-- /.modal-dialog -->
|
||||
</div><!-- /.modal -->
|
||||
<!-- Assign ticket model-->
|
||||
<!-- Assign ticket model-->
|
||||
<!-- Modal -->
|
||||
<div class="modal fade in" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="false" style="display: none; padding-right: 15px;background-color: rgba(0, 0, 0, 0.7);">
|
||||
<div class="modal-dialog" role="document">
|
||||
@@ -238,7 +236,7 @@ if ($i == 0) {
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
{!! $table->script('vendor.Chumper.ticket-javascript') !!}
|
||||
<script>
|
||||
var t_id = [];
|
||||
var option = null;
|
||||
@@ -271,14 +269,14 @@ if ($i == 0) {
|
||||
t_id = $('.selectval').map(function() {
|
||||
return $(this).val();
|
||||
}).get();
|
||||
showAssign(t_id);
|
||||
showAssign(t_id)
|
||||
// alert(checkboxValues);
|
||||
} else {
|
||||
//Check all checkboxes
|
||||
$("input[type='checkbox']", ".mailbox-messages").iCheck("check");
|
||||
// alert('Hallo');
|
||||
t_id = [];
|
||||
showAssign(t_id);
|
||||
showAssign(t_id)
|
||||
}
|
||||
$(this).data("clicks", !clicks);
|
||||
|
||||
@@ -454,14 +452,9 @@ if ($i == 0) {
|
||||
var message = "{{Lang::get('lang.merge-success')}}";
|
||||
$("#merge-succ-alert").show();
|
||||
$('#message-merge-succ').html(message);
|
||||
setInterval(function() {
|
||||
setTimeout(function () {
|
||||
$("#alert11").hide();
|
||||
setTimeout(function() {
|
||||
var link = document.querySelector('#load-inbox');
|
||||
if (link) {
|
||||
link.click();
|
||||
}
|
||||
}, 100);
|
||||
location.reload();
|
||||
}, 1000);
|
||||
|
||||
}
|
||||
@@ -536,6 +529,7 @@ if ($i == 0) {
|
||||
}
|
||||
showAssign(t_id);
|
||||
}
|
||||
|
||||
function showAssign(t_id)
|
||||
{
|
||||
if (t_id.length >= 1) {
|
||||
@@ -544,6 +538,5 @@ if ($i == 0) {
|
||||
$('#assign_Ticket').css('display', 'none');
|
||||
}
|
||||
}
|
||||
|
||||
</script>
|
||||
@stop
|
@@ -1,249 +1,10 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>PDF</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
|
||||
<style type="text/css">
|
||||
* {
|
||||
font-family: "DejaVu Sans Mono", monospace;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<?php
|
||||
$rtl = App\Model\helpdesk\Settings\CommonSettings::where('option_name', '=', 'enable_rtl')->first();
|
||||
if($rtl->option_value == 1) {
|
||||
echo '<body style="direction: rtl; text-align: right;">';
|
||||
} else {
|
||||
echo '<body>';
|
||||
}
|
||||
?>
|
||||
<h2>
|
||||
<div id="logo" class="site-logo text-center" style="font-size: 30px;">
|
||||
<?php
|
||||
$company = App\Model\helpdesk\Settings\Company::where('id', '=', '1')->first();
|
||||
$system = App\Model\helpdesk\Settings\System::where('id', '=', '1')->first();
|
||||
?>
|
||||
<center>
|
||||
@if($system->url)
|
||||
<a href="{!! $system->url !!}" rel="home">
|
||||
@else
|
||||
<a href="{{url('/')}}" rel="home" style="text-decoration:none;">
|
||||
@endif
|
||||
@if($company->use_logo == 1)
|
||||
<img src="{!! public_path().'/uploads/company'.'/'.$company->logo !!}" width="100px;"/>
|
||||
@else
|
||||
@if($system->name)
|
||||
{!! $system->name !!}
|
||||
@else
|
||||
<b>SUPPORT</b> CENTER
|
||||
@endif
|
||||
@endif
|
||||
</a>
|
||||
</center>
|
||||
</div>
|
||||
</h2>
|
||||
<hr>
|
||||
<h4>{!! $thread->title !!}</h4><br/>
|
||||
<h3>Ticket Title : {!! $tickets->title !!}</h3><br>
|
||||
<h3>Ticket Number : {!! $tickets->ticket_number !!}</h3><br>
|
||||
<h3>Ticket Department : {!! $tickets->department !!}</h3><br>
|
||||
<h3>Ticket Helptopic : {!! $tickets->helptopic !!}</h3><br>
|
||||
@forelse($ticket->thread as $thread)
|
||||
{!! $thread->body !!}
|
||||
<hr>
|
||||
@empty
|
||||
|
||||
<?php
|
||||
$ticket_source = App\Model\helpdesk\Ticket\Ticket_source::where('id', '=', $tickets->source)->first();
|
||||
$ticket_source = $ticket_source->value;
|
||||
|
||||
$user = App\User::where('id', '=', $tickets->user_id)->first();
|
||||
?>
|
||||
<?php $response = App\Model\helpdesk\Ticket\Ticket_Thread::where('ticket_id', '=', $tickets->id)->get(); ?>
|
||||
@foreach($response as $last)
|
||||
<?php $ResponseDate = $last->created_at; ?>
|
||||
@endforeach
|
||||
|
||||
<?php $status = App\Model\helpdesk\Ticket\Ticket_Status::where('id', '=', $tickets->status)->first(); ?>
|
||||
<?php $priority = App\Model\helpdesk\Ticket\Ticket_Priority::where('priority_id', '=', $tickets->priority_id)->first(); ?>
|
||||
<?php $help_topic = App\Model\helpdesk\Manage\Help_topic::where('id', '=', $tickets->help_topic_id)->first(); ?>
|
||||
<?php $help_topic = App\Model\helpdesk\Manage\Help_topic::where('id', '=', $tickets->help_topic_id)->first(); ?>
|
||||
<?php $dept = App\Model\helpdesk\Agent\Department::where('id', '=', $help_topic->department)->first(); ?>
|
||||
<table class="table">
|
||||
<tr><th></th><th></th></tr>
|
||||
<tr><td><b>{!! Lang::get('lang.status') !!}:</b></td> <td>{{$status->state}}</td></tr>
|
||||
<tr><td><b>{!! Lang::get('lang.priority') !!}:</b></td> <td>{{$priority->priority}}</td></tr>
|
||||
<tr><td><b>{!! Lang::get('lang.department') !!}:</b></td> <td>{{$dept->name}}</td></tr>
|
||||
<tr><td><b>{!! Lang::get('lang.email') !!}:</b></td> <td>{{$user->email}}</td></tr>
|
||||
<tr><td><b>{!! Lang::get('lang.phone') !!}:</b></td> <td>{{$user->mobile}}</td></tr>
|
||||
<tr><td><b>{!! Lang::get('lang.source') !!}:</b></td> <td>{{$ticket_source}}</td></tr>
|
||||
<tr><td><b>{!! Lang::get('lang.help_topic') !!}:</b></td> <td>{{$help_topic->topic}}</td></tr>
|
||||
</table>
|
||||
|
||||
<?php $conversations = App\Model\helpdesk\Ticket\Ticket_Thread::where('ticket_id', '=', $tickets->id)->orderBy('created_at', 'desc')->paginate(10); ?>
|
||||
@foreach($conversations as $conversation)
|
||||
<br/><hr>
|
||||
<span class="time-label">
|
||||
@if($conversation->user_id != null)
|
||||
<?php
|
||||
|
||||
$role = App\User::where('id', '=', $conversation->user_id)->first();
|
||||
?>
|
||||
|
||||
<?php if ($conversation->is_internal) { ?>
|
||||
<i class="fa fa-tag bg-purple" title="Posted by System"></i>
|
||||
<?php
|
||||
} else {
|
||||
if ($role->role == 'agent' || $role->role == 'admin') {
|
||||
?>
|
||||
<i class="fa fa-mail-reply-all bg-yellow" title="Posted by Support Team"></i>
|
||||
<?php } elseif ($role->role == 'user') { ?>
|
||||
<i class="fa fa-user bg-aqua" title="Posted by Customer"></i>
|
||||
<?php } else { ?>
|
||||
<i class="fa fa-mail-reply-all bg-purple" title="Posted by System"></i>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
?>
|
||||
@endif
|
||||
<?php
|
||||
$attachment = App\Model\helpdesk\Ticket\Ticket_attachments::where('thread_id', '=', $conversation->id)->first();
|
||||
if ($attachment == null) {
|
||||
$body = $conversation->body;
|
||||
} else {
|
||||
// dd($attachment->file);
|
||||
// print $attachment->file;
|
||||
// header("Content-type: image/jpeg");
|
||||
// echo "<img src='".base64_decode($attachment->file)."' style='width:128px;height:128px'/> ";
|
||||
$body = $conversation->body;
|
||||
$attachments = App\Model\helpdesk\Ticket\Ticket_attachments::where('thread_id', '=', $conversation->id)->where('poster', '=', 'INLINE')->get();
|
||||
|
||||
foreach ($attachments as $attachment) {
|
||||
|
||||
if ($attachment->type == 'pdf' || $attachment->type == 'PDF') {
|
||||
// echo "hello";
|
||||
} elseif ($attachment->type == 'docx' || $attachment->type == 'DOCX') {
|
||||
// echo "hello";
|
||||
} elseif ($attachment->type == 'html' || $attachment->type == 'HTML') {
|
||||
// echo "hello";
|
||||
} elseif ($attachment->type == 'zip' || $attachment->type == 'ZIP') {
|
||||
// echo "hello";
|
||||
} else {
|
||||
try {
|
||||
$image = @imagecreatefromstring($attachment->file);
|
||||
ob_start();
|
||||
imagejpeg($image, null, 80);
|
||||
$data = ob_get_contents();
|
||||
ob_end_clean();
|
||||
$var = '<img width="20px" src="data:image/jpg;base64,' . base64_encode($data) . '" />';
|
||||
// echo $var;
|
||||
// echo $attachment->name;
|
||||
// $body = explode($attachment->name, $body);
|
||||
$body = str_replace($attachment->name, "data:image/jpg;base64," . base64_encode($data), $body);
|
||||
|
||||
$string = $body;
|
||||
$start = "<head>";
|
||||
$end = "</head>";
|
||||
if (strpos($string, $start) == false || strpos($string, $start) == false) {
|
||||
|
||||
} else {
|
||||
$ini = strpos($string, $start);
|
||||
$ini += strlen($start);
|
||||
$len = strpos($string, $end, $ini) - $ini;
|
||||
$parsed = substr($string, $ini, $len);
|
||||
$body2 = $parsed;
|
||||
$body = str_replace($body2, " ", $body);
|
||||
}
|
||||
} catch (\Exception $e) {
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
// echo $body;
|
||||
// $body = explode($attachment->file, $body);
|
||||
// $body = $body[0];
|
||||
// }
|
||||
}
|
||||
?>
|
||||
|
||||
<?php
|
||||
$string = $body;
|
||||
$start = "<head>";
|
||||
$end = "</head>";
|
||||
if (strpos($string, $start) == false || strpos($string, $start) == false) {
|
||||
|
||||
} else {
|
||||
$ini = strpos($string, $start);
|
||||
$ini += strlen($start);
|
||||
$len = strpos($string, $end, $ini) - $ini;
|
||||
$parsed = substr($string, $ini, $len);
|
||||
$body2 = $parsed;
|
||||
$body = str_replace($body2, " ", $body);
|
||||
}
|
||||
?>
|
||||
<div class="timeline-item">
|
||||
<!--<span id="date" class="time" style="color:#fff;"><i class="fa fa-clock-o"> </i> {{date_format($conversation->created_at, 'd/m/Y H:i:s')}}</span>-->
|
||||
|
||||
<h3 class="timeline-header" style="background-color:<?php
|
||||
if ($conversation->is_internal) {
|
||||
$color = '#046380';
|
||||
echo $color;
|
||||
} else {
|
||||
if ($role->role == 'agent' || $role->role == 'admin') {
|
||||
$color = '#FFD34E';
|
||||
echo $color;
|
||||
} elseif ($role->role == 'user') {
|
||||
$color = '#00A388';
|
||||
echo $color;
|
||||
} else {
|
||||
$color = '#046380';
|
||||
echo $color;
|
||||
}
|
||||
}
|
||||
?>;
|
||||
">
|
||||
<a href="#" style="text-decoration:none; color:#fff;"><?php
|
||||
if($conversation->user_id != null) {
|
||||
if ($role->role == "user") {
|
||||
echo $role->user_name;
|
||||
} else {
|
||||
echo $role->first_name . " " . $role->last_name;
|
||||
}
|
||||
} else { echo Lang::get('lang.system'); } ?> </a><strong>{!! Lang::get('lang.date') !!}:</strong> {!! $thread->created_at !!}<br/></h3>
|
||||
<div class="timeline-body" style="padding-left:30px;">
|
||||
{!! $body !!}
|
||||
</div>
|
||||
<div class="timeline-footer" >
|
||||
<?php
|
||||
$attachments = App\Model\helpdesk\Ticket\Ticket_attachments::where('thread_id', '=', $conversation->id)->get();
|
||||
$i = 0;
|
||||
foreach ($attachments as $attachment) {
|
||||
if ($attachment->poster == 'ATTACHMENT') {
|
||||
$i++;
|
||||
}
|
||||
}
|
||||
if ($i > 0) {
|
||||
echo "<hr style='height:1px;color:#2D3244;background-color:#2D3244;''><h4 class='box-title'><b>" . $i . " </b> Attachments</h4>";
|
||||
}
|
||||
?>
|
||||
<ul class='mailbox-attachments clearfix'>
|
||||
<?php
|
||||
foreach ($attachments as $attachment) {
|
||||
if ($attachment->poster == 'ATTACHMENT') {
|
||||
try {
|
||||
if ($attachment->type == 'jpg' || $attachment->type == 'JPG' || $attachment->type == 'jpeg' || $attachment->type == 'JPEG' || $attachment->type == 'png' || $attachment->type == 'PNG' || $attachment->type == 'gif' || $attachment->type == 'GIF') {
|
||||
$image = @imagecreatefromstring($attachment->file);
|
||||
ob_start();
|
||||
imagejpeg($image, null, 80);
|
||||
$data = ob_get_contents();
|
||||
ob_end_clean();
|
||||
$var = '<a href="' . URL::route('image', array('image_id' => $attachment->id)) . '" target="_blank"><img style="max-width:200px;max-height:150px;" src="data:image/jpg;base64,' . base64_encode($data) . '"/></a>';
|
||||
echo '<li><span class="mailbox-attachment-icon has-img">' . $var . '</span></li>';
|
||||
} else {
|
||||
$var = '<a href="' . URL::route('image', array('image_id' => $attachment->id)) . '" target="_blank">' . $attachment->name . '</a>';
|
||||
echo '<li>' . $var . '</li>';
|
||||
}
|
||||
} catch (\Exception $e) {
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
?>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
@endforeach
|
||||
</body>
|
||||
</html>
|
||||
@endforelse
|
@@ -0,0 +1,35 @@
|
||||
@if (count($errors) > 0)
|
||||
<div id="heading"></div>
|
||||
<div class="alert alert-danger">
|
||||
<strong>Whoops!</strong> There were some problems with your input.<br><br>
|
||||
<ul>
|
||||
@foreach ($errors->all() as $error)
|
||||
<li>{{ $error }}</li>
|
||||
@endforeach
|
||||
</ul>
|
||||
</div>
|
||||
@endif
|
||||
<div id="response"></div>
|
||||
<!-- check whether success or not -->
|
||||
@if(Session::has('warn'))
|
||||
<div class="alert alert-warning alert-dismissable">
|
||||
<i class="fa fa-check-circle"></i>
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
{!!Session::get('warn')!!}
|
||||
</div>
|
||||
@endif
|
||||
@if(Session::has('success'))
|
||||
<div class="alert alert-success alert-dismissable">
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
{{Session::get('success')}}
|
||||
</div>
|
||||
@endif
|
||||
<!-- fail message -->
|
||||
@if(Session::has('fails'))
|
||||
<div class="alert alert-danger alert-dismissable">
|
||||
<i class="fa fa-ban"></i>
|
||||
<b>{{Lang::get('message.alert')}}!</b> {{Lang::get('message.failed')}}.
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
{{Session::get('fails')}}
|
||||
</div>
|
||||
@endif
|
@@ -36,25 +36,36 @@
|
||||
<tr><td><b>{!! Lang::get('lang.email') !!}:</b></td> <td>{{$thread->email}}</td></tr>
|
||||
<tr><td><b>{!! Lang::get('lang.phone') !!}:</b></td> <td>{{$thread->phone}}</td></tr>
|
||||
<tr><td><b>{!! Lang::get('lang.mobile') !!}:</b></td> <td>{{$thread->mobile}}</td></tr>
|
||||
|
||||
@if($ticket->getAssignedTo())
|
||||
<tr><td><b>{!! Lang::get('lang.assigned_to') !!}:</b></td> <td>{{$ticket->getAssignedTo()->first_name}} {{$ticket->getAssignedTo()->last_name}}</td></tr>
|
||||
@endif
|
||||
</table>
|
||||
<hr>
|
||||
@if($ticket->extraFields()->count()>0)
|
||||
<div>
|
||||
<table class="table" style="border: 1px solid black;border-collapse: collapse; width: 100%">
|
||||
|
||||
@foreach($ticket->extraFields() as $ticket_form_data)
|
||||
<tr style="border: 1px solid black;border-collapse: collapse;">
|
||||
<td style="border: 1px solid black;border-collapse: collapse; padding: 14px;"> <b>{!! $ticket_form_data->title !!}</b></td>
|
||||
<td style="border: 1px solid black; width: 100%;border-collapse: collapse;padding: 14px;">{!! $ticket_form_data->content !!}</td>
|
||||
</tr>
|
||||
|
||||
@foreach($ticket->extraFields() as $ticket_form_data)
|
||||
@if($ticket_form_data->isHidden()==false)
|
||||
<tr style="border: 1px solid black;border-collapse: collapse;">
|
||||
<td style="border: 1px solid black;border-collapse: collapse; padding: 14px;"> <b>{!! $ticket_form_data->getFieldKeyLabel() !!}</b></td>
|
||||
<td style="border: 1px solid black; width: 100%;border-collapse: collapse;padding: 14px;">{!! removeUnderscore($ticket_form_data->content) !!}</td>
|
||||
</tr>
|
||||
@endif
|
||||
@endforeach
|
||||
|
||||
|
||||
</table>
|
||||
</div>
|
||||
<hr>
|
||||
@endif
|
||||
@foreach($ticket->extraFields() as $ticket_form_data)
|
||||
@if($ticket_form_data->isHidden()==true)
|
||||
<div>
|
||||
<span>{!! $ticket_form_data->getHidden() !!}:</span>
|
||||
</div>
|
||||
<br>
|
||||
@endif
|
||||
@endforeach
|
||||
<div>
|
||||
<h3>Issue</h3>
|
||||
</div>
|
||||
@@ -62,5 +73,6 @@
|
||||
{!! $thread->body !!}
|
||||
</div>
|
||||
<hr>
|
||||
|
||||
</body>
|
||||
</html>
|
@@ -0,0 +1,38 @@
|
||||
<?php
|
||||
$array = [
|
||||
Lang::get('lang.status')=>$status->name,
|
||||
Lang::get('lang.priority')=>$priority->priority_desc,
|
||||
Lang::get('lang.department')=>$dept123->name,
|
||||
Lang::get('lang.email')=>str_limit($user->email,30),
|
||||
Lang::get('lang.source')=>$ticket_source,
|
||||
Lang::get('lang.help_topic')=>$help_topic->topic,
|
||||
Lang::get('lang.last_message')=>str_limit($username,30),
|
||||
Lang::get('lang.organization') => $LastResponse->getOrgWithLink(),
|
||||
];
|
||||
|
||||
if($user->ban > 0){
|
||||
array_push($array, [Lang::get('lang.this_ticket_is_under_banned_user')=>'']);
|
||||
}
|
||||
if($user->phone_number !=null){
|
||||
array_push($array, [Lang::get('lang.phone')=>$user->phone_number]);
|
||||
}
|
||||
if($user->mobile !=null){
|
||||
array_push($array, [Lang::get('lang.mobile')=>$user->mobile]);
|
||||
}
|
||||
$collection = collect($array);
|
||||
?>
|
||||
@foreach($collection->chunk(4) as $chunk)
|
||||
<div class="col-md-6">
|
||||
<table class="table table-responsive">
|
||||
@foreach($chunk as $key=>$value)
|
||||
<tr>
|
||||
<td><b>{!! $key !!}:</b></td>
|
||||
<td>{!!$value!!}</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</table>
|
||||
</div>
|
||||
@endforeach
|
||||
@include('themes.default1.agent.helpdesk.filters.tags')
|
||||
<?php Event::fire(new App\Events\TicketDetailTable($TicketData)); ?>
|
||||
|
@@ -10,6 +10,7 @@ active
|
||||
|
||||
@section('PageHeader')
|
||||
<h1>{{Lang::get('lang.ticket-details')}}</h1>
|
||||
@include('themes.default1.agent.helpdesk.ticket.response-messages')
|
||||
@stop
|
||||
<?php
|
||||
$user = App\User::where('id', '=', $tickets->user_id)->first();
|
||||
@@ -29,7 +30,7 @@ $group = App\Model\helpdesk\Agent\Groups::where('id', '=', $agent_group)->where(
|
||||
<li>
|
||||
<a href="{!! URL('user/'.$user->id) !!}">
|
||||
<span>{!! Lang::get('lang.User') !!} </span>
|
||||
</br><i class="fa fa-user"></i> <b>{{$user->user_name}}</b>
|
||||
</br><i class="fa fa-user"></i> <b>{{$user->name() }}</b>
|
||||
</a>
|
||||
</li>
|
||||
<li >
|
||||
@@ -65,7 +66,7 @@ $group = App\Model\helpdesk\Agent\Groups::where('id', '=', $agent_group)->where(
|
||||
{!! $rating->name !!}:
|
||||
<small class="pull-right">
|
||||
<?php for ($i = 1; $i <= $rating->rating_scale; $i++) { ?>
|
||||
<input type="radio" class="star" id="star5" name="{!! $rating->name !!}" value="{!! $i !!}"<?php echo ($ratingval == $i) ? 'checked' : '' ?> />
|
||||
<input type="radio" class="star not-apply" id="star5" name="{!! $rating->name !!}" value="{!! $i !!}"<?php echo ($ratingval == $i) ? 'checked' : '' ?> />
|
||||
<?php } ?>
|
||||
</small>
|
||||
</a>
|
||||
@@ -84,7 +85,7 @@ $group = App\Model\helpdesk\Agent\Groups::where('id', '=', $agent_group)->where(
|
||||
{!! $rating->name !!}:
|
||||
<small class="pull-right">
|
||||
<?php for ($i = 1; $i <= $rating->rating_scale; $i++) { ?>
|
||||
<input type="radio" class="star" id="star5" name="{!! $rating->name !!}" value="{!! $i !!}"<?php echo ($avg_rating == $i) ? 'checked' : '' ?> />
|
||||
<input type="radio" class="star not-apply" id="star5" name="{!! $rating->name !!}" value="{!! $i !!}"<?php echo ($avg_rating == $i) ? 'checked' : '' ?> />
|
||||
<?php } ?>
|
||||
</small>
|
||||
</a>
|
||||
@@ -112,22 +113,23 @@ if ($thread->title != "") {
|
||||
|
||||
if ($group->can_edit_ticket == 1) {
|
||||
?>
|
||||
<button type="button" class="btn btn-default" id="Edit_Ticket" data-toggle="modal" data-target="#Edit"><i class="fa fa-edit" style="color:green;"> </i> {!! Lang::get('lang.edit') !!}</button>
|
||||
<button type="button" class="btn btn-sm btn-default" id="Edit_Ticket" data-toggle="modal" data-target="#Edit"><i class="fa fa-edit" style="color:green;"> </i> {!! Lang::get('lang.edit') !!}</button>
|
||||
<?php } ?>
|
||||
|
||||
<?php if ($group->can_assign_ticket == 1) { ?>
|
||||
<button type="button" class="btn btn-default" data-toggle="modal" data-target="#{{$tickets->id}}assign"><i class="fa fa-hand-o-right" style="color:orange;"> </i> {!! Lang::get('lang.assign') !!}</button>
|
||||
<button type="button" class="btn btn-sm btn-default" data-toggle="modal" data-target="#{{$tickets->id}}assign"><i class="fa fa-hand-o-right" style="color:orange;"> </i> {!! Lang::get('lang.assign') !!}</button>
|
||||
<?php } ?>
|
||||
|
||||
@if($tickets->assigned_to == Auth::user()->id)
|
||||
<button type="button" id="surrender_button" class="btn btn-default" data-toggle="modal" data-target="#surrender"> <i class="fa fa-arrows-alt" style="color:red;"> </i> {!! Lang::get('lang.surrender') !!}</button>
|
||||
<button type="button" id="surrender_button" class="btn btn-sm btn-default" data-toggle="modal" data-target="#surrender"> <i class="fa fa-arrows-alt" style="color:red;"> </i> {!! Lang::get('lang.surrender') !!}</button>
|
||||
@endif
|
||||
|
||||
|
||||
<?php Event::fire('show-add-event-btn', array()); ?>
|
||||
|
||||
<a href="{{url('ticket/print/'.$tickets->id)}}" target="_blank" class="btn btn-primary"><i class="fa fa-print" > </i> {!! Lang::get('lang.generate_pdf') !!}</a>
|
||||
<a href="{{url('ticket/print/'.$tickets->id)}}" target="_blank" class="btn btn-primary btn-sm"><i class="fa fa-print" > </i> {!! Lang::get('lang.generate_pdf') !!}</a>
|
||||
<div class="btn-group">
|
||||
<button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown" id="d1"><i class="fa fa-exchange" style="color:teal;" id="hidespin"> </i><i class="fa fa-spinner fa-spin" style="color:teal; display:none;" id="spin"></i>
|
||||
<button type="button" class="btn btn-sm btn-default dropdown-toggle" data-toggle="dropdown" id="d1"><i class="fa fa-exchange" style="color:teal;" id="hidespin"> </i><i class="fa fa-spinner fa-spin" style="color:teal; display:none;" id="spin"></i>
|
||||
{!! Lang::get('lang.change_status') !!} <span class="caret"></span>
|
||||
</button>
|
||||
<ul class="dropdown-menu">
|
||||
@@ -156,7 +158,7 @@ if ($thread->title != "") {
|
||||
</div>
|
||||
<?php if ($group->can_delete_ticket == 1 || $group->can_ban_email == 1) { ?>
|
||||
<div id="more-option" class="btn-group">
|
||||
<button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown" id="d2"><i class="fa fa-cogs" style="color:teal;"> </i>
|
||||
<button type="button" class="btn btn-sm btn-default dropdown-toggle" data-toggle="dropdown" id="d2"><i class="fa fa-cogs" style="color:teal;"> </i>
|
||||
{!! Lang::get('lang.more') !!} <span class="caret"></span>
|
||||
</button>
|
||||
<ul class="dropdown-menu pull-right">
|
||||
@@ -170,7 +172,9 @@ if ($thread->title != "") {
|
||||
?>
|
||||
<?php if ($group->can_ban_email == 1) { ?>
|
||||
<li data-toggle="modal" data-target="#banemail"><a href="#"><i class="fa fa-ban" style="color:red;"></i>{!! Lang::get('lang.ban_email') !!}</a></li>
|
||||
<?php }
|
||||
<?php
|
||||
\Event::fire('ticket.details.more.list',[$tickets]);
|
||||
}
|
||||
?> </ul>
|
||||
</div>
|
||||
<?php }
|
||||
@@ -242,9 +246,23 @@ if ($thread->title != "") {
|
||||
<div class="col-md-6">
|
||||
<table class="table table-hover">
|
||||
<div id="refresh">
|
||||
<tr><td><b>{!! Lang::get('lang.status') !!}:</b></td> <?php $status = App\Model\helpdesk\Ticket\Ticket_Status::where('id', '=', $tickets->status)->first(); ?><td title="{{$status->properties}}">{{$status->name}}</td></tr>
|
||||
<tr><td><b>{!! Lang::get('lang.priority') !!}:</b></td> <?php $priority = App\Model\helpdesk\Ticket\Ticket_Priority::where('priority_id', '=', $tickets->priority_id)->first(); ?><td title="{{$priority->priority_desc}}">{{$priority->priority_desc}}</td></tr>
|
||||
<tr><td><b>{!! Lang::get('lang.department') !!}:</b></td> <?php $dept123 = App\Model\helpdesk\Agent\Department::where('id', '=', $tickets->dept_id)->first(); ?><td title="{{$dept123->name}}">{{$dept123->name}}</td></tr>
|
||||
<tr><td><b>{!! Lang::get('lang.status') !!}:</b></td>
|
||||
<?php $status = App\Model\helpdesk\Ticket\Ticket_Status::where('id', '=', $tickets->status)->first(); ?>
|
||||
@if($status)
|
||||
<td title="{{$status->properties}}">{{$status->name}}</td>
|
||||
@endif
|
||||
</tr>
|
||||
<tr><td><b>{!! Lang::get('lang.priority') !!}:</b></td>
|
||||
<?php $priority = App\Model\helpdesk\Ticket\Ticket_Priority::where('priority_id', '=', $tickets->priority_id)->first(); ?>
|
||||
@if($priority)
|
||||
<td title="{{$priority->priority_desc}}">{{$priority->priority_desc}}</td>
|
||||
@endif
|
||||
</tr>
|
||||
<tr><td><b>{!! Lang::get('lang.department') !!}:</b></td>
|
||||
<?php $dept123 = App\Model\helpdesk\Agent\Department::where('id', '=', $tickets->dept_id)->first(); ?>
|
||||
@if($dept123)
|
||||
<td title="{{$dept123->name}}">{{$dept123->name}}</td></tr>
|
||||
@endif
|
||||
<tr><td><b>{!! Lang::get('lang.email') !!}:</b></td> <td>{{str_limit($user->email,30)}}</td></tr>
|
||||
@if($user->ban > 0) <tr><td style="color:orange;"><i class="fa fa-warning"></i><b>
|
||||
{!! Lang::get('lang.this_ticket_is_under_banned_user')!!}</td><td></td></tr>@endif
|
||||
@@ -306,6 +324,7 @@ if ($thread->title != "") {
|
||||
<ul class="nav nav-tabs">
|
||||
<li class="active"><a href="#General" data-toggle="tab" style="color:#27C116;" id="aa"><i class="fa fa-reply-all"> </i> {!! Lang::get('lang.reply') !!}</a></li>
|
||||
<li><a href="#Internal" data-toggle="tab" style="color:#0495FF;" id="bb"><i class="fa fa-file-text"> </i> {!! Lang::get('lang.internal_notes') !!}</a></li>
|
||||
<?php Event::fire('timeline.tab.list',[$TicketData]); ?>
|
||||
<!-- <li><a href="#Reply" data-toggle="tab" style="color:orange;"><i class="fa fa-mail-forward" > </i> Forward</a></li> -->
|
||||
</ul>
|
||||
<div class="tab-content">
|
||||
@@ -343,6 +362,7 @@ if ($thread->title != "") {
|
||||
<input type="hidden" name="_token" value="{{ csrf_token() }}">
|
||||
|
||||
<div id="t1">
|
||||
<div id="reply-response"></div>
|
||||
<div class="form-group">
|
||||
<div class="row">
|
||||
<!-- to -->
|
||||
@@ -370,7 +390,7 @@ if ($thread->title != "") {
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php Event::fire(new App\Events\TimeLineFormEvent($TicketData)); ?>
|
||||
<?php Event::fire(new App\Events\TimeLineFormEvent($tickets)); ?>
|
||||
<div class="form-group">
|
||||
<div class="row">
|
||||
<div class="col-md-2">
|
||||
@@ -403,6 +423,25 @@ if ($thread->title != "") {
|
||||
<textarea style="width:98%;height:20%;" name="reply_content" class="form-control" id="reply_content"></textarea>
|
||||
</div>
|
||||
{!! $errors->first('reply_content', '<spam class="help-block text-red">:message</spam>') !!}
|
||||
<script src="{{asset('vendor/unisharp/laravel-ckeditor/ckeditor.js')}}"></script>
|
||||
<script>
|
||||
CKEDITOR.replace( 'reply_content', {
|
||||
toolbarGroups: [
|
||||
{"name":"basicstyles","groups":["basicstyles"]},
|
||||
{"name":"links","groups":["links"]},
|
||||
{"name":"paragraph","groups":["list","blocks"]},
|
||||
{"name":"document","groups":["mode"]},
|
||||
{"name":"insert","groups":["insert"]},
|
||||
{"name":"styles","groups":["styles"]},
|
||||
{"name":"about","groups":["about"]}
|
||||
],
|
||||
filebrowserImageBrowseUrl: "{{url('laravel-filemanager?type=Images')}}",
|
||||
filebrowserImageUploadUrl: "{{url('laravel-filemanager/upload?type=Images')}}",
|
||||
filebrowserBrowseUrl: "{{url('laravel-filemanager?type=Files')}}",
|
||||
filebrowserUploadUrl: "{{url('laravel-filemanager/upload?type=Files')}}",
|
||||
removeButtons: 'Underline,Strike,Subscript,Superscript,Anchor,Styles,Specialchar'
|
||||
});
|
||||
</script>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -492,6 +531,7 @@ if ($thread->title != "") {
|
||||
{!!Form::close()!!}
|
||||
</div>
|
||||
</div>
|
||||
<?php Event::fire('timeline.tab.content',[$tickets]); ?>
|
||||
</div>
|
||||
</div>
|
||||
<!-- ticket conversations -->
|
||||
@@ -520,7 +560,9 @@ if ($thread->title != "") {
|
||||
<ul class="timeline">
|
||||
<!-- timeline time label -->
|
||||
<?php
|
||||
|
||||
foreach ($conversations as $conversation) {
|
||||
|
||||
if ($conversation == null) {
|
||||
} else {
|
||||
?>
|
||||
@@ -541,8 +583,10 @@ if ($thread->title != "") {
|
||||
$data = $ConvDate[0];
|
||||
}
|
||||
if($conversation->user_id != null) {
|
||||
$role = App\User::where('id', '=', $conversation->user_id)->first();
|
||||
}
|
||||
$role = $conversation->user;
|
||||
} else {
|
||||
$role = null;
|
||||
}
|
||||
?>
|
||||
</li>
|
||||
<li>
|
||||
@@ -566,7 +610,7 @@ if ($thread->title != "") {
|
||||
<?php
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
if($conversation->user_id != null) {
|
||||
if ($conversation->is_internal) {
|
||||
$color = '#A19CFF';
|
||||
@@ -581,6 +625,7 @@ if ($thread->title != "") {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
<div class="timeline-item">
|
||||
<span style="color:#fff;"><div class="pull-right"> <table><tbody>
|
||||
@@ -590,7 +635,7 @@ if ($thread->title != "") {
|
||||
@foreach($ratings as $rating)
|
||||
@if($rating->rating_area == 'Comment Area')
|
||||
<?php
|
||||
$rating_value = App\Model\helpdesk\Ratings\RatingRef::where('rating_id', '=', $rating->id)->where('thread_id', '=', $conversation->id)->first();
|
||||
$rating_value = App\Model\helpdesk\Ratings\RatingRef::where('rating_id', '=', $tickets->rating_id)->where('thread_id', '=', $conversation->id)->select('rating_value')->first();
|
||||
if ($rating_value == null) {
|
||||
$ratingval = '0';
|
||||
} else {
|
||||
@@ -601,7 +646,7 @@ if ($thread->title != "") {
|
||||
<th><div class="ticketratingtitle" style="color:#3c8dbc;" >{!! $rating->name !!} </div></th> 
|
||||
<td style="button:disabled;">
|
||||
<?php for ($i = 1; $i <= $rating->rating_scale; $i++) { ?>
|
||||
<input type="radio" class="star star-rating-readonly" id="star5" name="{!! $rating->name !!},{!! $conversation->id !!}" value="{!! $i !!}"<?php echo ($ratingval == $i) ? 'checked' : '' ?> />
|
||||
<input type="radio" class="star star-rating-readonly not-apply" id="star5" name="{!! $rating->name !!},{!! $conversation->id !!}" value="{!! $i !!}"<?php echo ($ratingval == $i) ? 'checked' : '' ?> />
|
||||
<?php } ?>
|
||||
</td>
|
||||
</tr>
|
||||
@@ -624,6 +669,7 @@ if ($thread->title != "") {
|
||||
} else {
|
||||
$usernam = Lang::get('lang.system');
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
<div class="user-block" style="margin-bottom:-5px;margin-top:-2px;">
|
||||
@@ -643,52 +689,59 @@ if ($thread->title != "") {
|
||||
@if($conversation->id == $ij->id)
|
||||
<a href="{{url('genereate-pdf/'.$conversation->id)}}" class= "pull-right fa fa-newspaper-o" title="generate pdf of this thread"></a>
|
||||
@endif
|
||||
|
||||
</div><!-- /.user-block -->
|
||||
|
||||
</h3>
|
||||
<div class="timeline-body" style="padding-left:30px;margin-bottom:-20px">
|
||||
@if($conversation->firstContent()=='yes')
|
||||
|
||||
|
||||
|
||||
@if($conversation->poster=='client')
|
||||
<div class="embed-responsive embed-responsive-16by9">
|
||||
<iframe id="loader_frame{{$conversation->id}}" class="embed-responsive-item">Body of html email here</iframe>
|
||||
<script type="text/javascript">
|
||||
<script type="text/javascript">
|
||||
jQuery(document).ready(function () {
|
||||
/* setInterval(function(){
|
||||
var mydiv = jQuery('#loader_frame{{$conversation->id}}').contents().find("body");
|
||||
var h = mydiv.height();
|
||||
/* setInterval(function(){
|
||||
var mydiv = jQuery('#loader_frame{{$conversation->id}}').contents().find("body");
|
||||
var h = mydiv.height();
|
||||
alert(h+20);
|
||||
}, 2000);*/
|
||||
jQuery('.embed-responsive-16by9').css('height','auto');
|
||||
jQuery('.embed-responsive-16by9').css('padding','0');
|
||||
jQuery('#loader_frame{{$conversation->id}}').css('width','100%');
|
||||
jQuery('#loader_frame{{$conversation->id}}').css('position','static');
|
||||
jQuery('#loader_frame{{$conversation->id}}').css('border','none');
|
||||
var mydiv = jQuery('#loader_frame{{$conversation->id}}').contents().find("body");
|
||||
var h = mydiv.height();
|
||||
jQuery('#loader_frame{{$conversation->id}}').css('height', h+20);
|
||||
setInterval(function(){
|
||||
//var mydiv = jQuery('#loader_frame{{$conversation->id}}').contents().find("body");
|
||||
//alert(mydiv.height());
|
||||
h = jQuery('#loader_frame{{$conversation->id}}').height();
|
||||
if (!!navigator.userAgent.match(/Trident\/7\./)){
|
||||
jQuery('#loader_frame{{$conversation->id}}').css('height', h);
|
||||
}else {
|
||||
jQuery('#loader_frame{{$conversation->id}}').css('height', h);
|
||||
}
|
||||
}, 2000);
|
||||
});
|
||||
}, 2000);*/
|
||||
jQuery('.embed-responsive-16by9').css('height','auto');
|
||||
jQuery('.embed-responsive-16by9').css('padding','0');
|
||||
jQuery('#loader_frame{{$conversation->id}}').css('width','100%');
|
||||
jQuery('#loader_frame{{$conversation->id}}').css('position','static');
|
||||
jQuery('#loader_frame{{$conversation->id}}').css('border','none');
|
||||
var mydiv = jQuery('#loader_frame{{$conversation->id}}').contents().find("body");
|
||||
var h = mydiv.height();
|
||||
jQuery('#loader_frame{{$conversation->id}}').css('height', h+20);
|
||||
setInterval(function(){
|
||||
//var mydiv = jQuery('#loader_frame{{$conversation->id}}').contents().find("body");
|
||||
//alert(mydiv.height());
|
||||
h = jQuery('#loader_frame{{$conversation->id}}').height();
|
||||
if (!!navigator.userAgent.match(/Trident\/7\./)){
|
||||
jQuery('#loader_frame{{$conversation->id}}').css('height', h);
|
||||
}else {
|
||||
jQuery('#loader_frame{{$conversation->id}}').css('height', h);
|
||||
}
|
||||
}, 2000);
|
||||
});
|
||||
</script>
|
||||
</div>
|
||||
<script>
|
||||
setTimeout(function(){
|
||||
$('#loader_frame{{$conversation->id}}')[0].contentDocument.body.innerHTML = '<body><style>body{display:inline-block;}</style>{!!$conversation->purify()!!}<body>'; }, 1000);
|
||||
$('#loader_frame{{$conversation->id}}')[0].contentDocument.body.innerHTML = '<body><style>body{display:inline-block;height:auto;}</style>{!!$conversation->purify()!!}<body>'; }, 1000);
|
||||
|
||||
</script>
|
||||
@else
|
||||
{!! $conversation->body !!}
|
||||
@endif
|
||||
|
||||
|
||||
|
||||
|
||||
@if($conversation->id == $ij->id)
|
||||
<?php $ticket_form_datas = App\Model\helpdesk\Ticket\Ticket_Form_Data::where('ticket_id', '=', $tickets->id)->get(); ?>
|
||||
<?php $ticket_form_datas = App\Model\helpdesk\Ticket\Ticket_Form_Data::where('ticket_id', '=', $tickets->ticket_id)->select('id')->get(); ?>
|
||||
@if(isset($ticket_form_datas))
|
||||
|
||||
<br/>
|
||||
@@ -696,45 +749,35 @@ alert(h+20);
|
||||
<tbody>
|
||||
@foreach($ticket_form_datas as $ticket_form_data)
|
||||
<tr>
|
||||
<td style="width: 30%">{!! $ticket_form_data->title !!}</td>
|
||||
<td>{!! $ticket_form_data->content !!}</td>
|
||||
<td style="width: 30%">{!! $ticket_form_data->getFieldKeyLabel() !!}</td>
|
||||
<td>{!! removeUnderscore($ticket_form_data->content) !!}</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
|
||||
</table>
|
||||
</tbody></table>
|
||||
|
||||
@endif
|
||||
@endif
|
||||
|
||||
</div>
|
||||
|
||||
<br/><br/>
|
||||
|
||||
<div class="timeline-footer" style="margin-bottom:-5px">
|
||||
@if(!$conversation->is_internal)
|
||||
@if($conversation->user_id != null)
|
||||
<?php Event::fire(new App\Events\Timeline($conversation, $role, $user)); ?>
|
||||
<?php Event::fire(new App\Events\Timeline($conversation, $role)); ?>
|
||||
@endif
|
||||
@endif
|
||||
<?php
|
||||
$attachments = App\Model\helpdesk\Ticket\Ticket_attachments::where('thread_id', '=', $conversation->id)->get();
|
||||
$i = 0;
|
||||
foreach ($attachments as $attachment) {
|
||||
if ($attachment->poster == 'ATTACHMENT') {
|
||||
$i++;
|
||||
}
|
||||
}
|
||||
if ($i > 0) {
|
||||
echo "<hr style='border-top: 1px dotted #FFFFFF;margin-top:0px;margin-bottom:0px;background-color:#8B8C90;'><h4 class='box-title'><b>" . $i . " </b> Attachments</h4>";
|
||||
}
|
||||
?>
|
||||
|
||||
<ul class='mailbox-attachments clearfix'>
|
||||
@forelse($attachments as $attachment)
|
||||
{!! $attachment->getFile() !!}
|
||||
@empty
|
||||
|
||||
@forelse ($conversation->attach as $attachment)
|
||||
{!! $attachment->getFile() !!}
|
||||
@empty
|
||||
@endforelse
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</li>
|
||||
<?php $lastid = $conversation->id ?>
|
||||
@@ -745,10 +788,10 @@ alert(h+20);
|
||||
<li>
|
||||
<i class="fa fa-clock-o bg-gray"></i>
|
||||
</li>
|
||||
<ul class="pull-right" style="padding-right:25px;padding-bottom:10px;">
|
||||
<?php echo $conversations->setPath(url('/thread/' . $tickets->id))->render(); ?>
|
||||
<ul class="pull-right" style="padding-right:40px" >
|
||||
<?php echo $conversations->setPath(url('/thread/' . $tickets->id))->render(); ?>
|
||||
</ul>
|
||||
</ul>
|
||||
</ul>
|
||||
</div><!-- /.col -->
|
||||
</div>
|
||||
</div><!-- /.row -->
|
||||
@@ -778,7 +821,7 @@ alert(h+20);
|
||||
<div class="col-md-6">
|
||||
<div class="form-group">
|
||||
<label>{!! Lang::get('lang.sla_plan') !!} <span class="text-red"> *</span></label>
|
||||
<?php $sla_plans = App\Model\helpdesk\Manage\Sla_plan::all() ?>
|
||||
<?php $sla_plans = App\Model\helpdesk\Manage\Sla_plan::where('status', '=', 1)->get() ?>
|
||||
<select class="form-control" name="sla_paln">
|
||||
@foreach($sla_plans as $sla_plan)
|
||||
<option value="{!! $sla_plan->id !!}" <?php
|
||||
@@ -794,7 +837,8 @@ alert(h+20);
|
||||
<div class="col-md-6">
|
||||
<div class="form-group">
|
||||
<label>{!! Lang::get('lang.help_topic') !!} <span class="text-red"> *</span></label>
|
||||
<?php $help_topics = App\Model\helpdesk\Manage\Help_topic::where('status', '=', 1)->get() ?>
|
||||
|
||||
<?php $help_topics = App\Model\helpdesk\Manage\Help_topic::where('status', '=', 1)->get(); ?>
|
||||
<select class="form-control" name="help_topic">
|
||||
@foreach($help_topics as $helptopic)
|
||||
<option value="{!! $helptopic->id !!}" <?php
|
||||
@@ -827,7 +871,7 @@ alert(h+20);
|
||||
<div class="col-md-6">
|
||||
<div class="form-group">
|
||||
<label>{!! Lang::get('lang.priority') !!} <span class="text-red"> *</span></label>
|
||||
<?php $ticket_prioritys = App\Model\helpdesk\Ticket\Ticket_Priority::where('status', '=', 1)->get(); ?>
|
||||
<?php $ticket_prioritys = App\Model\helpdesk\Ticket\Ticket_Priority::where('status','=',1)->get(); ?>
|
||||
<select class="form-control" name="ticket_priority">
|
||||
@foreach($ticket_prioritys as $ticket_priority)
|
||||
<option value="{!! $ticket_priority->priority_id !!}" <?php
|
||||
@@ -884,6 +928,7 @@ alert(h+20);
|
||||
</div><!-- /.modal-dialog -->
|
||||
</div><!-- /.modal -->
|
||||
<?php }
|
||||
\Event::fire('ticket.detail.modelpopup',[$tickets]);
|
||||
?>
|
||||
<!-- Change Owner Modal -->
|
||||
<div class="modal fade" id="ChangeOwner">
|
||||
@@ -1014,11 +1059,7 @@ alert(h+20);
|
||||
$teams = App\Model\helpdesk\Agent\Teams::where('status', '=', '1')->get();
|
||||
$count_teams = count($teams);
|
||||
?>
|
||||
<!--<optgroup label="Teams ( {!! $count_teams !!} )">
|
||||
@foreach($teams as $team)
|
||||
<option value="team_{{$team->id}}">{!! $team->name !!}</option>
|
||||
@endforeach
|
||||
</optgroup>-->
|
||||
|
||||
<optgroup label="Agents ( {!! $count_assign !!} )">
|
||||
@foreach($assign as $user)
|
||||
<option value="user_{{$user->id}}">{{$user->first_name." ".$user->last_name}}</option>
|
||||
@@ -1055,7 +1096,7 @@ alert(h+20);
|
||||
</div><!-- /.modal-content -->
|
||||
</div><!-- /.modal-dialog -->
|
||||
</div><!-- /.modal -->
|
||||
<?php \Event::fire('show-add-calendar-model', array())?>
|
||||
<?php \Event::fire('show-add-calendar-model', array('id' => $tickets->id))?>
|
||||
<!-- add or search user Modal -->
|
||||
<div class="modal fade" id="addccc">
|
||||
<div class="modal-dialog">
|
||||
@@ -1295,33 +1336,7 @@ alert(h+20);
|
||||
$("#InternalContent").wysihtml5();
|
||||
});
|
||||
jQuery('.star').attr('disabled', true);
|
||||
$(function () {
|
||||
// $('#cand').wysihtml5();
|
||||
var wysihtml5Editor = $('#reply_content').wysihtml5().data("wysihtml5").editor;
|
||||
$('#select').on('change', function (e) {
|
||||
|
||||
//alert('hello2');
|
||||
var $_token = $('#token').val();
|
||||
var data = $('#select').val();
|
||||
//var data1 = $(this).children('option:selected').data('id');
|
||||
//alert('data1');
|
||||
$.ajax({
|
||||
type : "POST",
|
||||
cache : false,
|
||||
headers : { 'X-XSRF-TOKEN' : $_token },
|
||||
url : "../canned/" + data,
|
||||
dataType : 'json',
|
||||
data : ({data}),
|
||||
success : function(response) {
|
||||
|
||||
// alert(response);
|
||||
wysihtml5Editor.setValue(response, true);
|
||||
console.log(wysihtml5Editor.getValue());
|
||||
}
|
||||
});
|
||||
return false;
|
||||
});
|
||||
});
|
||||
|
||||
$(function() {
|
||||
$("#tags, #tags2").autocomplete({
|
||||
source: 'auto/<?php echo $tickets->id; ?>'
|
||||
@@ -1557,7 +1572,6 @@ alert(h+20);
|
||||
$("#show").hide();
|
||||
$("#hide").show();
|
||||
if (response == 0) {
|
||||
location.reload();
|
||||
// message = "{!! Lang::get('lang.ticket_updated_successfully') !!}"
|
||||
// $("#dismis").trigger("click");
|
||||
// $("#refresh1").load("../thread/{{$tickets->id}} #refresh1");
|
||||
@@ -1565,6 +1579,7 @@ alert(h+20);
|
||||
// $("#alert11").show();
|
||||
// $('#message-success1').html(message);
|
||||
// setInterval(function(){$("#alert11").hide(); }, 4000);
|
||||
location.reload();
|
||||
}
|
||||
else if (response == 1) {
|
||||
$("#error-subject").show();
|
||||
@@ -1732,8 +1747,10 @@ alert(h+20);
|
||||
if (response == 1)
|
||||
{
|
||||
$("#refresh1").load("../thread/{{$tickets->id}} #refresh1");
|
||||
$(".embed-responsive-item").load("../thread/{{$tickets->id}} .embed-responsive-item");
|
||||
|
||||
// $("#t4").load("../thread/{{$tickets->id}} #t4");
|
||||
var message = "{!! Lang::get('lang.updated-internal-note') !!}";
|
||||
var message = "{!! Lang::get('lang.internal-note-has-been-added') !!}";
|
||||
$("#alert21").show();
|
||||
$('#message-success2').html(message);
|
||||
setInterval(function(){$("#alert21").hide(); }, 4000);
|
||||
@@ -1812,6 +1829,9 @@ alert(h+20);
|
||||
}
|
||||
|
||||
$('#form3').on('submit', function() {
|
||||
for ( instance in CKEDITOR.instances ) {
|
||||
CKEDITOR.instances[instance].updateElement();
|
||||
}
|
||||
var fd = new FormData(document.getElementById("form3"));
|
||||
var reply_content = document.getElementById('reply_content').value;
|
||||
if(reply_content) {
|
||||
@@ -1826,66 +1846,33 @@ alert(h+20);
|
||||
$("#t1").show();
|
||||
return false;
|
||||
}
|
||||
var reply_content = document.getElementById('reply_content').value;
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: "../thread/reply/{{ $tickets->id }}",
|
||||
enctype: 'multipart/form-data',
|
||||
dataType: "html",
|
||||
dataType: "json",
|
||||
data: fd,
|
||||
processData: false, // tell jQuery not to process the data
|
||||
contentType: false, // tell jQuery not to set contentType
|
||||
beforeSend: function() {
|
||||
|
||||
$("#t1").hide();
|
||||
$("#show3").show();
|
||||
},
|
||||
success: function(response) {
|
||||
if(response !== 1) {
|
||||
if(response === "file size exceeded") {
|
||||
alert(response);
|
||||
}
|
||||
}
|
||||
if (response == 1)
|
||||
{
|
||||
location.reload();
|
||||
// $("#refresh1").load("../thread/{{$tickets->id}} #refresh1");
|
||||
// var message = "{{ Lang::get('lang.you_have_successfully_replied_to_your_ticket') }}";
|
||||
// $("#alert21").show();
|
||||
// $('#message-success2').html(message);
|
||||
// setInterval(function(){$("#alert21").hide(); }, 4000);
|
||||
// $("#newtextarea").empty();
|
||||
// var div = document.getElementById('newtextarea');
|
||||
// div.innerHTML = div.innerHTML + '<textarea style="width:98%;height:200px;" name="reply_content" class="form-control" id="reply_content"/></textarea>';
|
||||
// $("#newtextarea1").empty();
|
||||
// var div1 = document.getElementById('newtextarea1');
|
||||
// div1.innerHTML = div1.innerHTML + '<textarea style="width:98%;height:200px;" name="InternalContent" class="form-control" id="InternalContent"/></textarea>';
|
||||
// var wysihtml5Editor = $('textarea').wysihtml5().data("wysihtml5").editor;
|
||||
// setInterval(function(){
|
||||
// var head= document.getElementsByTagName('head')[0];
|
||||
// var script= document.createElement('script');
|
||||
// script.type= 'text/javascript';
|
||||
// script.src= '{{asset("lb-faveo/js/jquery.rating.pack.js")}}';
|
||||
// head.appendChild(script);
|
||||
//// $('.rating-cancel').hide();
|
||||
//// $(".star-rating-control").attr("disabled", "disabled").off('hover');
|
||||
//// $(".star-rating-control").addClass("disabled")
|
||||
// }, 4000);
|
||||
|
||||
} else {
|
||||
// alert('fail');
|
||||
// $( "#dismis4" ).trigger( "click" );
|
||||
var message = "{!! Lang::get('lang.for_some_reason_your_reply_was_not_posted_please_try_again_later') !!}";
|
||||
$("#alert23").show();
|
||||
$('#message-danger2').html(message);
|
||||
setInterval(function(){$("#alert23").hide(); }, 4000);
|
||||
}
|
||||
$("#show3").hide();
|
||||
$("#t1").show();
|
||||
},
|
||||
error: function(response) {
|
||||
$("#show3").hide();
|
||||
$("#t1").show();
|
||||
}
|
||||
$("#show3").show();
|
||||
},
|
||||
success: function(json) {
|
||||
location.reload();
|
||||
//$('html, body').animate({ scrollTop: $("#heading").offset().top }, 500);
|
||||
},
|
||||
error: function(json) {
|
||||
$("#show3").hide();
|
||||
$("#t1").show();
|
||||
var res = "";
|
||||
$.each(json.responseJSON, function (idx, topic) {
|
||||
res += "<li>" + topic + "</li>";
|
||||
});
|
||||
$("#reply-response").html("<div class='alert alert-danger'><strong>Whoops!</strong> There were some problems with your input.<br><br><ul>" + res + "</ul></div>");
|
||||
//$('html, body').animate({ scrollTop: $("#heading").offset().top }, 500);
|
||||
}
|
||||
})
|
||||
return false;
|
||||
});
|
||||
@@ -1898,7 +1885,6 @@ alert(h+20);
|
||||
|
||||
if (response == 1)
|
||||
{
|
||||
location.reload();
|
||||
// alert('ticket has been un assigned');
|
||||
var message = "{!! Lang::get('lang.you_have_unassigned_your_ticket') !!}";
|
||||
$("#alert11").show();
|
||||
|
@@ -13,6 +13,31 @@ class="active"
|
||||
@stop
|
||||
@section('PageHeader')
|
||||
<h1>{{Lang::get('lang.tickets')}}</h1>
|
||||
<style>
|
||||
.tooltip1 {
|
||||
position: relative;
|
||||
/*display: inline-block;*/
|
||||
/*border-bottom: 1px dotted black;*/
|
||||
}
|
||||
|
||||
.tooltip1 .tooltiptext {
|
||||
visibility: hidden;
|
||||
width: 100%;
|
||||
background-color: black;
|
||||
color: #fff;
|
||||
text-align: center;
|
||||
border-radius: 6px;
|
||||
padding: 5px 0;
|
||||
|
||||
/* Position the tooltip */
|
||||
position: absolute;
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
.tooltip1:hover .tooltiptext {
|
||||
visibility: visible;
|
||||
}
|
||||
</style>
|
||||
@stop
|
||||
@section('content')
|
||||
<?php
|
||||
@@ -57,53 +82,21 @@ if (Auth::user()->role == 'agent') {
|
||||
{!! Lang::get('lang.change_status') !!} <span class="caret"></span>
|
||||
</button>
|
||||
<ul class="dropdown-menu">
|
||||
<li ><input type="submit" class="btn btn-block btn-default btn-flat btn-sm text-blue" id="delete" name="submit" value="{!! Lang::get('lang.open') !!}">
|
||||
<li ><input type="submit" class="btn btn-block btn-default btn-sm text-green" id="delete" name="submit" value="{!! Lang::get('lang.open') !!}">
|
||||
</li>
|
||||
<li ><input type="submit" class="btn btn-block btn-default btn-flat btn-sm text-yellow" name="submit" id="close" value="{!! Lang::get('lang.close') !!}"></li>
|
||||
<li ><input type="submit" class="btn btn-block btn-default btn-sm text-yellow" name="submit" id="close" value="{!! Lang::get('lang.close') !!}"></li>
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
<input type="submit" class="btn btn-default text-yellow btn-sm" name="submit" id="hard-delete" value="{{Lang::get('lang.clean-up')}}" title="{{Lang::get('lang.trash-delete-title-msg')}}">
|
||||
|
||||
|
||||
<!--</div>-->
|
||||
<p><p/>
|
||||
<div class="mailbox-messages" id="refresh">
|
||||
<p style="display:none;text-align:center; position:fixed; margin-left:40%;margin-top:-70px;" id="show" class="text-red"><b>{!! Lang::get('lang.loading') !!}...</b></p>
|
||||
<!-- table -->
|
||||
|
||||
{!! Datatable::table()
|
||||
->addColumn(
|
||||
"",
|
||||
Lang::get('lang.subject'),
|
||||
Lang::get('lang.ticket_id'),
|
||||
Lang::get('lang.priority'),
|
||||
Lang::get('lang.from'),
|
||||
Lang::get('lang.assigned_to'),
|
||||
Lang::get('lang.last_activity'))
|
||||
->setUrl(route('get.trash.ticket'))
|
||||
->setOrder(array(6=>'desc'))
|
||||
->setClass('table table-hover table-bordered table-striped')
|
||||
->setCallbacks("fnRowCallback",'function( nRow, aData, iDisplayIndex, iDisplayIndexFull ) {
|
||||
var str = aData[3];
|
||||
if(str.search("#000") == -1) {
|
||||
$("td", nRow).css({"background-color":"#F3F3F3", "font-weight":"600", "border-bottom":"solid 0.5px #ddd", "border-right":"solid 0.5px #F3F3F3"});
|
||||
$("td", nRow).mouseenter(function(){
|
||||
$("td", nRow).css({"background-color":"#DEDFE0", "font-weight":"600", "border-bottom":"solid 0.5px #ddd", "border-right":"solid 0.5px #DEDFE0"});
|
||||
});
|
||||
$("td", nRow).mouseleave(function(){
|
||||
$("td", nRow).css({"background-color":"#F3F3F3", "font-weight":"600", "border-bottom":"solid 0.5px #ddd","border-right":"solid 0.5px #F3F3F3"});
|
||||
});
|
||||
} else {
|
||||
$("td", nRow).css({"background-color":"white", "border-bottom":"solid 0.5px #ddd", "border-right":"solid 0.5px white"});
|
||||
$("td", nRow).mouseenter(function(){
|
||||
$("td", nRow).css({"background-color":"#DEDFE0", "border-bottom":"solid 0.5px #ddd", "border-right":"solid 0.5px #DEDFE0"});
|
||||
});
|
||||
$("td", nRow).mouseleave(function(){
|
||||
$("td", nRow).css({"background-color":"white", "border-bottom":"solid 0.5px #ddd", "border-right":"solid 0.5px white"});
|
||||
});
|
||||
}
|
||||
}')
|
||||
->render();!!}
|
||||
{!!$table->render('vendor.Chumper.template')!!}
|
||||
|
||||
</div><!-- /.mail-box-messages -->
|
||||
{!! Form::close() !!}
|
||||
@@ -130,7 +123,7 @@ if (Auth::user()->role == 'agent') {
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
{!! $table->script('vendor.Chumper.ticket-javascript') !!}
|
||||
<script>
|
||||
var option = null;
|
||||
$(function() {
|
||||
|
@@ -13,6 +13,31 @@ class="active"
|
||||
@stop
|
||||
@section('PageHeader')
|
||||
<h1>{{Lang::get('lang.tickets')}}</h1>
|
||||
<style>
|
||||
.tooltip1 {
|
||||
position: relative;
|
||||
/*display: inline-block;*/
|
||||
/*border-bottom: 1px dotted black;*/
|
||||
}
|
||||
|
||||
.tooltip1 .tooltiptext {
|
||||
visibility: hidden;
|
||||
width: 100%;
|
||||
background-color: black;
|
||||
color: #fff;
|
||||
text-align: center;
|
||||
border-radius: 6px;
|
||||
padding: 5px 0;
|
||||
|
||||
/* Position the tooltip */
|
||||
position: absolute;
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
.tooltip1:hover .tooltiptext {
|
||||
visibility: visible;
|
||||
}
|
||||
</style>
|
||||
@stop
|
||||
@section('content')
|
||||
<?php
|
||||
@@ -47,7 +72,7 @@ if (Auth::user()->role == 'agent') {
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
{{Session::get('fails')}}
|
||||
</div>
|
||||
@endif
|
||||
@endif
|
||||
{!! Form::open(['id'=>'modalpopup', 'route'=>'select_all','method'=>'post']) !!}
|
||||
|
||||
<!--<div class="mailbox-controls">-->
|
||||
@@ -56,6 +81,7 @@ if (Auth::user()->role == 'agent') {
|
||||
<input type="submit" class="submit btn btn-default text-orange btn-sm" id="delete" name="submit" value="{!! Lang::get('lang.delete') !!}">
|
||||
<input type="submit" class="submit btn btn-default text-yellow btn-sm" id="close" name="submit" value="{!! Lang::get('lang.close') !!}">
|
||||
<button type="button" class="btn btn-sm btn-default text-green" id="Edit_Ticket" data-toggle="modal" data-target="#MergeTickets"><i class="fa fa-code-fork"> </i> {!! Lang::get('lang.merge') !!}</button>
|
||||
|
||||
<button type="button" class="btn btn-sm btn-default" id="assign_Ticket" data-toggle="modal" data-target="#AssignTickets" style="display: none;"><i class="fa fa-hand-o-right"> </i> {!! Lang::get('lang.assign') !!}</button>
|
||||
<!--</div>-->
|
||||
<p><p/>
|
||||
@@ -63,40 +89,7 @@ if (Auth::user()->role == 'agent') {
|
||||
<p style="display:none;text-align:center; position:fixed; margin-left:40%;margin-top:-70px;" id="show" class="text-red"><b>{!! Lang::get('lang.loading') !!}...</b></p>
|
||||
<!-- table -->
|
||||
|
||||
{!! Datatable::table()
|
||||
->addColumn(
|
||||
"",
|
||||
Lang::get('lang.subject'),
|
||||
Lang::get('lang.ticket_id'),
|
||||
Lang::get('lang.priority'),
|
||||
Lang::get('lang.from'),
|
||||
Lang::get('lang.assigned_to'),
|
||||
Lang::get('lang.last_activity'))
|
||||
->setUrl(route('get.unassigned.ticket'))
|
||||
|
||||
->setOrder(array(6=>'desc'))
|
||||
->setClass('table table-hover table-bordered table-striped')
|
||||
->setCallbacks("fnRowCallback",'function( nRow, aData, iDisplayIndex, iDisplayIndexFull ) {
|
||||
var str = aData[3];
|
||||
if(str.search("#000") == -1) {
|
||||
$("td", nRow).css({"background-color":"#F3F3F3", "font-weight":"600", "border-bottom":"solid 0.5px #ddd", "border-right":"solid 0.5px #F3F3F3"});
|
||||
$("td", nRow).mouseenter(function(){
|
||||
$("td", nRow).css({"background-color":"#DEDFE0", "font-weight":"600", "border-bottom":"solid 0.5px #ddd", "border-right":"solid 0.5px #DEDFE0"});
|
||||
});
|
||||
$("td", nRow).mouseleave(function(){
|
||||
$("td", nRow).css({"background-color":"#F3F3F3", "font-weight":"600", "border-bottom":"solid 0.5px #ddd","border-right":"solid 0.5px #F3F3F3"});
|
||||
});
|
||||
} else {
|
||||
$("td", nRow).css({"background-color":"white", "border-bottom":"solid 0.5px #ddd", "border-right":"solid 0.5px white"});
|
||||
$("td", nRow).mouseenter(function(){
|
||||
$("td", nRow).css({"background-color":"#DEDFE0", "border-bottom":"solid 0.5px #ddd", "border-right":"solid 0.5px #DEDFE0"});
|
||||
});
|
||||
$("td", nRow).mouseleave(function(){
|
||||
$("td", nRow).css({"background-color":"white", "border-bottom":"solid 0.5px #ddd", "border-right":"solid 0.5px white"});
|
||||
});
|
||||
}
|
||||
}')
|
||||
->render();!!}
|
||||
{!!$table->render('vendor.Chumper.template')!!}
|
||||
|
||||
</div><!-- /.mail-box-messages -->
|
||||
{!! Form::close() !!}
|
||||
@@ -200,7 +193,7 @@ if (Auth::user()->role == 'agent') {
|
||||
</div><!-- /.modal-content -->
|
||||
</div><!-- /.modal-dialog -->
|
||||
</div><!-- /.modal -->
|
||||
<!-- Assign ticket model-->
|
||||
<!-- Assign ticket model-->
|
||||
<!-- Modal -->
|
||||
<div class="modal fade in" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="false" style="display: none; padding-right: 15px;background-color: rgba(0, 0, 0, 0.7);">
|
||||
<div class="modal-dialog" role="document">
|
||||
@@ -222,7 +215,7 @@ if (Auth::user()->role == 'agent') {
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
{!! $table->script('vendor.Chumper.ticket-javascript') !!}
|
||||
<script>
|
||||
var t_id = [];
|
||||
var option = null;
|
||||
@@ -255,14 +248,14 @@ if (Auth::user()->role == 'agent') {
|
||||
t_id = $('.selectval').map(function() {
|
||||
return $(this).val();
|
||||
}).get();
|
||||
showAssign(t_id);
|
||||
showAssign(t_id)
|
||||
// alert(checkboxValues);
|
||||
} else {
|
||||
//Check all checkboxes
|
||||
$("input[type='checkbox']", ".mailbox-messages").iCheck("check");
|
||||
// alert('Hallo');
|
||||
t_id = [];
|
||||
showAssign(t_id);
|
||||
showAssign(t_id)
|
||||
}
|
||||
$(this).data("clicks", !clicks);
|
||||
|
||||
@@ -428,15 +421,10 @@ if (Auth::user()->role == 'agent') {
|
||||
var message = "{{Lang::get('lang.merge-success')}}";
|
||||
$("#merge-succ-alert").show();
|
||||
$('#message-merge-succ').html(message);
|
||||
setInterval(function() {
|
||||
setTimeout(function () {
|
||||
$("#alert11").hide();
|
||||
setTimeout(function() {
|
||||
var link = document.querySelector('#load-unassigned');
|
||||
if (link) {
|
||||
link.click();
|
||||
}
|
||||
}, 500);
|
||||
}, 2000);
|
||||
location.reload();
|
||||
}, 1000);
|
||||
|
||||
}
|
||||
|
||||
@@ -467,7 +455,7 @@ if (Auth::user()->role == 'agent') {
|
||||
$('#assign-form').on('submit', function() {
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: "../ticket/assign/"+t_id,
|
||||
url: "ticket/assign/"+t_id,
|
||||
dataType: "html",
|
||||
data: $(this).serialize(),
|
||||
beforeSend: function() {
|
||||
@@ -490,7 +478,6 @@ if (Auth::user()->role == 'agent') {
|
||||
})
|
||||
return false;
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
function someFunction(id) {
|
||||
|
@@ -121,8 +121,7 @@ class="active"
|
||||
@if ($email_mandatory->status == 0 || $settings->status == 1)
|
||||
<span class="text-red"> *</span>
|
||||
@endif
|
||||
{!! Form::input('number','mobile',null,['class' => 'form-control', 'id' => 'mobile']) !!}
|
||||
<!-- {!! Form::text('mobile',null,['class' => 'form-control']) !!} -->
|
||||
{!! Form::input('number', 'mobile',null,['class' => 'form-control']) !!}
|
||||
</div>
|
||||
<div class="col-xs-1 form-group {{ $errors->has('ext') ? 'has-error' : '' }}">
|
||||
<label for="ext">{!! Lang::get('lang.ext') !!}</label>
|
||||
@@ -130,8 +129,7 @@ class="active"
|
||||
</div>
|
||||
<div class="col-xs-3 form-group {{ $errors->has('phone_number') ? 'has-error' : '' }}">
|
||||
<label for="phone_number">{!! Lang::get('lang.phone') !!}</label>
|
||||
{!! Form::input('number','phone_number',null,['class' => 'form-control', 'id' => 'phone_number']) !!}
|
||||
<!-- {!! Form::text('phone_number',null,['class' => 'form-control']) !!} -->
|
||||
{!! Form::text('phone_number',null,['class' => 'form-control']) !!}
|
||||
</div>
|
||||
<div class="col-md-3 form-group {{ $errors->has('active') ? 'has-error' : '' }}">
|
||||
{!! Form::label('active',Lang::get('lang.status')) !!}
|
||||
|
@@ -95,7 +95,17 @@ class="active"
|
||||
</div>
|
||||
<div class="col-xs-6 form-group {{ $errors->has('organization') ? 'has-error' : '' }}">
|
||||
{!! Form::label('organization',Lang::get('lang.organization')) !!}
|
||||
{!! Form::select('org_id',[''=>'Select','Organization'=>$org],null,['class' => 'form-control','id'=>'org']) !!}
|
||||
|
||||
|
||||
<select class="form-control" name="org_id">
|
||||
@foreach($orgs as $org)
|
||||
<option value="{!! $org->id !!}" <?php
|
||||
if ($org->id==$organization_id) {
|
||||
echo 'selected';
|
||||
}
|
||||
?> >{!! $org->name !!}</option>
|
||||
@endforeach
|
||||
</select>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
@@ -108,8 +118,7 @@ class="active"
|
||||
<!-- mobile Number : Text : -->
|
||||
<div class="col-md-3 form-group {{ $errors->has('mobile') ? 'has-error' : '' }}">
|
||||
{!! Form::label('mobile',Lang::get('lang.mobile')) !!}
|
||||
{!! Form::input('number','mobile',null,['class' => 'form-control', 'id' => 'mobile']) !!}
|
||||
<!-- {!! Form::text('mobile',null,['class' => 'form-control']) !!} -->
|
||||
{!! Form::input('number', 'mobile',null,['class' => 'form-control']) !!}
|
||||
</div>
|
||||
<div class="col-xs-1 form-group {{ $errors->has('ext') ? 'has-error' : '' }}">
|
||||
<label for="ext">{!! Lang::get('lang.ext') !!}</label>
|
||||
@@ -117,8 +126,7 @@ class="active"
|
||||
</div>
|
||||
<div class="col-xs-3 form-group {{ $errors->has('phone_number') ? 'has-error' : '' }}">
|
||||
<label for="phone_number">{!! Lang::get('lang.phone') !!}</label>
|
||||
<!-- {!! Form::text('phone_number',null,['class' => 'form-control']) !!} -->
|
||||
{!! Form::input('number','phone_number',null,['class' => 'form-control', 'id' => 'phone_number']) !!}
|
||||
{!! Form::text('phone_number',null,['class' => 'form-control']) !!}
|
||||
</div>
|
||||
<div class="col-xs-2 form-group {{ $errors->has('active') ? 'has-error' : '' }}">
|
||||
{!! Form::label('active',Lang::get('lang.status')) !!}
|
||||
|
@@ -29,8 +29,33 @@ class="active"
|
||||
@section('content')
|
||||
<!-- open a form -->
|
||||
<div class="box box-primary">
|
||||
|
||||
|
||||
|
||||
<div class="box-header with-border">
|
||||
<h3 class="box-title">{{Lang::get('lang.user')}}</h3><a href="{{route('user.create')}}" class="btn btn-primary pull-right">{{Lang::get('lang.create_user')}}</a>
|
||||
<div class="row">
|
||||
<div class="col-md-6">
|
||||
<h3 class="box-title ">{{Lang::get('lang.user')}}</h3>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<div class="col-md-3">
|
||||
</div>
|
||||
<div class="col-md-9">
|
||||
<div class="pull-right">
|
||||
<div id="labels-div" class="btn-group">
|
||||
<button type="button" class="btn btn-sm btn-default dropdown-toggle" data-toggle="dropdown" id="labels-button"><i class="fa fa-eye" style="color:teal;"> </i>{{Lang::get('lang.view-option')}}<span class="caret"></span>
|
||||
</button>
|
||||
<ul class="dropdown-menu pull-right" role="menu">
|
||||
<li><a href="#" class="active">{{Lang::get('lang.active-users')}}</a></li>
|
||||
<li><a href="#" class="inactive">{{Lang::get('lang.deleted-users')}}</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<a href="{{url('user-export')}}" class="btn btn-default btn-sm ">Export</a>
|
||||
<a href="{{route('user.create')}}" class="btn btn-primary btn-sm">{{Lang::get('lang.create_user')}}</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="box-body">
|
||||
<!-- check whether success or not -->
|
||||
@@ -57,21 +82,14 @@ class="active"
|
||||
{{Session::get('fails')}}
|
||||
</div>
|
||||
@endif
|
||||
<?php
|
||||
$users = App\User::where('role', '=', 'user')->orderBy('id', 'ASC')->paginate(20);
|
||||
?>
|
||||
{!! Datatable::table()
|
||||
->addColumn(Lang::get('lang.name'),
|
||||
Lang::get('lang.email'),
|
||||
Lang::get('lang.phone'),
|
||||
Lang::get('lang.status'),
|
||||
Lang::get('lang.ban'),
|
||||
Lang::get('lang.last_login'),
|
||||
Lang::get('lang.role'),
|
||||
Lang::get('lang.action')) // these are the column headings to be shown
|
||||
->setUrl(route('user.list')) // this is the route where data will be retrieved
|
||||
->render() !!}
|
||||
{!!$table->render('vendor.Chumper.template')!!}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
{!! $table->script('vendor.Chumper.user-javascript') !!}
|
||||
@stop
|
||||
<!-- /content -->
|
@@ -46,6 +46,7 @@ class="active"
|
||||
@endif
|
||||
@if(Session::has('errors'))
|
||||
<?php //dd($errors); ?>
|
||||
|
||||
<div class="alert alert-danger alert-dismissable">
|
||||
<i class="fa fa-ban"></i>
|
||||
<b>{!! Lang::get('lang.alert') !!}!</b>
|
||||
@@ -99,20 +100,20 @@ class="active"
|
||||
{!! Form::label('country_code',Lang::get('lang.country-code')) !!}
|
||||
{!! Form::text('country_code',null,['class' => 'form-control', 'placeholder' => $phonecode, 'title' => Lang::get('lang.enter-country-phone-code'), 'id' => 'code']) !!}
|
||||
</div>
|
||||
<div class="col-xs-2 form-group {{ $errors->has('ext') ? 'has-error' : '' }}">
|
||||
{!! Form::label('ext',Lang::get('lang.ext')) !!}
|
||||
{!! Form::text('ext',null,['class' => 'form-control']) !!}
|
||||
</div>
|
||||
<!-- phone number -->
|
||||
<div class="col-xs-8 form-group {{ $errors->has('phone_number') ? 'has-error' : '' }}">
|
||||
{!! Form::label('phone_number',Lang::get('lang.phone')) !!}
|
||||
{!! Form::text('phone_number',null,['class' => 'form-control']) !!}
|
||||
</div>
|
||||
<div class="col-xs-2 form-group {{ $errors->has('ext') ? 'has-error' : '' }}">
|
||||
{!! Form::label('ext',Lang::get('lang.ext')) !!}
|
||||
{!! Form::text('ext',null,['class' => 'form-control']) !!}
|
||||
</div>
|
||||
</div>
|
||||
<!-- mobile -->
|
||||
<div class="form-group {{ $errors->has('mobile') ? 'has-error' : '' }}">
|
||||
{!! Form::label('mobile',Lang::get('lang.mobile_number')) !!}
|
||||
{!! Form::text('mobile',null,['class' => 'form-control', 'id' => 'mobile']) !!}
|
||||
{!! Form::input('number', 'mobile',null,['class' => 'form-control', 'id' => 'mobile']) !!}
|
||||
</div>
|
||||
<div class="form-group {{ $errors->has('agent_sign') ? 'has-error' : '' }}">
|
||||
{!! Form::label('agent_sign',Lang::get('lang.agent_sign')) !!}
|
||||
|
File diff suppressed because it is too large
Load Diff
@@ -21,35 +21,38 @@
|
||||
<link href="{{asset("lb-faveo/plugins/iCheck/flat/blue.css")}}" rel="stylesheet" type="text/css" />
|
||||
<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
|
||||
<link href="{{asset("lb-faveo/css/tabby.css")}}" rel="stylesheet" type="text/css"/>
|
||||
|
||||
|
||||
<link href="{{asset("lb-faveo/css/jquerysctipttop.css")}}" rel="stylesheet" type="text/css"/>
|
||||
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
|
||||
<link href="{{asset("lb-faveo/css/editor.css")}}" rel="stylesheet" type="text/css"/>
|
||||
|
||||
<link href="{{asset("lb-faveo/css/jquery.ui.css")}}" rel="stylesheet" rel="stylesheet"/>
|
||||
|
||||
|
||||
<link href="{{asset("lb-faveo/plugins/datatables/dataTables.bootstrap.css")}}" rel="stylesheet" type="text/css"/>
|
||||
|
||||
|
||||
<link href="{{asset("lb-faveo/plugins/bootstrap-wysihtml5/bootstrap3-wysihtml5.min.css")}}" rel="stylesheet" type="text/css"/>
|
||||
|
||||
<link href="{{asset("lb-faveo/css/faveo-css.css")}}" rel="stylesheet" type="text/css" />
|
||||
|
||||
|
||||
<link href="{{asset("lb-faveo/css/notification-style.css")}}" rel="stylesheet" type="text/css" >
|
||||
|
||||
|
||||
<link href="{{asset("lb-faveo/css/jquery.rating.css")}}" rel="stylesheet" type="text/css" />
|
||||
<!-- Select2 -->
|
||||
<link href="{{asset("lb-faveo/plugins/select2/select2.min.css")}}" rel="stylesheet" type="text/css" />
|
||||
<link href="{{asset("css/close-button.css")}}" rel="stylesheet" type="text/css" />
|
||||
|
||||
<!--Daterangepicker-->
|
||||
<link rel="stylesheet" href="{{asset("lb-faveo/plugins/daterangepicker/daterangepicker.css")}}" rel="stylesheet" type="text/css" />
|
||||
<!--calendar -->
|
||||
<!-- fullCalendar 2.2.5-->
|
||||
<link href="{{asset('lb-faveo/plugins/fullcalendar/fullcalendar.min.css')}}" rel="stylesheet" type="text/css" />
|
||||
|
||||
<!--[if lt IE 9]>
|
||||
<script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
|
||||
<script src="https://oss.maxcdn.com/libs/respond.js/1.3.0/respond.min.js"></script>
|
||||
<![endif]-->
|
||||
<script src="{{asset("lb-faveo/js/jquery-2.1.4.js")}}" type="text/javascript"></script>
|
||||
|
||||
|
||||
<script src="{{asset("lb-faveo/js/jquery2.1.1.min.js")}}" type="text/javascript"></script>
|
||||
|
||||
@yield('HeadInclude')
|
||||
@@ -59,11 +62,6 @@
|
||||
<header class="main-header">
|
||||
<a href="http://www.faveohelpdesk.com" class="logo"><img src="{{ asset('lb-faveo/media/images/logo.png')}}" width="100px;"></a>
|
||||
<?php
|
||||
$company = App\Model\helpdesk\Settings\Company::where('id', '=', '1')->first();
|
||||
if ($company != null) {
|
||||
|
||||
}
|
||||
$replacetop = 0;
|
||||
$replacetop = \Event::fire('service.desk.agent.topbar.replace', array());
|
||||
|
||||
if (count($replacetop) == 0) {
|
||||
@@ -71,7 +69,7 @@
|
||||
} else {
|
||||
$replacetop = $replacetop[0];
|
||||
}
|
||||
$replaceside = 0;
|
||||
|
||||
$replaceside = \Event::fire('service.desk.agent.sidebar.replace', array());
|
||||
|
||||
if (count($replaceside) == 0) {
|
||||
@@ -90,9 +88,6 @@
|
||||
<span class="icon-bar"></span>
|
||||
<span class="icon-bar"></span>
|
||||
</a>
|
||||
<?php $notifications = App\Http\Controllers\Common\NotificationController::getNotifications();
|
||||
|
||||
?>
|
||||
<div class="collapse navbar-collapse" id="navbar-collapse">
|
||||
@if($replacetop==0)
|
||||
<ul class="tabs tabs-horizontal nav navbar-nav navbar-left">
|
||||
@@ -100,25 +95,26 @@
|
||||
<li @yield('Users')><a data-target="#tabB" href="#">{!! Lang::get('lang.users') !!}</a></li>
|
||||
<li @yield('Tickets')><a data-target="#tabC" href="#">{!! Lang::get('lang.tickets') !!}</a></li>
|
||||
<li @yield('Tools')><a data-target="#tabD" href="#">{!! Lang::get('lang.tools') !!}</a></li>
|
||||
@if(Auth::user()->role == 'admin')
|
||||
<li @yield('Report')><a href="{{URL::route('report.index')}}" onclick="clickReport(event);">Report</a></li>
|
||||
@if($auth_user_role == 'admin')
|
||||
<li @yield('Report')><a href="{{URL::route('report.index')}}" onclick="clickReport(event);">Report</a></li>
|
||||
@endif
|
||||
<?php \Event::fire('calendar.topbar', array()); ?>
|
||||
</ul>
|
||||
@else
|
||||
<?php \Event::fire('service.desk.agent.topbar', array()); ?>
|
||||
@endif
|
||||
<?php $noti = \App\Model\helpdesk\Notification\UserNotification::where('user_id', '=', Auth::user()->id)->where('is_read', '0')->get(); ?>
|
||||
<?php \Event::fire('service.desk.agent.topbar', array()); ?>
|
||||
@endif
|
||||
|
||||
<ul class="nav navbar-nav navbar-right">
|
||||
@if(Auth::user()->role == 'admin')
|
||||
@if($auth_user_role == 'admin')
|
||||
<li><a href="{{url('admin')}}">{!! Lang::get('lang.admin_panel') !!}</a></li>
|
||||
@include('themes.default1.update.notification')
|
||||
|
||||
@endif
|
||||
@include('themes.default1.update.notification')
|
||||
<!-- 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()">
|
||||
<i class="fa fa-bell-o"></i>
|
||||
<span class="label label-danger" id="count">{!! count($noti) !!}</span>
|
||||
<span class="label label-danger" id="count">{!! $notifications->count() !!}</span>
|
||||
</a>
|
||||
<ul class="dropdown-menu" style="width:500px">
|
||||
|
||||
@@ -130,43 +126,44 @@
|
||||
|
||||
<li id="refreshNote">
|
||||
|
||||
<li class="header">You have {!! count($noti) !!} notifications. <a class="pull-right" id="read-all" href="#">Mark all as read.</a></li>
|
||||
<li class="header">You have {!! $notifications->count() !!} notifications. <a class="pull-right" id="read-all" href="#">Mark all as read.</a></li>
|
||||
|
||||
<ul class="menu">
|
||||
@foreach($notifications as $notification)
|
||||
<?php $user = App\User::whereId($notification->user_id)->first(); ?>
|
||||
@if($notification->type == 'registration')
|
||||
|
||||
@if($notifications->count())
|
||||
@foreach($notifications->orderBy('created_at', 'desc')->get()->take(10) as $notification)
|
||||
|
||||
@if($notification->notification->type->type == 'registration')
|
||||
@if($notification->is_read == 1)
|
||||
<li class="task" style="list-style: none; margin-left: -30px;"><span> <img src="{{$user -> profile_pic}}" class="user-image" style="width:6%;height: 5%" alt="User Image" />
|
||||
<a href="{!! route('user.show', $notification->model_id) !!}" id="{{$notification -> notification_id}}" class='noti_User'>
|
||||
{!! $notification->message !!}
|
||||
<li class="task" style="list-style: none; margin-left: -30px;"><span> <img src="{{$notification -> users -> profile_pic}}" class="user-image" style="width:6%;height: 5%" alt="User Image" />
|
||||
<a href="{!! route('user.show', $notification->notification->model_id) !!}" id="{{$notification -> notification_id}}" class='noti_User'>
|
||||
{!! $notification->notification->type->message !!}
|
||||
</a></span>
|
||||
</li>
|
||||
@else
|
||||
<li style="list-style: none; margin-left: -30px;"><span> <img src="{{$user -> profile_pic}}" class="user-image" style="width:6%;height: 5%" alt="User Image" />
|
||||
<a href="{!! route('user.show', $notification->model_id) !!}" id="{{$notification -> notification_id}}" class='noti_User'>
|
||||
{!! $notification->message !!}
|
||||
<li style="list-style: none; margin-left: -30px;"><span> <img src="{{$notification -> users -> profile_pic}}" class="user-image" style="width:6%;height: 5%" alt="User Image" />
|
||||
<a href="{!! route('user.show', $notification->notification->model_id) !!}" id="{{$notification -> notification_id}}" class='noti_User'>
|
||||
{!! $notification->notification->type->message !!}
|
||||
</a></span>
|
||||
</li>
|
||||
@endif
|
||||
@else
|
||||
|
||||
<?php $ticket_number = App\Model\helpdesk\Ticket\Tickets::whereId($notification->model_id)->first(); ?>
|
||||
@if($notification->is_read == 1)
|
||||
<li class="task" style="list-style: none;margin-left: -30px"><span> <img src="{{$user -> profile_pic}}" class="img-circle" style="width:6%;height: 5%" alt="User Image" />
|
||||
<a href="{!! route('ticket.thread', $notification->model_id) !!}" id='{{ $notification -> notification_id}}' class='noti_User'>
|
||||
{!! $notification->message !!} with id "{!!$ticket_number->ticket_number!!}"
|
||||
<li class="task" style="list-style: none;margin-left: -30px"><span> <img src="{{$notification -> users -> profile_pic}}" class="img-circle" style="width:6%;height: 5%" alt="User Image" />
|
||||
<a href="{!! route('ticket.thread', $notification->notification->model_id) !!}" id='{{ $notification -> notification_id}}' class='noti_User'>
|
||||
{!! $notification->notification->type->message !!} with id "{!!$notification->notification->model->ticket_number!!}"
|
||||
</a></span>
|
||||
</li>
|
||||
@else
|
||||
<li style="list-style: none;margin-left: -30px"><span> <img src="{{$user -> profile_pic}}" class="img-circle" style="width:6%;height: 5%" alt="User Image" />
|
||||
<a href="{!! route('ticket.thread', $notification->model_id) !!}" id='{{ $notification -> notification_id}}' class='noti_User'>
|
||||
{!! $notification->message !!} with id "{!!$ticket_number->ticket_number!!}"
|
||||
@elseif($notification->notification->model)
|
||||
<li style="list-style: none;margin-left: -30px"><span> <img src="{{$notification -> users -> profile_pic}}" class="img-circle" style="width:6%;height: 5%" alt="User Image" />
|
||||
<a href="{!! route('ticket.thread', $notification->notification->model_id) !!}" id='{{ $notification -> notification_id}}' class='noti_User'>
|
||||
{!! $notification->notification->type->message !!} with id "{!!$notification->notification->model->ticket_number!!}"
|
||||
</a></span>
|
||||
</li>
|
||||
@endif
|
||||
@endif
|
||||
@endforeach
|
||||
@endif
|
||||
</ul>
|
||||
</li>
|
||||
<li class="footer no-border"><div class="col-md-5"></div><div class="col-md-2">
|
||||
@@ -179,17 +176,17 @@
|
||||
<!-- User Account: style can be found in dropdown.less -->
|
||||
<li class="dropdown user user-menu">
|
||||
<a href="#" class="dropdown-toggle" data-toggle="dropdown">
|
||||
@if(Auth::user())
|
||||
<img src="{{Auth::user()->profile_pic}}"class="user-image" alt="User Image"/>
|
||||
<span class="hidden-xs">{{Auth::user()->first_name." ".Auth::user()->last_name}}</span>
|
||||
@if($auth_user_id)
|
||||
<img src="{{$auth_user_profile_pic}}"class="user-image" alt="User Image"/>
|
||||
<span class="hidden-xs">{{$auth_name}}</span>
|
||||
@endif
|
||||
</a>
|
||||
<ul class="dropdown-menu">
|
||||
<!-- User image -->
|
||||
<li class="user-header" style="background-color:#343F44;">
|
||||
<img src="{{Auth::user()->profile_pic}}" class="img-circle" alt="User Image" />
|
||||
<img src="{{$auth_user_profile_pic}}" class="img-circle" alt="User Image" />
|
||||
<p>
|
||||
{{Auth::user()->first_name." ".Auth::user()->last_name}} - {{Auth::user()->role}}
|
||||
{{$auth_name}} - {{$auth_user_role}}
|
||||
<small></small>
|
||||
</p>
|
||||
</li>
|
||||
@@ -202,10 +199,15 @@
|
||||
<a href="{{url('auth/logout')}}" class="btn btn-danger btn-sm"><b>{!! Lang::get('lang.sign_out') !!}</b></a>
|
||||
</div>
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
|
||||
</div>
|
||||
|
||||
</nav>
|
||||
</header>
|
||||
<!-- Left side column. contains the logo and sidebar -->
|
||||
@@ -220,168 +222,110 @@
|
||||
<div class="col-xs-3"></div>
|
||||
<div class="col-xs-2" style="width:50%;">
|
||||
<a href="{!! url('profile') !!}">
|
||||
<img src="{{Auth::user()->profile_pic}}" class="img-circle" alt="User Image" />
|
||||
<img src="{{$auth_user_profile_pic}}" class="img-circle" alt="User Image" />
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
@endif
|
||||
<div class="info" style="text-align:center;">
|
||||
@if(Auth::user())
|
||||
<p>{{Auth::user()->first_name." ".Auth::user()->last_name}}</p>
|
||||
@if($auth_user_id)
|
||||
<p>{{$auth_name}}</p>
|
||||
@endif
|
||||
@if(Auth::user() && Auth::user()->active==1)
|
||||
@if($auth_user_id && $auth_user_active==1)
|
||||
<a href="#"><i class="fa fa-circle text-success"></i> Online</a>
|
||||
@else
|
||||
<a href="#"><i class="fa fa-circle"></i> Offline</a>
|
||||
@endif
|
||||
</div>
|
||||
</div>
|
||||
<!-- search form -->
|
||||
{{-- < form action = "#" method = "get" class = "sidebar-form" > --}}
|
||||
{{-- < div class = "input-group" > --}}
|
||||
{{-- < input type = "text" name = "q" class = "form-control" placeholder = "Search..." / > --}}
|
||||
{{-- < span class = "input-group-btn" > --}}
|
||||
{{-- < button type = 'submit' name = 'seach' id = 'search-btn' class = "btn btn-flat" > < i class = "fa fa-search" > < /i></button > --}}
|
||||
{{-- < /span> --}}
|
||||
{{-- < /div> --}}
|
||||
{{-- < /form> --}}
|
||||
<!-- /.search form -->
|
||||
<!-- sidebar menu: : style can be found in sidebar.less -->
|
||||
<ul id="side-bar" class="sidebar-menu">
|
||||
@if($replaceside==0)
|
||||
@yield('sidebar')
|
||||
<li class="header">{!! Lang::get('lang.Tickets') !!}</li>
|
||||
<?php
|
||||
if (Auth::user()->role == 'admin') {
|
||||
|
||||
//$inbox = App\Model\helpdesk\Ticket\Tickets::all();
|
||||
$myticket = App\Model\helpdesk\Ticket\Tickets::where('assigned_to', Auth::user()->id)->where('status', '1')->get();
|
||||
$unassigned = App\Model\helpdesk\Ticket\Tickets::where('assigned_to', '=', null)->where('status', '=', '1')->get();
|
||||
$tickets = App\Model\helpdesk\Ticket\Tickets::whereIn('status', array(1, 7))->get();
|
||||
|
||||
$closingapproval = App\Model\helpdesk\Ticket\Tickets::where('status', '7')->get();
|
||||
|
||||
$deleted = App\Model\helpdesk\Ticket\Tickets::where('status', '5')->get();
|
||||
} elseif (Auth::user()->role == 'agent') {
|
||||
//$inbox = App\Model\helpdesk\Ticket\Tickets::where('dept_id','',Auth::user()->primary_dpt)->get();
|
||||
$myticket = App\Model\helpdesk\Ticket\Tickets::where('assigned_to', Auth::user()->id)->where('status', '1')->get();
|
||||
$unassigned = App\Model\helpdesk\Ticket\Tickets::where('assigned_to', '=', null)->where('status', '=', '1')->where('dept_id', '=', Auth::user()->primary_dpt)->get();
|
||||
$tickets = App\Model\helpdesk\Ticket\Tickets::whereIn('status', array(1, 7))->where('dept_id', '=', Auth::user()->primary_dpt)->orWhere('assigned_to', '=', Auth::user()->id)->get();
|
||||
|
||||
$closingapproval = App\Model\helpdesk\Ticket\Tickets::where('status', '7')->get();
|
||||
|
||||
$deleted = App\Model\helpdesk\Ticket\Tickets::where('status', '5')->where('dept_id', '=', Auth::user()->primary_dpt)->get();
|
||||
}
|
||||
if (Auth::user()->role == 'agent') {
|
||||
$dept = App\Model\helpdesk\Agent\Department::where('id', '=', Auth::user()->primary_dpt)->first();
|
||||
$overdues = App\Model\helpdesk\Ticket\Tickets::where('status', '=', 1)->where('isanswered', '=', 0)->where('dept_id', '=', $dept->id)->orderBy('id', 'DESC')->get();
|
||||
} 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;
|
||||
} else {
|
||||
$j = 0;
|
||||
foreach ($overdues as $overdue) {
|
||||
$sla_plan = App\Model\helpdesk\Manage\Sla_plan::where('id', '=', $overdue->sla)->first();
|
||||
|
||||
$ovadate = $overdue->created_at;
|
||||
$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 {
|
||||
$overdue_ticket = 0;
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
||||
<li @yield('inbox')>
|
||||
<a href="{{ url('/ticket/inbox')}}" id="load-inbox">
|
||||
<i class="fa fa-envelope"></i> <span>{!! Lang::get('lang.inbox') !!}</span> <small class="label pull-right bg-green"><?php echo count($tickets); ?></small>
|
||||
<a href="{{ url('/ticket/inbox')}}" id="load-inbox">
|
||||
<i class="fa fa-envelope"></i> <span>{!! Lang::get('lang.inbox') !!}</span> <small class="label pull-right bg-green">{{$tickets -> count()}}</small>
|
||||
</a>
|
||||
</li>
|
||||
<li @yield('myticket')>
|
||||
<a href="{{url('ticket/myticket')}}" id="load-myticket">
|
||||
<a href="{{url('ticket/myticket')}}" id="load-myticket">
|
||||
<i class="fa fa-user"></i> <span>{!! Lang::get('lang.my_tickets') !!} </span>
|
||||
<small class="label pull-right bg-green">{{count($myticket)}}</small>
|
||||
<small class="label pull-right bg-green">{{$myticket -> count()}}</small>
|
||||
</a>
|
||||
</li>
|
||||
<li @yield('unassigned')>
|
||||
<a href="{{url('unassigned')}}" id="load-unassigned">
|
||||
<a href="{{url('unassigned')}}" id="load-unassigned">
|
||||
<i class="fa fa-th"></i> <span>{!! Lang::get('lang.unassigned') !!}</span>
|
||||
<small class="label pull-right bg-green">{{count($unassigned)}}</small>
|
||||
<small class="label pull-right bg-green">{{$unassigned -> count()}}</small>
|
||||
</a>
|
||||
</li>
|
||||
<li @yield('overdue')>
|
||||
<a href="{{url('ticket/overdue')}}" id="load-unassigned">
|
||||
<a href="{{url('ticket/overdue')}}" id="load-unassigned">
|
||||
<i class="fa fa-calendar-times-o"></i> <span>{!! Lang::get('lang.overdue') !!}</span>
|
||||
<small class="label pull-right bg-green">{{$overdue_ticket}}</small>
|
||||
<small class="label pull-right bg-green">{{$overdues->count()}}</small>
|
||||
</a>
|
||||
</li>
|
||||
|
||||
|
||||
<li @yield('trash')>
|
||||
<a href="{{url('trash')}}">
|
||||
<i class="fa fa-trash-o"></i> <span>{!! Lang::get('lang.trash') !!}</span>
|
||||
<small class="label pull-right bg-green">{{count($deleted)}}</small>
|
||||
<small class="label pull-right bg-green">{{$deleted -> count()}}</small>
|
||||
</a>
|
||||
</li>
|
||||
<li class="header">{!! Lang::get('lang.Departments') !!}</li>
|
||||
<?php
|
||||
$depts = App\Model\helpdesk\Agent\Department::all();
|
||||
foreach ($depts as $dept) {
|
||||
$open = App\Model\helpdesk\Ticket\Tickets::where('status', '=', '1')->where('isanswered', '=', 0)->where('dept_id', '=', $dept->id)->get();
|
||||
$open = count($open);
|
||||
$underprocess = App\Model\helpdesk\Ticket\Tickets::where('status', '=', '1')->where('assigned_to', '>', 0)->where('dept_id', '=', $dept->id)->get();
|
||||
$underprocess = count($underprocess);
|
||||
$closed = App\Model\helpdesk\Ticket\Tickets::where('status', '=', '2')->where('dept_id', '=', $dept->id)->get();
|
||||
$closed = count($closed);
|
||||
$flattened = $department->flatMap(function ($values) {
|
||||
return $values->keyBy('status');
|
||||
});
|
||||
$statuses = $flattened->keys();
|
||||
?>
|
||||
<?php
|
||||
$segments = \Request::segments();
|
||||
$segment = "";
|
||||
foreach($segments as $seg){
|
||||
$segment.="/".$seg;
|
||||
}
|
||||
if(count($segments) > 2) {
|
||||
$dept2 = $segments[1];
|
||||
$status2 = $segments[2];
|
||||
} else {
|
||||
$dept2 = '';
|
||||
$status2 = '';
|
||||
}
|
||||
?>
|
||||
@foreach($department as $name=>$dept)
|
||||
|
||||
<li class="treeview @if($dept2 === $name) @yield('ticket-bar') @endif ">
|
||||
<a href="#">
|
||||
<i class="fa fa-folder-open"></i> <span>{!! $name !!}</span> <i class="fa fa-angle-left pull-right"></i>
|
||||
</a>
|
||||
@foreach($statuses as $status)
|
||||
@if($dept->get($status))
|
||||
<ul class="treeview-menu">
|
||||
<li @if($status2 == $dept->get($status)->status && $dept2 === $name) @yield('inbox') @endif><a href="{{url('tickets/'.$name.'/'.$dept->get($status)->status)}}"><i class="fa fa-circle-o"></i> {!!$dept->get($status)->status !!}<small class="label pull-right bg-green">{{$dept->get($status)->count}}</small></a></li>
|
||||
</ul>
|
||||
@endif
|
||||
@endforeach
|
||||
|
||||
</li>
|
||||
@endforeach
|
||||
|
||||
|
||||
if (Auth::user()->role == 'admin') {
|
||||
?>
|
||||
<li class="treeview">
|
||||
<a href="#">
|
||||
<i class="fa fa-folder-open"></i> <span>{!! $dept->name !!}</span> <i class="fa fa-angle-left pull-right"></i>
|
||||
</a>
|
||||
<ul class="treeview-menu">
|
||||
<li><a href="{!! url::route('dept.open.ticket',$dept->name) !!}"><i class="fa fa-circle-o"></i>{!! Lang::get('lang.open') !!}<small class="label pull-right bg-green">{!! $open !!}</small></a></li>
|
||||
<li><a href="{!! url::route('dept.inprogress.ticket',$dept->name) !!}"><i class="fa fa-circle-o"></i>{!! Lang::get('lang.assigned') !!}<small class="label pull-right bg-green">{!! $underprocess !!}</small></a></li>
|
||||
<li><a href="{!! url::route('dept.closed.ticket',$dept->name) !!}"><i class="fa fa-circle-o"></i>{!! Lang::get('lang.closed') !!}<small class="label pull-right bg-green">{!! $closed !!}</small></a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<?php } if (Auth::user()->role == 'agent' && Auth::user()->primary_dpt == $dept->id) { ?>
|
||||
<li class="treeview">
|
||||
<a href="#">
|
||||
<i class="fa fa-folder-open"></i> <span>{!! $dept->name !!}</span> <i class="fa fa-angle-left pull-right"></i>
|
||||
</a>
|
||||
<ul class="treeview-menu">
|
||||
<li><a href="{!! url::route('dept.open.ticket',$dept->name) !!}"><i class="fa fa-circle-o"></i>{!! Lang::get('lang.open') !!}<small class="label pull-right bg-green">{!! $open !!}</small></a></li>
|
||||
<li><a href="{!! url::route('dept.inprogress.ticket',$dept->name) !!}"><i class="fa fa-circle-o"></i>{!! Lang::get('lang.assigned') !!}<small class="label pull-right bg-green">{!! $underprocess !!}</small></a></li>
|
||||
<li><a href="{!! url::route('dept.closed.ticket',$dept->name) !!}"><i class="fa fa-circle-o"></i>{!! Lang::get('lang.closed') !!}<small class="label pull-right bg-green">{!! $closed !!}</small></a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<?php }
|
||||
}
|
||||
?>
|
||||
@endif
|
||||
<?php \Event::fire('service.desk.agent.sidebar', array()); ?>
|
||||
@endif
|
||||
</ul>
|
||||
</section>
|
||||
<!-- /.sidebar -->
|
||||
</aside>
|
||||
<?php
|
||||
$agent_group = Auth::user()->assign_group;
|
||||
$group = App\Model\helpdesk\Agent\Groups::where('id', '=', $agent_group)->where('group_status', '=', '1')->first();
|
||||
?>
|
||||
<?php
|
||||
$agent_group = $auth_user_assign_group;
|
||||
$group = App\Model\helpdesk\Agent\Groups::where('id', '=', $agent_group)->where('group_status', '=', '1')->first();
|
||||
?>
|
||||
<!-- Right side column. Contains the navbar and content of the page -->
|
||||
<div class="content-wrapper">
|
||||
<!-- Content Header (Page header) -->
|
||||
<div class="tab-content" style="background-color: white;padding: 0 20px 0 20px">
|
||||
<div class="tab-content" style="background-color: white;padding: 0 0px 0 20px">
|
||||
<div class="collapse navbar-collapse" id="navbar-collapse">
|
||||
<div class="tabs-content">
|
||||
@if($replacetop==0)
|
||||
@@ -393,6 +337,7 @@
|
||||
<ul class="nav navbar-nav">
|
||||
<li id="bar" @yield('user')><a href="{{ url('user')}}" >{!! Lang::get('lang.user_directory') !!}</a></li></a></li>
|
||||
<li id="bar" @yield('organizations')><a href="{{ url('organizations')}}" >{!! Lang::get('lang.organizations') !!}</a></li></a></li>
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
<div class="tabs-pane @yield('ticket-bar')" id="tabC">
|
||||
@@ -402,12 +347,12 @@
|
||||
<li id="bar" @yield('myticket')><a href="{{ url('/ticket/myticket')}}" >{!! Lang::get('lang.my_tickets') !!}</a></li>
|
||||
{{-- < li id = "bar" @yield('ticket') > < a href = "{{ url('ticket') }}" >Ticket</a></li> --}}
|
||||
{{-- < li id = "bar" @yield('overdue') > < a href = "{{ url('/ticket/overdue') }}" >Overdue</a></li> --}}
|
||||
|
||||
|
||||
<li id="bar" @yield('assigned')><a href="{{ url('/ticket/assigned')}}" id="load-assigned" >{!! Lang::get('lang.assigned') !!}</a></li>
|
||||
<li id="bar" @yield('closed')><a href="{{ url('/ticket/closed')}}" >{!! Lang::get('lang.closed') !!}</a></li>
|
||||
<?php if ($group->can_create_ticket == 1) { ?>
|
||||
<?php if ($group->can_create_ticket == 1) { ?>
|
||||
<li id="bar" @yield('newticket')><a href="{{ url('/newticket')}}" >{!! Lang::get('lang.create_ticket') !!}</a></li>
|
||||
<?php } ?>
|
||||
<?php } ?>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="tabs-pane @yield('tools-bar')" id="tabD">
|
||||
@@ -416,11 +361,11 @@
|
||||
<li id="bar" @yield('kb')><a href="{{ url('/comment')}}" >{!! Lang::get('lang.knowledge_base') !!}</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
@if(Auth::user()->role == 'admin')
|
||||
<div class="tabs-pane @yield('report-bar')" id="tabD">
|
||||
<ul class="nav navbar-nav">
|
||||
</ul>
|
||||
</div>
|
||||
@if($auth_user_role == 'admin')
|
||||
<div class="tabs-pane @yield('report-bar')" id="tabD">
|
||||
<ul class="nav navbar-nav">
|
||||
</ul>
|
||||
</div>
|
||||
@endif
|
||||
@endif
|
||||
<?php \Event::fire('service.desk.agent.topsubbar', array()); ?>
|
||||
@@ -444,156 +389,157 @@
|
||||
</footer>
|
||||
</div><!-- ./wrapper -->
|
||||
|
||||
<script src="{{asset("lb-faveo/js/ajax-jquery.min.js")}}" type="text/javascript"></script>
|
||||
|
||||
<script src="{{asset("lb-faveo/js/bootstrap-datetimepicker4.7.14.min.js")}}" type="text/javascript"></script>
|
||||
<!-- Bootstrap 3.3.2 JS -->
|
||||
<script src="{{asset("lb-faveo/js/bootstrap.min.js")}}" type="text/javascript"></script>
|
||||
<!-- Slimscroll -->
|
||||
<script src="{{asset("lb-faveo/plugins/slimScroll/jquery.slimscroll.min.js")}}" type="text/javascript"></script>
|
||||
<!-- FastClick -->
|
||||
<script src="{{asset("lb-faveo/plugins/fastclick/fastclick.min.js")}}" type="text/javascript"></script>
|
||||
<!-- AdminLTE App -->
|
||||
<script src="{{asset("lb-faveo/js/app.min.js")}}" type="text/javascript"></script>
|
||||
<script src="{{asset("lb-faveo/js/ajax-jquery.min.js")}}" type="text/javascript"></script>
|
||||
|
||||
<!-- iCheck -->
|
||||
<script src="{{asset("lb-faveo/plugins/iCheck/icheck.min.js")}}" type="text/javascript"></script>
|
||||
<!-- jquery ui -->
|
||||
<script src="{{asset("lb-faveo/js/jquery.ui.js")}}" type="text/javascript"></script>
|
||||
|
||||
<script src="{{asset("lb-faveo/plugins/datatables/dataTables.bootstrap.js")}}" type="text/javascript"></script>
|
||||
|
||||
<script src="{{asset("lb-faveo/plugins/datatables/jquery.dataTables.js")}}" type="text/javascript"></script>
|
||||
<!-- Page Script -->
|
||||
<script src="{{asset("lb-faveo/js/jquery.dataTables1.10.10.min.js")}}" type="text/javascript" ></script>
|
||||
<script src="{{asset("lb-faveo/js/bootstrap-datetimepicker4.7.14.min.js")}}" type="text/javascript"></script>
|
||||
<!-- Bootstrap 3.3.2 JS -->
|
||||
<script src="{{asset("lb-faveo/js/bootstrap.min.js")}}" type="text/javascript"></script>
|
||||
<!-- Slimscroll -->
|
||||
<script src="{{asset("lb-faveo/plugins/slimScroll/jquery.slimscroll.min.js")}}" type="text/javascript"></script>
|
||||
<!-- FastClick -->
|
||||
<script src="{{asset("lb-faveo/plugins/fastclick/fastclick.min.js")}}" type="text/javascript"></script>
|
||||
<!-- AdminLTE App -->
|
||||
<script src="{{asset("lb-faveo/js/app.min.js")}}" type="text/javascript"></script>
|
||||
|
||||
<script type="text/javascript" src="{{asset("lb-faveo/plugins/datatables/dataTables.bootstrap.js")}}" type="text/javascript"></script>
|
||||
<!-- iCheck -->
|
||||
<script src="{{asset("lb-faveo/plugins/iCheck/icheck.min.js")}}" type="text/javascript"></script>
|
||||
<!-- jquery ui -->
|
||||
<script src="{{asset("lb-faveo/js/jquery.ui.js")}}" type="text/javascript"></script>
|
||||
|
||||
<script src="{{asset("lb-faveo/js/jquery.rating.pack.js")}}" type="text/javascript"></script>
|
||||
<script src="{{asset("lb-faveo/plugins/datatables/dataTables.bootstrap.js")}}" type="text/javascript"></script>
|
||||
|
||||
<script src="{{asset("lb-faveo/plugins/select2/select2.full.min.js")}}" type="text/javascript"></script>
|
||||
<script src="{{asset("lb-faveo/plugins/datatables/jquery.dataTables.js")}}" type="text/javascript"></script>
|
||||
<!-- Page Script -->
|
||||
<script src="{{asset("lb-faveo/js/jquery.dataTables1.10.10.min.js")}}" type="text/javascript" ></script>
|
||||
|
||||
<script src="{{asset("lb-faveo/plugins/moment/moment.js")}}" type="text/javascript"></script>
|
||||
<!-- full calendar-->
|
||||
<script src="{{asset('lb-faveo/plugins/fullcalendar/fullcalendar.min.js')}}" type="text/javascript"></script>
|
||||
<script src="{{asset('lb-faveo/plugins/daterangepicker/daterangepicker.js')}}" type="text/javascript"></script>
|
||||
<script>
|
||||
$(document).ready(function () {
|
||||
$('.noti_User').click(function () {
|
||||
var id = this.id;
|
||||
var dataString = 'id=' + id;
|
||||
$.ajax
|
||||
({
|
||||
type: "POST",
|
||||
url: "{{url('mark-read')}}" + "/" + id,
|
||||
data: dataString,
|
||||
cache: false,
|
||||
success: function (html)
|
||||
{
|
||||
}
|
||||
});
|
||||
});
|
||||
});
|
||||
$('#read-all').click(function () {
|
||||
<script type="text/javascript" src="{{asset("lb-faveo/plugins/datatables/dataTables.bootstrap.js")}}" type="text/javascript"></script>
|
||||
|
||||
var id2 = <?php echo \Auth::user()->id ?>;
|
||||
var dataString = 'id=' + id2;
|
||||
$.ajax
|
||||
({
|
||||
type: "POST",
|
||||
url: "{{url('mark-all-read')}}" + "/" + id2,
|
||||
data: dataString,
|
||||
cache: false,
|
||||
beforeSend: function () {
|
||||
$('#myDropdown').on('hide.bs.dropdown', function () {
|
||||
return false;
|
||||
});
|
||||
$("#refreshNote").hide();
|
||||
$("#notification-loader").show();
|
||||
},
|
||||
success: function (response) {
|
||||
$("#refreshNote").load("<?php echo $_SERVER['REQUEST_URI']; ?> #refreshNote");
|
||||
$("#notification-loader").hide();
|
||||
$('#myDropdown').removeClass('open');
|
||||
}
|
||||
});
|
||||
});</script>
|
||||
<script>
|
||||
$(function() {
|
||||
// Enable check and uncheck all functionality
|
||||
$(".checkbox-toggle").click(function() {
|
||||
var clicks = $(this).data('clicks');
|
||||
if (clicks) {
|
||||
//Uncheck all checkboxes
|
||||
$("input[type='checkbox']", ".mailbox-messages").iCheck("uncheck");
|
||||
} else {
|
||||
//Check all checkboxes
|
||||
$("input[type='checkbox']", ".mailbox-messages").iCheck("check");
|
||||
}
|
||||
$(this).data("clicks", !clicks);
|
||||
});
|
||||
//Handle starring for glyphicon and font awesome
|
||||
$(".mailbox-star").click(function(e) {
|
||||
e.preventDefault();
|
||||
//detect type
|
||||
var $this = $(this).find("a > i");
|
||||
var glyph = $this.hasClass("glyphicon");
|
||||
var fa = $this.hasClass("fa");
|
||||
//Switch states
|
||||
if (glyph) {
|
||||
$this.toggleClass("glyphicon-star");
|
||||
$this.toggleClass("glyphicon-star-empty");
|
||||
}
|
||||
if (fa) {
|
||||
$this.toggleClass("fa-star");
|
||||
$this.toggleClass("fa-star-o");
|
||||
}
|
||||
});
|
||||
});
|
||||
</script>
|
||||
<script src="{{asset("lb-faveo/js/jquery.rating.pack.js")}}" type="text/javascript"></script>
|
||||
|
||||
<script src="{{asset("lb-faveo/js/tabby.js")}}" type="text/javascript"></script>
|
||||
<script src="{{asset("lb-faveo/plugins/select2/select2.full.min.js")}}" type="text/javascript"></script>
|
||||
|
||||
<script src="{{asset("lb-faveo/plugins/filebrowser/plugin.js")}}" type="text/javascript"></script>
|
||||
<script src="{{asset("lb-faveo/plugins/moment/moment.js")}}" type="text/javascript"></script>
|
||||
|
||||
<script src="{{asset("lb-faveo/plugins/bootstrap-wysihtml5/bootstrap3-wysihtml5.all.min.js")}}" type="text/javascript"></script>
|
||||
<!-- full calendar-->
|
||||
<script src="{{asset('lb-faveo/plugins/fullcalendar/fullcalendar.min.js')}}" type="text/javascript"></script>
|
||||
<script src="{{asset('lb-faveo/plugins/daterangepicker/daterangepicker.js')}}" type="text/javascript"></script>
|
||||
<script>
|
||||
$(document).ready(function () {
|
||||
|
||||
<script type="text/javascript">
|
||||
$.ajaxSetup({
|
||||
headers: { 'X-CSRF-Token' : $('meta[name=_token]').attr('content') }
|
||||
$('.noti_User').click(function () {
|
||||
var id = this.id;
|
||||
var dataString = 'id=' + id;
|
||||
$.ajax
|
||||
({
|
||||
type: "POST",
|
||||
url: "{{url('mark-read')}}" + "/" + id,
|
||||
data: dataString,
|
||||
cache: false,
|
||||
success: function (html)
|
||||
{
|
||||
}
|
||||
});
|
||||
});
|
||||
</script>
|
||||
<script type="text/javascript">
|
||||
function clickDashboard(e) {
|
||||
if (e.ctrlKey === true) {
|
||||
window.open('{{URL::route("dashboard")}}', '_blank');
|
||||
} else {
|
||||
window.location = "{{URL::route('dashboard')}}";
|
||||
}
|
||||
}
|
||||
function clickReport(e) {
|
||||
if (e.ctrlKey === true) {
|
||||
});
|
||||
$('#read-all').click(function () {
|
||||
|
||||
var id2 = <?php echo $auth_user_id ?>;
|
||||
var dataString = 'id=' + id2;
|
||||
$.ajax
|
||||
({
|
||||
type: "POST",
|
||||
url: "{{url('mark-all-read')}}" + "/" + id2,
|
||||
data: dataString,
|
||||
cache: false,
|
||||
beforeSend: function () {
|
||||
$('#myDropdown').on('hide.bs.dropdown', function () {
|
||||
return false;
|
||||
});
|
||||
$("#refreshNote").hide();
|
||||
$("#notification-loader").show();
|
||||
},
|
||||
success: function (response) {
|
||||
$("#refreshNote").load("<?php echo $_SERVER['REQUEST_URI']; ?> #refreshNote");
|
||||
$("#notification-loader").hide();
|
||||
$('#myDropdown').removeClass('open');
|
||||
}
|
||||
});
|
||||
});</script>
|
||||
<script>
|
||||
$(function() {
|
||||
// Enable check and uncheck all functionality
|
||||
$(".checkbox-toggle").click(function() {
|
||||
var clicks = $(this).data('clicks');
|
||||
if (clicks) {
|
||||
//Uncheck all checkboxes
|
||||
$("input[type='checkbox']", ".mailbox-messages").iCheck("uncheck");
|
||||
} else {
|
||||
//Check all checkboxes
|
||||
$("input[type='checkbox']", ".mailbox-messages").iCheck("check");
|
||||
}
|
||||
$(this).data("clicks", !clicks);
|
||||
});
|
||||
//Handle starring for glyphicon and font awesome
|
||||
$(".mailbox-star").click(function(e) {
|
||||
e.preventDefault();
|
||||
//detect type
|
||||
var $this = $(this).find("a > i");
|
||||
var glyph = $this.hasClass("glyphicon");
|
||||
var fa = $this.hasClass("fa");
|
||||
//Switch states
|
||||
if (glyph) {
|
||||
$this.toggleClass("glyphicon-star");
|
||||
$this.toggleClass("glyphicon-star-empty");
|
||||
}
|
||||
if (fa) {
|
||||
$this.toggleClass("fa-star");
|
||||
$this.toggleClass("fa-star-o");
|
||||
}
|
||||
});
|
||||
});</script>
|
||||
|
||||
<script src="{{asset("lb-faveo/js/tabby.js")}}" type="text/javascript"></script>
|
||||
|
||||
<script src="{{asset("lb-faveo/plugins/filebrowser/plugin.js")}}" type="text/javascript"></script>
|
||||
|
||||
<script src="{{asset("lb-faveo/plugins/bootstrap-wysihtml5/bootstrap3-wysihtml5.all.min.js")}}" type="text/javascript"></script>
|
||||
|
||||
<script type="text/javascript">
|
||||
$.ajaxSetup({
|
||||
headers: { 'X-CSRF-Token' : $('meta[name=_token]').attr('content') }
|
||||
});</script>
|
||||
<script type="text/javascript">
|
||||
function clickDashboard(e) {
|
||||
if (e.ctrlKey === true) {
|
||||
window.open('{{URL::route("dashboard")}}', '_blank');
|
||||
} else {
|
||||
window.location = "{{URL::route('dashboard')}}";
|
||||
}
|
||||
}
|
||||
|
||||
function clickReport(e) {
|
||||
if (e.ctrlKey === true) {
|
||||
window.open('{{URL::route("report.index")}}', '_blank');
|
||||
} else {
|
||||
} else {
|
||||
window.location = "{{URL::route('report.index')}}";
|
||||
}
|
||||
}
|
||||
</script>
|
||||
<?php Event::fire('show.calendar.script', array()); ?>
|
||||
<?php Event::fire('load-calendar-scripts', array()); ?>
|
||||
@yield('FooterInclude')
|
||||
</body>
|
||||
<script>
|
||||
}
|
||||
}
|
||||
</script>
|
||||
<script>
|
||||
$(function() {
|
||||
|
||||
|
||||
$('input[type="checkbox"]').iCheck({
|
||||
checkboxClass: 'icheckbox_flat-blue'
|
||||
});
|
||||
$('input[type="radio"]').iCheck({
|
||||
$('input[type="radio"]:not(.not-apply)').iCheck({
|
||||
radioClass: 'iradio_flat-blue'
|
||||
});
|
||||
|
||||
});
|
||||
</script>
|
||||
<?php Event::fire('show.calendar.script', array()); ?>
|
||||
<?php Event::fire('load-calendar-scripts', array()); ?>
|
||||
@yield('FooterInclude')
|
||||
</body>
|
||||
</html>
|
620
resources/views/themes/default1/agent/layout/agentold.blade.php
Normal file
620
resources/views/themes/default1/agent/layout/agentold.blade.php
Normal file
@@ -0,0 +1,620 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="UTF-8" ng-app="myApp">
|
||||
<title>Faveo | HELP DESK</title>
|
||||
<meta content='width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no' name='viewport'>
|
||||
<meta name="_token" content="{!! csrf_token() !!}"/>
|
||||
<!-- faveo favicon -->
|
||||
<link href="{{asset("lb-faveo/media/images/favicon.ico")}}" rel="shortcut icon">
|
||||
<!-- Bootstrap 3.3.2 -->
|
||||
<link href="{{asset("lb-faveo/css/bootstrap.min.css")}}" rel="stylesheet" type="text/css" />
|
||||
<!-- Font Awesome Icons -->
|
||||
<link href="{{asset("lb-faveo/css/font-awesome.min.css")}}" rel="stylesheet" type="text/css" />
|
||||
<!-- Ionicons -->
|
||||
<link href="{{asset("lb-faveo/css/ionicons.min.css")}}" rel="stylesheet" type="text/css" />
|
||||
<!-- Theme style -->
|
||||
<link href="{{asset("lb-faveo/css/AdminLTE.css")}}" rel="stylesheet" type="text/css" />
|
||||
<!-- AdminLTE Skins. Choose a skin from the css/skins folder instead of downloading all of them to reduce the load. -->
|
||||
<link href="{{asset("lb-faveo/css/skins/_all-skins.min.css")}}" rel="stylesheet" type="text/css" />
|
||||
<!-- iCheck -->
|
||||
<link href="{{asset("lb-faveo/plugins/iCheck/flat/blue.css")}}" rel="stylesheet" type="text/css" />
|
||||
<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
|
||||
<link href="{{asset("lb-faveo/css/tabby.css")}}" rel="stylesheet" type="text/css"/>
|
||||
|
||||
<link href="{{asset("lb-faveo/css/jquerysctipttop.css")}}" rel="stylesheet" type="text/css"/>
|
||||
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
|
||||
<link href="{{asset("lb-faveo/css/editor.css")}}" rel="stylesheet" type="text/css"/>
|
||||
|
||||
<link href="{{asset("lb-faveo/css/jquery.ui.css")}}" rel="stylesheet" rel="stylesheet"/>
|
||||
|
||||
<link href="{{asset("lb-faveo/plugins/datatables/dataTables.bootstrap.css")}}" rel="stylesheet" type="text/css"/>
|
||||
|
||||
<link href="{{asset("lb-faveo/plugins/bootstrap-wysihtml5/bootstrap3-wysihtml5.min.css")}}" rel="stylesheet" type="text/css"/>
|
||||
|
||||
<link href="{{asset("lb-faveo/css/faveo-css.css")}}" rel="stylesheet" type="text/css" />
|
||||
|
||||
<link href="{{asset("lb-faveo/css/notification-style.css")}}" rel="stylesheet" type="text/css" >
|
||||
|
||||
<link href="{{asset("lb-faveo/css/jquery.rating.css")}}" rel="stylesheet" type="text/css" />
|
||||
<!-- Select2 -->
|
||||
<link href="{{asset("lb-faveo/plugins/select2/select2.min.css")}}" rel="stylesheet" type="text/css" />
|
||||
|
||||
<link href="{{asset("css/close-button.css")}}" rel="stylesheet" type="text/css" />
|
||||
<!--Daterangepicker-->
|
||||
<link rel="stylesheet" href="{{asset("lb-faveo/plugins/daterangepicker/daterangepicker.css")}}" rel="stylesheet" type="text/css" />
|
||||
<!--calendar -->
|
||||
<!-- fullCalendar 2.2.5-->
|
||||
<link href="{{asset('lb-faveo/plugins/fullcalendar/fullcalendar.min.css')}}" rel="stylesheet" type="text/css" />
|
||||
<!--[if lt IE 9]>
|
||||
<script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
|
||||
<script src="https://oss.maxcdn.com/libs/respond.js/1.3.0/respond.min.js"></script>
|
||||
<![endif]-->
|
||||
<script src="{{asset("lb-faveo/js/jquery-2.1.4.js")}}" type="text/javascript"></script>
|
||||
|
||||
<script src="{{asset("lb-faveo/js/jquery2.1.1.min.js")}}" type="text/javascript"></script>
|
||||
|
||||
@yield('HeadInclude')
|
||||
</head>
|
||||
<body class="skin-blue fixed">
|
||||
<div class="wrapper">
|
||||
<header class="main-header">
|
||||
<a href="http://www.faveohelpdesk.com" class="logo"><img src="{{ asset('lb-faveo/media/images/logo.png')}}" width="100px;"></a>
|
||||
<?php
|
||||
$company = App\Model\helpdesk\Settings\Company::where('id', '=', '1')->first();
|
||||
if ($company != null) {
|
||||
|
||||
}
|
||||
$replacetop = 0;
|
||||
$replacetop = \Event::fire('service.desk.agent.topbar.replace', array());
|
||||
|
||||
if (count($replacetop) == 0) {
|
||||
$replacetop = 0;
|
||||
} else {
|
||||
$replacetop = $replacetop[0];
|
||||
}
|
||||
$replaceside = 0;
|
||||
$replaceside = \Event::fire('service.desk.agent.sidebar.replace', array());
|
||||
|
||||
if (count($replaceside) == 0) {
|
||||
$replaceside = 0;
|
||||
} else {
|
||||
$replaceside = $replaceside[0];
|
||||
}
|
||||
?>
|
||||
|
||||
<!-- Header Navbar: style can be found in header.less -->
|
||||
<nav class="navbar navbar-static-top">
|
||||
<!-- Sidebar toggle button-->
|
||||
<a href="#" class="sidebar-toggle" data-toggle="offcanvas" role="button">
|
||||
<span class="sr-only">Toggle navigation</span>
|
||||
<span class="icon-bar"></span>
|
||||
<span class="icon-bar"></span>
|
||||
<span class="icon-bar"></span>
|
||||
</a>
|
||||
<?php $notifications = App\Http\Controllers\Common\NotificationController::getNotifications();
|
||||
|
||||
?>
|
||||
<div class="collapse navbar-collapse" id="navbar-collapse">
|
||||
@if($replacetop==0)
|
||||
<ul class="tabs tabs-horizontal nav navbar-nav navbar-left">
|
||||
<li @yield('Dashboard')><a id="dash" data-target="#tabA" href="{{URL::route('dashboard')}}" onclick="clickDashboard(event);">{!! Lang::get('lang.dashboard') !!}</a></li>
|
||||
<li @yield('Users')><a data-target="#tabB" href="#">{!! Lang::get('lang.users') !!}</a></li>
|
||||
<li @yield('Tickets')><a data-target="#tabC" href="#">{!! Lang::get('lang.tickets') !!}</a></li>
|
||||
<li @yield('Tools')><a data-target="#tabD" href="#">{!! Lang::get('lang.tools') !!}</a></li>
|
||||
@if(Auth::user()->role == 'admin')
|
||||
<li @yield('Report')><a href="{{URL::route('report.index')}}" onclick="clickReport(event);">Report</a></li>
|
||||
@endif
|
||||
<?php \Event::fire('calendar.topbar', array()); ?>
|
||||
</ul>
|
||||
@else
|
||||
<?php \Event::fire('service.desk.agent.topbar', array()); ?>
|
||||
@endif
|
||||
<?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">
|
||||
@if(Auth::user()->role == 'admin')
|
||||
<li><a href="{{url('admin')}}">{!! Lang::get('lang.admin_panel') !!}</a></li>
|
||||
@include('themes.default1.update.notification')
|
||||
@endif
|
||||
<!-- 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()">
|
||||
<i class="fa fa-bell-o"></i>
|
||||
<span class="label label-danger" id="count">{!! count($noti) !!}</span>
|
||||
</a>
|
||||
<ul class="dropdown-menu" style="width:500px">
|
||||
|
||||
<div id="alert11" class="alert alert-success alert-dismissable" style="display:none;">
|
||||
<button id="dismiss11" type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
<h4><i class="icon fa fa-check"></i>Alert!</h4>
|
||||
<div id="message-success1"></div>
|
||||
</div>
|
||||
|
||||
<li id="refreshNote">
|
||||
|
||||
<li class="header">You have {!! count($noti) !!} notifications. <a class="pull-right" id="read-all" href="#">Mark all as read.</a></li>
|
||||
|
||||
<ul class="menu">
|
||||
@foreach($notifications as $notification)
|
||||
<?php $user = App\User::whereId($notification->user_id)->first(); ?>
|
||||
@if($notification->type == 'registration')
|
||||
@if($notification->is_read == 1)
|
||||
<li class="task" style="list-style: none; margin-left: -30px;"><span> <img src="{{$user -> profile_pic}}" class="user-image" style="width:6%;height: 5%" alt="User Image" />
|
||||
<a href="{!! route('user.show', $notification->model_id) !!}" id="{{$notification -> notification_id}}" class='noti_User'>
|
||||
{!! $notification->message !!}
|
||||
</a></span>
|
||||
</li>
|
||||
@else
|
||||
<li style="list-style: none; margin-left: -30px;"><span> <img src="{{$user -> profile_pic}}" class="user-image" style="width:6%;height: 5%" alt="User Image" />
|
||||
<a href="{!! route('user.show', $notification->model_id) !!}" id="{{$notification -> notification_id}}" class='noti_User'>
|
||||
{!! $notification->message !!}
|
||||
</a></span>
|
||||
</li>
|
||||
@endif
|
||||
@else
|
||||
|
||||
<?php $ticket_number = App\Model\helpdesk\Ticket\Tickets::whereId($notification->model_id)->first(); ?>
|
||||
@if($notification->is_read == 1)
|
||||
<li class="task" style="list-style: none;margin-left: -30px"><span> <img src="{{$user -> profile_pic}}" class="img-circle" style="width:6%;height: 5%" alt="User Image" />
|
||||
<a href="{!! route('ticket.thread', $notification->model_id) !!}" id='{{ $notification -> notification_id}}' class='noti_User'>
|
||||
{!! $notification->message !!} with id "{!!$ticket_number->ticket_number!!}"
|
||||
</a></span>
|
||||
</li>
|
||||
@else
|
||||
<li style="list-style: none;margin-left: -30px"><span> <img src="{{$user -> profile_pic}}" class="img-circle" style="width:6%;height: 5%" alt="User Image" />
|
||||
<a href="{!! route('ticket.thread', $notification->model_id) !!}" id='{{ $notification -> notification_id}}' class='noti_User'>
|
||||
{!! $notification->message !!} with id "{!!$ticket_number->ticket_number!!}"
|
||||
</a></span>
|
||||
</li>
|
||||
@endif
|
||||
@endif
|
||||
@endforeach
|
||||
</ul>
|
||||
</li>
|
||||
<li class="footer no-border"><div class="col-md-5"></div><div class="col-md-2">
|
||||
<img src="{{asset("lb-faveo/media/images/gifloader.gif")}}" style="display: none;" id="notification-loader">
|
||||
</div><div class="col-md-5"></div></li>
|
||||
<li class="footer"><a href="{{ url('notifications-list')}}">View all</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<!-- User Account: style can be found in dropdown.less -->
|
||||
<li class="dropdown user user-menu">
|
||||
<a href="#" class="dropdown-toggle" data-toggle="dropdown">
|
||||
@if(Auth::user())
|
||||
<img src="{{Auth::user()->profile_pic}}"class="user-image" alt="User Image"/>
|
||||
<span class="hidden-xs">{{Auth::user()->first_name." ".Auth::user()->last_name}}</span>
|
||||
@endif
|
||||
</a>
|
||||
<ul class="dropdown-menu">
|
||||
<!-- User image -->
|
||||
<li class="user-header" style="background-color:#343F44;">
|
||||
<img src="{{Auth::user()->profile_pic}}" class="img-circle" alt="User Image" />
|
||||
<p>
|
||||
{{Auth::user()->first_name." ".Auth::user()->last_name}} - {{Auth::user()->role}}
|
||||
<small></small>
|
||||
</p>
|
||||
</li>
|
||||
<!-- Menu Footer-->
|
||||
<li class="user-footer" style="background-color:#1a2226;">
|
||||
<div class="pull-left">
|
||||
<a href="{{URL::route('profile')}}" class="btn btn-info btn-sm"><b>{!! Lang::get('lang.profile') !!}</b></a>
|
||||
</div>
|
||||
<div class="pull-right">
|
||||
<a href="{{url('auth/logout')}}" class="btn btn-danger btn-sm"><b>{!! Lang::get('lang.sign_out') !!}</b></a>
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</nav>
|
||||
</header>
|
||||
<!-- Left side column. contains the logo and sidebar -->
|
||||
<aside class="main-sidebar">
|
||||
<!-- sidebar: style can be found in sidebar.less -->
|
||||
<section class="sidebar">
|
||||
<div class="user-panel">
|
||||
@if (trim($__env->yieldContent('profileimg')))
|
||||
<h1>@yield('profileimg')</h1>
|
||||
@else
|
||||
<div class = "row">
|
||||
<div class="col-xs-3"></div>
|
||||
<div class="col-xs-2" style="width:50%;">
|
||||
<a href="{!! url('profile') !!}">
|
||||
<img src="{{Auth::user()->profile_pic}}" class="img-circle" alt="User Image" />
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
@endif
|
||||
<div class="info" style="text-align:center;">
|
||||
@if(Auth::user())
|
||||
<p>{{Auth::user()->first_name." ".Auth::user()->last_name}}</p>
|
||||
@endif
|
||||
@if(Auth::user() && Auth::user()->active==1)
|
||||
<a href="#"><i class="fa fa-circle text-success"></i> Online</a>
|
||||
@else
|
||||
<a href="#"><i class="fa fa-circle"></i> Offline</a>
|
||||
@endif
|
||||
</div>
|
||||
</div>
|
||||
<!-- search form -->
|
||||
{{-- < form action = "#" method = "get" class = "sidebar-form" > --}}
|
||||
{{-- < div class = "input-group" > --}}
|
||||
{{-- < input type = "text" name = "q" class = "form-control" placeholder = "Search..." / > --}}
|
||||
{{-- < span class = "input-group-btn" > --}}
|
||||
{{-- < button type = 'submit' name = 'seach' id = 'search-btn' class = "btn btn-flat" > < i class = "fa fa-search" > < /i></button > --}}
|
||||
{{-- < /span> --}}
|
||||
{{-- < /div> --}}
|
||||
{{-- < /form> --}}
|
||||
<!-- /.search form -->
|
||||
<!-- sidebar menu: : style can be found in sidebar.less -->
|
||||
<ul id="side-bar" class="sidebar-menu">
|
||||
@if($replaceside==0)
|
||||
@yield('sidebar')
|
||||
<li class="header">{!! Lang::get('lang.Tickets') !!}</li>
|
||||
<?php
|
||||
if (Auth::user()->role == 'admin') {
|
||||
|
||||
//$inbox = App\Model\helpdesk\Ticket\Tickets::all();
|
||||
$myticket = App\Model\helpdesk\Ticket\Tickets::where('assigned_to', Auth::user()->id)->where('status', '1')->get();
|
||||
$unassigned = App\Model\helpdesk\Ticket\Tickets::where('assigned_to', '=', null)->where('status', '=', '1')->get();
|
||||
$tickets = App\Model\helpdesk\Ticket\Tickets::whereIn('status', array(1, 7))->get();
|
||||
$followup_ticket= App\Model\helpdesk\Ticket\Tickets::where('status', '1')->where('follow_up', '1')->get();
|
||||
$closingapproval = App\Model\helpdesk\Ticket\Tickets::where('status', '7')->get();
|
||||
|
||||
$deleted = App\Model\helpdesk\Ticket\Tickets::where('status', '5')->get();
|
||||
} elseif (Auth::user()->role == 'agent') {
|
||||
//$inbox = App\Model\helpdesk\Ticket\Tickets::where('dept_id','',Auth::user()->primary_dpt)->get();
|
||||
$myticket = App\Model\helpdesk\Ticket\Tickets::where('assigned_to', Auth::user()->id)->where('status', '1')->get();
|
||||
$unassigned = App\Model\helpdesk\Ticket\Tickets::where('assigned_to', '=', null)->where('status', '=', '1')->where('dept_id', '=', Auth::user()->primary_dpt)->get();
|
||||
$tickets = App\Model\helpdesk\Ticket\Tickets::whereIn('status', array(1, 7))->where('dept_id', '=', Auth::user()->primary_dpt)->get();
|
||||
$followup_ticket= App\Model\helpdesk\Ticket\Tickets::where('status', '1')->where('follow_up', '1')->get();
|
||||
$closingapproval = App\Model\helpdesk\Ticket\Tickets::where('status', '7')->get();
|
||||
|
||||
$deleted = App\Model\helpdesk\Ticket\Tickets::where('status', '5')->where('dept_id', '=', Auth::user()->primary_dpt)->get();
|
||||
}
|
||||
if (Auth::user()->role == 'agent') {
|
||||
$dept = App\Model\helpdesk\Agent\Department::where('id', '=', Auth::user()->primary_dpt)->first();
|
||||
$overdues = App\Model\helpdesk\Ticket\Tickets::where('status', '=', 1)->where('isanswered', '=', 0)->where('dept_id', '=', $dept->id)->orderBy('id', 'DESC')->get();
|
||||
} 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;
|
||||
} else {
|
||||
$j = 0;
|
||||
foreach ($overdues as $overdue) {
|
||||
$sla_plan = App\Model\helpdesk\Manage\Sla_plan::where('id', '=', $overdue->sla)->first();
|
||||
|
||||
$ovadate = $overdue->created_at;
|
||||
$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 {
|
||||
$overdue_ticket = 0;
|
||||
}
|
||||
}
|
||||
?>
|
||||
<li @yield('inbox')>
|
||||
<a href="{{ url('/ticket/inbox')}}" id="load-inbox">
|
||||
<i class="fa fa-envelope"></i> <span>{!! Lang::get('lang.inbox') !!}</span> <small class="label pull-right bg-green"><?php echo count($tickets); ?></small>
|
||||
</a>
|
||||
</li>
|
||||
<li @yield('myticket')>
|
||||
<a href="{{url('ticket/myticket')}}" id="load-myticket">
|
||||
<i class="fa fa-user"></i> <span>{!! Lang::get('lang.my_tickets') !!} </span>
|
||||
<small class="label pull-right bg-green">{{count($myticket)}}</small>
|
||||
</a>
|
||||
</li>
|
||||
<li @yield('unassigned')>
|
||||
<a href="{{url('unassigned')}}" id="load-unassigned">
|
||||
<i class="fa fa-th"></i> <span>{!! Lang::get('lang.unassigned') !!}</span>
|
||||
<small class="label pull-right bg-green">{{count($unassigned)}}</small>
|
||||
</a>
|
||||
</li>
|
||||
<li @yield('overdue')>
|
||||
<a href="{{url('ticket/overdue')}}" id="load-unassigned">
|
||||
<i class="fa fa-calendar-times-o"></i> <span>{!! Lang::get('lang.overdue') !!}</span>
|
||||
<small class="label pull-right bg-green">{{$overdue_ticket}}</small>
|
||||
</a>
|
||||
</li>
|
||||
<li @yield('followup')>
|
||||
<a href="{{ url('/ticket/inbox')}}" id="load-inbox">
|
||||
<i class="glyphicon glyphicon-import"></i> <span>{!! Lang::get('lang.followup') !!}</span>
|
||||
<small class="label pull-right bg-green">{{count($followup_ticket)}}</small>
|
||||
</a>
|
||||
</li>
|
||||
<?php
|
||||
$settings = App\Model\helpdesk\Settings\Approval::where('id','=',1)->first();
|
||||
// dd($settings);
|
||||
?>
|
||||
@if($settings->status == 1)
|
||||
<li @yield('approval')>
|
||||
<a href="{{url('ticket/approval/closed')}}" id="load-unassigned">
|
||||
<i class="fa fa fa-bell"></i> <span>{!! Lang::get('lang.approval') !!}</span>
|
||||
<small class="label pull-right bg-green">{{count($closingapproval)}}</small>
|
||||
</a>
|
||||
</li>
|
||||
@endif
|
||||
<li @yield('trash')>
|
||||
<a href="{{url('trash')}}">
|
||||
<i class="fa fa-trash-o"></i> <span>{!! Lang::get('lang.trash') !!}</span>
|
||||
<small class="label pull-right bg-green">{{count($deleted)}}</small>
|
||||
</a>
|
||||
</li>
|
||||
<li class="header">{!! Lang::get('lang.Departments') !!}</li>
|
||||
<?php
|
||||
$depts = App\Model\helpdesk\Agent\Department::all();
|
||||
foreach ($depts as $dept) {
|
||||
$open = App\Model\helpdesk\Ticket\Tickets::where('status', '=', '1')->where('isanswered', '=', 0)->where('dept_id', '=', $dept->id)->get();
|
||||
$open = count($open);
|
||||
$underprocess = App\Model\helpdesk\Ticket\Tickets::where('status', '=', '1')->where('assigned_to', '>', 0)->where('dept_id', '=', $dept->id)->get();
|
||||
$underprocess = count($underprocess);
|
||||
$closed = App\Model\helpdesk\Ticket\Tickets::where('status', '=', '2')->where('dept_id', '=', $dept->id)->get();
|
||||
$closed = count($closed);
|
||||
|
||||
if (Auth::user()->role == 'admin') {
|
||||
?>
|
||||
<li class="treeview">
|
||||
<a href="#">
|
||||
<i class="fa fa-folder-open"></i> <span>{!! $dept->name !!}</span> <i class="fa fa-angle-left pull-right"></i>
|
||||
</a>
|
||||
<ul class="treeview-menu">
|
||||
<li><a href="{!! url::route('dept.open.ticket',$dept->name) !!}"><i class="fa fa-circle-o"></i>{!! Lang::get('lang.open') !!}<small class="label pull-right bg-green">{!! $open !!}</small></a></li>
|
||||
<li><a href="{!! url::route('dept.inprogress.ticket',$dept->name) !!}"><i class="fa fa-circle-o"></i>{!! Lang::get('lang.assigned') !!}<small class="label pull-right bg-green">{!! $underprocess !!}</small></a></li>
|
||||
<li><a href="{!! url::route('dept.closed.ticket',$dept->name) !!}"><i class="fa fa-circle-o"></i>{!! Lang::get('lang.closed') !!}<small class="label pull-right bg-green">{!! $closed !!}</small></a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<?php } if (Auth::user()->role == 'agent' && Auth::user()->primary_dpt == $dept->id) { ?>
|
||||
<li class="treeview">
|
||||
<a href="#">
|
||||
<i class="fa fa-folder-open"></i> <span>{!! $dept->name !!}</span> <i class="fa fa-angle-left pull-right"></i>
|
||||
</a>
|
||||
<ul class="treeview-menu">
|
||||
<li><a href="{!! url::route('dept.open.ticket',$dept->name) !!}"><i class="fa fa-circle-o"></i>{!! Lang::get('lang.open') !!}<small class="label pull-right bg-green">{!! $open !!}</small></a></li>
|
||||
<li><a href="{!! url::route('dept.inprogress.ticket',$dept->name) !!}"><i class="fa fa-circle-o"></i>{!! Lang::get('lang.assigned') !!}<small class="label pull-right bg-green">{!! $underprocess !!}</small></a></li>
|
||||
<li><a href="{!! url::route('dept.closed.ticket',$dept->name) !!}"><i class="fa fa-circle-o"></i>{!! Lang::get('lang.closed') !!}<small class="label pull-right bg-green">{!! $closed !!}</small></a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<?php }
|
||||
}
|
||||
?>
|
||||
@else
|
||||
<?php \Event::fire('service.desk.agent.sidebar', array()); ?>
|
||||
@endif
|
||||
</ul>
|
||||
</section>
|
||||
<!-- /.sidebar -->
|
||||
</aside>
|
||||
<?php
|
||||
$agent_group = Auth::user()->assign_group;
|
||||
$group = App\Model\helpdesk\Agent\Groups::where('id', '=', $agent_group)->where('group_status', '=', '1')->first();
|
||||
?>
|
||||
<!-- Right side column. Contains the navbar and content of the page -->
|
||||
<div class="content-wrapper">
|
||||
<!-- Content Header (Page header) -->
|
||||
<div class="tab-content" style="background-color: white;padding: 0 20px 0 20px">
|
||||
<div class="collapse navbar-collapse" id="navbar-collapse">
|
||||
<div class="tabs-content">
|
||||
@if($replacetop==0)
|
||||
<div class="tabs-pane @yield('dashboard-bar')" id="tabA">
|
||||
<ul class="nav navbar-nav">
|
||||
</ul>
|
||||
</div>
|
||||
<div class="tabs-pane @yield('user-bar')" id="tabB">
|
||||
<ul class="nav navbar-nav">
|
||||
<li id="bar" @yield('user')><a href="{{ url('user')}}" >{!! Lang::get('lang.user_directory') !!}</a></li></a></li>
|
||||
<li id="bar" @yield('organizations')><a href="{{ url('organizations')}}" >{!! Lang::get('lang.organizations') !!}</a></li></a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="tabs-pane @yield('ticket-bar')" id="tabC">
|
||||
<ul class="nav navbar-nav">
|
||||
<li id="bar" @yield('open')><a href="{{ url('/ticket/open')}}" id="load-open">{!! Lang::get('lang.open') !!}</a></li>
|
||||
<li id="bar" @yield('answered')><a href="{{ url('/ticket/answered')}}" id="load-answered">{!! Lang::get('lang.answered') !!}</a></li>
|
||||
<li id="bar" @yield('myticket')><a href="{{ url('/ticket/myticket')}}" >{!! Lang::get('lang.my_tickets') !!}</a></li>
|
||||
{{-- < li id = "bar" @yield('ticket') > < a href = "{{ url('ticket') }}" >Ticket</a></li> --}}
|
||||
{{-- < li id = "bar" @yield('overdue') > < a href = "{{ url('/ticket/overdue') }}" >Overdue</a></li> --}}
|
||||
|
||||
<li id="bar" @yield('assigned')><a href="{{ url('/ticket/assigned')}}" id="load-assigned" >{!! Lang::get('lang.assigned') !!}</a></li>
|
||||
{{--<li id="bar" @yield('approvel')><a href="{{ url('ticket/approval/closed')}}" >{!! Lang::get('lang.approval') !!}</a></li>--}}
|
||||
<li id="bar" @yield('closed')><a href="{{ url('/ticket/closed')}}" >{!! Lang::get('lang.closed') !!}</a></li>
|
||||
<?php if ($group->can_create_ticket == 1) { ?>
|
||||
<li id="bar" @yield('newticket')><a href="{{ url('/newticket')}}" >{!! Lang::get('lang.create_ticket') !!}</a></li>
|
||||
<?php } ?>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="tabs-pane @yield('tools-bar')" id="tabD">
|
||||
<ul class="nav navbar-nav">
|
||||
<li id="bar" @yield('tools')><a href="{{ url('/canned/list')}}" >{!! Lang::get('lang.canned_response') !!}</a></li>
|
||||
<li id="bar" @yield('kb')><a href="{{ url('/comment')}}" >{!! Lang::get('lang.knowledge_base') !!}</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
@if(Auth::user()->role == 'admin')
|
||||
<div class="tabs-pane @yield('report-bar')" id="tabD">
|
||||
<ul class="nav navbar-nav">
|
||||
</ul>
|
||||
</div>
|
||||
@endif
|
||||
@endif
|
||||
<?php \Event::fire('service.desk.agent.topsubbar', array()); ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<section class="content-header">
|
||||
@yield('PageHeader')
|
||||
{!! Breadcrumbs::renderIfExists() !!}
|
||||
</section>
|
||||
<!-- Main content -->
|
||||
<section class="content">
|
||||
@yield('content')
|
||||
</section><!-- /.content -->
|
||||
</div>
|
||||
<footer class="main-footer">
|
||||
<div class="pull-right hidden-xs">
|
||||
<b>Version</b> {!! Config::get('app.version') !!}
|
||||
</div>
|
||||
<strong>{!! Lang::get('lang.copyright') !!} © {!! date('Y') !!} <a href="{!! $company->website !!}" target="_blank">{!! $company->company_name !!}</a>.</strong> {!! Lang::get('lang.all_rights_reserved') !!}. {!! Lang::get('lang.powered_by') !!} <a href="http://www.faveohelpdesk.com/" target="_blank">Faveo</a>
|
||||
</footer>
|
||||
</div><!-- ./wrapper -->
|
||||
|
||||
<script src="{{asset("lb-faveo/js/ajax-jquery.min.js")}}" type="text/javascript"></script>
|
||||
|
||||
<script src="{{asset("lb-faveo/js/bootstrap-datetimepicker4.7.14.min.js")}}" type="text/javascript"></script>
|
||||
<!-- Bootstrap 3.3.2 JS -->
|
||||
<script src="{{asset("lb-faveo/js/bootstrap.min.js")}}" type="text/javascript"></script>
|
||||
<!-- Slimscroll -->
|
||||
<script src="{{asset("lb-faveo/plugins/slimScroll/jquery.slimscroll.min.js")}}" type="text/javascript"></script>
|
||||
<!-- FastClick -->
|
||||
<script src="{{asset("lb-faveo/plugins/fastclick/fastclick.min.js")}}" type="text/javascript"></script>
|
||||
<!-- AdminLTE App -->
|
||||
<script src="{{asset("lb-faveo/js/app.min.js")}}" type="text/javascript"></script>
|
||||
|
||||
<!-- iCheck -->
|
||||
<script src="{{asset("lb-faveo/plugins/iCheck/icheck.min.js")}}" type="text/javascript"></script>
|
||||
<!-- jquery ui -->
|
||||
<script src="{{asset("lb-faveo/js/jquery.ui.js")}}" type="text/javascript"></script>
|
||||
|
||||
<script src="{{asset("lb-faveo/plugins/datatables/dataTables.bootstrap.js")}}" type="text/javascript"></script>
|
||||
|
||||
<script src="{{asset("lb-faveo/plugins/datatables/jquery.dataTables.js")}}" type="text/javascript"></script>
|
||||
<!-- Page Script -->
|
||||
<script src="{{asset("lb-faveo/js/jquery.dataTables1.10.10.min.js")}}" type="text/javascript" ></script>
|
||||
|
||||
<script type="text/javascript" src="{{asset("lb-faveo/plugins/datatables/dataTables.bootstrap.js")}}" type="text/javascript"></script>
|
||||
|
||||
<script src="{{asset("lb-faveo/js/jquery.rating.pack.js")}}" type="text/javascript"></script>
|
||||
|
||||
<script src="{{asset("lb-faveo/plugins/select2/select2.full.min.js")}}" type="text/javascript"></script>
|
||||
|
||||
<script src="{{asset("lb-faveo/plugins/moment/moment.js")}}" type="text/javascript"></script>
|
||||
<!-- full calendar-->
|
||||
<script src="{{asset('lb-faveo/plugins/fullcalendar/fullcalendar.min.js')}}" type="text/javascript"></script>
|
||||
<script src="{{asset('lb-faveo/plugins/daterangepicker/daterangepicker.js')}}" type="text/javascript"></script>
|
||||
<script>
|
||||
$(document).ready(function () {
|
||||
$('.noti_User').click(function () {
|
||||
var id = this.id;
|
||||
var dataString = 'id=' + id;
|
||||
$.ajax
|
||||
({
|
||||
type: "POST",
|
||||
url: "{{url('mark-read')}}" + "/" + id,
|
||||
data: dataString,
|
||||
cache: false,
|
||||
success: function (html)
|
||||
{
|
||||
}
|
||||
});
|
||||
});
|
||||
});
|
||||
$('#read-all').click(function () {
|
||||
|
||||
var id2 = <?php echo \Auth::user()->id ?>;
|
||||
var dataString = 'id=' + id2;
|
||||
$.ajax
|
||||
({
|
||||
type: "POST",
|
||||
url: "{{url('mark-all-read')}}" + "/" + id2,
|
||||
data: dataString,
|
||||
cache: false,
|
||||
beforeSend: function () {
|
||||
$('#myDropdown').on('hide.bs.dropdown', function () {
|
||||
return false;
|
||||
});
|
||||
$("#refreshNote").hide();
|
||||
$("#notification-loader").show();
|
||||
},
|
||||
success: function (response) {
|
||||
$("#refreshNote").load("<?php echo $_SERVER['REQUEST_URI']; ?> #refreshNote");
|
||||
$("#notification-loader").hide();
|
||||
$('#myDropdown').removeClass('open');
|
||||
}
|
||||
});
|
||||
});</script>
|
||||
<script>
|
||||
$(function() {
|
||||
// Enable check and uncheck all functionality
|
||||
$(".checkbox-toggle").click(function() {
|
||||
var clicks = $(this).data('clicks');
|
||||
if (clicks) {
|
||||
//Uncheck all checkboxes
|
||||
$("input[type='checkbox']", ".mailbox-messages").iCheck("uncheck");
|
||||
} else {
|
||||
//Check all checkboxes
|
||||
$("input[type='checkbox']", ".mailbox-messages").iCheck("check");
|
||||
}
|
||||
$(this).data("clicks", !clicks);
|
||||
});
|
||||
//Handle starring for glyphicon and font awesome
|
||||
$(".mailbox-star").click(function(e) {
|
||||
e.preventDefault();
|
||||
//detect type
|
||||
var $this = $(this).find("a > i");
|
||||
var glyph = $this.hasClass("glyphicon");
|
||||
var fa = $this.hasClass("fa");
|
||||
//Switch states
|
||||
if (glyph) {
|
||||
$this.toggleClass("glyphicon-star");
|
||||
$this.toggleClass("glyphicon-star-empty");
|
||||
}
|
||||
if (fa) {
|
||||
$this.toggleClass("fa-star");
|
||||
$this.toggleClass("fa-star-o");
|
||||
}
|
||||
});
|
||||
});
|
||||
</script>
|
||||
|
||||
<script src="{{asset("lb-faveo/js/tabby.js")}}" type="text/javascript"></script>
|
||||
|
||||
<script src="{{asset("lb-faveo/plugins/filebrowser/plugin.js")}}" type="text/javascript"></script>
|
||||
|
||||
<script src="{{asset("lb-faveo/plugins/bootstrap-wysihtml5/bootstrap3-wysihtml5.all.min.js")}}" type="text/javascript"></script>
|
||||
|
||||
<script type="text/javascript">
|
||||
$.ajaxSetup({
|
||||
headers: { 'X-CSRF-Token' : $('meta[name=_token]').attr('content') }
|
||||
});
|
||||
</script>
|
||||
<script type="text/javascript">
|
||||
function clickDashboard(e) {
|
||||
if (e.ctrlKey === true) {
|
||||
window.open('{{URL::route("dashboard")}}', '_blank');
|
||||
} else {
|
||||
window.location = "{{URL::route('dashboard')}}";
|
||||
}
|
||||
}
|
||||
function clickReport(e) {
|
||||
if (e.ctrlKey === true) {
|
||||
window.open('{{URL::route("report.index")}}', '_blank');
|
||||
} else {
|
||||
window.location = "{{URL::route('report.index')}}";
|
||||
}
|
||||
}
|
||||
</script>
|
||||
<!--<script>
|
||||
$(function() {
|
||||
|
||||
|
||||
$('input[type="checkbox"]').iCheck({
|
||||
checkboxClass: 'icheckbox_flat-blue'
|
||||
});
|
||||
$('input[type="radio"]:not(.not-apply)').iCheck({
|
||||
radioClass: 'iradio_flat-blue'
|
||||
});
|
||||
|
||||
});
|
||||
</script>-->
|
||||
<?php Event::fire('show.calendar.script', array()); ?>
|
||||
<?php Event::fire('load-calendar-scripts', array()); ?>
|
||||
@yield('FooterInclude')
|
||||
</body>
|
||||
</html>
|
@@ -170,7 +170,7 @@ $conversations = App\Model\helpdesk\Ticket\Ticket_Thread::where('ticket_id', '='
|
||||
$ij = App\Model\helpdesk\Ticket\Ticket_Thread::where('ticket_id', '=', $tickets->id)->first();
|
||||
$user = App\User::where('id', '=', $tickets->user_id)->first();
|
||||
foreach ($conversations as $conversation) {
|
||||
$role = App\User::where('id', '=', $conversation->user_id)->first();
|
||||
$role = $conversation->user;
|
||||
$body = $conversation->thread($conversation->body);
|
||||
?>
|
||||
<ol class="comment-list" >
|
||||
@@ -222,21 +222,46 @@ foreach ($conversations as $conversation) {
|
||||
</div><!-- .comment-metadata -->
|
||||
</footer><!-- .comment-meta -->
|
||||
<div class="comment-content">
|
||||
@if($conversation->firstContent()=='yes')
|
||||
@if($conversation->firstContent()=='yes')
|
||||
<div class="embed-responsive embed-responsive-16by9">
|
||||
<iframe id="loader_frame{{$conversation->id}}" class="embed-responsive-item" onload="iframeLoaded()">Body of html email here</iframe>
|
||||
<script>
|
||||
$('#loader_frame{{$conversation->id}}')[0].contentDocument.body.innerHTML = '{!!$conversation->purify()!!}';
|
||||
</script>
|
||||
<iframe id="loader_frame{{$conversation->id}}" class="embed-responsive-item">Body of html email here</iframe>
|
||||
<script type="text/javascript">
|
||||
jQuery(document).ready(function () {
|
||||
/* setInterval(function(){
|
||||
var mydiv = jQuery('#loader_frame{{$conversation->id}}').contents().find("body");
|
||||
var h = mydiv.height();
|
||||
alert(h+20);
|
||||
}, 2000);*/
|
||||
jQuery('.embed-responsive-16by9').css('height','auto');
|
||||
jQuery('.embed-responsive-16by9').css('padding','0');
|
||||
jQuery('#loader_frame{{$conversation->id}}').css('width','100%');
|
||||
jQuery('#loader_frame{{$conversation->id}}').css('position','static');
|
||||
jQuery('#loader_frame{{$conversation->id}}').css('border','none');
|
||||
var mydiv = jQuery('#loader_frame{{$conversation->id}}').contents().find("body");
|
||||
var h = mydiv.height();
|
||||
jQuery('#loader_frame{{$conversation->id}}').css('height', h+20);
|
||||
setInterval(function(){
|
||||
//var mydiv = jQuery('#loader_frame{{$conversation->id}}').contents().find("body");
|
||||
//alert(mydiv.height());
|
||||
h = jQuery('#loader_frame{{$conversation->id}}').height();
|
||||
if (!!navigator.userAgent.match(/Trident\/7\./)){
|
||||
jQuery('#loader_frame{{$conversation->id}}').css('height', h);
|
||||
}else {
|
||||
jQuery('#loader_frame{{$conversation->id}}').css('height', h);
|
||||
}
|
||||
}, 2000);
|
||||
});
|
||||
</script>
|
||||
</div>
|
||||
<script>
|
||||
setTimeout(function(){
|
||||
$('#loader_frame{{$conversation->id}}')[0].contentDocument.body.innerHTML = '{!!$conversation->purify()!!}'; }, 1000);
|
||||
$('#loader_frame{{$conversation->id}}')[0].contentDocument.body.innerHTML = '<body><style>body{display:inline-block;}</style>{!!$conversation->purify()!!}<body>'; }, 1000);
|
||||
|
||||
</script>
|
||||
@else
|
||||
{!! $body !!}
|
||||
@endif
|
||||
@else
|
||||
{!! $conversation->body !!}
|
||||
@endif
|
||||
|
||||
@if($conversation->id == $ij->id)
|
||||
<?php $ticket_form_datas = App\Model\helpdesk\Ticket\Ticket_Form_Data::where('ticket_id', '=', $tickets->id)->get(); ?>
|
||||
@if(isset($ticket_form_datas))
|
||||
|
@@ -0,0 +1,539 @@
|
||||
@extends('themes.default1.client.layout.client')
|
||||
|
||||
@section('content')
|
||||
<?php
|
||||
$tickets = App\Model\helpdesk\Ticket\Tickets::where('id', '=', \Crypt::decrypt($id))->first();
|
||||
$thread = App\Model\helpdesk\Ticket\Ticket_Thread::where('ticket_id', '=', \Crypt::decrypt($id))->first();
|
||||
//$user = App\User::where('id','=',$id1)->first();
|
||||
?>
|
||||
<!-- Main content -->
|
||||
<div class="box box-primary">
|
||||
<div class="box-header">
|
||||
<div class="row">
|
||||
<div class="col-md-9">
|
||||
<section class="content-header"><h3 class="box-title"><i class="fa fa-user"> </i> {{$thread->title}} </h3> ( {{$tickets->ticket_number}} )
|
||||
</section>
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<div class="pull-right">
|
||||
|
||||
<!-- <button type="button" class="btn btn-default"><i class="fa fa-edit" style="color:green;"> </i> Edit</button> -->
|
||||
{{-- <button type="button" class="btn btn-default"><i class="fa fa-print" style="color:blue;"> </i> {!! link_to_route('ticket.print','Print',[$tickets->id]) !!}</button> --}}
|
||||
<!-- </div> -->
|
||||
@if( $common_setting->status == '1')
|
||||
<div class="btn-group">
|
||||
<button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown"><i class="fa fa-exchange" style="color:teal;"> </i>
|
||||
{!! Lang::get('lang.change_status') !!} <span class="caret"></span>
|
||||
</button>
|
||||
<?php $statuses = \App\Model\helpdesk\Ticket\Ticket_Status::all(); ?>
|
||||
|
||||
<ul class="dropdown-menu">
|
||||
<li><a href="#" id="open"><i class="fa fa-folder-open" style="color:#FFD600;"> </i>{!! Lang::get('lang.open') !!}</a></li>
|
||||
<li><a href="#" id="close"><i class="fa fa-check" style="color:#15F109;"> </i>{!! Lang::get('lang.close') !!}</a></li>
|
||||
<li><a href="#" id="resolved"><i class="fa fa-check-circle " style="color:#0EF1BE;"> </i> {!! Lang::get('lang.resolved') !!}</a></li>
|
||||
</ul>
|
||||
</div>@endif
|
||||
{!! Form::close() !!}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="ticketratings pull-right">
|
||||
<table><tbody>
|
||||
<?php $ratings = App\Model\helpdesk\Ratings\Rating::orderby('display_order')->get(); ?>
|
||||
<form id="foo">
|
||||
@foreach($ratings as $rating)
|
||||
|
||||
@if($rating->rating_area == 'Helpdesk Area')
|
||||
<?php
|
||||
$rating_value = App\Model\helpdesk\Ratings\RatingRef::where('rating_id', '=', $rating->id)->where('ticket_id', '=', $tickets->id)->first();
|
||||
if ($rating_value == null) {
|
||||
$ratingval = '0';
|
||||
} else {
|
||||
$ratingval = $rating_value->rating_value;
|
||||
}
|
||||
?>
|
||||
|
||||
<tr>
|
||||
<th><div class="ticketratingtitle">{!! $rating->name !!} </div></th> 
|
||||
|
||||
<td>
|
||||
<?php for ($i = 1; $i <= $rating->rating_scale; $i++) { ?>
|
||||
<input type="radio" class="star" id="star5" name="{!! $rating->name !!}" value="{!! $i !!}"<?php echo ($ratingval == $i) ? 'checked' : '' ?> />
|
||||
<?php } ?>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
@endif
|
||||
@endforeach
|
||||
</form></tbody> </table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="box-body" style="margin-bottom:-10px">
|
||||
<div class="row">
|
||||
<div id="loader" style="display:none;">
|
||||
<div class="col-xs-5">
|
||||
</div>
|
||||
<div class="col-xs-1">
|
||||
<img src="{{asset("lb-faveo/media/images/gifloader.gif")}}"><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/>
|
||||
</div>
|
||||
<div class="col-xs-6">
|
||||
</div>
|
||||
</div>
|
||||
<section class="content" id="refresh" style="margin-bottom:-10px;margin-top:-10px">
|
||||
<div class="col-md-12">
|
||||
<?php
|
||||
$priority = App\Model\helpdesk\Ticket\Ticket_Priority::where('priority_id', '=', $tickets->priority_id)->first();
|
||||
?>
|
||||
<div class="callout callout-default ">
|
||||
<div class="row">
|
||||
<div class="col-md-3">
|
||||
<?php
|
||||
$sla = $tickets->sla;
|
||||
$SlaPlan = App\Model\helpdesk\Manage\Sla_plan::where('id', '=', 1)->first();
|
||||
?>
|
||||
<b>{!! Lang::get('lang.sla_plan') !!}: {{$SlaPlan->grace_period}} </b>
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<b>{!! Lang::get('lang.created_date') !!}: </b> {{ UTC::usertimezone($tickets->created_at) }}
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<b>{!! Lang::get('lang.due_date') !!}: </b>
|
||||
<?php
|
||||
$time = $tickets->created_at;
|
||||
$time = date_create($time);
|
||||
date_add($time, date_interval_create_from_date_string($SlaPlan->grace_period));
|
||||
echo UTC::usertimezone(date_format($time, 'd/m/Y H:i:s'));
|
||||
?>
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<?php $response = App\Model\helpdesk\Ticket\Ticket_Thread::where('ticket_id', '=', $tickets->id)->where('is_internal', '=', 0)->get(); ?>
|
||||
@foreach($response as $last)
|
||||
<?php $ResponseDate = $last->created_at; ?>
|
||||
@endforeach
|
||||
<b>{!! Lang::get('lang.last_response') !!}: </b> {{ UTC::usertimezone($ResponseDate)}}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<table class="table table-hover">
|
||||
<!-- <tr><th></th><th></th></tr> -->
|
||||
<tr><td><b>{!! Lang::get('lang.status') !!}:</b></td> <?php $status = App\Model\helpdesk\Ticket\Ticket_Status::where('id', '=', $tickets->status)->first(); ?>
|
||||
|
||||
@if($status->id == 1)
|
||||
<td title="{{$status->properties}}" style="color:orange">{{$status->name}}</td></tr>
|
||||
@elseif($status->id == 2)
|
||||
<td title="{{$status->properties}}" style="color:green">{{$status->name}}</td></tr>
|
||||
@elseif($status->id == 3)
|
||||
<td title="{{$status->properties}}" style="color:green">{{$status->name}}</td></tr>
|
||||
@endif
|
||||
|
||||
<tr><td><b>{!! Lang::get('lang.priority') !!}:</b></td> <?php $priority = App\Model\helpdesk\Ticket\Ticket_Priority::where('priority_id', '=', $tickets->priority_id)->first(); ?>
|
||||
|
||||
<td title="{{$priority->priority}}">{{$priority->priority}}</td>
|
||||
|
||||
</tr>
|
||||
<tr><td><b>{!! Lang::get('lang.department') !!}:</b></td>
|
||||
<?php
|
||||
$help_topic = App\Model\helpdesk\Manage\Help_topic::where('id', '=', $tickets->help_topic_id)->first();
|
||||
$department = App\Model\helpdesk\Agent\Department::where('id', '=', $help_topic->department)->first();
|
||||
?>
|
||||
<td title="{{ $department->name }}">{!! $department->name !!}</td></tr>
|
||||
</table>
|
||||
<!-- </div> -->
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<!-- <div class="callout callout-success"> -->
|
||||
<table class="table table-hover">
|
||||
<!-- <tr><th></th><th></th></tr> -->
|
||||
<tr><td><b>{!! Lang::get('lang.help_topic') !!}:</b></td> <?php $help_topic = App\Model\helpdesk\Manage\Help_topic::where('id', '=', $tickets->help_topic_id)->first(); ?><td title="{{$help_topic->topic}}">{{$help_topic->topic}}</td></tr>
|
||||
<tr><td><b>{!! Lang::get('lang.last_message') !!}:</b></td> <td>{{ucwords($last->poster)}}</td></tr>
|
||||
</table>
|
||||
</div>
|
||||
<!-- </div> -->
|
||||
</section>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php
|
||||
$conversations = App\Model\helpdesk\Ticket\Ticket_Thread::where('ticket_id', '=', $tickets->id)->where('is_internal', '=', 0)->paginate(10);
|
||||
foreach ($conversations as $conversation) {
|
||||
$ConvDate1 = $conversation->created_at;
|
||||
$ConvDate = explode(' ', $ConvDate1);
|
||||
|
||||
$date = $ConvDate[0];
|
||||
$time = $ConvDate[1];
|
||||
$time = substr($time, 0, -3);
|
||||
if (isset($data) && $date == $data) {
|
||||
|
||||
} else {
|
||||
$data = $ConvDate[0];
|
||||
}
|
||||
$role = App\User::where('id', '=', $conversation->user_id)->first();
|
||||
|
||||
$attachment = App\Model\helpdesk\Ticket\Ticket_attachments::where('thread_id', '=', $conversation->id)->first();
|
||||
if ($attachment == null) {
|
||||
$body = $conversation->body;
|
||||
} else {
|
||||
$body = $conversation->body;
|
||||
$attachments = App\Model\helpdesk\Ticket\Ticket_attachments::where('thread_id', '=', $conversation->id)->orderBy('id', 'DESC')->get();
|
||||
foreach ($attachments as $attachment) {
|
||||
if ($attachment->type == 'pdf') {
|
||||
|
||||
} elseif ($attachment->type == 'docx') {
|
||||
|
||||
} else {
|
||||
$image = @imagecreatefromstring($attachment->file);
|
||||
ob_start();
|
||||
imagejpeg($image, null, 80);
|
||||
$data = ob_get_contents();
|
||||
ob_end_clean();
|
||||
$var = '<img src="data:image/jpg;base64,' . base64_encode($data) . '" />';
|
||||
$body = str_replace($attachment->name, "data:image/jpg;base64," . base64_encode($data), $body);
|
||||
|
||||
$string = $body;
|
||||
$start = "<head>";
|
||||
$end = "</head>";
|
||||
if (strpos($string, $start) == false || strpos($string, $start) == false) {
|
||||
|
||||
} else {
|
||||
$ini = strpos($string, $start);
|
||||
$ini += strlen($start);
|
||||
$len = strpos($string, $end, $ini) - $ini;
|
||||
$parsed = substr($string, $ini, $len);
|
||||
$body2 = $parsed;
|
||||
$body = str_replace($body2, " ", $body);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
$string = $body;
|
||||
$start = "<head>";
|
||||
$end = "</head>";
|
||||
if (strpos($string, $start) == false || strpos($string, $start) == false) {
|
||||
|
||||
} else {
|
||||
$ini = strpos($string, $start);
|
||||
$ini += strlen($start);
|
||||
$len = strpos($string, $end, $ini) - $ini;
|
||||
$parsed = substr($string, $ini, $len);
|
||||
$body2 = $parsed;
|
||||
$body = str_replace($body2, " ", $body);
|
||||
}
|
||||
?>
|
||||
<ol class="comment-list" >
|
||||
<li class="comment">
|
||||
<article class="comment-body">
|
||||
<footer class="comment-meta"<?php if ($role->role == "user") { ?> style="background-color: hsla(100, 100%, 51%, 0.15)" <?php } else { ?> style="background-color:#FFFCB3" <?php } ?> >
|
||||
<div class="comment-author">
|
||||
|
||||
<img src="{{$role->profile_pic}}"alt="" height="50" width="50" class="avatar" <?php if ($role->role == "user") { ?>style="box-shadow: 0 1px 3px #00FF26;" <?php } else { ?> style="box-shadow: 0 1px 3px #FFEC00;" <?php } ?> >
|
||||
@if($role->role == "user")
|
||||
<b class="fn"><a href="#" rel="external" class="url">{{$role->user_name}}</a></b>
|
||||
@else
|
||||
<b class="fn"><a href="#" rel="external" class="url">{{$role->first_name." ".$role->last_name}}</a></b>
|
||||
<div class="ticketratings pull-right"> <table><tbody>
|
||||
@foreach($ratings as $rating)
|
||||
@if($rating->rating_area == 'Comment Area')
|
||||
<?php
|
||||
$rating_value = App\Model\helpdesk\Ratings\RatingRef::where('rating_id', '=', $rating->id)->where('thread_id', '=', $conversation->id)->first();
|
||||
if ($rating_value == null) {
|
||||
$ratingval = '0';
|
||||
} else {
|
||||
$ratingval = $rating_value->rating_value;
|
||||
}
|
||||
?>
|
||||
<form class="foo2">
|
||||
<tr>
|
||||
<th><div class="ticketratingtitle">{!! $rating->name !!} </div></th> 
|
||||
|
||||
<td>
|
||||
<?php for ($i = 1; $i <= $rating->rating_scale; $i++) { ?>
|
||||
<input type="radio" class="star" id="star5" name="{!! $rating->name !!},{!! $conversation->id !!}" value="{!! $i !!}"<?php echo ($ratingval == $i) ? 'checked' : '' ?> />
|
||||
<?php } ?>
|
||||
<!-- <input type="radio" class="star" id="star4" name="rating" value="2"<?php echo ($tickets->rating == '2') ? 'checked' : '' ?> />
|
||||
<input type="radio" class="star" id="star3" name="rating" value="3"<?php echo ($tickets->rating == '3') ? 'checked' : '' ?>/>
|
||||
<input type="radio" class="star" id="star2" name="rating" value="4"<?php echo ($tickets->rating == '4') ? 'checked' : '' ?>/>
|
||||
<input type="radio" class="star" id="star1" name="rating" value="5"<?php echo ($tickets->rating == '5') ? 'checked' : '' ?> />-->
|
||||
</td>
|
||||
</tr>
|
||||
</form>
|
||||
@endif
|
||||
@endforeach
|
||||
</tbody></table></div>
|
||||
@endif
|
||||
</div><!-- .comment-author -->
|
||||
<div class="comment-metadata">
|
||||
<small class="date text-muted">
|
||||
<time datetime="2013-10-23T01:50:50+00:00"><i class="fa fa-clock-o"> </i> {{ UTC::usertimezone($conversation->created_at) }}</time>
|
||||
</small>
|
||||
</div><!-- .comment-metadata -->
|
||||
</footer><!-- .comment-meta -->
|
||||
<div class="comment-content">
|
||||
<p>{!! $body !!}</p>
|
||||
</div><!-- .comment-content -->
|
||||
<div class="timeline-footer" style="margin-bottom:-5px">
|
||||
<?php
|
||||
$attachments = App\Model\helpdesk\Ticket\Ticket_attachments::where('thread_id', '=', $conversation->id)->get();
|
||||
$i = 0;
|
||||
foreach ($attachments as $attachment) {
|
||||
if ($attachment->poster == 'ATTACHMENT') {
|
||||
$i++;
|
||||
}
|
||||
}
|
||||
if ($i > 0) {
|
||||
echo "<hr style='border-top: 1px dotted #FFFFFF;margin-top:0px;margin-bottom:0px;background-color:#8B8C90;'><h4 class='box-title'><b>" . $i . " </b> Attachments</h4>";
|
||||
}
|
||||
?>
|
||||
<ul class='mailbox-attachments clearfix'>
|
||||
<?php
|
||||
foreach ($attachments as $attachment) {
|
||||
$size = $attachment->size;
|
||||
$units = array('B', 'KB', 'MB', 'GB', 'TB', 'PB', 'EB', 'ZB', 'YB');
|
||||
$power = $size > 0 ? floor(log($size, 1024)) : 0;
|
||||
$value = number_format($size / pow(1024, $power), 2, '.', ',') . ' ' . $units[$power];
|
||||
if ($attachment->poster == 'ATTACHMENT') {
|
||||
if ($attachment->type == 'jpg' || $attachment->type == 'JPG' || $attachment->type == 'jpeg' || $attachment->type == 'JPEG' || $attachment->type == 'png' || $attachment->type == 'PNG' || $attachment->type == 'gif' || $attachment->type == 'GIF') {
|
||||
$image = @imagecreatefromstring($attachment->file);
|
||||
ob_start();
|
||||
imagejpeg($image, null, 80);
|
||||
$data = ob_get_contents();
|
||||
ob_end_clean();
|
||||
$var = '<a href="' . URL::route('image', array('image_id' => $attachment->id)) . '" target="_blank"><img style="max-width:200px;height:133px;" src="data:image/jpg;base64,' . base64_encode($data) . '"/></a>';
|
||||
echo '<li style="background-color:#f4f4f4;"><span class="mailbox-attachment-icon has-img">' . $var . '</span><div class="mailbox-attachment-info"><b style="word-wrap: break-word;">' . $attachment->name . '</b><br/><p>' . $value . '</p></div></li>';
|
||||
} else {
|
||||
$var = '<a style="max-width:200px;height:133px;color:#666;" href="' . URL::route('image', array('image_id' => $attachment->id)) . '" target="_blank"><span class="mailbox-attachment-icon" style="background-color:#fff;">' . strtoupper($attachment->type) . '</span><div class="mailbox-attachment-info"><span ><b style="word-wrap: break-word;">' . $attachment->name . '</b><br/><p>' . $value . '</p></span></div></a>';
|
||||
echo '<li style="background-color:#f4f4f4;">' . $var . '</li>';
|
||||
}
|
||||
}
|
||||
}
|
||||
?>
|
||||
</ul>
|
||||
</div>
|
||||
</article><!-- .comment-body -->
|
||||
</li><!-- .comment -->
|
||||
</ol>
|
||||
|
||||
<?php
|
||||
?>
|
||||
|
||||
|
||||
<?php }
|
||||
?>
|
||||
<div class="pull-right" style="margin-top:-30px;margin-bottom:-30px">
|
||||
<?php echo $conversations->setPath(url('check_ticket/{' . $id . '}'))->render(); ?>
|
||||
</div>
|
||||
<br/><br/>
|
||||
@if(Session::has('success1'))
|
||||
<div class="alert alert-success alert-dismissable" id='formabc'>
|
||||
<i class="fa fa-check-circle"></i>
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
{{Session::get('success1')}}
|
||||
</div>
|
||||
@endif
|
||||
<!-- failure message -->
|
||||
@if(Session::has('fails1'))
|
||||
<div class="alert alert-danger alert-dismissable" id='formabc'>
|
||||
<i class="fa fa-ban"></i>
|
||||
<b>{!! Lang::get('lang.alert') !!}!</b>
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
{{Session::get('fails1')}}
|
||||
</div>
|
||||
@endif
|
||||
<?php $id2 = Crypt::decrypt($id); ?>
|
||||
<div id="respond" class="comment-respond form-border">
|
||||
<h3 id="reply-title" class="comment-reply-title section-title"><i class="line"></i>{!! Lang::get('lang.leave_a_reply') !!}</h3>
|
||||
@if(Auth::user())
|
||||
{!! Form::open(['url'=>'post/reply/'.$id2.'#formabc']) !!}
|
||||
@else
|
||||
{!! Form::open(['url'=>'post-ticket-reply/'.$id.'#formabc']) !!}
|
||||
@endif
|
||||
<div class="row">
|
||||
<div class="form-group">
|
||||
<div class="col-md-12">
|
||||
<div class="form-group ">
|
||||
<textarea class="form-control" name="comment" cols="30" rows="8"></textarea>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="text-right">
|
||||
<button type="submit" class="btn btn-custom btn-lg">{!! Lang::get('lang.post_comment') !!}</button>
|
||||
</div>
|
||||
{!! Form::close() !!}
|
||||
</div>
|
||||
|
||||
<script type="text/javascript">
|
||||
$("#cc_page").on('click', '.search_r', function() {
|
||||
var search_r = $('a', this).attr('id');
|
||||
$.ajax({
|
||||
type: "GET",
|
||||
url: "../ticket/status/{{$tickets->id}}/" + search_r,
|
||||
beforeSend: function() {
|
||||
$("#refresh").hide();
|
||||
$("#loader").show();
|
||||
},
|
||||
success: function(response) {
|
||||
$("#refresh").load("../check_ticket/{!! $id !!} #refresh");
|
||||
$("#refresh").show();
|
||||
$("#loader").hide();
|
||||
var message = response;
|
||||
$("#alert11").show();
|
||||
$('#message-success1').html(message);
|
||||
setInterval(function() {
|
||||
$("#alert11").hide();
|
||||
}, 4000);
|
||||
}
|
||||
});
|
||||
return false;
|
||||
});
|
||||
|
||||
$(document).ready(function() {
|
||||
var Data = $('input[name="rating"]:checked').val();
|
||||
var Data2 = $('input[name="rating2"]:checked').val();
|
||||
if (Data) {
|
||||
$('input[name=rating]').rating('readOnly');
|
||||
jQuery('.star').attr('disabled', true);
|
||||
}
|
||||
$('.star').change(function() {
|
||||
$('#foo').submit();
|
||||
$('.foo2').submit();
|
||||
});
|
||||
// process the form
|
||||
$('#foo').submit(function(event) {
|
||||
// get the form data
|
||||
// there are many ways to get this data using jQuery (you can use the class or id also)
|
||||
var formData = $(this).serialize();
|
||||
//$('#foo').serialize();
|
||||
// process the form
|
||||
$.ajax({
|
||||
type: 'POST', // define the type of HTTP verb we want to use (POST for our form)
|
||||
url: '../rating/' +<?php echo $tickets->id ?>, // the url where we want to POST
|
||||
data: formData, // our data object
|
||||
dataType: 'json', // what type of data do we expect back from the server
|
||||
success: function() {
|
||||
}
|
||||
});
|
||||
// using the done promise callback
|
||||
// stop the form from submitting the normal way and refreshing the page
|
||||
event.preventDefault();
|
||||
});
|
||||
// process the form
|
||||
$('.foo2').submit(function(event) {
|
||||
// get the form data
|
||||
// there are many ways to get this data using jQuery (you can use the class or id also)
|
||||
var formData = $(this).serialize();
|
||||
//$('#foo').serialize();
|
||||
// process the form
|
||||
$.ajax({
|
||||
type: 'POST', // define the type of HTTP verb we want to use (POST for our form)
|
||||
url: '../rating2/' +<?php echo $tickets->id ?>, // the url where we want to POST
|
||||
data: formData, // our data object
|
||||
dataType: 'json', // what type of data do we expect back from the server
|
||||
success: function() {
|
||||
}
|
||||
});
|
||||
// using the done promise callback
|
||||
// stop the form from submitting the normal way and refreshing the page
|
||||
event.preventDefault();
|
||||
});
|
||||
});
|
||||
$(function() {
|
||||
//Add text editor
|
||||
$("textarea").wysihtml5();
|
||||
});
|
||||
|
||||
jQuery(document).ready(function() {
|
||||
// Close a ticket
|
||||
$('#close').on('click', function(e) {
|
||||
$.ajax({
|
||||
type: "GET",
|
||||
url: "../ticket/close/{{$tickets->id}}",
|
||||
beforeSend: function() {
|
||||
$("#refresh").hide();
|
||||
$("#loader").show();
|
||||
},
|
||||
success: function(response) {
|
||||
$("#refresh").load("../check_ticket/{!! $id !!} #refresh");
|
||||
$("#refresh").show();
|
||||
$("#loader").hide();
|
||||
// $("#d1").trigger("click");
|
||||
// var message = "Success! Your Ticket have been Closed";
|
||||
// $("#alert11").show();
|
||||
// $('#message-success1').html(message);
|
||||
// setInterval(function(){
|
||||
// $("#alert11").hide();
|
||||
// setTimeout(function() {
|
||||
// var link = document.querySelector('#load-inbox');
|
||||
// if(link) {
|
||||
// link.click();
|
||||
// }
|
||||
// }, 500);
|
||||
// },2000);
|
||||
}
|
||||
})
|
||||
return false;
|
||||
});
|
||||
|
||||
// Resolved a ticket
|
||||
$('#resolved').on('click', function(e) {
|
||||
$.ajax({
|
||||
type: "GET",
|
||||
url: "../ticket/resolve/{{$tickets->id}}",
|
||||
beforeSend: function() {
|
||||
$("#refresh").hide();
|
||||
$("#loader").show();
|
||||
},
|
||||
success: function(response) {
|
||||
$("#refresh").load("../check_ticket/{!! $id !!} #refresh");
|
||||
$("#refresh").show();
|
||||
$("#loader").hide();
|
||||
var message = "Success! Your Ticket have been Resolved";
|
||||
$("#alert11").show();
|
||||
$('#message-success1').html(message);
|
||||
setInterval(function() {
|
||||
$("#alert11").hide();
|
||||
setTimeout(function() {
|
||||
var link = document.querySelector('#load-inbox');
|
||||
if (link) {
|
||||
link.click();
|
||||
}
|
||||
}, 500);
|
||||
}, 2000);
|
||||
}
|
||||
})
|
||||
return false;
|
||||
});
|
||||
|
||||
// Open a ticket
|
||||
$('#open').on('click', function(e) {
|
||||
$.ajax({
|
||||
type: "GET",
|
||||
url: "../ticket/open/{{$tickets->id}}",
|
||||
beforeSend: function() {
|
||||
$("#refresh").hide();
|
||||
$("#loader").show();
|
||||
},
|
||||
success: function(response) {
|
||||
$("#refresh").load("../check_ticket/{!! $id !!} #refresh");
|
||||
$("#refresh").show();
|
||||
$("#loader").hide();
|
||||
|
||||
var message = "Success! Your Ticket have been Opened";
|
||||
$("#alert11").show();
|
||||
$('#message-success1').html(message);
|
||||
setInterval(function() {
|
||||
$("#alert11").hide();
|
||||
}, 4000);
|
||||
}
|
||||
})
|
||||
return false;
|
||||
});
|
||||
});
|
||||
</script>
|
||||
@stop
|
@@ -14,7 +14,7 @@
|
||||
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
|
||||
@stop
|
||||
@section('breadcrumb')
|
||||
<div class="site-hero clearfix">
|
||||
<div class="site-hero clearfix">
|
||||
<ol class="breadcrumb breadcrumb-custom">
|
||||
<li class="text">{!! Lang::get('lang.you_are_here') !!}: </li>
|
||||
<li><a href="{!! URL::route('/') !!}">{!! Lang::get('lang.home') !!}</a></li>
|
||||
|
@@ -77,7 +77,6 @@ class="active"
|
||||
$stringCut = substr($string, 0, 25);
|
||||
$string = $stringCut.'....';
|
||||
}
|
||||
// dd($stringCut);
|
||||
$TicketData = App\Model\helpdesk\Ticket\Ticket_Thread::where('ticket_id', '=', $ticket->id)
|
||||
->where('user_id', '!=' , null)
|
||||
->max('id');
|
||||
|
@@ -64,10 +64,10 @@ class="active"
|
||||
{!! Form::label('gender',Lang::get('lang.gender')) !!}
|
||||
<div class="row">
|
||||
<div class="col-xs-3">
|
||||
{!! Form::radio('gender','1',true) !!} {{Lang::get('lang.male')}}
|
||||
{!! Form::radio('gender','1',true) !!} {{Lang::get('lang.male')}}
|
||||
</div>
|
||||
<div class="col-xs-3">
|
||||
{!! Form::radio('gender','0') !!} {{Lang::get('lang.female')}}
|
||||
{!! Form::radio('gender','0') !!} {{Lang::get('lang.female')}}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -100,15 +100,15 @@ class="active"
|
||||
<div class="col-xs-8 form-group {{ $errors->has('phone_number') ? 'has-error' : '' }}">
|
||||
<!-- phone number -->
|
||||
{!! Form::label('phone_number',Lang::get('lang.phone')) !!}
|
||||
{!! Form::input('number','phone_number',null,['class' => 'form-control', 'id' => 'phone_number']) !!}
|
||||
<!-- {!! Form::text('phone_number',null,['class' => 'form-control']) !!} -->
|
||||
|
||||
{!! Form::text('phone_number',null,['class' => 'form-control']) !!}
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group {{ $errors->has('mobile') ? 'has-error' : '' }}">
|
||||
<!-- mobile -->
|
||||
{!! Form::label('mobile',Lang::get('lang.mobile_number')) !!}
|
||||
{!! Form::input('number','mobile',null,['class' => 'form-control', 'id' => 'mobile']) !!}
|
||||
<!-- {!! Form::text('mobile',null,['class' => 'form-control', 'id' => 'mobile']) !!} -->
|
||||
|
||||
{!! Form::input('number', 'mobile',null,['class' => 'form-control', 'id' => 'mobile']) !!}
|
||||
</div>
|
||||
<div class="form-group {{ $errors->has('profile_pic') ? 'has-error' : '' }}">
|
||||
<!-- profile pic -->
|
||||
|
@@ -166,14 +166,22 @@
|
||||
<div class="form-group has-feedback @if(isset($errors)) {!! $errors->has('password') ? 'has-error' : '' !!} @endif">
|
||||
{!! Form::password('password',['placeholder'=>Lang::get('lang.password'),'class' => 'form-control']) !!}
|
||||
<span class="glyphicon glyphicon-lock form-control-feedback"></span>
|
||||
<a href="{{url('password/email')}}" style="font-size: .8em" class="pull-left">{!! Lang::get('lang.forgot_password') !!}</a>
|
||||
</div>
|
||||
<ul class="list-unstyled pull-left">
|
||||
<li><a href="{{url('password/email')}}">{!! Lang::get('lang.forgot_password') !!}</a><br></li>
|
||||
<li><a href="{{url('auth/register')}}">{!! Lang::get('lang.create_account') !!}</a></li>
|
||||
</ul>
|
||||
<button type="submit" class="btn btn-custom pull-right">{!! Lang::get('lang.login') !!}</button>
|
||||
<div class="form-group pull-left">
|
||||
<input type="checkbox" name="remember"> {!! Lang::get("lang.remember") !!}
|
||||
</div>
|
||||
<button type="submit" class="btn btn-custom .btn-sm ">{!! Lang::get('lang.login') !!}</button>
|
||||
{!! Form::close() !!}
|
||||
</div>
|
||||
{{Lang::get('lang.or')}}
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<ul class="list-unstyled">
|
||||
<a href="{{url('auth/register')}}" style="font-size: 1.2em">{!! Lang::get('lang.create_account') !!}</a>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
|
@@ -140,9 +140,7 @@
|
||||
</header>
|
||||
<!-- Left side column. contains the logo and sidebar -->
|
||||
<!-- Right side column. Contains the navbar and content of the page -->
|
||||
|
||||
<div class="site-hero clearfix">
|
||||
|
||||
<div class="site-hero clearfix">
|
||||
{!! Breadcrumbs::render() !!}
|
||||
</div>
|
||||
<!-- Main content -->
|
||||
|
@@ -2,6 +2,10 @@
|
||||
$social = new \App\Model\helpdesk\Settings\SocialMedia();
|
||||
?>
|
||||
<br>
|
||||
@if($social->checkActive('twitter') || $social->checkActive('facebook') || $social->checkActive('google') || $social->checkActive('linkedin') || $social->checkActive('bitbucket') || $social->checkActive('github'))
|
||||
<center>{{Lang::get('lang.or')}}</center>
|
||||
@endif
|
||||
<br>
|
||||
@if($social->checkActive('twitter'))
|
||||
<a class="btn btn-block btn-social btn-twitter" href="{{ route('social.login', ['twitter']) }}" style="background-color: #55ACEE;color: white;">
|
||||
<span class="fa fa-twitter"></span> Sign in with Twitter
|
||||
|
@@ -54,10 +54,12 @@ active
|
||||
</td>
|
||||
<td ng-repeat="productKey in productKeys" style="margin-left: 150px;">
|
||||
{!! $errors->first('serial', '<spam class="help-block">:message</spam>') !!}
|
||||
<input type="text" name="first" id="productKey1" ng-model="productKey.set1" maxlength="4" size="4" style="padding: 3px; margin-left: 180px; width: 50px;"> -
|
||||
<input type="text" name="second" id="productKey2" ng-model="productKey.set2" maxlength="4" size="4" style="padding: 3px; margin-left: 3px; width: 50px;"> -
|
||||
<input type="text" name="third" id="productKey3" ng-model="productKey.set3" maxlength="4" size="4" style="padding: 3px; margin-left: 3px; width: 50px;"> -
|
||||
<input type="text" name="forth" id="productKey4" ng-model="productKey.set4" maxlength="4" size="4" style="padding: 3px; margin-left: 3px; width: 50px;">
|
||||
<div class="container">
|
||||
<input type="text" name="first" id="productKey1" ng-model="productKey.set1" maxlength="4" size="4" style="padding: 3px; margin-left: 180px; width: 50px;"> -
|
||||
<input type="text" name="second" id="productKey2" ng-model="productKey.set2" maxlength="4" size="4" style="padding: 3px; margin-left: 3px; width: 50px;"> -
|
||||
<input type="text" name="third" id="productKey3" ng-model="productKey.set3" maxlength="4" size="4" style="padding: 3px; margin-left: 3px; width: 50px;"> -
|
||||
<input type="text" name="forth" id="productKey4" ng-model="productKey.set4" maxlength="4" size="4" style="padding: 3px; margin-left: 3px; width: 50px;">
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
@@ -71,4 +73,23 @@ active
|
||||
<script src="{{asset("lb-faveo/js/jquery.autotab.js")}}"></script>
|
||||
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.3.0/angular.min.js"></script>
|
||||
<script src="{{asset("lb-faveo/js/angular.js")}}" type="text/javascript"></script>
|
||||
<script type="text/javascript">
|
||||
var container = document.getElementsByClassName("container")[0];
|
||||
container.onkeyup = function(e) {
|
||||
var target = e.srcElement;
|
||||
var maxLength = parseInt(target.attributes["maxlength"].value, 10);
|
||||
var myLength = target.value.length;
|
||||
if (myLength >= maxLength) {
|
||||
var next = target;
|
||||
while (next = next.nextElementSibling) {
|
||||
if (next == null)
|
||||
break;
|
||||
if (next.tagName.toLowerCase() == "input") {
|
||||
next.focus();
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
@stop
|
@@ -1,4 +1,4 @@
|
||||
<table id="{!! $id !!}" class="{!! $class !!}">
|
||||
<table id="{!! $id !!}" class="{!! $class !!}" style="width:100%">
|
||||
<colgroup>
|
||||
@for ($i = 0; $i < count($columns); $i++)
|
||||
<col class="con{!! $i !!}" />
|
||||
|
92
resources/views/vendor/Chumper/ticket-dept-javascript.blade.php
vendored
Normal file
92
resources/views/vendor/Chumper/ticket-dept-javascript.blade.php
vendored
Normal file
@@ -0,0 +1,92 @@
|
||||
<?php
|
||||
$segments = \Request::segments();
|
||||
$segment = "";
|
||||
foreach($segments as $seg){
|
||||
$segment.="/".$seg;
|
||||
}
|
||||
$dept = $segments[1];
|
||||
$status = $segments[2];
|
||||
?>
|
||||
<script type="text/javascript">
|
||||
jQuery(document).ready(function () {
|
||||
var clicked = 1;
|
||||
var create = false;
|
||||
var last = true;
|
||||
var sort = [[6, "desc"]];
|
||||
oTable = myFunction();
|
||||
|
||||
$("select[name=label]").change(function () {
|
||||
$("#chumper").dataTable().fnDestroy();
|
||||
myFunction();
|
||||
});
|
||||
$("select[name=tag]").change(function () {
|
||||
$("#chumper").dataTable().fnDestroy();
|
||||
myFunction();
|
||||
});
|
||||
|
||||
function myFunction()
|
||||
{
|
||||
return jQuery('#chumper').dataTable({
|
||||
"sPaginationType": "full_numbers",
|
||||
"bProcessing": true,
|
||||
"bServerSide": true,
|
||||
"lengthMenu": [[10, 25, 50, 100, 500], [10, 25, 50, 100, 500]],
|
||||
"ajax": {
|
||||
url: "{{url('filter')}}",
|
||||
data: function (d) {
|
||||
d.labels = $('select[name=label]').val();
|
||||
d.tags = $('select[name=tag]').val();
|
||||
d.segment = "{{$segment}}";
|
||||
d.department = "{{$dept}}";
|
||||
d.status = "{{$status}}";
|
||||
}
|
||||
},
|
||||
"aaSorting": sort,
|
||||
"columnDefs": [
|
||||
{ "searchable": false, "targets": [6,7] },
|
||||
{ "visible": last, "targets": 6 },
|
||||
{"visible": create, "targets":7},
|
||||
],
|
||||
"fnCreatedRow": function (nRow, aData, iDataIndex) {
|
||||
var str = aData[3];
|
||||
if (str.search("#000") == -1) {
|
||||
$("td", nRow).css({"background-color": "#F3F3F3", "font-weight": "600", "border-bottom": "solid 0.5px #ddd", "border-right": "solid 0.5px #F3F3F3"});
|
||||
$("td", nRow).mouseenter(function () {
|
||||
$("td", nRow).css({"background-color": "#DEDFE0", "font-weight": "600", "border-bottom": "solid 0.5px #ddd", "border-right": "solid 0.5px #DEDFE0"});
|
||||
});
|
||||
$("td", nRow).mouseleave(function () {
|
||||
$("td", nRow).css({"background-color": "#F3F3F3", "font-weight": "600", "border-bottom": "solid 0.5px #ddd", "border-right": "solid 0.5px #F3F3F3"});
|
||||
});
|
||||
} else {
|
||||
$("td", nRow).css({"background-color": "white", "border-bottom": "solid 0.5px #ddd", "border-right": "solid 0.5px white"});
|
||||
$("td", nRow).mouseenter(function () {
|
||||
$("td", nRow).css({"background-color": "#DEDFE0", "border-bottom": "solid 0.5px #ddd", "border-right": "solid 0.5px #DEDFE0"});
|
||||
});
|
||||
$("td", nRow).mouseleave(function () {
|
||||
$("td", nRow).css({"background-color": "white", "border-bottom": "solid 0.5px #ddd", "border-right": "solid 0.5px white"});
|
||||
});
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
$('a.toggle-vis').on( 'click', function (e)
|
||||
{
|
||||
clicked = clicked+1;
|
||||
if((clicked%2)== 0){
|
||||
last = false;
|
||||
create = true;
|
||||
sort = [[7, "desc"]]
|
||||
$('a.toggle-vis').html('<i class="fa fa-clock-o" style="color:green;"> </i>{!!Lang::get("lang.last_activity")!!}');
|
||||
} else {
|
||||
last = true;
|
||||
create = false;
|
||||
sort = [[6, "desc"]]
|
||||
$('a.toggle-vis').html('<i class="fa fa-plus-square-o" style="color:green;"> </i>{!!Lang::get("lang.created-at")!!}');
|
||||
|
||||
}
|
||||
$("#chumper").dataTable().fnDestroy();
|
||||
myFunction();
|
||||
});
|
||||
});
|
||||
|
||||
</script>
|
90
resources/views/vendor/Chumper/ticket-javascript.blade.php
vendored
Normal file
90
resources/views/vendor/Chumper/ticket-javascript.blade.php
vendored
Normal file
@@ -0,0 +1,90 @@
|
||||
<?php
|
||||
$segments = \Request::segments();
|
||||
$segment = "";
|
||||
foreach($segments as $seg){
|
||||
$segment.="/".$seg;
|
||||
}
|
||||
?>
|
||||
<script type="text/javascript">
|
||||
jQuery(document).ready(function () {
|
||||
var clicked = 1;
|
||||
var create = false;
|
||||
var last = true;
|
||||
var sort = [[6, "desc"]];
|
||||
oTable = myFunction();
|
||||
$("select[name=label]").change(function () {
|
||||
$("#chumper").dataTable().fnDestroy();
|
||||
myFunction();
|
||||
});
|
||||
$("select[name=tag]").change(function () {
|
||||
$("#chumper").dataTable().fnDestroy();
|
||||
myFunction();
|
||||
});
|
||||
|
||||
function myFunction()
|
||||
{
|
||||
return jQuery('#chumper').dataTable({
|
||||
"sDom": "<'row'<'col-xs-6'l><'col-xs-6'f>r>"+
|
||||
"t"+
|
||||
"<'row'<'col-xs-6'i><'col-xs-6'p>>",
|
||||
"sPaginationType": "full_numbers",
|
||||
"bProcessing": true,
|
||||
"bServerSide": true,
|
||||
"lengthMenu": [[10, 25, 50, 100, 500], [10, 25, 50, 100, 500]],
|
||||
"ajax": {
|
||||
url: "{{url('filter')}}",
|
||||
data: function (d) {
|
||||
d.labels = $('select[name=label]').val();
|
||||
d.tags = $('select[name=tag]').val();
|
||||
d.segment = "{{$segment}}";
|
||||
}
|
||||
},
|
||||
"aaSorting": sort,
|
||||
"columnDefs": [
|
||||
{ "searchable": false, "targets": [6,7] },
|
||||
{ "visible": last, "targets": 6 },
|
||||
{"visible": create, "targets":7},
|
||||
],
|
||||
"fnCreatedRow": function (nRow, aData, iDataIndex) {
|
||||
var str = aData[3];
|
||||
if (str.search("#000") == -1) {
|
||||
$("td", nRow).css({"background-color": "#F3F3F3", "font-weight": "600", "border-bottom": "solid 0.5px #ddd", "border-right": "solid 0.5px #F3F3F3"});
|
||||
$("td", nRow).mouseenter(function () {
|
||||
$("td", nRow).css({"background-color": "#DEDFE0", "font-weight": "600", "border-bottom": "solid 0.5px #ddd", "border-right": "solid 0.5px #DEDFE0"});
|
||||
});
|
||||
$("td", nRow).mouseleave(function () {
|
||||
$("td", nRow).css({"background-color": "#F3F3F3", "font-weight": "600", "border-bottom": "solid 0.5px #ddd", "border-right": "solid 0.5px #F3F3F3"});
|
||||
});
|
||||
} else {
|
||||
$("td", nRow).css({"background-color": "white", "border-bottom": "solid 0.5px #ddd", "border-right": "solid 0.5px white"});
|
||||
$("td", nRow).mouseenter(function () {
|
||||
$("td", nRow).css({"background-color": "#DEDFE0", "border-bottom": "solid 0.5px #ddd", "border-right": "solid 0.5px #DEDFE0"});
|
||||
});
|
||||
$("td", nRow).mouseleave(function () {
|
||||
$("td", nRow).css({"background-color": "white", "border-bottom": "solid 0.5px #ddd", "border-right": "solid 0.5px white"});
|
||||
});
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
$('a.toggle-vis').on( 'click', function (e)
|
||||
{
|
||||
clicked = clicked+1;
|
||||
if((clicked%2)== 0){
|
||||
last = false;
|
||||
create = true;
|
||||
sort = [[7, "desc"]]
|
||||
$('a.toggle-vis').html('<i class="fa fa-clock-o" style="color:green;"> </i>{!!Lang::get("lang.last_activity")!!}');
|
||||
} else {
|
||||
last = true;
|
||||
create = false;
|
||||
sort = [[6, "desc"]]
|
||||
$('a.toggle-vis').html('<i class="fa fa-plus-square-o" style="color:green;"> </i>{!!Lang::get("lang.created-at")!!}');
|
||||
|
||||
}
|
||||
$("#chumper").dataTable().fnDestroy();
|
||||
myFunction();
|
||||
});
|
||||
});
|
||||
|
||||
</script>
|
109
resources/views/vendor/Chumper/tuser-javascript.blade.php
vendored
Normal file
109
resources/views/vendor/Chumper/tuser-javascript.blade.php
vendored
Normal file
@@ -0,0 +1,109 @@
|
||||
<?php
|
||||
$segments = \Request::segments();
|
||||
$segment = "";
|
||||
foreach($segments as $seg){
|
||||
$segment.="/".$seg;
|
||||
}
|
||||
?>
|
||||
<script type="text/javascript">
|
||||
jQuery(document).ready(function () {
|
||||
var clicked = 1;
|
||||
var create = false;
|
||||
var last = true;
|
||||
var sort = [[6, "desc"]];
|
||||
var status = "Open";
|
||||
oTable = myFunction();
|
||||
$("select[name=label]").change(function () {
|
||||
$("#chumper").dataTable().fnDestroy();
|
||||
myFunction();
|
||||
});
|
||||
$("select[name=tag]").change(function () {
|
||||
$("#chumper").dataTable().fnDestroy();
|
||||
myFunction();
|
||||
});
|
||||
|
||||
function myFunction()
|
||||
{
|
||||
return jQuery('#chumper').dataTable({
|
||||
"sDom": "<'row'<'col-xs-6'l><'col-xs-6'f>r>"+
|
||||
"t"+
|
||||
"<'row'<'col-xs-6'i><'col-xs-6'p>>",
|
||||
"sPaginationType": "full_numbers",
|
||||
"bProcessing": true,
|
||||
"bServerSide": true,
|
||||
"lengthMenu": [[10, 25, 50, 100, 500], [10, 25, 50, 100, 500]],
|
||||
"ajax": {
|
||||
url: "{{url('filter')}}",
|
||||
data: function (d) {
|
||||
d.labels = $('select[name=label]').val();
|
||||
d.tags = $('select[name=tag]').val();
|
||||
d.segment = "{{$segment}}/"+status;
|
||||
}
|
||||
},
|
||||
"aaSorting": sort,
|
||||
"columnDefs": [
|
||||
{ "searchable": false, "targets": [6,7] },
|
||||
{ "visible": last, "targets": 6 },
|
||||
{"visible": create, "targets":7},
|
||||
],
|
||||
"fnCreatedRow": function (nRow, aData, iDataIndex) {
|
||||
var str = aData[3];
|
||||
if (str.search("#000") == -1) {
|
||||
$("td", nRow).css({"background-color": "#F3F3F3", "font-weight": "600", "border-bottom": "solid 0.5px #ddd", "border-right": "solid 0.5px #F3F3F3"});
|
||||
$("td", nRow).mouseenter(function () {
|
||||
$("td", nRow).css({"background-color": "#DEDFE0", "font-weight": "600", "border-bottom": "solid 0.5px #ddd", "border-right": "solid 0.5px #DEDFE0"});
|
||||
});
|
||||
$("td", nRow).mouseleave(function () {
|
||||
$("td", nRow).css({"background-color": "#F3F3F3", "font-weight": "600", "border-bottom": "solid 0.5px #ddd", "border-right": "solid 0.5px #F3F3F3"});
|
||||
});
|
||||
} else {
|
||||
$("td", nRow).css({"background-color": "white", "border-bottom": "solid 0.5px #ddd", "border-right": "solid 0.5px white"});
|
||||
$("td", nRow).mouseenter(function () {
|
||||
$("td", nRow).css({"background-color": "#DEDFE0", "border-bottom": "solid 0.5px #ddd", "border-right": "solid 0.5px #DEDFE0"});
|
||||
});
|
||||
$("td", nRow).mouseleave(function () {
|
||||
$("td", nRow).css({"background-color": "white", "border-bottom": "solid 0.5px #ddd", "border-right": "solid 0.5px white"});
|
||||
});
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
$('a.toggle-vis').on( 'click', function (e)
|
||||
{
|
||||
clicked = clicked+1;
|
||||
if((clicked%2)== 0){
|
||||
last = false;
|
||||
create = true;
|
||||
sort = [[7, "desc"]]
|
||||
$('a.toggle-vis').html('<i class="fa fa-clock-o" style="color:green;"> </i>{!!Lang::get("lang.last_activity")!!}');
|
||||
} else {
|
||||
last = true;
|
||||
create = false;
|
||||
sort = [[6, "desc"]]
|
||||
$('a.toggle-vis').html('<i class="fa fa-plus-square-o" style="color:green;"> </i>{!!Lang::get("lang.created-at")!!}');
|
||||
|
||||
}
|
||||
$("#chumper").dataTable().fnDestroy();
|
||||
myFunction();
|
||||
});
|
||||
|
||||
$('#open_tab').on('click', function(){
|
||||
redrawTable("Open");
|
||||
});
|
||||
|
||||
$('#closed_tab').on('click', function(){
|
||||
redrawTable("Closed");
|
||||
});
|
||||
|
||||
$('#deleted_tab').on('click', function(){
|
||||
redrawTable("Deleted");
|
||||
});
|
||||
|
||||
function redrawTable(showTicket) {
|
||||
status = showTicket;
|
||||
$("#chumper").dataTable().fnDestroy();
|
||||
myFunction();
|
||||
}
|
||||
});
|
||||
|
||||
</script>
|
47
resources/views/vendor/Chumper/user-javascript.blade.php
vendored
Normal file
47
resources/views/vendor/Chumper/user-javascript.blade.php
vendored
Normal file
@@ -0,0 +1,47 @@
|
||||
<?php
|
||||
$segments = \Request::segments();
|
||||
$segment = "";
|
||||
foreach($segments as $seg){
|
||||
$segment.="/".$seg;
|
||||
}
|
||||
?>
|
||||
<script type="text/javascript">
|
||||
jQuery(document).ready(function () {
|
||||
var show = 'active';
|
||||
oTable = myFunction(show);
|
||||
|
||||
$("select[name=type_of_profile]").change(function () {
|
||||
//alert($('select[name=type_of_profile]').val());
|
||||
$("#chumper").dataTable().fnDestroy();
|
||||
myFunction();
|
||||
});
|
||||
|
||||
function myFunction(show)
|
||||
{
|
||||
return jQuery('#chumper').dataTable({
|
||||
"sPaginationType": "full_numbers",
|
||||
"bProcessing": true,
|
||||
"ajax": {
|
||||
url: "{{url('user-list')}}",
|
||||
data: function (d) {
|
||||
d.profiletype = show;
|
||||
}
|
||||
}
|
||||
|
||||
});
|
||||
}
|
||||
|
||||
$('.active').on('click', function(){
|
||||
show = 'active';
|
||||
$("#chumper").dataTable().fnDestroy();
|
||||
myFunction(show);
|
||||
});
|
||||
|
||||
$('.inactive').on('click', function(){
|
||||
show = 'inactive';
|
||||
$("#chumper").dataTable().fnDestroy();
|
||||
myFunction(show);
|
||||
});
|
||||
});
|
||||
|
||||
</script>
|
@@ -5,4 +5,5 @@
|
||||
{!! $options !!}
|
||||
);
|
||||
});
|
||||
|
||||
</script>
|
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user