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.
 
 
 
 
 

28 lines
886 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
if (in_array($key, ['price']) && !is_null($value)) {
$value = format_money($value);
}
$afterValue = $data['after'][$key] ?? null;
if (in_array($key, ['price']) && !is_null($afterValue)) {
$afterValue = format_money($afterValue);
}
@endphp
<div>{{ __('job.'.$key) }}: {{ $value }} => {{ $afterValue }}</div>
@endforeach
@endslot
@endcomponent