replies.blade.php
1.07 KB
@extends('layouts.profile')
@section('title', 'Profile Replies')
@section('profile')
<div id="reply-notify-title">
You have <span style="color:#0B90FF">{{ $newRepliesCount }}</span> new comment replies
</div>
<ul id="reply-notify-list">
@foreach ($replies as $reply)
<a href="{{ $reply->meta->url }}">
<li class="{{ $reply->read? 'read' : 'unread' }} clearfix">
<div class="message">
@if ($reply->type === 'forum-reply')
<strong>{{ $reply->meta->username }}</strong> has posted a reply to <strong>{{ $reply->meta->title }}</strong>
@elseif ($reply->type === 'wall-reply')
<strong>{{ $reply->meta->username }}</strong> has replied to a comment on <strong>a wall</strong>
@else
<strong>{{ $reply->meta->username }}</strong> has replied to your comment on <strong>{{ $reply->meta->title }}</strong>
@endif
</div>
<em class="timeago" title="{{ date('c', strtotime($reply->created_at)) }}"></em>
</li>
</a>
@endforeach
</ul>
<script type="text/javascript">
$('.timeago').timeago();
</script>
@endsection