@extends('themes.default1.agent.layout.agent') @section('Users') class="active" @stop @section('user-bar') active @stop @section('user') class="active" @stop @section('HeadInclude') @stop @section('PageHeader') @if($users->role == 'user')
Are you sure you want to Remove ?
Loading...
| {!! Lang::get('lang.subject') !!} | {!! Lang::get('lang.ticket_id') !!} | {!! Lang::get('lang.priority') !!} | {!! Lang::get('lang.last_replier') !!} | {!! Lang::get('lang.assigned_to') !!} | {!! Lang::get('lang.last_activity') !!} | @if($users->role != 'user') id)->where('status', '=', '1')->orderBy('id', 'DESC')->paginate(20); ?> @elseif($users->role ='user') id)->where('status', '=', '1')->orderBy('id', 'DESC')->paginate(20); ?> @endif @foreach ($tickets as $ticket)|
|---|---|---|---|---|---|---|
| id)->get(); $collab = count($collaborators); // title $title = App\Model\helpdesk\Ticket\Ticket_Thread::where('ticket_id', '=', $ticket->id)->first(); $string = strip_tags($title->title); // check atatchments $attachments = App\Model\helpdesk\Ticket\Ticket_attachments::where('thread_id', '=', $title->id)->first(); $attach = count($attachments); if (strlen($string) > 40) { $stringCut = substr($string, 0, 40); $string = substr($stringCut, 0, strrpos($stringCut, ' ')) . ' ...'; } $TicketData = App\Model\helpdesk\Ticket\Ticket_Thread::where('ticket_id', '=', $ticket->id)->max('id'); $TicketDatarow = App\Model\helpdesk\Ticket\Ticket_Thread::where('id', '=', $TicketData)->first(); $LastResponse = App\User::where('id', '=', $TicketDatarow->user_id)->first(); if ($LastResponse->role == "user") { $rep = "#F39C12"; $username = $LastResponse->full_name; } else { $rep = "#000"; $username = $LastResponse->full_name; } $titles = App\Model\helpdesk\Ticket\Ticket_Thread::where('ticket_id', '=', $ticket->id)->get(); $count = count($titles); foreach ($titles as $title) { $title = $title; } $assigned_to = App\User::where('id', '=', $ticket->assigned_to)->first(); if ($assigned_to == null) { $assigned = "Unassigned"; } else { $assigned = $assigned_to->first_name . " " . $assigned_to->last_name; } ?> | {{$string}} ({!! $count!!}) @if($collab > 0) @endif @if($attach > 0) @endif | #{!! $ticket->ticket_number !!} | priority_id)->first(); ?>@if($priority != null) |
user_id)->first(); ?>
{!! str_limit($username,20) !!} | {!! $assigned !!} | {!! UTC::usertimezone($title->updated_at) !!} |
Loading...
| {!! Lang::get('lang.subject') !!} | {!! Lang::get('lang.ticket_id') !!} | {!! Lang::get('lang.priority') !!} | {!! Lang::get('lang.last_replier') !!} | {!! Lang::get('lang.assigned_to') !!} | {!! Lang::get('lang.last_activity') !!} | @if($users->role != 'user') id)->where('status', '=', '3')->orderBy('id', 'DESC')->paginate(20); ?> @elseif($users->role ='user') id)->where('status', '=', '3')->orderBy('id', 'DESC')->paginate(20); ?> @endif @foreach ($tickets as $ticket)|
|---|---|---|---|---|---|---|
| id)->get(); $collab = count($collaborators); // title $title = App\Model\helpdesk\Ticket\Ticket_Thread::where('ticket_id', '=', $ticket->id)->first(); $string = strip_tags($title->title); // check atatchments $attachments = App\Model\helpdesk\Ticket\Ticket_attachments::where('thread_id', '=', $title->id)->first(); $attach = count($attachments); if (strlen($string) > 40) { $stringCut = substr($string, 0, 40); $string = substr($stringCut, 0, strrpos($stringCut, ' ')) . ' ...'; } $TicketData = App\Model\helpdesk\Ticket\Ticket_Thread::where('ticket_id', '=', $ticket->id)->max('id'); $TicketDatarow = App\Model\helpdesk\Ticket\Ticket_Thread::where('id', '=', $TicketData)->first(); $LastResponse = App\User::where('id', '=', $TicketDatarow->user_id)->first(); if ($LastResponse->role == "user") { $rep = "#F39C12"; $username = $LastResponse->user_name; } else { $rep = "#000"; $username = $LastResponse->first_name . " " . $LastResponse->last_name; if ($LastResponse->first_name == null || $LastResponse->last_name == null) { $username = $LastResponse->user_name; } } $titles = App\Model\helpdesk\Ticket\Ticket_Thread::where('ticket_id', '=', $ticket->id)->get(); $count = count($titles); foreach ($titles as $title) { $title = $title; } $assigned_to = App\User::where('id', '=', $ticket->assigned_to)->first(); if ($assigned_to == null) { $assigned = "Unassigned"; } else { $assigned = $assigned_to->first_name . " " . $assigned_to->last_name; } ?> | {{$string}} ({!! $count!!}) @if($collab > 0) @endif @if($attach > 0) @endif | #{!! $ticket->ticket_number !!} | priority_id)->first(); ?>@if($priority != null) |
user_id)->first(); ?>
{!! str_limit($username,20) !!} | {!! $assigned !!} | {!! UTC::usertimezone($title->updated_at) !!} |
Loading...
| {!! Lang::get('lang.subject') !!} | {!! Lang::get('lang.ticket_id') !!} | {!! Lang::get('lang.priority') !!} | {!! Lang::get('lang.last_replier') !!} | {!! Lang::get('lang.assigned_to') !!} | {!! Lang::get('lang.last_activity') !!} | @if($users->role != 'user') id)->where('status', '=', '5')->orderBy('id', 'DESC')->paginate(20); ?> @elseif($users->role ='user') id)->where('status', '=', '5')->orderBy('id', 'DESC')->paginate(20); ?> @endif @foreach ($tickets as $ticket)|
|---|---|---|---|---|---|---|
| id)->get(); $collab = count($collaborators); // title $title = App\Model\helpdesk\Ticket\Ticket_Thread::where('ticket_id', '=', $ticket->id)->first(); $string = strip_tags($title->title); // check atatchments $attachments = App\Model\helpdesk\Ticket\Ticket_attachments::where('thread_id', '=', $title->id)->first(); $attach = count($attachments); if (strlen($string) > 40) { $stringCut = substr($string, 0, 40); $string = substr($stringCut, 0, strrpos($stringCut, ' ')) . ' ...'; } $TicketData = App\Model\helpdesk\Ticket\Ticket_Thread::where('ticket_id', '=', $ticket->id)->max('id'); $TicketDatarow = App\Model\helpdesk\Ticket\Ticket_Thread::where('id', '=', $TicketData)->first(); $LastResponse = App\User::where('id', '=', $TicketDatarow->user_id)->first(); if ($LastResponse->role == "user") { $rep = "#F39C12"; $username = $LastResponse->user_name; } else { $rep = "#000"; $username = $LastResponse->first_name . " " . $LastResponse->last_name; if ($LastResponse->first_name == null || $LastResponse->last_name == null) { $username = $LastResponse->user_name; } } $titles = App\Model\helpdesk\Ticket\Ticket_Thread::where('ticket_id', '=', $ticket->id)->get(); $count = count($titles); foreach ($titles as $title) { $title = $title; } $assigned_to = App\User::where('id', '=', $ticket->assigned_to)->first(); if ($assigned_to == null) { $assigned = "Unassigned"; } else { $assigned = $assigned_to->first_name . " " . $assigned_to->last_name; } ?> | {{$string}} ({!! $count!!}) @if($collab > 0) @endif @if($attach > 0) @endif | #{!! $ticket->ticket_number !!} | priority_id)->first(); ?>@if($priority != null) |
user_id)->first(); ?>
{!! str_limit($username,20) !!} | {!! $assigned !!} | {!! UTC::usertimezone($title->updated_at) !!} |
{!! Lang::get('lang.please_select_an_organization') !!}
{!! Lang::get('lang.please_select_an_organization') !!}