$calendar->getRouteKey(), 'key' => [ 'public' => $calendar->getPublicKey(), 'route' => $calendar->getRouteKey(), ], 'type_id' => $calendar->type_id, 'parent_id' => $calendar->parent_id, 'parent_type' => $calendar->parent_type, 'name' => $calendar->name, 'slug' => $calendar->slug, 'end_date' => $calendar->end_date, 'duration_id' => $calendar->duration_id, 'status_id' => $calendar->status_id, 'assigned_id' => $calendar->assigned_id, 'reminder' => $calendar->reminder, 'user_id' => $calendar->user_id, 'user_type' => $calendar->user_type, 'start_date' => $calendar->start_date, 'start_time' => $calendar->start_time, 'type' => $calendar->type, 'deleted_at' => $calendar->deleted_at, 'url' => [ 'public' => trans_url('activities/'.$calendar->getPublicKey()), 'user' => guard_url('activities/calendar/'.$calendar->getRouteKey()), ], 'status' => trans('app.'.$calendar->status), 'created_at' => format_date($calendar->created_at), 'updated_at' => format_date($calendar->updated_at), ]; } }