@foreach ($comments as $comment)
{{-- Customer Reply status --}}
@if ($comment->cust_id != null)
@if ($loop->first)
@if ($comment->cust->image == null)
 }})
@else
 }})
@endif
{{ $comment->cust->username }}
{{ \Carbon\Carbon::parse($comment->created_at)->diffForHumans() }}
{!! $comment->comment !!}
@if ($comment->emailcommentfile != null)
@if ($comment->emailcommentfile == 'mismatch')
{{ lang('Upload Failed') }}
@else
@endif
@endif
@if (Auth::guard('customer')->id() == $comment->cust_id)
@if ($comment->getMedia('comments')->isNotEmpty())
@endif
@else
@if ($comment->getMedia('comments')->isNotEmpty())
@endif
@endif
@if (Auth::guard('customer')->id() == $comment->cust_id)
@if ($comment->ticket->status != 'Closed')
@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
@if ($comment->cust->image == null)
 }})
@else
 }})
@endif
{{ $comment->cust->username }}
{{ \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->getMedia('comments')->isNotEmpty())
@endif
@endif
{{-- Customer Reply status End --}}
{{-- Admin Reply status --}}
@else
@php $custGoogleTranslate = App\Models\Setting::where('key', 'cust_google_translate')->value('value') @endphp
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]))
{{ $comment->user->getRoleNames()[0] }}
@endif
@else
~
@endif
@endif
{{ \Carbon\Carbon::parse($comment->created_at)->diffForHumans() }}
{!! $comment->comment !!}
@if ($comment->getMedia('comments')->isNotEmpty())
@endif
@endif
@endif
{{-- Admin Reply status End --}}
@endforeach