@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 }}
{{
$comment->created_at->diffForHumans() }}
{!! $comment->comment !!}
@if($comment->emailcommentfile != null)
@if($comment->emailcommentfile == 'mismatch')
@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')
@endif
@endif
@else
@if ($comment->cust->image == null)
}})
@else
}})
@endif
{{ $comment->cust->username }}
{{
$comment->created_at->diffForHumans() }}
{!! $comment->comment !!}
@if($comment->emailcommentfile != null)
@if($comment->emailcommentfile == 'mismatch')
@else
@endif
@endif
@if($comment->getMedia('comments')->isNotEmpty())
@endif
@endif
{{--Customer Reply status End--}}
{{--Admin Reply status--}}
@else
@if(setting('customer_panel_employee_protect') == 'on')
}})
@else
@if($comment->user != null)
@if ($comment->user->image == null)
}})
@else
}})
@endif
@else
}})
@endif
@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
{{
$comment->created_at->diffForHumans() }}
{!! $comment->comment !!}
@if($comment->getMedia('comments')->isNotEmpty())
@endif
@endif
{{--Admin Reply status End--}}
@endforeach