$type->getRouteKey(), 'key' => [ 'public' => $type->getPublicKey(), 'route' => $type->getRouteKey(), ], 'name' => $type->name, 'code' => $type->code, 'description' => $type->description, 'slug' => $type->slug, 'user_id' => $type->user_id, 'user_type' => $type->user_type, 'deleted_at' => $type->deleted_at, 'url' => [ 'public' => trans_url('asset/'.$type->getPublicKey()), 'user' => guard_url('asset/type/'.$type->getRouteKey()), ], 'status' => trans('app.'.$type->status), 'created_at' => format_date($type->created_at), 'updated_at' => format_date($type->updated_at), ]; } }