@foreach ($comments as $comment) @if ($comment->cust_id != null) @if ($loop->first)
@if ($comment->cust->image == null) default @else {{ $comment->cust->image }} @endif
{{ $comment->cust->username }} {{ lang($comment->cust->userType) }}
{{ \Carbon\Carbon::parse($comment->created_at)->diffForHumans() }}
{!! $comment->comment !!}
@csrf
@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

{{ $a[0] }}

.{{ $a[1] }}
@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
@if ($comment->cust->image == null) default @else {{ $comment->cust->image }} @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
@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

{{ $a[0] }}

.{{ $a[1] }}
@endforeach
@endif @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) default @else default @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') default @else @if ($comment->user != null) @if ($comment->user->image == null) default @else {{ $comment->user->image }} @endif @else default @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

{{ $a[0] }}

.{{ $a[1] }}
@endforeach
@endif
@endif @endforeach