@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) }}
{{ \Carbon\Carbon::parse($comment->created_at)->diffForHumans() }}
{!! $comment->comment !!}
@if ($comment->emailcommentfile != null)
@if ($comment->emailcommentfile == 'mismatch')
{{ lang('Upload Failed') }}
@else
@endif
@endif
@if ($comment->cust_id != null)
@foreach ($comment->getMedia('comments') 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')
@if (setting('CUSTOMER_RESTRICT_EDIT_REPLY') == 'yes' &&
$comment->created_at->timezone(setting('default_timezone'))->addMinutes(setting('custreplyeditwithintime')) >=
now()->timezone(setting('default_timezone')))
@endif
@endif
@endif
@else
loading.. Please Wait
@if ($comment->user_id == '741741741')
@if (setting('bot_image') == null)
 }})
@else
)}})
@endif
@if($custGoogleTranslate == 'on')
@endif
@if (setting('customer_panel_employee_protect') == 'on')
{{ setting('employeeprotectname') }}
@else
{{ setting('bot_name') }}
{{ lang('Bot') }}
@endif
{{ \Carbon\Carbon::parse($comment->created_at)->diffForHumans() }}
{!! $comment->comment !!}
@else
@if (setting('customer_panel_employee_protect') == 'on')
 }})
@else
@if ($comment->user != null)
@if ($comment->user->image == null)
 }})
@else
 }})
@endif
@else
}})
@endif
@endif
@if($custGoogleTranslate == 'on')
@endif
@if (setting('customer_panel_employee_protect') == 'on')
{{ setting('employeeprotectname') }}
@else
@if ($comment->user != null)
{{ $comment->user->name }} @if (!empty($comment->user->getRoleNames()[0]))
{{ lang($comment->user->getRoleNames()[0]) }}
@endif
@else
~
@endif
@endif
{{ \Carbon\Carbon::parse($comment->created_at)->diffForHumans() }}
{!! $comment->comment !!}
@foreach ($comment->getMedia('comments') 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
@endif
@endif
@endforeach