@extends('themes.default1.client.layout.client') user_id)->first();?> assigned_to)->first();?> @section('sidebar')
  • TICKET INFORMATION
  • TICKET ID
    #{{$tickets->ticket_number}}
  • USER
    {{$user->user_name}}
  • @if($tickets->assigned_to > 0) ASSIGNED TO
    {{$assignedto->first_name}}
    @else UNASSIGNED @endif
  • @stop @section('content')

    {!! $thread->title !!}

    priority_id)->first(); ?>
    sla; $SlaPlan = App\Model\Manage\Sla_plan::where('id', '=', $sla)->first(); ?> SLA Plan: {{$SlaPlan->grace_period}}
    Created Date: {{ UTC::usertimezone($tickets->created_at) }}
    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)->get();?> @foreach($response as $last) created_at;?> @endforeach Last Response: {{ UTC::usertimezone($ResponseDate)}}
    status)->first();?>
    priority_id)->first();?>help_topic_id)->first();?>
    Status: {{$status->name}}
    Priority: {{$priority->priority_desc}}
    Department: {{$help_topic->topic}}
    Email: {{$user->email}}
    user_id)->first(); $TicketData = App\Model\Ticket\Ticket_Thread::where('ticket_id', '=', $thread->ticket_id)->max('id'); $TicketDatarow = App\Model\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; }} if($tickets->source > 0) { $ticket_source = App\Model\Ticket\Ticket_source::where('id','=',$tickets->source)->first(); $ticket_source = $ticket_source->value; } else $ticket_source = $tickets->source; ?> @if($user_phone != null)@endif help_topic_id)->first();?>
    Phone: {{$user_phone->mobile}}
    Source: {{$ticket_source}}
    Help Topic: {{$help_topic->topic}}
    Last Message: {{$username}}
      id)->paginate(10); foreach ($conversations as $conversation) { ?>
    • 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)->first(); ?>
    • is_internal) { ?> role == 'agent' || $role->role == 'admin') { ?> role == 'user') { ?> id)->first(); if($attachment == null ) { $body = $conversation->body; } else { // dd($attachment->file); // print $attachment->file; // header("Content-type: image/jpeg"); // echo " "; $body = $conversation->body; $attachments = App\Model\Ticket\Ticket_attachments::where('thread_id','=',$conversation->id)->orderBy('id', 'DESC')->get(); // $i = 0; foreach($attachments as $attachment) { // $i++; if($attachment->type == 'pdf') { // echo "hello"; }elseif($attachment->type == 'docx') { // echo "hello"; } else { $image = imagecreatefromstring($attachment->file); ob_start(); imagejpeg($image, null, 80); $data = ob_get_contents(); ob_end_clean(); $var = ''; // echo $var; // echo $attachment->name; // $body = explode($attachment->name, $body); $body = str_replace($attachment->name, "data:image/jpg;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); } } } // echo $body; // $body = explode($attachment->file, $body); // $body = $body[0]; } ?> "; $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); } ?>
      {{date_format($conversation->created_at, 'd/m/Y H:i:s')}}

      role == "user") {echo $role->user_name; } else { echo $role->first_name . " " . $role->last_name; } ?>

      {!! $body !!}
    • id?>
      • setPath(url('/thread/' . $tickets->id))->render();?>
    @stop {{-- // --}}