You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
623 B
22 lines
623 B
@component('users.activities.activity_list_item')
|
|
@slot('time')
|
|
{{ $activity->created_at }}
|
|
@endslot
|
|
@slot('body')
|
|
<p>
|
|
{!! __('activity.'.$activity->object_type.'.'.$activity->type, [
|
|
'user' => $activity->user->name,
|
|
'name' => $activity->object->name,
|
|
]) !!}
|
|
</p>
|
|
@php
|
|
$data = $activity->data;
|
|
@endphp
|
|
@foreach ($data['before'] as $key => $value)
|
|
@php
|
|
$afterValue = $data['after'][$key] ?? null;
|
|
@endphp
|
|
<div>{{ __('project.'.$key) }}: {{ $value }} => {{ $afterValue }}</div>
|
|
@endforeach
|
|
@endslot
|
|
@endcomponent
|