@foreach ($comments as $comment)
@if($comment->cust_id != null)
@if ($loop->first)
@if ($comment->cust->image == null)
}})
@else
}})
@endif
{{ $comment->cust->username }} {{ lang($comment->cust->userType) }}
{{ $comment->created_at->diffForHumans() }}
{!! $comment->comment !!}
@if($comment->emailcommentfile != null)
@if($comment->emailcommentfile == 'mismatch')
@else
@endif
@endif
@if ($comment->cust_id != null)
@foreach ($ticket->getMedia('ticket') as $ticketss)
@php
$a = explode('.', $ticketss->file_name);
$aa = $a[1];
@endphp
@if($aa == 'jpg' || $aa == 'jpeg' || $aa == 'JPG')
@elseif($aa == 'pdf')
@elseif($aa == 'csv')
@elseif($aa == 'png')
@else
@endif
@endforeach
@else
@foreach ($comment->getMedia('comments') as $commentss)
@endforeach
@endif
@if ($comment->cust_id != null)
@if ($ticket->status != 'Closed' && $ticket->status != 'Suspend')
@endif
@endif
@else