@lang('translation.activities')
@foreach ($actions as $action)
@if ($action->type == App\Enums\TrackingActionTypeEnum::REJECTED->name)
@if ($params = json_decode("{$action->params}", true))
{{ $params['user']['name'] }}
@lang(App\Enums\TrackingActionTypeEnum::REJECTED->value)
{{ __("{$action->msg}") }}
{{ $params['attachments'][0]. ' '.$params['attachments'][1] }}
{{ $action->created_at }}
@endif
@endif
@if ($action->type == App\Enums\TrackingActionTypeEnum::ORDER_CREATED->name)
@if ($params = json_decode("{$action->params}", true))
{{ $params['user']['name'] }}
@lang('translation.'.$action->type)
{{ __($action->msg, $params['attachments']) }}
{{ $action->created_at }}
@endif
@endif
@if ($action->type == App\Enums\TrackingActionTypeEnum::MEMBERS_ADDED->name)
Nancy Martino
@lang('translation.'.App\Enums\TrackingActionTypeEnum::MEMBERS_ADDED->name)
{{ __("{$action->msg}") }}
@if ($params = json_decode("{$action->params}", true))
@foreach ($params['attachments'] as $key => $value)
@endforeach
@endif
{{ $action->created_at }}
@endif
@if ($action->type == App\Enums\TrackingActionTypeEnum::ATTACHMENTS->name)
@if ($params = json_decode("{$action->params}", true))
{{ $params['user']['name'] }}
@lang('translation.'.\App\Enums\TrackingActionTypeEnum::ATTACHMENTS->name)
@lang(\App\Enums\TrackingActionTypeEnum::ATTACHMENTS->value)
@foreach ($params['attachments'] as $attachedItem)
@endforeach
{{ $action->created_at }}
@endif
@endif
@if ($action->type == App\Enums\TrackingActionTypeEnum::ORDER_UPDATED->name)
@if ($params = json_decode("{$action->params}", true))
{{ $params['user']['name'] }}
@lang('translation.'.App\Enums\TrackingActionTypeEnum::ORDER_UPDATED->name)
@lang("{$action->msg}", [$params['user']['name']])
@foreach ($params['attachments'] as $key => $value)
- {{ $value }}
@endforeach
{{ $action->created_at }}
@endif
@endif
@if ($action->type == App\Enums\TrackingActionTypeEnum::COMPLETED->name)
@if ($params = json_decode("{$action->params}", true))
{{ $params['user']['name'] }}
@lang('translation.'.\App\Enums\TrackingActionTypeEnum::COMPLETED->name)
{{ __(\App\Enums\TrackingActionTypeEnum::COMPLETED->value, [$params['attachments'][0], $params['attachments'][1]]) }}
{{ $params['attachments'][3] }}
{{ $params['attachments'][5] }}
{{ $action->created_at }}
@endif
@endif
@endforeach