@@ -465,7 +465,7 @@ class UserController extends Controller
|
|||||||
$ticket = Tickets::where('assigned_to', '=', $id)->where('status', '=', '1')->get();
|
$ticket = Tickets::where('assigned_to', '=', $id)->where('status', '=', '1')->get();
|
||||||
if ($assign_to[0] == 'user') {
|
if ($assign_to[0] == 'user') {
|
||||||
if ($users->id == $assign_to[1]) {
|
if ($users->id == $assign_to[1]) {
|
||||||
return redirect('user')->with('warning', Lang::get('lang.select_another_user'));
|
return redirect('user')->with('warning', Lang::get('lang.select_another_agent'));
|
||||||
}
|
}
|
||||||
$user_detail = User::where('id', '=', $assign_to[1])->first();
|
$user_detail = User::where('id', '=', $assign_to[1])->first();
|
||||||
$assignee = $user_detail->first_name.' '.$user_detail->last_name;
|
$assignee = $user_detail->first_name.' '.$user_detail->last_name;
|
||||||
|
@@ -1507,6 +1507,10 @@ return [
|
|||||||
* User Module
|
* User Module
|
||||||
* --------------------------------------------------------------------------------------------
|
* --------------------------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
|
'agent_report' =>'Agent Report',
|
||||||
|
'assign_tickets' =>'Assign Tickets',
|
||||||
|
'delete_agent' =>'Delete Agent',
|
||||||
|
'delete_user' =>'Delete User',
|
||||||
'confirm_deletion' => 'Confirm Deletion',
|
'confirm_deletion' => 'Confirm Deletion',
|
||||||
'delete_all_content' => ' Delete all content',
|
'delete_all_content' => ' Delete all content',
|
||||||
'agent_profile' => 'Agent Profile',
|
'agent_profile' => 'Agent Profile',
|
||||||
@@ -1523,7 +1527,7 @@ return [
|
|||||||
'role_change_successfully' => 'Role Change Successfully',
|
'role_change_successfully' => 'Role Change Successfully',
|
||||||
'user_delete_successfully' => 'User Delete Successfully',
|
'user_delete_successfully' => 'User Delete Successfully',
|
||||||
'agent_delete_successfully' => 'Agent Delete Successfully',
|
'agent_delete_successfully' => 'Agent Delete Successfully',
|
||||||
'select_another_user' => 'Select Another User',
|
'select_another_agent' => 'Select Another Agent',
|
||||||
'agent_delete_successfully_and_ticket_assign_to_another_user' => 'Agent Delete Successfully And Ticket Assign TO Another User',
|
'agent_delete_successfully_and_ticket_assign_to_another_agent' => 'Agent Delete Successfully And Ticket Assign TO Another Agent',
|
||||||
|
|
||||||
];
|
];
|
||||||
|
@@ -200,7 +200,7 @@ if ($thread->title != "") {
|
|||||||
<?php
|
<?php
|
||||||
$priority = App\Model\helpdesk\Ticket\Ticket_Priority::where('priority_id', '=', $tickets->priority_id)->first();
|
$priority = App\Model\helpdesk\Ticket\Ticket_Priority::where('priority_id', '=', $tickets->priority_id)->first();
|
||||||
?>
|
?>
|
||||||
<div class="callout callout-{{$priority->priority_color}}">
|
<div class="callout callout-{{$priority->priority_color}}" style = 'background-color:{{$priority->priority_color}}'>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-md-3">
|
<div class="col-md-3">
|
||||||
<?php
|
<?php
|
||||||
|
@@ -216,7 +216,14 @@ class="active"
|
|||||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span
|
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span
|
||||||
aria-hidden="true">×</span>
|
aria-hidden="true">×</span>
|
||||||
</button>
|
</button>
|
||||||
<h4 class="modal-title" id="titleLabel">Delete Agent</h4>
|
@if($users->role=='user')
|
||||||
|
<h4 class="modal-title" id="titleLabel">{{Lang::get('lang.delete_user')}}</h4>
|
||||||
|
@endif
|
||||||
|
@if($users->role=='agent')
|
||||||
|
<h4 class="modal-title" id="titleLabel">{{Lang::get('lang.delete_agent')}}</h4>
|
||||||
|
@endif
|
||||||
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="modal-body">
|
<div class="modal-body">
|
||||||
@@ -879,13 +886,19 @@ class="active"
|
|||||||
</div><!-- /.col -->
|
</div><!-- /.col -->
|
||||||
</div> <!-- /.row -->
|
</div> <!-- /.row -->
|
||||||
</div>
|
</div>
|
||||||
@if(Auth::user()->role == 'user')
|
@if(Auth::user()->role == 'admin')
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-md-12">
|
<div class="col-md-12">
|
||||||
<link type="text/css" href="{{asset("lb-faveo/css/bootstrap-datetimepicker4.7.14.min.css")}}" rel="stylesheet">
|
<link type="text/css" href="{{asset("lb-faveo/css/bootstrap-datetimepicker4.7.14.min.css")}}" rel="stylesheet">
|
||||||
<div class="box box-info">
|
<div class="box box-info">
|
||||||
<div class="box-header with-border">
|
<div class="box-header with-border">
|
||||||
|
@if($users->role=='user')
|
||||||
<h3 class="box-title">{!! Lang::get('lang.user_report') !!}</h3>
|
<h3 class="box-title">{!! Lang::get('lang.user_report') !!}</h3>
|
||||||
|
@endif
|
||||||
|
@if($users->role=='agent')
|
||||||
|
<h3 class="box-title">{!! Lang::get('lang.agent_report') !!}</h3>
|
||||||
|
@endif
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div class="box-body">
|
<div class="box-body">
|
||||||
<form id="foo">
|
<form id="foo">
|
||||||
@@ -943,7 +956,17 @@ class="active"
|
|||||||
<style>
|
<style>
|
||||||
#legend-holder { border: 1px solid #ccc; float: left; width: 25px; height: 25px; margin: 1px; }
|
#legend-holder { border: 1px solid #ccc; float: left; width: 25px; height: 25px; margin: 1px; }
|
||||||
</style>
|
</style>
|
||||||
<div class="col-md-4"><span id="legend-holder" style="background-color: #6C96DF;"></span> <span class="lead"> <span id="total-created-tickets" ></span> {!! Lang::get('lang.tickets') !!} {!! Lang::get('lang.created') !!} </span></div>
|
|
||||||
|
@if($users->role=='user')
|
||||||
|
|
||||||
|
<div class="col-md-4"><span id="legend-holder" style="background-color: #6C96DF;"></span> <span class="lead"> <span id="total-created-tickets" ></span> {!! Lang::get('lang.tickets') !!} {!! Lang::get('lang.created') !!} </span></div>
|
||||||
|
@endif
|
||||||
|
@if($users->role=='agent')
|
||||||
|
<div class="col-md-4"><span id="legend-holder" style="background-color: #6C96DF;"></span> <span class="lead"> <span id="total-created-tickets" ></span> {!! Lang::get('lang.assign_tickets') !!} </span></div>
|
||||||
|
|
||||||
|
@endif
|
||||||
|
|
||||||
|
|
||||||
<div class="col-md-4"><span id="legend-holder" style="background-color: #6DC5B2;"></span> <span class="lead"> <span id="total-reopen-tickets" class="lead"></span> {!! Lang::get('lang.tickets') !!} {!! Lang::get('lang.reopen') !!} </span></div>
|
<div class="col-md-4"><span id="legend-holder" style="background-color: #6DC5B2;"></span> <span class="lead"> <span id="total-reopen-tickets" class="lead"></span> {!! Lang::get('lang.tickets') !!} {!! Lang::get('lang.reopen') !!} </span></div>
|
||||||
<div class="col-md-4"><span id="legend-holder" style="background-color: #E3B870;"></span> <span class="lead"> <span id="total-closed-tickets" class="lead"></span> {!! Lang::get('lang.tickets') !!} {!! Lang::get('lang.closed') !!} </span></div>
|
<div class="col-md-4"><span id="legend-holder" style="background-color: #E3B870;"></span> <span class="lead"> <span id="total-closed-tickets" class="lead"></span> {!! Lang::get('lang.tickets') !!} {!! Lang::get('lang.closed') !!} </span></div>
|
||||||
</div>
|
</div>
|
||||||
|
Reference in New Issue
Block a user