- {!! Lang::get('lang.opened') !!} {!! $open->total() !!}
- {!! Lang::get('lang.closed') !!} {!! $close->total() !!}
{!! Form::open(['route'=>'select_all','method'=>'post']) !!}
{!! Form::close() !!}
{{-- /.tab_1 --}}
Loading...
{!! Lang::get('lang.subject') !!} | {!! Lang::get('lang.ticket_id') !!} | {!! Lang::get('lang.priority') !!} | {!! Lang::get('lang.last_replier') !!} | {!! Lang::get('lang.last_activity') !!} | {!! Lang::get('lang.status') !!} | @foreach ($open as $ticket )|
---|---|---|---|---|---|---|
id)->orderBy('id')->first(); $string = strip_tags($title->title); 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) ->where('user_id', '!=' , null) ->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)->where('is_internal', '=', 0)->get(); $count = count($titles); foreach ($titles as $title) { $title = $title; } ?> | {{$string}} ({!! $count!!}) | #{!! $ticket->ticket_number !!} | priority_id)->first(); ?>{!! $username !!} | {!! $title->updated_at !!} | status)->first(); ?>{!! $status->name !!} |
setPath(url('mytickets'))->render(); ?>
{!! Form::open(['route'=>'select_all','method'=>'post']) !!}
{!! Form::close() !!}
Loading...
{!! Lang::get('lang.subject') !!} | {!! Lang::get('lang.ticket_id') !!} | {!! Lang::get('lang.priority') !!} | {!! Lang::get('lang.last_replier') !!} | {!! Lang::get('lang.last_activity') !!} | {!! Lang::get('lang.status') !!} | @foreach ($close as $ticket )|
---|---|---|---|---|---|---|
id)->first(); $string = strip_tags($title->title); 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)->where("is_internal", "=", 0)->get(); $count = count($titles); foreach ($titles as $title) { $title = $title; } ?> | {{$string}} ({!! $count!!}) | #{!! $ticket->ticket_number !!} | priority_id)->first(); ?>{!! $username !!} | {!! $title->updated_at !!} | status)->first(); ?>{!! $status->name !!} |
setPath(url('mytickets'))->render(); ?>