-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Expand file tree
/
Copy pathactivity-item.blade.php
More file actions
30 lines (22 loc) · 923 Bytes
/
activity-item.blade.php
File metadata and controls
30 lines (22 loc) · 923 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
{{--Requires an Activity item with the name $activity passed in--}}
<div>
@if($activity->user)
<img class="avatar" src="{{ $activity->user->getAvatar(30) }}" alt="{{ $activity->user->name }}">
@endif
</div>
<div>
@if($activity->user)
<a href="{{ $activity->user->getProfileUrl() }}">{{ $activity->user->name }}</a>
@else
{{ trans('common.deleted_user') }}
@endif
{{ $activity->getText() }}
@if($activity->loggable && is_null($activity->loggable->deleted_at))
<a href="{{ $activity->loggable->getUrl() }}">{{ $activity->loggable->name }}</a>
@endif
@if($activity->loggable && !is_null($activity->loggable->deleted_at))
"{{ $activity->loggable->name }}"
@endif
<br>
<span class="text-muted" title="{{ $dates->absolute($activity->created_at) }}"><small>@icon('time'){{ $dates->relative($activity->created_at) }}</small></span>
</div>