first(); if($rtl->option_value == 1) { echo ''; } else { echo ''; } ?>


{!! $thread->title !!}


source)->first(); $ticket_source = $ticket_source->value; $user = App\User::where('id', '=', $tickets->user_id)->first(); ?> id)->get(); ?> @foreach($response as $last) created_at; ?> @endforeach status)->first(); ?> priority_id)->first(); ?> help_topic_id)->first(); ?> help_topic_id)->first(); ?> department)->first(); ?>
{!! Lang::get('lang.status') !!}: {{$status->state}}
{!! Lang::get('lang.priority') !!}: {{$priority->priority}}
{!! Lang::get('lang.department') !!}: {{$dept->name}}
{!! Lang::get('lang.email') !!}: {{$user->email}}
{!! Lang::get('lang.phone') !!}: {{$user->mobile}}
{!! Lang::get('lang.source') !!}: {{$ticket_source}}
{!! Lang::get('lang.help_topic') !!}: {{$help_topic->topic}}
id)->orderBy('created_at', 'desc')->paginate(10); ?> @foreach($conversations as $conversation)

@if($conversation->user_id != null) user_id)->first(); ?> is_internal) { ?> role == 'agent' || $role->role == 'admin') { ?> role == 'user') { ?> @endif 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\helpdesk\Ticket\Ticket_attachments::where('thread_id', '=', $conversation->id)->where('poster', '=', 'INLINE')->get(); foreach ($attachments as $attachment) { if ($attachment->type == 'pdf' || $attachment->type == 'PDF') { // echo "hello"; } elseif ($attachment->type == 'docx' || $attachment->type == 'DOCX') { // echo "hello"; } elseif ($attachment->type == 'html' || $attachment->type == 'HTML') { // echo "hello"; } elseif ($attachment->type == 'zip' || $attachment->type == 'ZIP') { // echo "hello"; } else { try { $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); } } catch (\Exception $e) { } } } // 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); } ?>

user_id != null) { if ($role->role == "user") { echo $role->user_name; } else { echo $role->first_name . " " . $role->last_name; } } else { echo Lang::get('lang.system'); } ?> {!! Lang::get('lang.date') !!}: {!! $thread->created_at !!}

{!! $body !!}
@endforeach