@foreach ($comments as $comment) {{--Customer Reply status--}} @if($comment->cust_id != null) @if ($loop->first)
@if ($comment->cust->image == null) default @else {{$comment->cust->image}} @endif
{{ $comment->cust->username }}
{{ $comment->created_at->diffForHumans() }}
{!! $comment->comment !!}
@csrf @honeypot
@if($comment->emailcommentfile != null) @if($comment->emailcommentfile == 'mismatch')

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')
@endif @endif
@else
@if ($comment->cust->image == null) default @else {{$comment->cust->image}} @endif
{{ $comment->cust->username }}
{{ $comment->created_at->diffForHumans() }}
{!! $comment->comment !!}
@if($comment->emailcommentfile != null) @if($comment->emailcommentfile == 'mismatch')

Upload Failed

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