@php $comment->addIntoCommentViews(); @endphp
@if (trim($comment->type) != 'Case auto closed!' && trim($comment->comment_type) != 'auto_close') {{$comment->user->name}} @elseif($comment->type == 'cd_audit_bulk_close')
CD Audit Bulk Close @else
Logic Triggered @endif @if($comment->type) {{$comment->type}} @else commented @endif ({{$comment->days_ago()}}) @if (isset($comment->type) && $comment->type == 'messages at') from shared case @endif {{date('d/m/Y h:i a',strtotime($comment->updated_at))}}
{!! ($comment->comment) !!} @if(isset($comment->record_update))

{{$comment->record_update->update}}

@foreach ($comment->record_update->documents as $doc) @if ($doc->type == 'image') @else @endif {{ $doc->document->original_file_name() }} @if ($doc->type == 'image')
@endif
@endforeach @endif
{{-- commenting out this because Taskeel says that it is not needed because of the new feature of ticks --}} {{--
@if (isset($comment->type) && $comment->type == 'messages at') {{$comment->user->name}} @else
@foreach($comment->views as $view)
@include('head_office.user_card_component',['user'=>$view->head_office_user->user])
@endforeach
@endif
@if(isset($case) && $case->status == 'open' && !$comment->type) Reply? @endif @if ($comment->type == 'update submited from location') View all Updates @endif
--}} @if(count($comment->documents))
@endif @if(isset($case) && $case->isArchived == false) @include('head_office.case_manager.notes.form_comment',['comment'=>$comment,'edit_comment'=>true]) @endif @if(count($comment->replies))
@endif @foreach($comment->replies as $reply)
@include('head_office.case_manager.notes.view_comments',['comment'=>$reply])
@endforeach @if ($comment->currentUserIsAuthor() && isset($case) && $case->isArchived == false && $comment->views->where('is_seen',1)->count() > 0) @include('head_office.users_seen_component',['comment'=>$comment,'route'=>route('case_manager.unseen_comment',['id'=>$comment->id,'_token'=>csrf_token()])]) @endif