@php $created_at = null; $icon_color = [ 'created' => 'bg-green', 'updated' => 'bg-blue', 'deleted' => 'bg-red', 'settings_updated' => 'bg-blue' ]; $label = [ 'subject' => __('project::lang.subject'), 'description' => __('lang_v1.description'), 'start_date' => __('business.start_date'), 'due_date' => __('project::lang.due_date'), 'priority' => __('project::lang.priority'), 'status' => __('sale.status'), 'name' => __('messages.name'), 'end_date' => __('project::lang.end_date'), ]; $status_and_priority = [ 'completed' => __('project::lang.completed'), 'cancelled' => __('project::lang.cancelled'), 'on_hold' => __('project::lang.on_hold'), 'in_progress' => __('project::lang.in_progress'), 'not_started' => __('project::lang.not_started'), 'low' => __('project::lang.low'), 'medium' => __('project::lang.medium'), 'high' => __('project::lang.high'), 'urgent' => __('project::lang.urgent'), ]; @endphp @foreach($activities as $activity) @if($created_at != $activity->created_at->format('Y-m-d'))
{{$activity->properties['attributes']['name']}}
@endif
@elseif(($activity->description == 'updated') &&
(
array_key_exists('name', $activity->properties['attributes']) ||
array_key_exists('status', $activity->properties['attributes']) || array_key_exists('start_date', $activity->properties['attributes']) || array_key_exists('end_date', $activity->properties['attributes']) || array_key_exists('description', $activity->properties['attributes'])
))
{{$activity->properties['attributes']['task_id']}}
@elseif($activity->description == 'deleted' && !empty($activity->properties['attributes']))
{{$activity->properties['attributes']['subject']}}
{{$activity->properties['attributes']['task_id']}}
@elseif($activity->description == 'updated' && !empty($activity->properties['attributes']))
$activity->subject->id, "project_id" => $activity->subject->project_id])}}' class="cursor-pointer view_a_project_task text-black">
{{$activity->subject->subject}}
{{$activity->subject->task_id}}
{{$activity->properties['attributes']['heading']}}
@elseif($activity->description == 'updated')
$activity->subject->id, "notable_id" => $activity->subject->notable_id, "notable_type" => $activity->subject->notable_type])}}' class="cursor-pointer view_a_docs_note text-black">
{{$activity->subject->heading}}
@endif
@elseif($activity->subject_type == 'Modules\Project\Entities\ProjectTimeLog')
@if($activity->description == 'created' && !empty($activity->properties['attributes']))
@lang('project::lang.work_hour'):
@includeIf('project::activity.partials.time_log')