@foreach($ticket->ticketResponses as $ticketResponse) @if($supportUser->id == $ticketResponse->reply_entity_id)

{{$ticketResponse->reply_entity_name}}

{{ convertDateToUserTimeZone($ticketResponse->created_at,'jS M, Y h:i A',getUserTimeZone()) }}

{!! clean($ticketResponse->description, [ 'HTML.ForbiddenElements' => 'script,formaction,onfocus,poster,onscroll,onforminput,onformchange,onerror,onratechange,onload,background', 'AutoFormat.AutoParagraph' => true, 'Attr.EnableID' => true, 'HTML.SafeIframe' => true, 'URI.SafeIframeRegexp' => '%^(https?:)?//(www\.youtube(?:-nocookie)?\.com/embed/|player\.vimeo\.com/video/)|dailymotion.com/embed/video/%', 'URI.AllowedSchemes' => [ 'http' => true, 'https' => true, 'mailto' => true, 'ftp' => true, 'nntp' => true, 'news' => true, 'data' => true, ], ]) !!}

@if ($ticketResponse->file) @foreach ($ticketResponse->file as $file) @endforeach @endif
alt
@else
alt

@if($loop->first) {{-- Member name --}} {{ ucwords($member->user->details->first_name ?? '') }} {{ ucwords($member->user->details->last_name ?? '') }} @else {{$ticketResponse->reply_entity_name}} @endif

{{ convertDateToUserTimeZone($ticketResponse->created_at,'jS M, Y h:i A',getUserTimeZone()) }}

@php $mainDescription = $ticketResponse->description; $html = quoted_printable_decode($mainDescription); $crawler = new Symfony\Component\DomCrawler\Crawler($html); if($crawler->filter('body[dir="ltr"]')->count() > 0) { if ($crawler->filter('body[dir="ltr"] > div')->first()->count() > 0) { $crawlerNew = $crawler->filter('body[dir="ltr"] > div')->first(); $mainDescription = $crawlerNew->outerHtml(); } } else { $crawler = $crawler->filter('div[dir="ltr"]'); if ($crawler->filter('div[dir="ltr"]')->count() > 0) { $mainDescription = $crawler->outerHtml(); } if (strstr($mainDescription, '

', true)) { $mainDescription = strstr($mainDescription, '
', true); } if (strstr($mainDescription, '
', true)) { $mainDescription = strstr($mainDescription, '
', true); } } @endphp @if ($ticketResponse->translate_description == '') {!! clean($mainDescription, [ 'HTML.ForbiddenElements' => 'script,formaction,onfocus,poster,onscroll,onforminput,onformchange,onerror,onratechange,onload,background', 'AutoFormat.AutoParagraph' => true, 'Attr.EnableID' => true, 'HTML.SafeIframe' => true, 'URI.SafeIframeRegexp' => '%^(https?:)?//(www\.youtube(?:-nocookie)?\.com/embed/|player\.vimeo\.com/video/)|dailymotion.com/embed/video/%', 'URI.AllowedSchemes' => [ 'http' => true, 'https' => true, 'mailto' => true, 'ftp' => true, 'nntp' => true, 'news' => true, 'data' => true, ], ]) !!} @else {!! clean($ticketResponse->translate_description, [ 'HTML.ForbiddenElements' => 'script,formaction,onfocus,poster,onscroll,onforminput,onformchange,onerror,onratechange,onload,background', 'AutoFormat.AutoParagraph' => true, 'Attr.EnableID' => true, 'HTML.SafeIframe' => true, 'URI.SafeIframeRegexp' => '%^(https?:)?//(www\.youtube(?:-nocookie)?\.com/embed/|player\.vimeo\.com/video/)|dailymotion.com/embed/video/%', 'URI.AllowedSchemes' => [ 'http' => true, 'https' => true, 'mailto' => true, 'ftp' => true, 'nntp' => true, 'news' => true, 'data' => true, ], ]) !!} @endif

@if ($mainDescription != "

" && ($ticketResponse->reply_entity_name == 'member' || $ticketResponse->reply_entity_name == '') && $ticketResponse->reply_entity_id != $supportUser->id)
@if (!$ticketResponse->translate_description) {{ __('See Translation') }} @else {{ __('Orignal Content') }} @endif

@endif

@if ($ticketResponse->file) @foreach ($ticketResponse->file as $file) @endforeach @endif
@endif @endforeach