@extends('themes.default1.client.layout.client') @section('content') first(); $thread = App\Model\helpdesk\Ticket\Ticket_Thread::where('ticket_id', '=', \Crypt::decrypt($id))->first(); //$user = App\User::where('id','=',$id1)->first(); ?>

{{$thread->title}}

( {{$tickets->ticket_number}} )
{{-- --}} @if( $common_setting->status == '1') @endif {!! Form::close() !!}
get(); ?> @foreach($ratings as $rating) @if($rating->rating_area == 'Helpdesk Area') id)->where('ticket_id', '=', $tickets->id)->first(); if ($rating_value == null) { $ratingval = '0'; } else { $ratingval = $rating_value->rating_value; } ?>   @endif @endforeach
{!! $rating->name !!}  
rating_scale; $i++) { ?> />
priority_id)->first(); ?>
sla; $SlaPlan = App\Model\helpdesk\Manage\Sla_plan::where('id', '=', 1)->first(); ?> {!! Lang::get('lang.sla_plan') !!}: {{$SlaPlan->grace_period}}
{!! Lang::get('lang.created_date') !!}: {{ UTC::usertimezone($tickets->created_at) }}
{!! Lang::get('lang.due_date') !!}: 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')); ?>
id)->where('is_internal', '=', 0)->get(); ?> @foreach($response as $last) created_at; ?> @endforeach {!! Lang::get('lang.last_response') !!}: {{ UTC::usertimezone($ResponseDate)}}
status)->first(); ?> @if($status->id == 1) @elseif($status->id == 2) @elseif($status->id == 3) @endif priority_id)->first(); ?> @if($priority->priority_id == 1) @elseif($priority->priority_id == 2) @elseif($priority->priority_id == 3) @endif help_topic_id)->first(); $department = App\Model\helpdesk\Agent\Department::where('id', '=', $help_topic->department)->first(); ?>
{!! Lang::get('lang.status') !!}: {{$status->name}}
{{$status->name}}
{{$status->name}}
{!! Lang::get('lang.priority') !!}: {{$priority->priority_desc}}{{$priority->priority_desc}}{{$priority->priority_desc}}
{!! Lang::get('lang.department') !!}: {!! $department->name !!}
help_topic_id)->first(); ?>
{!! Lang::get('lang.help_topic') !!}: {{$help_topic->topic}}
{!! Lang::get('lang.last_message') !!}: {{ucwords($last->poster)}}
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) { // $i++; try { if ($attachment->type == 'jpg' || $attachment->type == 'png' || $attachment->type == 'PNG' || $attachment->type == 'JPG' || $attachment->type == 'jpeg' || $attachment->type == 'JPEG' || $attachment->type == 'gif' || $attachment->type == 'GIF') { if($attachment->size > 0) { $image = @imagecreatefromstring($attachment->file); if($image == false) { } else { ob_start(); imagejpeg($image, null, 80); $data = ob_get_contents(); ob_end_clean(); $var = ''; $body = str_replace($attachment->name, "data:image/" . $attachment->type . ";base64," . base64_encode($data), $body); $string = $body; $start = ""; $end = ""; 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); } } } } else { } } catch(\Exception $e) { } } } $string = $body; $start = ""; $end = ""; 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); } ?>
  1. role == "user") { ?> style="background-color: hsla(100, 100%, 51%, 0.15)" style="background-color:#FFFCB3" >
    role == "user") { ?>style="box-shadow: 0 1px 3px #00FF26;" style="box-shadow: 0 1px 3px #FFEC00;" > @if($role->role == "user") {{$role->user_name}} @else {{$role->first_name." ".$role->last_name}}
    @foreach($ratings as $rating) @if($rating->rating_area == 'Comment Area') id)->where('thread_id', '=', $conversation->id)->first(); if ($rating_value == null) { $ratingval = '0'; } else { $ratingval = $rating_value->rating_value; } ?>   @endif @endforeach
    {!! $rating->name !!}  
    rating_scale; $i++) { ?> />
    @endif

    {!! $body !!}

setPath(url('check_ticket/{' . $id . '}'))->render(); ?>


@if(Session::has('success1'))
{{Session::get('success1')}}
@endif @if(Session::has('fails1'))
{!! Lang::get('lang.alert') !!}! {{Session::get('fails1')}}
@endif

{!! Lang::get('lang.leave_a_reply') !!}

@if(Auth::user()) {!! Form::open(['url'=>'post/reply/'.$id2.'#formabc']) !!} @else {!! Form::open(['url'=>'post-ticket-reply/'.$id.'#formabc']) !!} @endif
{!! Form::close() !!}
@stop