Add/View Comment
@if(@$dueDiligenceHasRights['View Comment'])
@if($due_diligence_comments->isNotEmpty()) @foreach($due_diligence_comments as $record) @php $commment_id = $record->id; $comment = $record->comment; $full_name = $record->full_name; $profile_pic = $record->profile_pic; $modified = $record->modified; $comment_by_users_id = $record->users_id; //Begin Profile pic $dir_path = public_path('uploads/users_profile_pic'); $full_pic_path = ""; $user_pfp_path = $dir_path."/".$profile_pic; if(@is_file($user_pfp_path)) { $base_path = asset('uploads/users_profile_pic'); $full_pic_path=$base_path."/".$profile_pic; } else { $base_path=asset('dist/images'); $full_pic_path=$base_path."/"."profile-default.png"; } //End Profile pic $comment_container_id = "comment_container_".$commment_id; $due_diligence_comments_trans_id = $record->due_diligence_comments_trans_id;//is edited or not @endphp
Avatar
{{ $full_name }} @if($due_diligence_comments_trans_id) (edited) @endif
{{ date_format($modified,"d-M-Y g:i A") }}
{{ $comment }}
@if($comment_by_users_id == $logged_in_usr_id)
@endif
@endforeach @else
No Comment Found ...!!
@endif
@endif @if(@$dueDiligenceHasRights['Add Comment'])
@csrf()
@endif
@if(@$dueDiligenceHasRights['Add Comment'])
@endif