@extends('themes.default1.agent.layout.agent') @section('Tickets') class="nav-link active" @stop @section('ticket-bar') active @stop @section('PageHeader')

{{ Lang::get('lang.ticket-details') }}

@include('themes.default1.agent.helpdesk.ticket.response-messages') @stop user_id)->first(); $assignedto = App\User::where('id', '=', $tickets->assigned_to)->first(); $agent_group = Auth::user()->assign_group; $group = App\Model\helpdesk\Agent\Groups::where('id', '=', $agent_group)->where('group_status', '=', '1')->first(); ?> @section('sidebar') @stop title != '') { $title = wordwrap($thread->title, 70, "
\n"); } else { $title = ''; } ?> @section('content')

{!! $thread->getSubject() !!}

id)); if ($group->can_edit_ticket == 1) { ?> can_assign_ticket == 1) { ?> @if ($tickets->assigned_to == Auth::user()->id) @endif {{ trans('lang.generate_pdf') }}
can_delete_ticket == 1 || $group->can_ban_email == 1) { ?>
priority_id)->first(); ?>
sla; $SlaPlan = App\Model\helpdesk\Manage\Sla_plan::where('id', '=', $sla)->first(); ?> {!! Lang::get('lang.sla_plan') !!}: {{ $SlaPlan->grace_period }}
{!! Lang::get('lang.created_date') !!}: {{ UTC::usertimezone($tickets->created_at) }}
{!! Lang::get('lang.due_date') !!}: duedate; $location = $tickets->location; $user_timezone = new DateTimeZone('Asia/Kolkata'); $time = date_create($tickets->duedate, $user_timezone); date_add($time, date_interval_create_from_date_string($SlaPlan->grace_period)); date_add($time, date_interval_create_from_date_string('30 minutes')); echo $time->format('Y-m-d H:i:s'); ?>
id)->get(); ?> @foreach ($response as $last) created_at; ?> @endforeach {!! Lang::get('lang.last_response') !!}: {{ UTC::usertimezone($ResponseDate) }}
status)->first(); ?> @if ($status) @endif priority_id)->first(); ?> @if ($priority) @endif dept_id)->first(); ?> @if ($dept123) @endif @if ($user->ban > 0) @endif
{!! 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.this_ticket_is_under_banned_user') !!}
user_id)->first(); $TicketData = App\Model\helpdesk\Ticket\Ticket_Thread::where('ticket_id', '=', $thread->ticket_id)->where('is_internal', '=', 0)->max('id'); $TicketDatarow = App\Model\helpdesk\Ticket\Ticket_Thread::where('id', '=', $TicketData)->where('is_internal', '=', 0)->first(); $LastResponse = App\User::where('id', '=', $TicketDatarow->user_id)->first(); if ($LastResponse->role == 'user') { $rep = '#F39C12'; $username = $LastResponse->first_name . ' ' . $LastResponse->last_name; if ($LastResponse->first_name == null || $LastResponse->first_name == '') { $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; } } if ($tickets->source > 0) { $ticket_source = App\Model\helpdesk\Ticket\Ticket_source::where('id', '=', $tickets->source)->first(); $ticket_source = $ticket_source->value; } else { $ticket_source = $tickets->source; } ?>
@if ($user->phone_number != null)
@endif @if ($user->mobile != null) @endif help_topic_id)->first(); ?>
{!! Lang::get('lang.phone') !!}: {{ $user->phone_number }}
{!! Lang::get('lang.mobile') !!}: {{ $user->ext . $user->mobile }}
{!! 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() !!}
Địa điểm: {!! $location->locationname !!}

{{ trans('lang.action') }}

{!! Form::label('To', Lang::get('lang.to') . ':') !!}
{!! Form::text('To', $user->email, [ 'disabled' => 'disabled', 'id' => 'email', 'class' => 'form-control', 'style' => 'width:55%', ]) !!} {!! $errors->first('To', ':message') !!} {!! Lang::get('lang.add_cc') !!}
id)->get(); $count_collaborator = count($Collaborator); ?> @if ($count_collaborator > 0) ({!! $count_collaborator !!}) {!! Lang::get('lang.recepients') !!} @endif
{!! Form::label('Reply Content', Lang::get('lang.reply_content') . ':') !!} *
{!! $errors->first('reply_content', ':message') !!}
{!! Lang::get('lang.upload') !!}
{!! Lang::get('lang.max') !!}. {!! $max_size_in_actual !!}
{!! Form::close() !!}
{!! Form::model($tickets->id, ['id' => 'form2', 'method' => 'PATCH']) !!}
{!! $errors->first('InternalContent', ':message') !!}
{!! Form::close() !!}
id)->orderBy('id', 'DESC')->simplePaginate(10); $ij = App\Model\helpdesk\Ticket\Ticket_Thread::where('ticket_id', '=', $tickets->id)->first(); ?>

{{ trans('lang.ticket_conversation') }}

    setPath(url('/thread/' . $tickets->id))->render(); ?>
created_at; $ConvDate = explode(' ', $ConvDate1); $date = $ConvDate[0]; $time = $ConvDate[1]; $time = substr($time, 0, -3); if (isset($data) && $date == $data) { } else { ?> {{ date_format($conversation->created_at, 'd/m/Y') }} user_id != null) { $role = $conversation->user; } else { $role = null; } ?>
is_internal) { ?> user_id != null) { if ($role->role == 'agent' || $role->role == 'admin') { ?> role == 'user') { ?> user_id != null) { if ($conversation->is_internal) { $color = '#A19CFF'; // echo $color; } else { if ($role->role == 'agent' || $role->role == 'admin') { $color = '#F9B03B'; } elseif ($role->role == 'user') { $color = '#38D8FF'; } else { $color = '#605CA8'; } } } ?>
@if ($role) @if ($role->role != null) @if ($role->role != 'user' && $conversation->is_internal != 1) @foreach ($ratings as $rating) @if ($rating->rating_area == 'Comment Area') rating_id)->where('thread_id', '=', $conversation->id)->select('rating_value')->first(); if ($rating_value == null) { $ratingval = '0'; } else { $ratingval = $rating_value->rating_value; } ?>   @endif @endforeach @endif @endif @endif
{!! $rating->name !!}  
rating_scale; $i++) { ?> />     

user_id != null) { if ($role->first_name == '' || $role->first_name == null) { $usernam = $role->user_name; } else { $usernam = $role->first_name . ' ' . $role->last_name; } } else { $usernam = Lang::get('lang.system'); } ?> @if ($conversation->user_id != null) User Image @else img-circle img-bordered-sm @endif @if ($conversation->user_id != null) id) !!}'>{!! Str::limit($usernam, 30) !!} @else {!! Str::limit($usernam, 30) !!} @endif @if ($conversation->id == $ij->id)    @endif {{ UTC::usertimezone($conversation->created_at) }}

@if (\Lang::getLocale() == 'ar')
@else
@endif @if ($conversation->poster == 'client') @else {!! $conversation->body !!} @endif @if ($conversation->id == $ij->id) id)->get(); ?> @if (isset($ticket_form_datas))
@foreach ($ticket_form_datas as $ticket_form_data) @endforeach
{!! $ticket_form_data->getFieldKeyLabel() !!} {!! removeUnderscore($ticket_form_data->content) !!}
@endif @endif
id; ?>
    setPath(url('/thread/' . $tickets->id))->render(); ?>
can_edit_ticket == 1) { ?> can_ban_email == 1) { ?> can_assign_ticket == 1) { ?> $tickets->id]); ?>
first(); ?> @stop