</a> </li> @endforeach @foreach ($readMessages as $key => $readMessage) <li> @if ($key == 0) Message which you've already read @endif <a href="{{ route('clicknofify', $readMessage->id) }}"> <div class="pull-left"> <img src="{!!Asset('avatar/'.$readMessage->thread->avatar)!!}" class="img-circle" alt="User Image"/> </div> <h4> {{ $readMessage->thread->header }} <small><i class="fa fa-clock-o"></i> <?php echo ago_time($readMessage->updated_at); ?> </small> </h4> <p>{{ $readMessage->content }}</p> </a> </li> @endforeach </ul> </li> <li class="footer"><a href="#">See All Messages</a></li> </ul> </li> <!-- Notifications: style can be found in dropdown.less --> <!-- <li class="dropdown notifications-menu"> <a href="#" class="dropdown-toggle" data-toggle="dropdown">
<ul> <?php $commentDetailFeatures = $detailfeature->comment_detail_features()->get(); foreach ($commentDetailFeatures as $key => $value) { $user = $value->author()->get()[0]; ?> <li class="item-comment" data-id="{{$value->id}}" data-urldelete = "{{route('manageproject.deleteCommentDetailFeature',$value->id)}}"> <div class="wrap-content"> <div class="avatar"> <img src="{{Asset($user->avatar)}}" alt="" class="avatar-user-comment"/> </div> <div class="content-comment"> <div class="item-header"> <p class="item-header-label"> {{$user->lastname.' '.$user->firstname}} commented <?php echo ago_time($value->updated_at); ?> ago </p> <!-- if it is my post, i can edit it --> @if ($empAuth->id == $user->id) <p class="item-header-action"> <i class="fa fa-pencil-square-o edit-comment"></i> <i class="fa fa-times delete-comment"></i> </p> @endif </div> <div class="item-content">{{$value->content}}</div> </div> <!-- .content-comment --> </div> <!-- .wrap-content -->