$icon->getRouteKey(), 'key' => [ 'public' => $icon->getPublicKey(), 'route' => $icon->getRouteKey(), ], 'icon_type' => $icon->icon_type, 'name' => $icon->name, 'image' => $icon->image, 'slug' => $icon->slug, 'user_id' => $icon->user_id, 'user_type' => $icon->user_type, 'deleted_at' => $icon->deleted_at, 'PRIMARY' => $icon->PRIMARY, 'url' => [ 'public' => trans_url('infobject/'.$icon->getPublicKey()), 'user' => guard_url('infobject/icon/'.$icon->getRouteKey()), ], 'status' => trans('app.'.$icon->status), 'created_at' => format_date($icon->created_at), 'updated_at' => format_date($icon->updated_at), ]; } }